Commit Graph

15403 Commits

Author SHA1 Message Date
Tal Man 9679e3ce4a insert type intention now only applicable in function names (KT-4950)
#KT-4950 Fixed
2014-05-08 14:11:21 +04:00
Valentin Kipyatkov 442f47bbe5 Removed unused constructor 2014-05-07 22:50:23 +04:00
Valentin Kipyatkov dab6045f6a Fixed Code completion does not work inside function variable invocation
#KT-4978 Fixed
2014-05-07 22:50:23 +04:00
Valentin Kipyatkov 7bb84c139d Smart completion: fixed logic in elvis operator 2014-05-07 22:50:23 +04:00
Valentin Kipyatkov ab563bd891 Added utility extension methods to not use TypeUtils 2014-05-07 22:50:22 +04:00
Valentin Kipyatkov a65bd1a74d Added test data for future use 2014-05-07 22:50:22 +04:00
Valentin Kipyatkov 1b034c5fc3 Smart completion works for block's result 2014-05-07 22:50:22 +04:00
Valentin Kipyatkov 45f518a907 Smart completion after ?: works incorrectly
#KT-4926 Fixed
2014-05-07 22:50:22 +04:00
Valentin Kipyatkov 5e34791e68 Smart completion should not suggest variants for private signatures
#KT-4899 Fixed
2014-05-07 22:50:22 +04:00
Valentin Kipyatkov 57c41ce0b0 Smart completion: added test for KT-4929 fixed by svtk 2014-05-07 22:50:22 +04:00
Valentin Kipyatkov 0920ab2c25 Fixed mock jdk 2014-05-07 22:50:21 +04:00
Valentin Kipyatkov e7c87b2391 Minor rename 2014-05-07 22:50:21 +04:00
Valentin Kipyatkov d781626201 Smart completion: only overloads with all previous arguments matched are considered 2014-05-07 22:50:21 +04:00
Valentin Kipyatkov 717977af61 No more java lookup elements in code completion (except for one case) 2014-05-07 22:50:21 +04:00
Valentin Kipyatkov 33de0e8393 Smart completion for then and else branches of if
#KT-4910 Fixed
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov 7aa11a4207 Smart completion: auto-cast to non-null type is not recognized for field from constructor
#KT-4906 Fixed
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov 3c75e9ec28 Smart completion: "null" when nullable value expected 2014-05-07 22:50:20 +04:00
Valentin Kipyatkov 32405e57e6 Smart completion: checking constructor's visibility + true and false for Boolean
#KT-4916 Fixed
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov 9ae59db329 Smart completion: more correct Tab key handling
#KT-4954 Fixed
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov 5f931be39b Smart completion after == and !=
#KT-4912 Fixed
2014-05-07 22:50:19 +04:00
Alexander Udalov 74da6929a6 Update to IDEA 135.815 EAP 2014-05-07 21:12:56 +04:00
Pradyoth Kukkapalli 33fd82cf45 New Intention: Replace for loop with forEach
Replaces an expression of the form “for (i in list) { … }” with an
expression of the form “list.forEach { i -> … }”
2014-05-07 14:01:37 +04:00
Pradyoth Kukkapalli dbb28c571b New Intention Action: Replace a call to forEach function with for loop.
Replaces an expression of form x.forEach { … } with for (a in x) { … }.
2014-05-07 14:00:50 +04:00
Alexander Udalov bd056d037f Init slice debug names for CodegenBinding 2014-05-07 03:30:24 +04:00
Alexander Udalov 02e805b06e Minor, rename accidentally named "context1" back to "context" 2014-05-07 03:30:24 +04:00
Alexander Udalov 68313172c2 Don't use KFunctionN types in smart completion
FunctionN should be enough
2014-05-07 03:30:14 +04:00
Alexander Udalov c2594d7695 Delete "println" from production code in KotlinResolveCache 2014-05-07 03:28:48 +04:00
Alexander Udalov d271be7f60 Add a test for an obsolete issue 2014-05-07 03:08:24 +04:00
Zalim Bashorov d02e4bd1ec Minor in JS backend: added test for the overriding in data class. 2014-05-06 15:45:28 +04:00
Peter Rybin ab81d2e261 Supporting data class for JS backend 2014-05-06 15:45:28 +04:00
Peter Rybin 535cc3eed8 Inline methods. 2014-05-06 15:45:27 +04:00
Peter Rybin 59a09c04af Extract data class generation logic into backend-independent module 2014-05-06 15:45:27 +04:00
Peter Rybin 00e65c8771 Add JVM prefix to CodegenUtil name to give way for backend-independent CodegenUtil 2014-05-06 12:51:57 +04:00
Alexander Udalov 981b6fdaff Don't render stack trace in a warning
These stack traces are confusing: they make it seem as if an exception was
thrown
2014-05-05 20:43:35 +04:00
Alexander Udalov 42d167d17e Add missing copyrights across the project 2014-05-05 20:43:35 +04:00
Alexander Udalov b7746cbee7 Move module 'serialization' to core/ 2014-05-05 20:43:34 +04:00
Alexander Udalov 16daeb9544 Misc refactorings in KotlinBuiltIns
- delete fields which were supposed to be used for caching, but mistakenly were
  never used
- delete/inline unused methods and constants
- delete useless logic related to root package fragment: package fragment
  providers are only supposed to find packages they're aware of
2014-05-05 20:42:35 +04:00
Alexander Udalov 52070dcf9e Minor, static import BindingContext.* in ExpressionCodegen 2014-05-05 17:51:09 +04:00
Alexander Udalov e4f4ea4027 Minor, add ExpressionCodegen.resolvedCall() utility
To obtain a resolved call by an expression with a non-null assertion
2014-05-05 17:31:32 +04:00
Alexander Udalov fc3db8db38 Minor, get rid of ExpressionCodegen.asmTypeOrVoid() 2014-05-05 17:22:48 +04:00
Alexander Udalov 51b01b5d7d Replace some REFERENCE_TARGET calls with RESOLVED_CALL
Also don't do unnecessary and failing casts in CodegenAnnotatingVisitor for SAM
adapters

 #KT-3173 Fixed
 #KT-3999 Fixed
 #KT-4682 Fixed
2014-05-05 16:49:23 +04:00
Natalia Ukhorskaya 13f7ca51b0 Regenerate tests 2014-05-05 16:17:37 +04:00
Natalia Ukhorskaya 020c127831 Fix typo in inspection description 2014-05-05 16:16:50 +04:00
Natalia Ukhorskaya 475d87f48b Merge remote-tracking branch 'origin/pr/460' 2014-05-05 16:15:45 +04:00
Natalia Ukhorskaya 98532f321d Evaluate expression: add ability to import class 2014-05-05 16:12:38 +04:00
Natalia Ukhorskaya 3f95cdb7bb Return firstChildNode for codeFragments in doParseContents as expected 2014-05-05 16:12:36 +04:00
Natalia Ukhorskaya 54cc5d1440 Make JetCodeFragment implements JavaCodeFragment 2014-05-05 16:12:35 +04:00
Natalia Ukhorskaya 876878a54c Delete interface for JetTypeCodeFragmentImpl 2014-05-05 16:12:33 +04:00
Natalia Ukhorskaya 8bbbe8f0f6 Convert JetCodeFragment to Kotlin 2014-05-05 16:12:32 +04:00
Natalia Ukhorskaya eb8b5c0823 Remove interface for JetExpressionCodeFragment 2014-05-05 16:12:30 +04:00