Commit Graph

5618 Commits

Author SHA1 Message Date
Pavel V. Talanov b2ec5e1ec4 Test reference resolve from Java to Kotlin
Cases cover the most basic features
Sadly it was missing before
2014-10-03 21:35:00 +04:00
Pavel V. Talanov af963ea244 Fix being unable to find declaration for substituted callable from library
#KT-5900 Fixed
#KT-5901 Fixed
2014-10-03 21:33:18 +04:00
Pavel V. Talanov 8f52f71378 Remove warn on performing analysis from dispatch thread
This is outdated since lazy resolve can be called from dispatch thread (Intentions do it)
2014-10-03 21:33:18 +04:00
Pavel V. Talanov 8db599c68a Convert Java file to Kotlin: do not ask whether to backup files
Do not backup files

 #KT-5530 Fixed
2014-10-03 21:33:17 +04:00
Alexey Sedunov be2713b59c Minor: Rename CreateFunctionFromUsageFix -> CreateCallableFromUsageFix 2014-10-03 20:18:45 +04:00
Alexey Sedunov ae7c5e1323 Create From Usage: Do not fail on qualifier receiver when it doesn't have type 2014-10-03 20:18:44 +04:00
Alexey Sedunov b680b74ecb Create From Usage: Do not suggest list of type candidates when there is at most one 2014-10-03 20:18:43 +04:00
Alexey Sedunov 5ade563902 Create From Usage: Join local "vars" with their initializers 2014-10-03 20:18:43 +04:00
Alexey Sedunov 865c793561 Create From Usage: Do not suggest "val" for references used as assignment left-hand side 2014-10-03 20:18:42 +04:00
Alexey Sedunov 58126b28ca Create From Usage: Quick-fix for properties 2014-10-03 20:18:41 +04:00
Alexey Sedunov 8386bcd4e0 Create Local Variable From Usage: Support lambdas 2014-10-03 20:18:39 +04:00
Alexey Sedunov 6ad2157806 Create From Usage: Quick-fix for value parameters 2014-10-03 20:18:39 +04:00
Alexey Sedunov 73fc984c4c Change Signature: Fix detection of conflicts in generic classes 2014-10-03 20:18:37 +04:00
Valentin Kipyatkov bbc2d30f60 KT-4849 'Join lines' should remove braces from single-statement block
#KT-4849 Fixed
2014-10-02 18:26:07 +04:00
Valentin Kipyatkov 53983774d0 Moved and renamed class + added check for JetFile 2014-10-02 18:26:07 +04:00
Valentin Kipyatkov 593e93b88b Moved code from DeclarationUtils and refactored code 2014-10-02 18:26:07 +04:00
Valentin Kipyatkov d71c481606 Moved test data 2014-10-02 18:26:06 +04:00
Valentin Kipyatkov 8cb631d6f8 Better way of changing property intiailizer used 2014-10-02 18:26:06 +04:00
Valentin Kipyatkov c0db84331e Fixed bug in join lines 2014-10-02 18:26:06 +04:00
Valentin Kipyatkov c6f10ea219 Moved some code from DeclarationUtils to JetDeclarationJoinLinesHandler and refactored it 2014-10-02 18:26:06 +04:00
Valentin Kipyatkov 879f0d201e Converted JetDeclarationJoinLinesHandler to Kotlin 2014-10-02 18:26:06 +04:00
Svetlana Isakova ce01c61811 Rename: auto cast -> smart cast 2014-10-01 18:52:52 +04:00
Svetlana Isakova 20f3403c80 Rename: this object, receiver argument -> dispatch receiver, extension receiver 2014-10-01 18:52:51 +04:00
Svetlana Isakova 1d2d2f4845 KT-5873 Exception in ArgumentMatchImpl on smart completion
#KT-5873 Fixed
2014-10-01 18:52:51 +04:00
Nikolay Krasko f0e7435254 A better heuristics is declaration implemented or overriden 2014-10-01 18:05:46 +04:00
Nikolay Krasko bb7b4daef6 Drop isOverridableHeuristic and use isOverridable from utils instead 2014-10-01 18:05:45 +04:00
Nikolay Krasko f76025710e Rewrite to Kotlin: overridden properties markers tooltip and navigation 2014-10-01 18:05:43 +04:00
Nikolay Krasko bc5f28d9fd Refactoring: rename KotlinLightMethodFromTrait -> KotlinLightMethodForTraitFakeOverride 2014-10-01 18:05:38 +04:00
Nikolay Krasko 5c6d74af7d Test for "Incorrect override icon shown for overloaded methods" (KT-4428)
#KT-4428 Fixed
2014-10-01 18:03:02 +04:00
Nikolay Krasko 9de0e8c9fd Refactoring: rename file 2014-10-01 18:03:01 +04:00
Nikolay Krasko 54b2e994e1 Refactoring: move utils methods 2014-10-01 18:02:59 +04:00
Nikolay Krasko 260f9fb634 Rewrite to Kotlin: rewrite methods for markers on overridden declarations 2014-10-01 18:02:58 +04:00
Nikolay Krasko 7bf622dd26 Rewrite to Kotlin: super navigation markers methods 2014-10-01 18:02:57 +04:00
Nikolay Krasko f7edd5abe7 Show all line markers in slow pass as they all require resolve 2014-10-01 18:02:55 +04:00
Nikolay Krasko 236cdc7d82 Filter synthetic trait overrides for "overriding" markers too 2014-10-01 18:02:54 +04:00
Nikolay Krasko 897ebd0347 Linemarker tests 2014-10-01 18:02:52 +04:00
Nikolay Krasko 8ada9b68b0 Add special class for getting methods from traits 2014-10-01 18:02:31 +04:00
Nikolay Krasko 35c67734d3 Force function render use short qualified names 2014-10-01 17:58:58 +04:00
Nikolay Krasko 6aa5e53a00 Fix navigate to super declaration line marker tooltip
Don't show overridden function signature each time, show only where it's declared
2014-10-01 17:58:56 +04:00
Nikolay Krasko 6a714436f2 Make testable navigation from line markers for super declarations 2014-10-01 17:58:55 +04:00
Nikolay Krasko 7c0acd9da5 Navigate to sources from markers not to decompiled classes 2014-10-01 17:58:53 +04:00
Nikolay Krasko dfe3062340 Auto insert acual line markers for failed tests 2014-10-01 17:58:52 +04:00
Nikolay Krasko 2d54139018 Refactoring: move method to utils 2014-10-01 17:58:51 +04:00
Nikolay Krasko 72c7d22d5f Rewrite to Kotlin: DescriptorToDeclarationUtil 2014-10-01 17:58:49 +04:00
Pavel V. Talanov 92faee3fd7 Do not reuse other caches when analyzing synthetic files inside libraries classes
This is no longer correct since libraries have dependencies
2014-09-30 21:59:02 +04:00
Pavel V. Talanov b7dbd7a68d Minor: readable toString for LibraryInfo and LibrarySourceInfo 2014-09-30 21:59:01 +04:00
Pavel V. Talanov a8d77887af Introduce HighlightingWithDependentLibrariesTest
This tests that LibraryInfo dependencies affect source files highlighting
2014-09-30 21:59:01 +04:00
Pavel V. Talanov e25cbcd961 Test for LibraryInfo dependencies 2014-09-30 21:59:00 +04:00
Pavel V. Talanov 23a45ae689 Provide heuristic dependencies for LibraryInfo
This is not and cannot be (with current IDEA model) accurate
For now we use the following approximation:
    If a module dependends on library 'a' and among module's dependencies (including this module)
	there is a module that depends on library 'b' then
	we assume that library 'a' depends on library 'b'
2014-09-30 21:59:00 +04:00
Pavel V. Talanov 691068c0c2 Implement LibraryDependenciesCache 2014-09-30 21:58:59 +04:00