Pavel V. Talanov
df892ba33a
Introduce ResolutionFacade to be used by plugin code instead of resolve session
...
Do not expose ResolveSessionForBodies where possible
Define API of ResolutionFacade, similar to what ResolveSessionForBodies has
JetElement#getLazyResolveSession returns ResolutionFacade
Call sites to be updated later
2014-11-21 15:56:01 +03:00
Pavel V. Talanov
2c9b0448a1
Fix getModuleInfo for elements in code fragments
2014-11-21 15:56:00 +03:00
Pavel V. Talanov
03a31db2ec
Converter: use ide resolve through a dedicated interface
...
Eliminate direct usages of ResolveSession
2014-11-21 15:56:00 +03:00
Pavel V. Talanov
1f7c9f5693
Use KotlinCacheService directly in IDELightClassGenerationSupport
2014-11-21 15:55:59 +03:00
Pavel V. Talanov
1991f0119e
Convert AnalyzeExhaust to Kotlin and make it a data class
2014-11-21 15:55:59 +03:00
Natalia Ukhorskaya
341d4a7a26
Fix maven build: remove wrong import
2014-11-21 15:07:06 +03:00
Svetlana Isakova
b71260f54e
Moved tests
...
that are used both for codegen & diagnostics to codegen/box/diagnostics
2014-11-21 14:02:45 +03:00
Svetlana Isakova
2a83053355
Updated lazy log tests
2014-11-21 14:02:45 +03:00
Svetlana Isakova
9cd5f51b88
Added test for KT-4711
...
Error type with no error reported from type inference
#KT-4711 Fixed
2014-11-21 14:02:43 +03:00
Svetlana Isakova
e31e63aabe
Small refactoring: replaced code with 'getOrPut' library function
2014-11-21 14:02:43 +03:00
Svetlana Isakova
2948ca9077
Fixed argument for error message 'TYPE_PARAMETER_AS_REIFIED'
2014-11-21 14:02:43 +03:00
Svetlana Isakova
0719297d8f
Uncommented test when extensions are called for nested calls
2014-11-21 14:02:42 +03:00
Svetlana Isakova
5d0f004292
Fix for 'if' special construct type
...
If one branch has Nothing type (contains 'return', etc.),
return result type of corresponding resolved call (it may depend on smart casts)
#KT-6242 Fixed
2014-11-21 14:02:42 +03:00
Svetlana Isakova
36fd8a1a08
Set the right call operation node for implicit invoke
...
Make a call for implicit invoke safe if an outer call is safe
2014-11-21 14:02:42 +03:00
Svetlana Isakova
7f62675665
Fixed error reporting for special constructions (if, elvis)
...
Track whether an error was reported for sub expressions (like 'if' branches) or it should be reported for the whole expression
#KT-6189 Fixed
2014-11-21 14:02:42 +03:00
Svetlana Isakova
8109b1f997
DONT_CARE placeholder can be nullable after a substitution
...
Interpret it as DONT_CARE as well (not as an error type where an error was generated before)
#KT-6175 Fixed
2014-11-21 14:02:41 +03:00
Svetlana Isakova
8ad017c071
Extracted 'deparenthesizeArgument', used it where necessary
...
#KT-6176 Fixed
2014-11-21 14:02:41 +03:00
Michael Bogdanov
e2826a47e1
Remove "operation" method from StackValue.kt;
...
Compilation fix: remove static import to kotlin from AsmUtil
2014-11-21 13:59:44 +03:00
Michael Bogdanov
3a70992d27
Lazy intrinsic generation
...
#KT-6241 Fixed
2014-11-21 13:59:43 +03:00
Michael Bogdanov
4812564441
Intrinsic receiver parameter annotated with NotNull
2014-11-21 13:59:43 +03:00
Michael Bogdanov
afceec427d
Intrinsic arguments parameter annotated with NotNull
2014-11-21 13:59:43 +03:00
Natalia Ukhorskaya
68d5e43ad3
Android Gradle Plugin 0.14.4 breaks Kotlin
...
#KT-6310 Fixed
2014-11-21 12:41:19 +03:00
Natalia Ukhorskaya
d85b3c15d8
Fix Android tests
2014-11-21 12:41:16 +03:00
Nikolay Krasko
5c597db881
Move ReferenceVariantsHelper and extensionsUtils to ide-common module
...
They are going to be used in Eclipse
2014-11-20 19:59:56 +03:00
Nikolay Krasko
d5f10d520c
Update to IDEA 139.463.4
2014-11-20 12:38:21 +03:00
Michael Bogdanov
21d5785986
Inline StackValueWithSimpleReceiver utility constructor
2014-11-20 10:20:34 +03:00
Michael Bogdanov
fad64faabb
canHaveSideEffect rename
2014-11-20 10:20:33 +03:00
Michael Bogdanov
d685921271
Review fixes
2014-11-20 10:20:33 +03:00
Michael Bogdanov
ec649e83c3
Don't skip receiver with side effects on static calls
...
#KT-6278 Fixed
2014-11-20 10:20:33 +03:00
Michael Bogdanov
5a8944085a
Fix default property setter generation
2014-11-20 10:20:32 +03:00
Michael Bogdanov
9bac3a8055
Support platform static in call receiver, keep side effect on skiped receiver generation
2014-11-20 10:20:32 +03:00
Michael Bogdanov
6b2272e422
Call receiver rewrote in lazy way
2014-11-20 10:20:32 +03:00
Michael Bogdanov
2cc9d8e29b
Support platformStatic for properties
...
#KT-5766 Fixed
2014-11-20 10:20:31 +03:00
Michael Bogdanov
5412a67d29
Generate static backing fields for properties in object
...
#KT-4973 Fixed
2014-11-20 10:20:31 +03:00
Michael Bogdanov
37bb4ae984
Coercion fix
2014-11-20 10:20:14 +03:00
Michael Bogdanov
c5d8f1faf5
Interface refs
2014-11-20 10:20:13 +03:00
Michael Bogdanov
fe1c6a0ca6
Introduce LOCAL_0 constant and some code cleaning
2014-11-20 10:20:13 +03:00
Michael Bogdanov
f00700b58d
StackValue interface refactoring
2014-11-20 10:20:13 +03:00
Michael Bogdanov
434c094ba9
Get rid of lazy cast
2014-11-20 10:20:13 +03:00
Michael Bogdanov
4cb3d30e5b
Added thiz constant in StackValue, some refactorings
2014-11-20 10:20:13 +03:00
Michael Bogdanov
62cb586397
Lazy receiver generation
2014-11-20 10:20:13 +03:00
Michael Bogdanov
af998101b3
Fix for KT-4206: NoSuchFieldError with class objects
...
#KT-4206 Fixed
2014-11-20 10:20:12 +03:00
Michael Bogdanov
7d1fd47569
Rewrite local var increment optimization
2014-11-20 10:20:12 +03:00
Michael Bogdanov
425f0984c7
Get rid of store
2014-11-20 10:20:12 +03:00
Michael Bogdanov
855bf772ca
Prefix inc refactoring
2014-11-20 10:20:12 +03:00
Michael Bogdanov
c7b1c0fe52
Store refactoring
...
#KT-1213 Fixed
2014-11-20 10:20:11 +03:00
Michael Nedzelsky
505775218a
JS backend: fix KT-6277 kotlinc-js: IllegalArgumentException when -output is a file name without directory prefix
...
#KT-6277 Fixed
2014-11-19 23:38:15 +03:00
Michael Nedzelsky
de2acc31ee
JS backend: test for KT-6277
2014-11-19 23:38:12 +03:00
Valentin Kipyatkov
8006f16e46
Minor code refactorings
2014-11-19 16:01:20 +03:00
Valentin Kipyatkov
5036fdca14
Made ReferenceVariantsHelper class instead of object making method signatures shorter
2014-11-19 16:01:20 +03:00