Commit Graph

3175 Commits

Author SHA1 Message Date
Natalia.Ukhorskaya e383a41452 Refactor JetLineMarkerProvider 2013-04-09 12:52:33 +04:00
Natalia.Ukhorskaya 1e86fe1a56 Remove redundant check (it is included in LightClassUtils.getPsiClass) 2013-04-09 12:52:32 +04:00
Natalia.Ukhorskaya a943e68225 Rename method 2013-04-09 12:52:30 +04:00
Natalia.Ukhorskaya eb768ea59a Do not create LightClasses for kt files as sources for libraries 2013-04-09 12:52:29 +04:00
Alexey Sedunov d424686f1a Fix bug in intention which caused hanging out 2013-04-04 20:18:04 +04:00
Evgeny Gerashchenko 50b2f79b2e Removed tooltip for variable as function(-like) call. 2013-04-04 17:33:59 +04:00
Evgeny Gerashchenko 73d44fb18b Removed leading "/" to avoid tests failing. 2013-04-04 17:33:59 +04:00
Evgeny Gerashchenko db003347dd Refactored JetHighlightingColors to IDEA 12.1+ colors API. 2013-04-04 17:33:59 +04:00
Evgeny Gerashchenko 3c31620f5a Removed commented out code from color settings.
When we implement actual highlighting for KDoc highlighting, returning these lines would be easy.
2013-04-04 17:33:58 +04:00
Evgeny Gerashchenko f53af70ad6 Added separate highlighting keys for variables invoked as function and function-like. 2013-04-04 17:33:58 +04:00
Evgeny Gerashchenko a6293e10d9 Removed green color for variable as function.
#KT-3296 in progress
2013-04-04 17:33:57 +04:00
Alexey Sedunov af8c3792f6 Tests for code transformation: if statement with assignments <-> assignment with if expression 2013-04-04 15:52:17 +04:00
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