Commit Graph

1339 Commits

Author SHA1 Message Date
Michał Sapalski 97796f9b0f Refactoring: use DescriptionRenderer to generate overriding functions / properties. 2013-04-12 12:49:00 +04:00
Michał Sapalski 5b1f93b42e Quickfix for NOTHING_TO_OVERRIDE 2013-04-12 12:47:21 +04:00
Nikolay Krasko 87c9a65667 Move all basic completion tests to common folder 2013-04-11 20:00:29 +04:00
Nikolay Krasko 7f8e0e8803 Test keywords completion with fixture tests 2013-04-11 20:00:28 +04:00
Nikolay Krasko aeff3c783e Move class completion tests into ordinal tests 2013-04-11 20:00:25 +04:00
Nikolay Krasko 1a5ccafd47 Refactor tests and activate them for working with JS 2013-04-11 20:00:22 +04:00
Evgeny Gerashchenko d502d45772 Disabled highlighting for variables which are captured in inlined closure. 2013-04-10 20:10:49 +04:00
Peter Tseng 1025ab4397 Implement quickfix for MANY_CLASSES_IN_SUPERTYPE_LIST 2013-04-09 20:47:29 +04:00
Wojciech Lopata 9000f6971c ChangeVariableTypeFix 2013-04-09 20:35:18 +04:00
Wojciech Lopata cdd41f0fa1 Map RETURN_TYPE_MISMATCH_ON_OVERRIDE to ChangeFunctionReturnTypeFix 2013-04-09 20:35:18 +04:00
Wojciech Lopata c281796e64 Quickfix for COMPARE_TO_TYPE_MISMATCH 2013-04-09 20:35:18 +04:00
Wojciech Lopata 13022922af ChangeFunctionReturnTypeFix quickfix 2013-04-09 20:35:17 +04:00
Evgeny Gerashchenko 50b2f79b2e Removed tooltip for variable as function(-like) call. 2013-04-04 17:33:59 +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
Alexey Sedunov af8c3792f6 Tests for code transformation: if statement with assignments <-> assignment with if expression 2013-04-04 15:52:17 +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
Natalia.Ukhorskaya d84cf971c1 Do not fold imports if there is only one
#KT-3410 Fixed
2013-04-02 17:49:55 +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
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
Nikolay Krasko f7ca9a579c Refactor test: remove irrelevant code 2013-03-26 16:30:24 +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
Evgeny Gerashchenko 66e7a0110c Updated test data and stdlib code which dependent on Tuple0/Unit
aliasing.
2013-03-22 16:38:24 +04:00
Evgeny Gerashchenko c458ed36f6 Renamed test data dir. 2013-03-22 16:37:16 +04:00
Evgeny Gerashchenko afe54098be Removed tuples from BuiltInsReferenceResolverTest. 2013-03-22 16:37:16 +04:00
Evgeny Gerashchenko cb4d680790 Removed migrate tuples quick fix. 2013-03-22 16:37:15 +04:00
Natalia.Ukhorskaya 7702274633 Optimize imports when insert new import (optimize imports on the fly should be turned on)
#KT-3403 Fixed
2013-03-19 14:56:31 +04:00
Natalia.Ukhorskaya abed8b59cb Temporary disable imports sorting 2013-03-19 14:56:29 +04:00
Natalia.Ukhorskaya 0a4eaad595 Do not remove import to component functions 2013-03-15 14:23:13 +04:00
Natalia.Ukhorskaya 5bdd52c65f Do not remove import for iterator() 2013-03-15 14:23:12 +04:00
Natalia.Ukhorskaya 635f65e23d Optimize import removes reference to invoke extension function. Add test.
#KT-3398 Fixed
2013-03-15 14:23:11 +04:00
Natalia.Ukhorskaya 37986891df Add JetInvokeFunctionReference for JetCallExpression 2013-03-15 14:23:10 +04:00
Natalia.Ukhorskaya 4039202806 Optimize imports remove reference to get extension function
#KT-3397 Fixed
2013-03-15 14:23:09 +04:00
Evgeny Gerashchenko 53f775e98d Test for KT-488 Implement members breaks in generic classes
#KT-488 obsolete
2013-03-14 20:49:42 +04:00
Kevin F. Chen d928c09931 TYPE_ARGUMENTS_REDUNDANT quickfix added to this branch, tested and completed 2013-03-13 20:12:22 +04:00
Nikolay Krasko 8d860827cf KT-2874 Exception in front-end when extending Java class
#KT-2874 Fixed
2013-03-12 16:17:36 +04:00
Natalia.Ukhorskaya 6bea9999d5 Introduce variable does something really strange for expression in square brackets
#KT-2490 Fixed
2013-03-07 15:34:39 +04:00
Svetlana Isakova d7412ecd9f fixed test data
type mismatch with nothing (after change in ConstraintSystemImpl)
render 'CANT_INFER' type as '???'
2013-03-07 13:11:21 +04:00
Natalia.Ukhorskaya 3cb3f00562 IDE: folding imports 2013-03-07 12:25:47 +04:00
Natalia.Ukhorskaya d9739fb5bb Remove usages of isMultiFileNamespace 2013-03-06 16:22:37 +04:00
Jack Zhou 738a874334 Added quickfix for PLATFORM_CLASS_MAPPED_TO_KOTLIN. 2013-03-06 00:04:22 +04:00
Wojciech Lopata cee45f6a0a QuickFix for OVERRIDING_FINAL_MEMBER 2013-03-05 23:32:52 +04:00
Wojciech Lopata 237be539b3 QuickFix for RETURN_TYPE_MISMATCH_ON_OVERRIDE and PROPERTY_TYPE_MISMATCH_ON_OVERRIDE. 2013-03-05 14:52:43 +04:00
Mikhael Bogdanov b3ec87f956 ClassObject instance field refactoring 2013-03-04 16:42:55 +04:00
Kevin F. Chen 5db0f2132c remove useless nullable qfix and test done 2013-03-02 21:39:27 +04:00