Commit Graph

208 Commits

Author SHA1 Message Date
Valentin Kipyatkov 820c2c7cd8 Smart completion: inheritors instantiation suggested + fixed a bug with incorrect presentation of generic java class instantiation 2014-11-28 15:33:26 +03:00
Pavel V. Talanov f0a9c4f683 Extract non-descriptor specific abstract ancestor for BinaryClassAnnotationAndConstantLoader 2014-11-27 21:17:19 +03:00
Pavel V. Talanov 39e1dfbcc0 Merge AnnotationLoader and ConstantLoader into single interface
Merge all implementation classes into single BinaryClassAnnotationAndConstantLoader
2014-11-27 21:17:18 +03:00
Alexey Sedunov 591c409854 Change Signature: Process Kotlin-based usages when changing signature of the Java function 2014-11-26 13:07:38 +03:00
Alexander Udalov 60662e5831 Fix double laziness of annotations introduced in 149a90d 2014-11-25 23:16:21 +03:00
Alexander Udalov 5907df92db Drop secondary DeserializedPackageMemberScope constructor
Create package context only once
2014-11-25 23:15:49 +03:00
Alexander Udalov 673c15a23d Simplify component injection in annotation/constant loaders 2014-11-25 23:15:48 +03:00
Alexander Udalov 149a90d7bf Make annotations on deserialized descriptors truly lazy 2014-11-25 23:15:47 +03:00
Alexander Udalov cb5c21e831 Merge DeserializationGlobalContext with DeserializationComponents 2014-11-25 23:15:47 +03:00
Alexander Udalov cfa484f760 Introduce DeserializationComponents
Decouple components from the state present in contexts, get rid of duplication
of parameters in each context
2014-11-25 23:15:46 +03:00
Alexander Udalov fc0f83cbdb Minor, change parameter order, reformat 2014-11-25 23:15:46 +03:00
Valentin Kipyatkov ddc60ac5dd Better injecting of partial body resolve filter 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov 0dd77a8ed3 Renames - dropped word "Service" 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov a0c9c0e7b2 Added firstOrNullIsInstance and firstIsInstance methods 2014-11-24 20:11:26 +03:00
Valentin Kipyatkov 8010c0f09d Partial body resolve works for local Nothing functions + does not go inside local functions and classes 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov 3b77d337e8 Renames "possibly nothing" to "probably nothing" 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov e5579bcf32 Partial body resolve: to take source Kotlin callables with Nothing type from caches 2014-11-24 20:11:25 +03:00
Valentin Kipyatkov 78e26c0cf9 Fixed partial body resolve when element to resolve is not inside body 2014-11-24 20:11:24 +03:00
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