Commit Graph

6611 Commits

Author SHA1 Message Date
Natalia Ukhorskaya 9057e84c6d Remove isKtFileInWrongFolder 2015-01-26 16:48:36 +03:00
Evgeny Gerashchenko 6ffe49f1d2 KT-6582 "Expand selection" in string literal should select word in string
#KT-6582 fixed
2015-01-22 19:10:01 +03:00
Alexey Sedunov 0159f95111 Update to IDEA 139.1116 2015-01-22 17:00:21 +03:00
Dmitry Jemerov dbba0b769b include TEXT_OR_LINK in the list of content tokens; fix incorrect testdata 2015-01-22 14:05:03 +01:00
Evgeny Gerashchenko 386854d73f Unused object.
unusedButEntryPointMain for class was actually a wrong test: it didn't check anything, because objects are were not checked for unusedness before.
2015-01-22 15:26:49 +03:00
Evgeny Gerashchenko a797f4a328 Minor. Reduced code duplication. 2015-01-22 15:26:48 +03:00
Evgeny Gerashchenko 2ef9634091 Clarified weird NPE: EA-64049 2015-01-22 15:26:47 +03:00
Evgeny Gerashchenko 378d00bbad Quick fix for unused symbol inspection. 2015-01-22 15:26:45 +03:00
Evgeny Gerashchenko 6e621ab114 Lazy usage search (using SearchQuery as Iterable leads to computing all results, which is wasting time). 2015-01-22 15:20:32 +03:00
Evgeny Gerashchenko 71bcce6410 Highlighting unused type parameter. 2015-01-22 15:20:32 +03:00
Evgeny Gerashchenko aff2547ff8 Searching for properties declared in class constructor signature. 2015-01-22 15:20:31 +03:00
Evgeny Gerashchenko 156184b0eb Extracted function which gets component function name for data class property.
It used to rely on the fact that class is already resolved before. Added force resolution of class, to make this function reusable in other context.
2015-01-22 15:20:30 +03:00
Evgeny Gerashchenko b0e2afc8cb Searching for property accessors, too. 2015-01-22 15:20:30 +03:00
Evgeny Gerashchenko 8fd5e72632 Finding unused properties. 2015-01-22 15:20:29 +03:00
Evgeny Gerashchenko 460fae275b Looking for text usages in all project (e. g., class can be referred from test data). 2015-01-22 15:20:28 +03:00
Evgeny Gerashchenko 9ba86501ec Not marking enum entries as unused. 2015-01-22 15:20:28 +03:00
Evgeny Gerashchenko b91053da0b Optimized checking if reference to builtin.
It was slowing up usages search for back-references to standard library (not builtins, but in "kotlin" package)
2015-01-22 15:20:27 +03:00
Evgeny Gerashchenko 4cede47c70 Added tests with class/function used in Java 2015-01-22 15:20:26 +03:00
Evgeny Gerashchenko 4b20435ec9 Not searching for functions with conventional names.
Reasons:
1. They kind of implement interface.
2. They are too expensive to search.
2015-01-22 15:20:25 +03:00
Evgeny Gerashchenko b68b2e2e40 Added optimization: if name is too popular, don't check as unused. 2015-01-22 15:20:24 +03:00
Evgeny Gerashchenko f652d314d8 Finding unused functions. 2015-01-22 15:20:24 +03:00
Dmitry Jemerov f4a25f69b1 Merge pull request #552 from JetBrains/rr/yole/kdoc-generate
structured rendering of doc comments in quick documentation dialog
2015-01-21 23:32:10 +01:00
Valentin Kipyatkov 77a560775f KT-6628 Allow imports of classes from root package
#KT-6628 Fixed
2015-01-21 20:10:18 +03:00
Valentin Kipyatkov b9d47ffe7a Changed priority for default imports + default imports include all built-ins explicitly for java module
#KT-4374 Fixed
2015-01-21 20:10:18 +03:00
Valentin Kipyatkov 7ce3925d71 Removed USELESS_HIDDEN_IMPORT error for it cannot happen anymore 2015-01-21 20:10:17 +03:00
Valentin Kipyatkov 929d6b885d Current package members to have less priority than explicit imports 2015-01-21 20:10:17 +03:00
Valentin Kipyatkov 59f24020b2 Renames 2015-01-21 20:10:17 +03:00
Valentin Kipyatkov 3caef82184 Big refactoring of imports resolve - preparing to change current package members priority 2015-01-21 20:10:17 +03:00
Valentin Kipyatkov 2e420fc312 Conflicting imports error for imports of classes and packages 2015-01-21 20:10:16 +03:00
Valentin Kipyatkov b888ea601c Changed imports semantics: imports order does not affect resolve, explicit imports have higher priority for classes 2015-01-21 20:10:16 +03:00
Valentin Kipyatkov 8fc0063410 Refactoring of Importer - PlatformToKotlinClassMap is the same for all imports 2015-01-21 20:10:16 +03:00
Valentin Kipyatkov 58fb303f8c Code improvements after conversion 2015-01-21 20:10:15 +03:00
Dmitry Jemerov 609914fb4a code review; add test for brackets around subject name in tag 2015-01-21 17:23:24 +01:00
Dmitry Jemerov 659c54d7e6 structured rendering of doc comments in quick documentation dialog 2015-01-21 16:20:20 +01:00
Dmitry Jemerov 6c814279fc Merge pull request #550 from JetBrains/kdoc-inherit
allow inheriting doc comments from base classes
2015-01-21 13:26:01 +01:00
Ilya Ryzhenkov 95d4accda7 stdlib: add flatten() 2015-01-20 22:39:24 +03:00
Dmitry Jemerov 431cdd2245 delete unused OperationModeProvider class 2015-01-20 19:51:24 +01:00
Dmitry Jemerov 0c2b230e4a allow inheriting doc comments from base classes 2015-01-20 19:20:59 +01:00
Dmitry Jemerov 100b8c2c4d Fix tests according to new PSI structure; move doc comment text calculation from JetQuickDocumentationProvider to KDocTag.getContent() 2015-01-20 18:07:18 +01:00
Dmitry Jemerov f3763bc2b5 some initial PSI for KDoc; changed syntax of links (Markdown style single brackets instead of Wiki style double brackets) 2015-01-20 18:00:09 +01:00
Alexey Sedunov b40e657180 Create from usage: Create constructor parameter by reference in delegation specifier
#KT-6601 Fixed
2015-01-19 20:58:55 +03:00
Alexey Sedunov 70b202dfa6 Extract Function: Do not extract extension receiver from 'implicit invoke'
call
 #KT-6302 Fixed
2015-01-19 20:58:54 +03:00
Alexey Sedunov d54b261c61 Extract Function: Fix 'this' label (extension case)
#KT-5456 Fixed
2015-01-19 20:58:53 +03:00
Alexey Sedunov 941e08b80f Minor: Fix warnings 2015-01-19 20:58:52 +03:00
Alexey Sedunov 8d40ca1a74 Extract Function: Merge jumps with default exits if all exit points are equivalent
#KT-6598 Fixed
2015-01-19 20:58:51 +03:00
Alexey Sedunov 9278dee1a4 Pseudocode: Bind nondeterministic jump caused by local declaration to declaration iself instead of its parent element
#KT-6261 Fixed
 #KT-6416 Fixed
2015-01-19 20:58:50 +03:00
Nikolay Krasko bc9287b60f Change description of 'iter' template to make it searchable by 'for' prefix
#KT-6603 Fixed
2015-01-15 20:35:39 +03:00
Pavel V. Talanov 2d68637fd9 ResolveElementCache: Use softly (not weakly) retained values
Fixes performance problems with long running searches analyzing function bodies several times
2015-01-15 19:54:25 +03:00
Alexey Sedunov 90e7d2151b Create From Usage: Restrict type guess search scope to prevent performance problem with highlighting 2015-01-15 19:43:01 +03:00
Natalia Ukhorskaya d2cf83902b Debugger: do not evaluate calls on mouse cover when 'Value auto tooltip' switched on 2015-01-15 11:45:16 +03:00