Commit Graph

3163 Commits

Author SHA1 Message Date
Alexey Sedunov 9f828b8f41 Code transformation: if statement with assignments <-> assignment with if expression 2013-04-04 15:51:41 +04:00
Nikolay Krasko bab6fd570d Remove illegal assert 2013-04-03 18:18:05 +04:00
Nikolay Krasko 965bfe682c Check found fqnames for validness before searching for descriptors 2013-04-03 18:18:05 +04:00
Nikolay Krasko 7885e48eaf Setup handlers at the place where lookup elements are created 2013-04-03 18:18:04 +04:00
Nikolay Krasko e94843b7b3 JS checker tests 2013-04-03 18:18:03 +04:00
Evgeny Gerashchenko 6e43b78deb KT-3459 "import java.util.*" is removed by optimize imports if the only usage is a SAM constructor
#KT-3459 fixed
2013-04-03 17:44:01 +04:00
Evgeny Gerashchenko 0de4b6890e Fixed compilation. 2013-04-03 15:37:06 +04:00
Evgeny Gerashchenko c4f2740074 KT-3469 AssertionError: Couldn't find super type for super function
Class descriptor for Java class was recreated in KotlinSignatureInJavaMarkerProvider.

 #KT-3469 fixed
2013-04-03 15:13:10 +04:00
Evgeny Gerashchenko 8c45d50a86 Extracted method for creating injector.
Using delegating binding trace instead of original binding context.
2013-04-03 15:12:52 +04:00
Nikolay Krasko f59701a6c4 Extract caching providers 2013-04-03 02:34:35 +04:00
Nikolay Krasko 61986c2d65 Make caching headers work for JS projects 2013-04-03 02:34:33 +04:00
Nikolay Krasko 307d9b1661 Refactoring: extract detecting platform functions to separate class 2013-04-03 02:34:30 +04:00
Nikolay Krasko a13d61e618 Introduce project descriptor for testing js configuration 2013-04-03 02:34:27 +04:00
Nikolay Krasko 84627700a2 Refactoring: fix warning 2013-04-03 02:34:25 +04:00
Nikolay Krasko c12d160438 Refactoring: optimize imports 2013-04-03 02:34:22 +04:00
Nikolay Krasko d24b390966 Refactoring: use Computable in JS std library search 2013-04-03 02:34:20 +04:00
Nikolay Krasko 957e97a3b7 Reformatting 2013-04-03 02:34:17 +04:00
Natalia.Ukhorskaya d84cf971c1 Do not fold imports if there is only one
#KT-3410 Fixed
2013-04-02 17:49:55 +04:00
Andrey Breslav d42a9f37a3 Proper checking for a qualified name
When i18n plugin is enabled, it looks for classes like "java.lang.Object...)" while highlighting annotations.xml

EA-43709 - IAE: NameUtils.requireIdentifier
2013-04-01 13:37:02 +04:00
Agnieszka Paszek 7bac3c5db6 Generated changes 2013-03-29 20:40:26 +04:00
Agnieszka Paszek da2880f985 Added quckfix for PROJECTION_IN_IMMEDIATE_ARGUMENT_TO_SUPERTYPE 2013-03-29 20:39:18 +04:00
Agnieszka Paszek 7c041d5c94 Added quickfix for PROJECTION_ON_NON_CLASS_TYPE_ARGUMENT 2013-03-29 20:39:00 +04:00
Agnieszka Paszek 50f8948706 Added quickfix for CONFLICTING_PROJECTION 2013-03-29 20:38:40 +04:00
Agnieszka Paszek 56774cccd8 Added quickfix for NESTED_CLASS_NOT_ALLOWED 2013-03-29 20:38:18 +04:00
Natalia.Ukhorskaya 221df82c01 Build class hierarchy for classes from BuiltIns 2013-03-28 15:25:28 +04:00
Natalia.Ukhorskaya f4a0808a28 Fix resolve in sources files of libraries 2013-03-28 15:25:24 +04:00
Natalia.Ukhorskaya e1dece4345 Inline functions from AnalyzeSingleFileUtil 2013-03-28 14:30:57 +04:00
Andrey Breslav 1ad0cad020 Incomplete analysis results are available for light class generation
If we have the following classes

 class A // Kotlin
 class B extends A {} // Java
 class C : B() // Kotlin

 The analysis runs into infinite recursion, because C needs all members of B (to compute overrides),
 and B needs all members of A, and A is not available from KotlinCacheManager.getDeclarationsFromProject() -- it is being computed right now,
 so the analysis runs again...

 Our workaround is:
  * when analysis starts put its trace into user data on the project
  * when a light class is about to generate a stub, it requests a trace, and if there is such an incomplete trace, it is returned
  * the logic of TopDownAnalyzer that works in descending order (down the class hierarchy) guarantees that all the superclasses are already processed
2013-03-28 11:29:53 +04:00
Andrey Breslav 83e2986a7b Unused methods removed, class renamed 2013-03-27 20:31:00 +04:00
Nikolay Krasko fb4a205277 Fix absence of notification about unsupported Abi 2013-03-27 20:20:38 +04:00
Evgeny Gerashchenko cadb9bcb8f Supported multi-reference in imports (SAM interfaces are resolved as both functions and classes). 2013-03-27 19:19:59 +04:00
Evgeny Gerashchenko d8ccfe55b6 Removed redundant checking for test mode. Exceptions will be thrown anyway. 2013-03-27 19:19:59 +04:00
Evgeny Gerashchenko 5ad571c5ab Inlined method which was used only once, and in different subsystem. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko 32a048674f Got rid of method duplication. 2013-03-27 19:19:54 +04:00
Nikolay Krasko 8f6c9d73b1 Compatibility with 123 branch is lost - start using fixed AddSupportForSingleDialog from IDEA 2013-03-27 15:45:42 +04:00
Nikolay Krasko bf3fb8acc5 Better work with getLocalPath method 2013-03-27 15:45:41 +04:00
Nikolay Krasko 2b8af4e6a5 Refresh local file system to update content of the jar 2013-03-26 21:24:40 +04:00
Nikolay Krasko 314efa3372 Don't use caching LibraryDetectionManager because it isn't updated properly 2013-03-26 21:24:39 +04:00
Nikolay Krasko 14a6cf3c8f Remove old js during configuring new one 2013-03-26 21:24:38 +04:00
Nikolay Krasko 9a4ab3546b Don't consider libraries with empty source roots as JS libraries
#KT-3425 Fixed
2013-03-26 21:24:38 +04:00
Nikolay Krasko 70965334b1 Force activating post processing actions in order to initialize built-ins properly 2013-03-26 16:30:31 +04:00
Nikolay Krasko 53944242df Don't compute type and use reference for quick fix AddOpenModifierToClassDeclaration quick fix 2013-03-26 16:30:30 +04:00
Nikolay Krasko e239ce7fa7 Don't compute type and use reference for MakeClassAnAnnotation quick fix 2013-03-26 16:30:29 +04:00
Evgeny Gerashchenko 35dadbf796 Update to IDEA 129.17 (12.1 EAP) 2013-03-26 16:30:28 +04:00
Evgeny Gerashchenko be08494b75 Added commitAllDocuments() to avoid failing tests. 2013-03-26 16:30:27 +04:00
Nikolay Krasko f7ca9a579c Refactor test: remove irrelevant code 2013-03-26 16:30:24 +04:00
Nikolay Krasko 0a0f7387d0 Enable SELECT_AUTOPOPUP_SUGGESTIONS_BY_CHARS settings in tests 2013-03-26 16:30:23 +04:00
Andrey Breslav a4e503a263 Update to 12.1 EAP (IDEA 128.101) 2013-03-26 16:30:23 +04:00
Natalia.Ukhorskaya 9091becbea Implement Class Hierarchy View
#KT-3419
2013-03-25 17:39:57 +04:00
Evgeny Gerashchenko d194d4d877 Updated test data. Unit -> jet.Unit. 2013-03-22 16:38:26 +04:00