Commit Graph

903 Commits

Author SHA1 Message Date
Pavel V. Talanov 608345df7b Improve ResolutionFacade api: it stores moduleInfo and provides moduleDescriptor
Remove some redundant parameters passed along with ResolutionFacade
2015-08-21 21:11:59 +03:00
Dmitry Jemerov c00fbb236f don't perform full resolve and stub building for isInheritor() checks
#KT-8656 Fixed
2015-08-21 12:08:53 +02:00
Dmitry Jemerov f2ff752dd1 KotlinLightClassForExplicitDeclaration: J2K 2015-08-21 12:08:51 +02:00
Nikolay Krasko e13d1d3e44 Workaround for exception from analyze (KT-8749) 2015-08-21 13:00:49 +03:00
Nikolay Krasko ffb9cb0ce0 Cache information about library in file user data (KT-8537)
KT-8537 Kotlin plugin is causing Intellij to freeze during Indexing

 #Fix KT-8537
2015-08-20 15:28:30 +03:00
Nikolay Krasko 0946e1b279 Store on local jar files to have valid timestamp 2015-08-20 15:28:29 +03:00
Nikolay Krasko ee36de9602 Simplify jar-processor framework 2015-08-20 15:28:28 +03:00
Nikolay Krasko 3b14241224 Create background jar-processor that can store meta information for jars 2015-08-20 15:28:27 +03:00
Pavel V. Talanov 6c48c29bf9 Make AnalyzerFacade an abstract class instead of interface
Seems to workaround some compiler bug
2015-08-19 21:18:46 +03:00
Pavel V. Talanov 72710c0318 Fix usages of AnalyzerUtil
Sadly contains some changes that hard to merge into appropriate commits introduced after rebasing repeatedly
2015-08-19 21:18:45 +03:00
Pavel V. Talanov ea8c17adeb Pass ResolutionFacade into ReferenceVariantsHelper and ShadowedDeclarationsFilter 2015-08-19 21:18:43 +03:00
Pavel V. Talanov d7c1798ee6 Move ResolutionFacade to ide-common module 2015-08-19 21:18:42 +03:00
Pavel V. Talanov dd0823010f Refactor: Make ResolutionFacade.getFileTopLevelScope an utility 2015-08-19 21:18:42 +03:00
Pavel V. Talanov 0d78c8acb5 Refactor: Make ResolutionFacade.resolveImportReference an utility 2015-08-19 21:18:41 +03:00
Pavel V. Talanov 06b96c2b12 Drop CacheExtension 2015-08-19 21:18:40 +03:00
Pavel V. Talanov e041042328 Minor: move getResolveScope out of ResolutionFacade 2015-08-19 21:18:40 +03:00
Pavel V. Talanov d09f4a4dbb Merge ResolutionFacadeImpl and KotlinResolveCache, rewrite JavaResolveExtension 2015-08-19 21:18:39 +03:00
Pavel V. Talanov 94431bc3fa Move ResolutionFacadeImpl to a separate file 2015-08-19 21:18:39 +03:00
Pavel V. Talanov e88ea1f807 Improve naming 2015-08-19 21:18:38 +03:00
Pavel V. Talanov 5836fd39e4 Refactor: Move AnalyzerUtil to "idea-analysis" module and rewrite using new api 2015-08-19 21:18:36 +03:00
Pavel V. Talanov 6802973743 Refactor: merge duplicated code for code fragment analysis
Introduce CodeFragmentAnalyzer
2015-08-19 21:18:35 +03:00
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