Commit Graph

17099 Commits

Author SHA1 Message Date
Nikolay Krasko 2b847cd885 Formatting enum delegations lists 2014-05-16 17:09:57 +04:00
Nikolay Krasko 5839fda22f Fix recovery in enum initializers 2014-05-16 17:09:56 +04:00
Nikolay Krasko ad0e6dadf4 Minor: code clean up 2014-05-16 17:09:55 +04:00
Nikolay Krasko 650a3533f1 Refactoring: use extension functions to modify API 2014-05-16 17:09:55 +04:00
Nikolay Krasko 2a693bcada Formatting index calls 2014-05-16 17:09:54 +04:00
Nikolay Krasko cd3aa06a83 Fix 'In multiline class declaration the indent before parent's name is destroyed' (KT-3848)
#KT-3848 Fixed
2014-05-16 17:09:53 +04:00
Nikolay Krasko 850987748e Fix 'Formatting after braceless class declaration' (KT-3858)
It's irrelevant that element is incompleted when new node is being add to the middle

 #KT-3858
2014-05-16 17:09:53 +04:00
Nikolay Krasko 5e50b98103 Fix comment to KT-3370 about no formatting of spaces around colon in objects
#KT-3370 Fixed
2014-05-16 17:09:52 +04:00
Nikolay Krasko 17699f7f0e Fix 'Formatter doesn't remove redundant spaces between modifiers, name, and opening brace'
#KT-3370 Fixed
2014-05-16 17:09:52 +04:00
Nikolay Krasko d49d42a409 Add spaces around elvis operator 2014-05-16 17:09:51 +04:00
Nikolay Krasko 45013ce8af Fix formatting for multiline binary expressions
#KT-4797 Fixed
2014-05-16 17:09:50 +04:00
Nikolay Krasko 055859888e Refactoring: class rename with minor code enhancements 2014-05-16 17:09:50 +04:00
Nikolay Krasko 195d4c54bf Indent for ?. calls (KT-3913)
#KT-3913 Fixed
2014-05-16 17:09:49 +04:00
Nikolay Krasko c42908eff7 Rewrite tests for formatting during typing with auto generator 2014-05-16 17:09:48 +04:00
Nikolay Krasko 13dce4dd11 Run formatter in function context for converted expression and statements 2014-05-16 17:09:48 +04:00
Nikolay Krasko f11e35f988 Don't check trailing spaces because idea removes them by default 2014-05-16 17:09:47 +04:00
Natalia Ukhorskaya da4e62e4be Gradle plugin: add compatibility with android-gradle-plugin 0.10.+
#KT-4984 Fixed
2014-05-16 16:37:29 +04:00
Mikhael Bogdanov 35802640cb Object transformation: store captured field before super constructor call 2014-05-16 15:56:02 +04:00
Mikhael Bogdanov dce8d5d3e1 Inline context refactoring & proper generation of outer class info 2014-05-16 15:55:58 +04:00
Mikhael Bogdanov b025d0b76c Rename LambdaTransformert to AnonymousObjectTransformer 2014-05-16 15:55:11 +04:00
Mikhael Bogdanov 30e921fa89 Diagnostic: support anonymous objects in inline functions 2014-05-16 15:55:11 +04:00
Mikhael Bogdanov c5e9ea0d29 Support anonymous object constructor transformation and inline 2014-05-16 15:55:08 +04:00
Mikhael Bogdanov 9181302ce4 Distinguish captured field from general one 2014-05-16 13:33:57 +04:00
Mikhael Bogdanov 9007ba9c53 Anonymous object transformation 2014-05-16 13:33:57 +04:00
Mikhael Bogdanov 6fb0050575 KT-4982 this$0 is not initialized in the anonymous object
#KT-4982 Fixed
2014-05-16 13:33:39 +04:00
Nikolay Krasko 5d6b4d641b Replace "InvalidArgumentException" with "IllegalArgumentException" 2014-05-16 13:10:05 +04:00
Andrey Breslav 5ab979864b Temporarily revert changes that create separate class descriptors for each PSI class 2014-05-16 12:27:14 +04:00
Natalia Ukhorskaya 9be8501b60 Remove NotNull annotation 2014-05-15 18:02:34 +04:00
Natalia Ukhorskaya 9785c15736 Minor: rename 2014-05-15 17:19:12 +04:00
Natalia Ukhorskaya fff278e1c6 Support block code fragments in KotlinResolveCache 2014-05-15 17:13:16 +04:00
Andrey Breslav 5815c8c729 Expression code fragments supported in KotlinResolveCache 2014-05-15 16:14:45 +04:00
Alexey Sedunov 34e5460d8a Follow up for PR #458: Generate test data 2014-05-15 15:33:10 +04:00
Natalia Ukhorskaya 355a3eb4e1 Make SpecifyTypeExplicitlyAction inapplicable for code fragments 2014-05-15 13:54:28 +04:00
Natalia Ukhorskaya fd8d292c02 Add getSignificantElement method in JetCodeFragment 2014-05-15 13:54:27 +04:00
Natalia Ukhorskaya 8c0f99001b Evaluate expression: check for syntactic errors 2014-05-15 13:54:27 +04:00
Natalia Ukhorskaya d70770afb2 Completion and highlighting for blockCodeFragment 2014-05-15 13:54:26 +04:00
Natalia Ukhorskaya 511d270032 Evaluate expression: evaluate block of code (CODE_BLOCK mode) 2014-05-15 13:54:25 +04:00
Natalia Ukhorskaya 0677075335 Parser for JetBlockCodeFragment 2014-05-15 13:54:25 +04:00
Natalia Ukhorskaya 787f428133 Minor: make properties private 2014-05-15 13:54:24 +04:00
Natalia Ukhorskaya 0725f63028 Minor, fix warning 2014-05-15 13:54:23 +04:00
Natalia Ukhorskaya f45f1c0d6a Evaluate expression: clarify error message when there are conflicts from extract function 2014-05-15 13:54:23 +04:00
Natalia Ukhorskaya a0549f0ff5 Evaluate expression: allow to call invisible members
#KT-4935 Fixed
2014-05-15 13:54:22 +04:00
Natalia Ukhorskaya 5237674139 Make call return JetElement instead of PsiElement 2014-05-15 13:54:22 +04:00
Natalia Ukhorskaya 11e4754638 Deprecated java methods are not shown as deprected in kotlin
#KT-4993 Fixed
2014-05-15 13:54:21 +04:00
Natalia Ukhorskaya d4211c355e Eval4j: get value from top of stack, not after local variables 2014-05-15 13:54:20 +04:00
Zalim Bashorov 3fce2b8f22 Update to IDEA 135.863 EAP 2014-05-14 20:53:36 +04:00
Andrey Breslav 4cb23eb1f1 A test for the case of finding binary class for a nested Java class 2014-05-14 18:58:57 +04:00
Andrey Breslav a861e5bc5e A test for the case fixed in 291741754b
When Java binaries refer to Kotlin binaries, and then some Kotlin source refers to the same Kotlin binary class, we should load this class consistently
2014-05-14 18:58:57 +04:00
Alexander Udalov 888a6c0c9b Add tests on Kotlin against compiled Java+Kotlin
The original purpose was to create a test that parameter names are inherited on
a K-J-K hierarchy when "K-J" is compiled to bytecode, but that's not possible
right now because of KT-4509
2014-05-14 18:58:57 +04:00
Andrey Breslav 291741754b Guard loading top-level classes with a check that they are not Kotlin binaries 2014-05-14 17:15:01 +04:00