[FIR IDE] Implement type annotations for fir symbols

This commit is contained in:
Igor Yakovlev
2020-12-16 21:01:09 +03:00
parent 9670f67912
commit 8891a337e2
39 changed files with 258 additions and 191 deletions
@@ -8,11 +8,12 @@ package org.jetbrains.kotlin.idea.frontend.api.symbols
import org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtAnnotatedSymbol
import org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtSymbolWithMembers
import org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtSymbolWithKind
import org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtTypeAndAnnotations
import org.jetbrains.kotlin.idea.frontend.api.symbols.pointers.KtSymbolPointer
import org.jetbrains.kotlin.idea.frontend.api.types.KtType
abstract class KtAnonymousObjectSymbol : KtSymbolWithKind, KtAnnotatedSymbol, KtSymbolWithMembers {
abstract val superTypes: List<KtType>
abstract val superTypes: List<KtTypeAndAnnotations>
abstract override fun createPointer(): KtSymbolPointer<KtAnonymousObjectSymbol>
}
@@ -44,7 +44,7 @@ abstract class KtClassOrObjectSymbol : KtClassLikeSymbol(),
abstract val companionObject: KtClassOrObjectSymbol?
abstract val superTypes: List<KtType>
abstract val superTypes: List<KtTypeAndAnnotations>
abstract val primaryConstructor: KtConstructorSymbol?
@@ -15,7 +15,7 @@ interface KtNamedSymbol : KtSymbol {
}
interface KtTypedSymbol : KtSymbol {
val type: KtType
val annotatedType: KtTypeAndAnnotations
}
interface KtSymbolWithTypeParameters {