Commit Graph

3339 Commits

Author SHA1 Message Date
James Strachan ed816a0005 refactored the kdoc implementation to introduce a Doclet trait so its easy to plugin new documentation generators or use different templates etc 2012-02-24 08:26:44 +00:00
Svetlana Isakova cc244fad94 KT-1191 Wrong detection of unused parameters
KT-1219 Incorrect 'unused value' error in closures
2012-02-24 12:09:02 +04:00
Alex Tkachman 7f2a8100c4 KT-1417 & KT-1398 proper access flags for backing fields 2012-02-24 09:57:49 +02:00
James Strachan de3d5edb2a added support for properties in kdoc 2012-02-24 07:25:07 +00:00
James Strachan d330e4cd77 fixed up missing descriptions and added support for KProperty 2012-02-24 07:04:47 +00:00
James Strachan 1a0467562d added a notEmpty() method to String? so its polymorphic with Collection? too; its easy to tell if a string/collection is not null and not empty 2012-02-24 07:04:47 +00:00
James Strachan 5d96c8ac0d include all inherited extension functions; so Collection / List extension page shows all available methods 2012-02-24 07:04:47 +00:00
James Strachan cb7d23c420 added collection.toSortedSet() for easier conversion to sorted setsand collection.notNull() so its easy to treat a nullable collection/list as a collection 2012-02-24 07:04:47 +00:00
Alex Tkachman 80e728b6f6 KT-413 proper visibility of this$0 2012-02-24 08:26:50 +02:00
Evgeny Gerashchenko f89b0c3193 Fixed tests. Added 'object {...}' template after "class" inside class. 2012-02-23 23:46:14 +04:00
Evgeny Gerashchenko 8575da228d Fixed 'Implement members implement functions with no curly braces - not convenient'
#KT-1317 fixed
2012-02-23 23:00:03 +04:00
Evgeny Gerashchenko 6fadca9ac1 Fixed 'Completion suggests live tempates in name position'
#KT-1374 fixed
2012-02-23 22:49:55 +04:00
Alex Tkachman 85a1be4c78 one more test for serialization 2012-02-23 20:32:26 +02:00
Alex Tkachman f6a37b9bd8 serialization of functions and tuples 2012-02-23 20:13:02 +02:00
Alex Tkachman ec442af1b3 attempt to fix failing test 2012-02-23 19:17:55 +02:00
James Strachan 4da12cfd29 Merge branch 'master' of github.com:JetBrains/kotlin 2012-02-23 16:46:04 +00:00
Alex Tkachman 1921e266a8 ability to compile text (not file) 2012-02-23 18:45:34 +02:00
James Strachan 5b146bcc59 refactored the code to remove some cruft and add support for extension functions into kdoc 2012-02-23 16:45:12 +00:00
Alex Tkachman f4bfffd714 global var replaced by thread local 2012-02-23 17:13:03 +02:00
Alex Tkachman 4f67177aa2 Revert "ability to compile text and small refactoring"
This reverts commit 4ddf101397.
2012-02-23 17:01:33 +02:00
James Strachan edffe8f29e moved the kdoc generation to a separate doc goal, use fork to avoid running out of permgen space and minor refactor 2012-02-23 13:58:12 +00:00
James Strachan 880b90dace fixed up function links on package frame 2012-02-23 13:06:25 +00:00
James Strachan b5153de155 fixed up the std.util package a little 2012-02-23 12:53:47 +00:00
James Strachan 6c3ec61b5c added some trim helper methods for trimming strings 2012-02-23 12:53:26 +00:00
James Strachan 2028d302e9 further refactoring and simplification of the model to be more inline with the kotlin descriptors along with reenabling support for extension functions 2012-02-23 12:29:36 +00:00
Alex Tkachman 4ddf101397 ability to compile text and small refactoring 2012-02-23 14:12:28 +02:00
James Strachan 99a13a500c simplified the model more 2012-02-23 12:09:54 +00:00
James Strachan b392a6217e added the generation of the kdoc to the dist goal in Ant, refactored the model a little so that it contains descriptors and removed the java code from kdoc implementation 2012-02-23 11:56:32 +00:00
James Strachan 0212f91343 add some helper classes so that we can implement kdoc fully in kotlin (to work around some inference ambiguity bugs) 2012-02-23 11:54:24 +00:00
James Strachan 6a2e73a724 add some NPE handling 2012-02-23 11:53:48 +00:00
James Strachan cd70f06203 added notEmpty() helper method as its very common to want to do something if a collection is not empty; so if (foo.notEmpty()) is easier to read than if (!foo.isEmpty()) 2012-02-23 09:24:24 +00:00
James Strachan f35c8926b3 added summary of methods and extension functions to kdoc 2012-02-23 09:12:44 +00:00
Stepan Koltsov 35e157e9c5 fix tests 2012-02-23 01:18:11 +04:00
Stepan Koltsov e0fae55ee4 read kotlin class objects from binary classes 2012-02-22 22:11:08 +04:00
Stepan Koltsov b9ba7c6b9a hide FunctionDescriptor.initialize 2012-02-22 22:11:04 +04:00
Stepan Koltsov b9bc882bf9 useless constructor modality parameter 2012-02-22 22:10:58 +04:00
Stepan Koltsov 16f76982d1 assert JetLightClass is not parsed as regular PsiClass 2012-02-22 22:10:54 +04:00
James Strachan 871f9fc580 initial support for extracting comments 2012-02-22 17:58:10 +00:00
Evgeny Goldin e13692f02f "kdoc" - dependencies that are not required removed. 2012-02-22 19:39:43 +02:00
James Strachan aae592f6e6 add support for value parameters to kdoc 2012-02-22 17:04:49 +00:00
James Strachan 0024e29872 basic working kdoc for packages, classes, methods. Still needs work for extension methods, comments, value and type parameters and modifiers, but its a start ;) 2012-02-22 16:21:10 +00:00
Evgeny Goldin 2d24c87375 "kdoc" - using "ivy-maven-plugin" to inject IDEA/Kotlin dependencies into "compile" scope. 2012-02-22 17:58:10 +02:00
Evgeny Goldin 7a798d0f80 Merge branch 'master' of git+ssh://github.com/JetBrains/kotlin 2012-02-22 17:52:31 +02:00
Evgeny Goldin 1262f9ee85 "kdoc" - using "ivy-maven-plugin" to inject IDEA/Kotlin dependencies into "compile" scope. 2012-02-22 17:51:59 +02:00
Nikolay Krasko 21b3be0ef0 Fix NPE because of nullable local name 2012-02-22 19:29:17 +04:00
James Strachan 19a67c8edf really simple implementation of kdoc that lets us navigate the packages and classes at least (though the package name is not correct :) 2012-02-22 14:02:28 +00:00
James Strachan f771158d30 refactored the loading of KDoc and removed the old code to show how to navigate the bindingContext as thats now implemented in KDocSupport 2012-02-22 14:01:58 +00:00
James Strachan e05d299874 added a simple little CompilerPlugin interface and a loosely coupled loader of KDoc if its configured (via -docOutput) and its on the classpath then it can be used at the same stage as a compile & refactored KDoc to work with the compiler. Added a "docStdlib" goal to try out the kdoc on stdlib if the kdoc plugin has been built in kdoc/target/*.jar 2012-02-22 13:28:44 +00:00
Andrey Breslav 10b2bd089c No testlib tests in build-tools/build.xml 2012-02-22 17:05:39 +04:00
Andrey Breslav e3efda22c5 Removing the KDoc processor for now 2012-02-22 16:50:16 +04:00