Commit Graph

15470 Commits

Author SHA1 Message Date
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
Andrey Breslav 3a9f577d1d All bounds may be specified in 'where' clause
Exception fixed in AlternativeMethodSignatureData
2014-05-13 20:19:43 +04:00
Andrey Breslav 788994283e KT-5007 "Specify Kotlin signature" action doesn't work
Globally cached BindingContext used

(cherry picked from commit 5a641fc)
2014-05-13 19:39:32 +04:00
Andrey Breslav 64f0a8d420 Provide access to package fragments generated for static members of Java classes 2014-05-13 19:39:32 +04:00
Andrey Breslav 87750d633c JavaDescriptorResolver supports resolving classes by PSI elements, not by FqNames 2014-05-13 19:39:31 +04:00
Valentin Kipyatkov 6c5d974284 Completion: added a test 2014-05-13 16:40:48 +04:00
Valentin Kipyatkov c9bde2de0e Smart completion: added a test 2014-05-13 16:40:48 +04:00
Valentin Kipyatkov 2d850f41f1 Smart completion: fixed addition of tail chars after true, false and null 2014-05-13 16:40:47 +04:00
Valentin Kipyatkov 0e86e628a3 KT-5012 Autocompletion is completing to FQN and not the value
#KT-5012 Fixed
 #KT-5006 Fixed
2014-05-13 16:40:47 +04:00
Jeremy Kaplan b3842285e8 Implemented Operator To Function intention action.
Converts +a, --a, a * b, a..b, a %= b, a in b, etc. to their function call counterparts.
2014-05-12 21:04:51 +04:00
Pradyoth Kukkapalli 5550924dc5 New Intention Action: Invert If Condition
Inverts the conditional expression in an if expression.
2014-05-12 19:48:43 +04:00
Andrey Breslav aa20af3cf3 Minor. Unused code removed
Follow-up for https://github.com/JetBrains/kotlin/commit/db00500404e4862548ed5eb49f7289e1e8eba99c#commitcomment-6242775
2014-05-12 19:02:17 +04:00
Alexander Udalov 7c44938151 Drop unused AnalyzerFacadeForEverything 2014-05-12 18:03:02 +04:00
Alexander Udalov 5a0055cbeb Fix message case in JetBundle.properties
Intention names should be lowercase, family names should have each word
except prepositions capitalized
2014-05-12 16:47:00 +04:00
Alexey Sedunov 31a1ec0f05 Improve JetNameValidatorImpl performance 2014-05-12 13:03:03 +04:00
Alexey Sedunov 5cfb8bbf99 Extract Function: Allow the user to proceed with extraction when non-critical errors are found
#KT-4941 Fixed
2014-05-12 13:03:01 +04:00
Alexey Sedunov 1e49dcda27 Extract Function: Make member/top-level function private by default 2014-05-12 12:55:09 +04:00
Alexey Sedunov 3ac3edd1bd Extract Function: Allow to select fragments which start with comment 2014-05-12 12:55:08 +04:00
Alexey Sedunov 243ba62b65 Extract Function: Allow to combine throws with other exit points 2014-05-12 12:55:07 +04:00
Alexey Sedunov 2cfd7de8d9 Fix containment check 2014-05-12 12:55:06 +04:00
Alexey Sedunov 1f36ad0bfc Fix warnings 2014-05-12 12:55:04 +04:00
Alexey Sedunov 1e964551f3 Extract Function: Enable visibility selection when target container is class/object 2014-05-12 12:55:03 +04:00
Alexey Sedunov 5fc1725b33 Extract Function: Type parameters inference 2014-05-12 12:55:02 +04:00
Zalim Bashorov 399c9c1175 JS backend: fixed compiler crash when use compareTo in infix call.
#EA-54661 fixed
2014-05-08 19:57:28 +04:00
Zalim Bashorov a578fc6762 JS backend: fixed infix calls.
#KT-3998   fixed
#EA-56241 fixed
2014-05-08 19:57:28 +04:00
Zalim Bashorov 898275e658 JS backend: added tests for infix calls.
#KT-3998   in progress
 #EA-56241 in progress
2014-05-08 19:57:28 +04:00