Commit Graph

19867 Commits

Author SHA1 Message Date
Alexander Udalov 5194310d6e Use javac2 filter to disable NotNull instrumentation of Kotlin code
We skip all classes annotated with kotlin/jvm/internal/<anything> (currently
KotlinClass, KotlinPackage and KotlinSyntheticClass) because Kotlin compiler
emits its own nullability assertions
2015-01-21 16:17:50 +03:00
Svetlana Isakova 9dbcd8b55f Approximate captured types only when necessary 2015-01-21 15:37:33 +03:00
Dmitry Jemerov 6c814279fc Merge pull request #550 from JetBrains/kdoc-inherit
allow inheriting doc comments from base classes
2015-01-21 13:26:01 +01:00
Natalia Ukhorskaya 8b5279897f Gradle: fix kotlinOptions for kotlin-android plugin 2015-01-21 13:58:16 +03:00
Natalia Ukhorskaya bcbfb1bd77 Gradle: include groovy output to kotlin-gradle-plugin.jar
#KT-6635 Fixed
2015-01-21 13:58:16 +03:00
Natalia Ukhorskaya 72510beb69 Android tests: generate tests only for directories 'box' and 'boxWithStdlib' 2015-01-21 13:58:15 +03:00
Ilya Ryzhenkov 3a9e41f2d7 stdlib: Pair and Triple .toList() 2015-01-20 22:39:24 +03:00
Ilya Ryzhenkov 95d4accda7 stdlib: add flatten() 2015-01-20 22:39:24 +03:00
Ilya Ryzhenkov 1d4591d99c stdlib: add sumBy(function) 2015-01-20 22:39:23 +03:00
Ilya Ryzhenkov 4ee64d7283 Covering stdlib with tests. 2015-01-20 22:37:16 +03:00
Ilya Ryzhenkov c3eaf1b869 Fix return type of linkedHashSetOf to be more specific. 2015-01-20 22:37:16 +03:00
Ilya Ryzhenkov 9b04f57a25 Collection tests: format and fix usages of deprecated symbols. 2015-01-20 22:37:15 +03:00
Evgeny Gerashchenko 5a77a70710 Merge pull request #551 from JetBrains/delete-operation-mode-provider
delete unused OperationModeProvider class
2015-01-20 22:52:33 +04:00
Dmitry Jemerov 431cdd2245 delete unused OperationModeProvider class 2015-01-20 19:51:24 +01:00
Dmitry Jemerov 0c2b230e4a allow inheriting doc comments from base classes 2015-01-20 19:20:59 +01:00
Alexander Udalov ae6ffeb88a Skip inlined lambdas when determining EnclosingMethod
#KT-6368 Fixed
2015-01-20 21:02:57 +03:00
Alexander Udalov 20dc3438a2 Fix generation of InnerClasses/EnclosingMethod attributes
Generate InnerClasses for each outer class and each direct inner class in all
inheritors of MemberCodegen, i.e. for classes, objects, lambdas, local classes,
etc.

Also skip lambdas which will be inlined when calculating outer class for
EnclosingMethod

 #KT-5447 Fixed
 #KT-5478 Fixed
2015-01-20 21:02:56 +03:00
Dmitry Jemerov 432bdcd0fc Merge pull request #549 from JetBrains/rr/yole/kdoc-parser
Rr/yole/kdoc parser
2015-01-20 18:54:17 +01:00
Dmitry Jemerov 8217563aac KDocTokens.START can't be the first token of a tag 2015-01-20 18:08:02 +01:00
Dmitry Jemerov 31f5441f6b code review 2015-01-20 18:08:01 +01:00
Dmitry Jemerov 100b8c2c4d Fix tests according to new PSI structure; move doc comment text calculation from JetQuickDocumentationProvider to KDocTag.getContent() 2015-01-20 18:07:18 +01:00
Dmitry Jemerov c3a496b9a2 introduce the concept of sections 2015-01-20 18:00:17 +01:00
Dmitry Jemerov f3763bc2b5 some initial PSI for KDoc; changed syntax of links (Markdown style single brackets instead of Wiki style double brackets) 2015-01-20 18:00:09 +01:00
Alexey Sedunov b40e657180 Create from usage: Create constructor parameter by reference in delegation specifier
#KT-6601 Fixed
2015-01-19 20:58:55 +03:00
Alexey Sedunov 70b202dfa6 Extract Function: Do not extract extension receiver from 'implicit invoke'
call
 #KT-6302 Fixed
2015-01-19 20:58:54 +03:00
Alexey Sedunov d54b261c61 Extract Function: Fix 'this' label (extension case)
#KT-5456 Fixed
2015-01-19 20:58:53 +03:00
Alexey Sedunov 941e08b80f Minor: Fix warnings 2015-01-19 20:58:52 +03:00
Alexey Sedunov 8d40ca1a74 Extract Function: Merge jumps with default exits if all exit points are equivalent
#KT-6598 Fixed
2015-01-19 20:58:51 +03:00
Alexey Sedunov 9278dee1a4 Pseudocode: Bind nondeterministic jump caused by local declaration to declaration iself instead of its parent element
#KT-6261 Fixed
 #KT-6416 Fixed
2015-01-19 20:58:50 +03:00
Nikolay Krasko 81715d1fca Don't pass message bus to avoid unnecessary registering
#KT-6640 Fixed
2015-01-19 20:26:01 +03:00
Andrey Breslav 35049de94e Merge pull request #548 from JetBrains/remove-exPuzzlers
Remove outdated version of puzzlers from the Kotlin repository.
2015-01-19 18:01:32 +03:00
Dmitry Jemerov 2e01c3b90a Remove outdated version of puzzlers from the Kotlin repository. An up-to-date version is available at https://github.com/kotlin-projects/ex-puzzlers 2015-01-19 15:58:33 +01:00
Evgeny Gerashchenko c60797e306 Rebuilding dependants fully only when constants/inline functions changed. This is not 100% precise, but it is faster. It is a compromise until we implement preciser incremental compilation. 2015-01-19 15:36:57 +03:00
Evgeny Gerashchenko 72687758a5 Rebuilding dependent modules. 2015-01-19 15:36:56 +03:00
Evgeny Gerashchenko 00f2ba5124 Test with Java and Kotlin changed simultaneously. 2015-01-19 15:36:56 +03:00
Evgeny Gerashchenko 967f470b16 Added multi-module tests on incremental compilation.
Changing code wasn't required, Java's incremental caches were enough.
2015-01-19 15:36:55 +03:00
Alexander Udalov baea660a0b Rewrite hack in codegen for lambdas in anonymous object super calls
Synthetic ClassDescriptor created in codegen for lambdas and such should have
correct container, because it'll be used in generation of InnerClasses
2015-01-16 21:48:57 +03:00
Alexander Udalov c23352d81b Remove ParentCodegenAware
Inline its fields to subclasses, fix parent codegen nullability
2015-01-16 21:47:51 +03:00
Evgeny Gerashchenko 2b438a286f Updated test data according to changes in IDEA. 2015-01-16 20:19:37 +03:00
Nikolay Krasko bc9287b60f Change description of 'iter' template to make it searchable by 'for' prefix
#KT-6603 Fixed
2015-01-15 20:35:39 +03:00
Pavel V. Talanov 2d68637fd9 ResolveElementCache: Use softly (not weakly) retained values
Fixes performance problems with long running searches analyzing function bodies several times
2015-01-15 19:54:25 +03:00
Alexey Sedunov 90e7d2151b Create From Usage: Restrict type guess search scope to prevent performance problem with highlighting 2015-01-15 19:43:01 +03:00
Denis Zharkov 6f94ebb9d6 Refined redundant null check optimization 2015-01-15 15:13:05 +03:00
Denis Zharkov 5675d2b26b Dead code elimination
#KT-6602 Fixed
 #KT-6305 Fixed
 #KT-5656 Fixed
2015-01-15 15:13:05 +03:00
Denis Zharkov aecb925b7b Refined skipping last goto when inlining try/catch/finally block 2015-01-15 15:13:05 +03:00
Denis Zharkov 5a0a05e5c7 Removed unused inline markers 2015-01-15 15:13:04 +03:00
Natalia Ukhorskaya d2cf83902b Debugger: do not evaluate calls on mouse cover when 'Value auto tooltip' switched on 2015-01-15 11:45:16 +03:00
Natalia Ukhorskaya f5aefc96fb Local variable shouldn't be visible in debugger before initialization 2015-01-15 11:45:15 +03:00
Alexey Tsvetkov 89f8442705 Fixed weird compilation issue by moving function to other package 2015-01-14 21:49:52 +03:00
Alexey Tsvetkov ddcd2e7344 Regenerated injectors 2015-01-14 21:49:52 +03:00