Pavel V. Talanov
ddbf4c18d3
Minor: inject targetPlatform into ResolveElementCache
2015-08-19 21:18:33 +03:00
Pavel V. Talanov
7cbac51018
Refactor: merge ElementResolver into ResolveElementCache
...
This is a bit questionable since there are plans to use it in eclipse plugin, but we do it for now
It's possible that we can come up with a better abstraction later
2015-08-19 21:18:32 +03:00
Pavel V. Talanov
0c2650c86c
Provide API to get frontend services from plugin code via resoltion facade
...
API to create ide-side services using frontend services (for now "ide services" cannot be injected into other ide services)
2015-08-19 21:18:31 +03:00
Pavel V. Talanov
52bc84cb5f
Introduce LocalDescriptorResolver which handles differences in local declaration resolution between compiler and ide environments
2015-08-19 21:18:28 +03:00
Valentin Kipyatkov
b3adf27b81
Don't invoke applicabilityRange twice for each highlighting
2015-08-19 20:46:38 +03:00
Valentin Kipyatkov
4bf20d747a
Changes on code review
2015-08-19 20:46:38 +03:00
Valentin Kipyatkov
4876668716
Correct read/write access detection in case of plusAssign etc
2015-08-19 20:46:38 +03:00
Valentin Kipyatkov
5e97387e8d
Public utility to detect read/write access for an expression
...
Implemented ReadWriteAccessDetector which gives read/write access in Highlight Usages and Find Usages
+ More correct UsageType detection
2015-08-19 20:46:37 +03:00
Valentin Kipyatkov
1fd0578b9e
Fixed deprecated symbol usage fix for functions with optional parameters from libraries
...
#KT-8525 Fixed
2015-08-19 18:06:31 +03:00
Dmitry Jemerov
d53b990655
add missing read actions for Find Usages (EA-66822)
2015-08-19 16:58:10 +02:00
Stanislav Erokhin
17d8424cee
Remove member scope from scopeForMemberDeclarationResolution
2015-08-18 21:26:41 +03:00
Valentin Kipyatkov
ba8c2f1084
Refactored RemoveModifierFix + some psi API refactoring
...
#EA-69237 Fixed
2015-08-18 18:50:00 +03:00
Valentin Kipyatkov
81acf72d0b
No i18n
2015-08-18 18:49:59 +03:00
Valentin Kipyatkov
b7c1bed809
EA-70292 - KNPE: BindingContext.TYPE_RESOLUTION_SCOPE returns null
...
#EA-70292 Fixed
2015-08-18 18:49:59 +03:00
Valentin Kipyatkov
93619ddc00
Likely fixed EA-70294 - Uncommited document on applying intention
...
#EA-70294 Fixed
2015-08-18 18:49:58 +03:00
Valentin Kipyatkov
cd8fa97a20
Hopefully fixed EA-71565 and similar problems
...
#EA-71565 Fixed
2015-08-18 18:49:57 +03:00
Zalim Bashorov
595975a66e
LookupLocation.NO_LOCATION_FROM_IDE -> NoLookupLocation.FROM_IDE
2015-08-18 12:34:18 +03:00
Zalim Bashorov
69e0f23db9
Classify Location.NO_LOCATION usages
2015-08-18 12:21:31 +03:00
Alexey Sedunov
a66ef47887
Push Down: Initial Support
2015-08-17 20:28:08 +03:00
Valentin Kipyatkov
b6c94a9e68
ResolveElementCache works correctly for non-physical files
2015-08-17 14:24:07 +03:00
Evgeny Gerashchenko
da4be8a0f5
KT-7484 Companion object is marked unused if it's only usages are statically imported from Java
...
#KT-7484 fixed
2015-08-15 12:29:44 +02:00
Valentin Kipyatkov
ec7c55c9be
Synthetic java properties are not always bold in completion and are not sorted as extensions
2015-08-14 18:10:39 +03:00
Mikhail Glukhikh
3793d99b00
Decompiler fix: enum entries are now separated by , and have ; at the end, relevant tests fixed
2015-08-11 10:37:48 +03:00
Valentin Kipyatkov
c943ec104d
KT-8718 KNPE at PropertyUsagesSearchHelper.makeItemList() on erasing parameter name
...
#KT-8718 Fixed
2015-08-10 20:29:51 +03:00
Mikhail Glukhikh
fe716d7e56
Change signature fix: correct parameter add / remove from enum constructor calls, relevant test fixes
2015-08-10 16:23:57 +03:00
Nikolay Krasko
0ccdf1d43b
J2K: JetClassFileDecompiler.java converter
2015-08-10 13:07:42 +03:00
Nikolay Krasko
99b70b49c4
J2K: JetClassFileDecompiler.java file rename
2015-08-10 13:07:39 +03:00
Zalim Bashorov
0978e9f169
Minor: move LookupLocation to org.jetbrains.kotlin.incremental.components
2015-08-08 02:08:16 +03:00
Zalim Bashorov
2aa4c383cd
UsageLocation -> LookupLocation
2015-08-08 02:08:15 +03:00
Alexey Sedunov
7125989c69
Pull Up: Java -> Kotlin interoperability
...
#KT-5803 Fixed
2015-08-07 23:30:12 +03:00
Alexander Udalov
942ab9ef6d
Make 'hasDefaultValue' an extension on ValueParameterDescriptor
...
To avoid storing a Boolean and a boolean. It isn't called frequently enough to
justify this wasted space for each parameter of every function out there
2015-08-07 23:01:20 +03:00
Nikolay Krasko
c13396d92f
Refactoring: inline method
2015-08-07 19:14:20 +03:00
Nikolay Krasko
5fe81d67a3
Refactoring: move function and avoid return lambda
2015-08-07 19:14:18 +03:00
Dmitry Jemerov
43bbed495b
code review
2015-08-07 11:41:50 +02:00
Dmitry Jemerov
c29ebfbb04
KotlinAnnotatedElementsSearcher: handle local scope; correctly handle import aliases
2015-08-07 11:41:49 +02:00
Alexey Tsvetkov
0688afbb0c
Introduce ClassDataProvider
2015-08-06 19:31:06 +03:00
Valentin Kipyatkov
a7db995f05
Correct icon shown for synthetic extensions
2015-08-04 18:05:57 +03:00
Valentin Kipyatkov
4187be2fe5
KT-8255 Intention actions popup: there are duplicates between quickfixes and intentions
...
#KT-8255 Fixed
2015-08-04 17:57:02 +03:00
Dmitry Jemerov
00ec19a709
use correct API for converting URL to string
2015-08-04 14:53:07 +02:00
Dmitry Jemerov
f51107b502
enlarge use scope scope of PSI elements in built-in sources to Project and Libraries (to counteract the effect of https://github.com/JetBrains/intellij-community/commit/897d7cabe6d482182ae6d54a1b158f80b1652d75 )
2015-08-03 18:16:53 +02:00
Valentin Kipyatkov
315a73fd12
Minor optimization: don't walk through parent directories
2015-08-03 17:11:12 +03:00
Valentin Kipyatkov
d308c959ff
Moved soft keyword highlighting and other analysis that do not require keywords into separate pass executed before running any resolve
2015-08-03 17:11:12 +03:00
Valentin Kipyatkov
f378b9bb75
Do not invalidate resolve of everything after change inside a code block
2015-08-03 17:11:12 +03:00
Valentin Kipyatkov
c2c6ba59fd
Changes on code review
2015-08-03 16:28:44 +03:00
Valentin Kipyatkov
397e48a11d
ReferenceSearch searches references to parameters using optimized way too
...
#KT-8625 Fixed
2015-08-03 16:28:44 +03:00
Valentin Kipyatkov
d6f724c55d
Never find overriding parameter usages via old way
2015-08-03 16:28:43 +03:00
Valentin Kipyatkov
1bb8ca6ed5
On searching parameter usages asking if user wants to search usages of parameters of overriders too (as in Java)
2015-08-03 16:28:43 +03:00
Valentin Kipyatkov
c5f7f08d24
Removed scanning non-strings and non-comments for plain text (as it's not clear why it can be needed)
2015-08-03 16:28:43 +03:00
Valentin Kipyatkov
9bb2fe9a67
Optimization of parameter usages search
2015-08-03 16:28:43 +03:00
Valentin Kipyatkov
1d1d834901
Minor optimization
2015-08-03 16:28:43 +03:00