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
Natalia Ukhorskaya
429be58685
Rename JetCodeFragmentImpl to JetCodeFragment
2014-05-05 16:12:29 +04:00
Tal Man
ab2ca539fe
Inspection to report explicit type arguments that can be removed from function calls
2014-05-01 10:56:46 -04:00
Andrey Breslav
0004948023
Per-file caching introduced in KotlinResolveCache for granular analysis
2014-04-30 20:00:20 +04:00
Andrey Breslav
a128eacf53
KotlinCacheService extracted to a separate file
2014-04-30 19:43:12 +04:00
Andrey Breslav
f64f792ede
CompositeBindingContext introduced
2014-04-30 18:04:21 +04:00
Andrey Breslav
3be8da5607
Minor. More convenient function used
2014-04-30 16:30:17 +04:00
Andrey Breslav
db00500404
Unused code removed
2014-04-30 16:30:17 +04:00
Andrey Breslav
775c941f8a
hasSynthesizedParameterNames() pulled up into CallableDescriptor
2014-04-30 16:30:17 +04:00
Svetlana Isakova
73cd776715
Added test for KT-4640
...
#KT-4640 Obsolete
2014-04-30 13:54:21 +04:00
Svetlana Isakova
b33147d3eb
Do not complete type inference for all candidates for inner calls
2014-04-30 13:34:35 +04:00
Svetlana Isakova
69f3a64408
Added test for KT-4929
...
Smart completion should work for generic method argument
#KT-4929 Fixed
2014-04-30 13:34:35 +04:00
Svetlana Isakova
3df6eb8ffa
Refactored ResolutionResultsCacheImpl
...
Used map instead of trace to store data
Rewrote it to Kotlin
2014-04-30 13:34:34 +04:00
Svetlana Isakova
5a84ed4497
KT-4866 Resolve does not work inside brackets with unresolved reference before
...
#KT-4866 Fixed
2014-04-30 13:34:34 +04:00
Svetlana Isakova
1632025913
Added check that resolved calls are completed in diagnostics
...
to tests
2014-04-30 13:34:34 +04:00