Commit Graph

20096 Commits

Author SHA1 Message Date
Valentin Kipyatkov 0967ccb1cd Filtering out nested elements for reference shortening 2015-02-09 13:02:04 +03:00
Valentin Kipyatkov 033b626a08 Fixed test data 2015-02-09 13:02:04 +03:00
Valentin Kipyatkov 78be48ace8 Minor refactoring 2015-02-09 13:02:03 +03:00
Valentin Kipyatkov a3f546c6f9 Moved classes to other packages 2015-02-09 13:02:03 +03:00
Valentin Kipyatkov 09a99ae605 Moved import policy into ImportInsertHelper 2015-02-09 12:56:01 +03:00
Valentin Kipyatkov 952c64f947 Rewritten shortening references algorithm to work correctly with new smart import insertion 2015-02-09 12:56:01 +03:00
Valentin Kipyatkov 33ae316899 Minor 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov 33f979768d More elegant shortening of user type 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov 3bc2f89a1b Corrected test data after changes in import insertion + added when more test which fails with the current reference shortening algorithm 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov 5d516a5f72 No need to shorten non-affected references in quickfixes 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov 2fd51c30cf No redundant import optimization 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov f62391ca1d Minor code improvements 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov 22d805aede Fixed a bug in import insertion algorithm 2015-02-09 12:55:59 +03:00
Valentin Kipyatkov ef8be9560a Import insertion helper is not confused by inaccessible classes + check visibility of imported declarations through PackageViewDescriptor instead of PackageFragmentDescriptor 2015-02-09 12:55:59 +03:00
Valentin Kipyatkov dfe71ef7ae Import insertion algorithm 2015-02-09 12:55:59 +03:00
Valentin Kipyatkov 975b67ed29 Minor refactoring after conversion 2015-02-09 12:55:22 +03:00
Valentin Kipyatkov f6df6eaeea Converted to Kotlin (step 2) 2015-02-09 12:55:22 +03:00
Valentin Kipyatkov 98be4566d2 Converted to Kotlin (step 1) 2015-02-09 12:55:22 +03:00
Valentin Kipyatkov ca2a46e42f Auto-import popup to work for ambiguous class name 2015-02-09 12:55:22 +03:00
Valentin Kipyatkov 0686629e49 Code refactoring after conversion 2015-02-09 12:55:21 +03:00
Valentin Kipyatkov c8ecbcf088 Converted file to Kotlin (step 2) 2015-02-09 12:55:21 +03:00
Valentin Kipyatkov b9080d41d4 Converted file to Kotlin (step 1) 2015-02-09 12:55:21 +03:00
Valentin Kipyatkov 02e63196f8 Performance optimization 2015-02-09 12:55:21 +03:00
Alexander Udalov 720942b05f Temporary workaround for compilation errors in KotlinLightClassForPackage 2015-02-09 12:41:59 +03:00
Nikolay Krasko 6f6a65cb8d Convert to LinkedHashSet 2015-02-06 23:53:17 +03:00
Nikolay Krasko 9173c59969 Fix deprecated warning 2015-02-06 23:53:16 +03:00
Nikolay Krasko de22bfbde9 Refactoring: extract method createFakeClsFile 2015-02-06 23:53:16 +03:00
Nikolay Krasko 8dd910bd36 Convert to Kotlin KotlinLightClassForPackage: fixes for j2k converter 2015-02-06 23:53:15 +03:00
Nikolay Krasko a4e2c3b6fa Convert to Kotlin KotlinLightClassForPackage: j2k converter 2015-02-06 23:53:14 +03:00
Nikolay Krasko 082ac7a05f Convert to Kotlin KotlinLightClassForPackage: file rename 2015-02-06 23:53:13 +03:00
Nikolay Krasko c9c3a1c924 Get containing with deferred stub evaluation
Tested in org.jetbrains.kotlin.idea.quickfix.QuickFixMultiFileTestGenerated.CreateFromUsage.CreateVariable.Parameter#testPlatformType
Resolve of Java element triggers resolve for all classes in package in IDE. One of them is Kotlin light class for package. In case when
some declarations in that packages has references to Java class from current package, compiler goes to recursion.
2015-02-06 23:53:12 +03:00
Dmitry Jemerov c366da95ac move KDocFinder to plugin because it's not used in compiler; wrap it in an object to avoid package facade conflicts; add test to findKDoc() and fix it so that it actually works 2015-02-06 18:13:35 +01:00
Dmitry Jemerov fdfb843fdc add @sample known tag; handle @constructor tag in findKDoc() 2015-02-06 16:58:36 +01:00
Dmitry Jemerov 70cf3e9c60 KDoc link parsing rewrite.
Support qualified names immediately after tag (@see or @param). Detect whether a tag is followed by a reference immediately while lexing, remove TEXT_OR_LINK token type. Remove duplicate nested KDocLink nodes from the PSI structure.
2015-02-06 16:33:55 +01:00
Dmitry Jemerov cc5edc332d inherit documentation for properties as well as functions 2015-02-06 16:32:41 +01:00
Evgeny Gerashchenko 478118c12a Extracted common function getRecompilationDecision. 2015-02-06 17:44:42 +03:00
Evgeny Gerashchenko e5fd6bc067 Minor. Inlined trivial functions. 2015-02-06 17:44:42 +03:00
Evgeny Gerashchenko 432408e1a8 Checking source to output mapping after rebuild. 2015-02-06 17:44:41 +03:00
Evgeny Gerashchenko c5593a5b80 Correctly processing disappeared protos, files with constants/inline function. 2015-02-06 17:44:41 +03:00
Evgeny Gerashchenko 5b89f88447 Minor. Simplified getObsoletePackageParts() and similar functions. 2015-02-06 17:44:40 +03:00
Evgeny Gerashchenko 89f3d21ba4 Clearing incremental cache for removed files without scanning output directory. 2015-02-06 17:44:40 +03:00
Evgeny Gerashchenko 602642715c Checking incremental cache dump after make. Comparing it with dump after rebuild. 2015-02-06 17:44:40 +03:00
Evgeny Gerashchenko f071802e19 Simplified process of filtering out obsolete package parts and loading descriptors from incremental caches.
Now when file is deleted or dirty (compiled right now), its old package part is used. Current package of file doesn't matter.
2015-02-06 17:44:39 +03:00
Evgeny Gerashchenko 512ea72e69 Minor. Green code and formatting. 2015-02-06 15:56:33 +03:00
Evgeny Gerashchenko 84ca0a5b4e Minor. Green code. 2015-02-06 15:56:33 +03:00
Evgeny Gerashchenko 5663383fea Minor. Removed unused property. 2015-02-06 15:56:33 +03:00
Natalia Ukhorskaya 12cdcc6e05 Minor: fix warnings 2015-02-06 11:21:17 +03:00
Natalia Ukhorskaya 2f931f36c8 Implement extra variables for debugger 2015-02-06 11:21:17 +03:00
Natalia Ukhorskaya 3a03cb48df Debugger Tests: create context in onBreakpoint method 2015-02-06 11:21:16 +03:00
Alexey Sedunov 03e076aba3 Intentions: function <-> property conversion 2015-02-05 23:12:38 +03:00