Valentin Kipyatkov
a675b5ba38
Basic implementation of partial body resolve
2014-11-24 20:11:23 +03:00
Pavel V. Talanov
ff3b3c8a6b
Refactor: inline AnalyzerFacadeWithCache#getContextForElement
2014-11-21 15:56:11 +03:00
Pavel V. Talanov
67b2c32253
Minor: comment
2014-11-21 15:56:10 +03:00
Pavel V. Talanov
3afdd8bd92
Add analyzeFullyAndGetResult to ResolutionFacade
2014-11-21 15:56:10 +03:00
Pavel V. Talanov
63b402e93c
Rename: JetElement#getLazyResolveSession() -> getResolutionFacade
...
Rename local variables and fields of type ResolutionFacade
2014-11-21 15:56:09 +03:00
Pavel V. Talanov
b2ce3da99c
Minor: Inline the only usage of getAnalysisResultsForElements()
2014-11-21 15:56:09 +03:00
Pavel V. Talanov
cb1582fdc9
Rename: JetElement#getAnalysisResults() -> analyzeFullyAndGetResult
2014-11-21 15:56:08 +03:00
Pavel V. Talanov
1cf3938f13
Rename: JetElement#getBindingContext() -> analyzeFully
2014-11-21 15:56:07 +03:00
Pavel V. Talanov
d06628945c
Refactor: Introduce JetElement#analyzeAndGetResult() utility
2014-11-21 15:56:07 +03:00
Pavel V. Talanov
407c2029da
Rename: getModuleDescriptorForElement -> findModuleDescriptor
2014-11-21 15:56:06 +03:00
Pavel V. Talanov
6ff647ca66
Rename: resolveToElement() -> analyze
2014-11-21 15:56:06 +03:00
Pavel V. Talanov
e10461d0fa
Minor: reorder functions
2014-11-21 15:56:05 +03:00
Pavel V. Talanov
bce399f5fd
Rename: AnalyzeExhaust -> AnalysisResult
2014-11-21 15:56:05 +03:00
Pavel V. Talanov
e4670a791d
Refactor: Introduce JetElement#getModuleDescriptorForElement()
2014-11-21 15:56:04 +03:00
Pavel V. Talanov
96100eec1d
Refactor: Introduce JetElement#resolveToElement utility
2014-11-21 15:56:03 +03:00
Pavel V. Talanov
585b556f52
Refactor: Introduce JetDeclaration#resolveToDescriptor utility
2014-11-21 15:56:02 +03:00
Pavel V. Talanov
95e668b1f1
Minor: move resolution utilities to a separate file
2014-11-21 15:56:02 +03:00
Pavel V. Talanov
df892ba33a
Introduce ResolutionFacade to be used by plugin code instead of resolve session
...
Do not expose ResolveSessionForBodies where possible
Define API of ResolutionFacade, similar to what ResolveSessionForBodies has
JetElement#getLazyResolveSession returns ResolutionFacade
Call sites to be updated later
2014-11-21 15:56:01 +03:00
Pavel V. Talanov
2c9b0448a1
Fix getModuleInfo for elements in code fragments
2014-11-21 15:56:00 +03:00
Pavel V. Talanov
1f7c9f5693
Use KotlinCacheService directly in IDELightClassGenerationSupport
2014-11-21 15:55:59 +03:00
Pavel V. Talanov
1991f0119e
Convert AnalyzeExhaust to Kotlin and make it a data class
2014-11-21 15:55:59 +03:00
Nikolay Krasko
ad05b5a709
Injector for additional body resolve with lazy analyzer
...
Fix resolve JS modules with JVM resolver
2014-11-18 17:10:21 +03:00
Stanislav Erokhin
65c9ea2465
Fix variance problems.
2014-11-17 17:45:05 +03:00
Nikolay Krasko
a2ddaeca77
LTDA: Make BuiltinsReferenceResolver compatible with Lazy TDA
2014-11-17 16:15:24 +03:00
Pavel V. Talanov
e8aee5cddf
Sorting descriptors in DecompiledTextFactory is redundant
2014-11-14 17:09:10 +03:00
Alexey Sedunov
fd4fa9a042
Create Class From Usage: Allow user to choose a target directory when creating class in the specific package
2014-11-13 16:43:06 +03:00
Valentin Kipyatkov
b13c0f2248
Renamed methods
2014-11-12 21:57:50 +03:00
Valentin Kipyatkov
5f5d2de5e0
Moved KindFilter and DescriptorKindExclude out of JetScope, moved constants as well and renamed them
2014-11-12 21:57:49 +03:00
Valentin Kipyatkov
95b3885aa5
Refactored filtering by descriptor kind so that no knowledge about SAM-constructors required in core
2014-11-12 21:25:02 +03:00
Valentin Kipyatkov
ff4d91d47b
Replaced usages of getAllDescriptors() from Kotlin code with getDescriptors()
2014-11-12 21:25:01 +03:00
Valentin Kipyatkov
048d34b964
Minor changes after code review
2014-11-12 21:25:01 +03:00
Valentin Kipyatkov
6f2da4930a
Descriptor kind filter replaced with bit mask
2014-11-12 21:24:59 +03:00
Valentin Kipyatkov
43df891515
More precise descriptor kind filtering (preparing to optimize smart completion)
2014-11-12 21:24:59 +03:00
Valentin Kipyatkov
8d02c58e0a
Added name filter to PackageFragmentProvider.getSubPackagesOf but do not know how to use it actually
2014-11-12 21:24:59 +03:00
Valentin Kipyatkov
059deb3c88
Added use of nameFilter to one of the implementations of DeclarationProvider
2014-11-12 21:24:58 +03:00
Valentin Kipyatkov
c7ba03f76a
DeclarationProvider.getAllDeclarations() -> getDeclarations(kindFilter, nameFilter)
2014-11-12 21:24:58 +03:00
Natalia Ukhorskaya
12b4fc7ad9
Resolve codeFragments with context of JetClass
2014-11-12 15:13:37 +03:00
Alexander Udalov
bb96a8e1fb
Rename JavaResolverPsiUtils -> JavaResolverUtils
2014-11-11 18:10:44 +03:00
Nikolay Krasko
43eb94726c
Make single decompiler be responsible for compiled Kotlin files
...
IDEA caches link between a virtual file and correspondent FileViewProvider.
This breaks navigation to decompiled sources for the library that has been
just updated because of outdated ABI version.
Also IDEA don't allow to change language for decompiled files.
#KT-6016 Fixed
2014-11-11 17:34:56 +03:00
Nikolay Krasko
c242665cd3
Extract isCompatibleAbiVersion from kinds enum and store read kinds even for incompatible version
2014-11-11 17:33:13 +03:00
Nikolay Krasko
95a2dce627
Remove warning and add tests when this warning had been reproducible
2014-11-11 17:33:12 +03:00
Nikolay Krasko
d5bef5e612
Minor: better Kotlin code
2014-11-11 17:33:11 +03:00
Alexey Sedunov
59e4325fc0
Move JetCodeFragment-related logic to JetIntentionActionsFactory
2014-11-10 21:10:33 +03:00
Alexey Sedunov
850f1ebccd
JetIntentionActionsFactory, JetSingleIntentionActionFactory: Translate to Kotlin
2014-11-10 21:10:31 +03:00
Alexey Sedunov
aa2c10446b
JetIntentionActionsFactory, JetSingleIntentionActionFactory: Rename to .kt
2014-11-10 21:10:30 +03:00
Alexey Sedunov
42a74f55da
Create From Usage: Remove "from usage" words from action text
2014-11-10 21:10:29 +03:00
Zalim Bashorov
aecd2be25e
Introduce constant for "kt".
2014-11-07 16:30:51 +03:00
Nikolay Krasko
34001c23c1
Caching in KotlinLightClassForPackage haven't been working because of bad scope hashCode()
2014-11-06 16:48:04 +03:00
Valentin Kipyatkov
c2a3fde969
Converted JetScope to Kotlin
2014-11-05 21:42:12 +03:00
Valentin Kipyatkov
41685f0ba3
Fixing declaration ranges in decompiled code - comment "/* compiled code */" now is inside property
2014-10-31 21:07:49 +03:00