Smart completion: inheritors instantiation suggested + fixed a bug with incorrect presentation of generic java class instantiation

This commit is contained in:
Valentin Kipyatkov
2014-11-26 17:58:18 +03:00
parent 07f7a35bc9
commit 820c2c7cd8
33 changed files with 396 additions and 36 deletions
@@ -68,6 +68,10 @@ public class KotlinCacheService(val project: Project) {
override fun analyzeFullyAndGetResult(elements: Collection<JetElement>): AnalysisResult {
return cache.getAnalysisResultsForElements(elements)
}
override fun <T> get(extension: CacheExtension<T>): T {
return cache[extension]
}
}
}
@@ -34,4 +34,6 @@ public trait ResolutionFacade {
public fun resolveToDescriptor(declaration: JetDeclaration): DeclarationDescriptor
public fun findModuleDescriptor(element: JetElement): ModuleDescriptor
public fun <T> get(extension: CacheExtension<T>): T
}