Commit Graph

12765 Commits

Author SHA1 Message Date
Alexey Sedunov cfaeca88bf Reuse property search for parameters 2013-11-07 20:44:23 +04:00
Alexey Sedunov 58f7a3efbf Refactor search helpers: replace some classes with traits 2013-11-07 20:44:23 +04:00
Andrey Breslav dabd048352 Do not rely on PSI when checking resolution results for packages (by geevee) 2013-11-07 19:18:55 +04:00
Andrey Breslav 1544e1a64b Suppress warnings from Kotlin compiler 2013-11-07 19:12:25 +04:00
Andrey Breslav fd73dc3dce Fix tests after stdlib rearrangement 2013-11-07 13:56:17 +04:00
Alexey Sedunov 9038798e55 Update to IDEA 132.947 EAP 2013-11-07 13:33:17 +04:00
Maxim Shafirov 73db26f5f3 Clean up deprecation 2013-11-07 13:03:03 +04:00
Maxim Shafirov 9f1428a985 Merge branch 'upstream' of git://github.com/mhshams/kotlin 2013-11-07 12:42:49 +04:00
Andrey Breslav 2888a6d950 Print preloader results even if the underlying code called System.exit() 2013-11-06 19:50:14 +04:00
Alexey Sedunov dfef1a37ac Add comments to usage check functions 2013-11-06 14:26:39 +04:00
Alexey Sedunov f40fb623a6 FindUsagesTest: Add overriding property without accessors 2013-11-06 14:26:38 +04:00
Alexey Sedunov e2e8a02fbb isConstructor optimization 2013-11-06 14:26:37 +04:00
Alexey Sedunov 78a7afe70e FindUsagesTest: Add usages of extensions for functions declared in objects 2013-11-06 14:26:36 +04:00
Alexey Sedunov 60022ddb56 Rename FindUsagesTest 2013-11-06 14:26:35 +04:00
Alexey Sedunov bc9b2bf657 Add "Find Usages" tests for nested/inner classes and objects 2013-11-06 14:26:34 +04:00
Alexey Sedunov f99e6e6765 Fix usage type detection for static members of Java classes and members of nested classes 2013-11-06 14:26:33 +04:00
Alexey Sedunov 40900ac16c Reuse Java usage types 2013-11-06 14:26:32 +04:00
Alexey Sedunov 828f24406c Move search helper options to constructor parameters 2013-11-06 14:26:32 +04:00
Alexey Sedunov ec8eb97e0e Disable override search for non-virtual properties 2013-11-06 14:26:31 +04:00
Alexey Sedunov a0e90f38a2 "Find Usages": add tests for Kotlin usages of Java declarations 2013-11-06 14:26:30 +04:00
Alexey Sedunov f41cfa2b8b "Find Usages": separate Kotlin and Java tests 2013-11-06 14:26:29 +04:00
Alexey Sedunov f1a7d707a0 Implement "Find usages" using UsagesSearch (classes, functions, properties) 2013-11-06 14:26:27 +04:00
Alexey Sedunov e1fa8628ec Implement search helpers for Kotlin declarations 2013-11-06 14:26:26 +04:00
Alexey Sedunov 790fb2acff Implement UsagesSearch 2013-11-06 14:26:26 +04:00
Alexey Sedunov 6502f21144 JetUsageTypeProvider: Eliminate SELECTOR type, replace class with object 2013-11-06 14:26:25 +04:00
Alexey Sedunov 657b4a164c Translate find usage options to Kotlin 2013-11-06 14:26:24 +04:00
Alexey Sedunov 992c7055a5 Translate FindUsagesUtils to Kotlin 2013-11-06 14:26:23 +04:00
Alexey Sedunov 8ca3f6a1ad Translate JetFindUsagesProvider to Kotlin 2013-11-06 14:26:22 +04:00
Alexey Sedunov d491f0337e Translate KotlinFindUsagesHandlerFactory to Kotlin 2013-11-06 14:26:21 +04:00
Erokhin Stanislav 1a1c2902f0 JS backend: inline ClassDeclarationTranslator 2013-11-05 22:25:04 +04:00
Erokhin Stanislav 961c5fc0df JS backend: drop ClassAliasingMap from ClassTranslator 2013-11-05 22:23:10 +04:00
Erokhin Stanislav b958e453e8 JS backend: rewrite FileDeclarationVisitor use kotlin 2013-11-05 22:22:54 +04:00
Erokhin Stanislav 4a55f5a65e JS backend: add simple enum test 2013-11-05 20:55:49 +04:00
Erokhin Stanislav e9fe0070d7 JS backend: complete remove _c object from output code. 2013-11-05 20:55:49 +04:00
Erokhin Stanislav 6422167b5c JS backend: first step of remove _c object from output code.
createClass -> createClassNow, createTrait -> createTraitNow, createObject -> createObjectNow
First argument of new createClass() is function, which return array of parent classes.
2013-11-05 20:55:49 +04:00
Erokhin Stanislav b2f096f20a JS backend: add debug info into several tests 2013-11-05 20:55:49 +04:00
Erokhin Stanislav 8ac00fa164 JS backend: refactor ClassTranslator 2013-11-05 20:55:49 +04:00
Erokhin Stanislav bb6fd90bd9 JS backend: move StringBuilder to java.lang. Fix append return type. 2013-11-05 20:55:49 +04:00
Mohammad Shamsi 0c447c81ca KT-4153 Fixed. 2013-11-05 18:37:13 +08:00
svtk 4d999bbb1f Complete nested calls (arguments) for not successfully resolved calls.
When resolved call isn't single; when nested calls are unmapped arguments.
2013-11-01 15:26:14 +04:00
svtk 9023e96a07 in case of error set all arguments as unmapped
(not to forget to complete them later)
2013-11-01 15:26:14 +04:00
svtk 8c97beecb4 minor: assert instead of exception 2013-11-01 15:26:13 +04:00
svtk eea08cf4e1 initialization of 'hasInferredReturnType' property
moved to its getter
2013-11-01 15:26:13 +04:00
svtk 28e4642289 comment added 2013-11-01 15:26:13 +04:00
svtk d56b4d453c added check that all resolved calls are completed to diagnostic tests 2013-11-01 15:26:13 +04:00
svtk 7709d3d8de added flag 'isCompleted' to resolve call for tests 2013-11-01 15:26:13 +04:00
svtk d2680bca22 extracted class BindingTraceContextWithoutScopeRecording 2013-11-01 15:26:13 +04:00
Svetlana Isakova 101b619513 refactoring: rename, fixes after review 2013-11-01 15:26:13 +04:00
svtk 9c60430ef2 store 'hasInferredReturnType' in resolved call
instead of trying to compute it later
2013-11-01 15:26:12 +04:00
svtk f7be8ce953 refactoring: warnings eliminated 2013-11-01 15:26:12 +04:00