Add data/inline/fun/isExternal flags to KtClassLikeSymbol
This commit is contained in:
+5
@@ -41,6 +41,11 @@ abstract class KtClassOrObjectSymbol : KtClassLikeSymbol(),
|
|||||||
abstract val classKind: KtClassKind
|
abstract val classKind: KtClassKind
|
||||||
|
|
||||||
abstract val isInner: Boolean
|
abstract val isInner: Boolean
|
||||||
|
abstract val isData: Boolean
|
||||||
|
abstract val isInline: Boolean
|
||||||
|
abstract val isFun: Boolean
|
||||||
|
|
||||||
|
abstract val isExternal: Boolean
|
||||||
|
|
||||||
abstract val companionObject: KtClassOrObjectSymbol?
|
abstract val companionObject: KtClassOrObjectSymbol?
|
||||||
|
|
||||||
|
|||||||
+5
@@ -48,6 +48,11 @@ internal class KtFirClassOrObjectSymbol(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override val isInner: Boolean get() = firRef.withFir(FirResolvePhase.STATUS) { it.isInner }
|
override val isInner: Boolean get() = firRef.withFir(FirResolvePhase.STATUS) { it.isInner }
|
||||||
|
override val isData: Boolean get() = firRef.withFir(FirResolvePhase.STATUS) { it.isData }
|
||||||
|
override val isInline: Boolean get() = firRef.withFir(FirResolvePhase.STATUS) { it.isInline }
|
||||||
|
override val isFun: Boolean get() = firRef.withFir(FirResolvePhase.STATUS) { it.isFun }
|
||||||
|
|
||||||
|
override val isExternal: Boolean get() = firRef.withFir(FirResolvePhase.STATUS) { it.isExternal }
|
||||||
|
|
||||||
override val companionObject: KtClassOrObjectSymbol? by firRef.withFirAndCache(FirResolvePhase.RAW_FIR) { fir ->
|
override val companionObject: KtClassOrObjectSymbol? by firRef.withFirAndCache(FirResolvePhase.RAW_FIR) { fir ->
|
||||||
fir.companionObject?.let { builder.buildClassSymbol(it) }
|
fir.companionObject?.let { builder.buildClassSymbol(it) }
|
||||||
|
|||||||
@@ -57,6 +57,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: C
|
classIdIfNonLocal: C
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: C
|
name: C
|
||||||
@@ -72,6 +76,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: I
|
classIdIfNonLocal: I
|
||||||
classKind: INTERFACE
|
classKind: INTERFACE
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: ABSTRACT
|
modality: ABSTRACT
|
||||||
name: I
|
name: I
|
||||||
|
|||||||
@@ -1175,6 +1175,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: kotlin/Int.Companion
|
classIdIfNonLocal: kotlin/Int.Companion
|
||||||
classKind: COMPANION_OBJECT
|
classKind: COMPANION_OBJECT
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: Companion
|
name: Companion
|
||||||
|
|||||||
@@ -1311,6 +1311,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: java/lang/String.CaseInsensitiveComparator
|
classIdIfNonLocal: java/lang/String.CaseInsensitiveComparator
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: OPEN
|
modality: OPEN
|
||||||
name: CaseInsensitiveComparator
|
name: CaseInsensitiveComparator
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: kotlin/Lazy
|
classIdIfNonLocal: kotlin/Lazy
|
||||||
classKind: INTERFACE
|
classKind: INTERFACE
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: ABSTRACT
|
modality: ABSTRACT
|
||||||
name: Lazy
|
name: Lazy
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: java/lang/String
|
classIdIfNonLocal: java/lang/String
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: String
|
name: String
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: kotlin/collections/MutableMap.MutableEntry
|
classIdIfNonLocal: kotlin/collections/MutableMap.MutableEntry
|
||||||
classKind: INTERFACE
|
classKind: INTERFACE
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: ABSTRACT
|
modality: ABSTRACT
|
||||||
name: MutableEntry
|
name: MutableEntry
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: A
|
classIdIfNonLocal: A
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: A
|
name: A
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: A
|
classIdIfNonLocal: A
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: A
|
name: A
|
||||||
|
|||||||
@@ -66,6 +66,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: A
|
classIdIfNonLocal: A
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: A
|
name: A
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: X
|
classIdIfNonLocal: X
|
||||||
classKind: ENUM_CLASS
|
classKind: ENUM_CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: X
|
name: X
|
||||||
|
|||||||
@@ -47,6 +47,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: A
|
classIdIfNonLocal: A
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: A
|
name: A
|
||||||
|
|||||||
@@ -65,6 +65,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: A
|
classIdIfNonLocal: A
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: A
|
name: A
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: kotlin/collections/Iterator
|
classIdIfNonLocal: kotlin/collections/Iterator
|
||||||
classKind: INTERFACE
|
classKind: INTERFACE
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: ABSTRACT
|
modality: ABSTRACT
|
||||||
name: Iterator
|
name: Iterator
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: kotlin/io/FileWalkDirection
|
classIdIfNonLocal: kotlin/io/FileWalkDirection
|
||||||
classKind: ENUM_CLASS
|
classKind: ENUM_CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: FileWalkDirection
|
name: FileWalkDirection
|
||||||
|
|||||||
@@ -44,6 +44,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: Anno
|
classIdIfNonLocal: Anno
|
||||||
classKind: ANNOTATION_CLASS
|
classKind: ANNOTATION_CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: Anno
|
name: Anno
|
||||||
@@ -78,6 +82,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: X
|
classIdIfNonLocal: X
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: X
|
name: X
|
||||||
|
|||||||
@@ -83,6 +83,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: AnonymousContainer
|
classIdIfNonLocal: AnonymousContainer
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: AnonymousContainer
|
name: AnonymousContainer
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: A
|
classIdIfNonLocal: A
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: A
|
name: A
|
||||||
|
|||||||
@@ -51,6 +51,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: A
|
classIdIfNonLocal: A
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: A
|
name: A
|
||||||
|
|||||||
@@ -18,6 +18,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: A
|
classIdIfNonLocal: A
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: A
|
name: A
|
||||||
|
|||||||
@@ -38,6 +38,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: null
|
classIdIfNonLocal: null
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: F
|
name: F
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: Anno1
|
classIdIfNonLocal: Anno1
|
||||||
classKind: ANNOTATION_CLASS
|
classKind: ANNOTATION_CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: Anno1
|
name: Anno1
|
||||||
@@ -37,6 +41,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: Anno2
|
classIdIfNonLocal: Anno2
|
||||||
classKind: ANNOTATION_CLASS
|
classKind: ANNOTATION_CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: Anno2
|
name: Anno2
|
||||||
@@ -52,6 +60,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: Anno3
|
classIdIfNonLocal: Anno3
|
||||||
classKind: ANNOTATION_CLASS
|
classKind: ANNOTATION_CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: Anno3
|
name: Anno3
|
||||||
@@ -67,6 +79,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: Anno4
|
classIdIfNonLocal: Anno4
|
||||||
classKind: ANNOTATION_CLASS
|
classKind: ANNOTATION_CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: Anno4
|
name: Anno4
|
||||||
@@ -82,6 +98,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: I
|
classIdIfNonLocal: I
|
||||||
classKind: INTERFACE
|
classKind: INTERFACE
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: ABSTRACT
|
modality: ABSTRACT
|
||||||
name: I
|
name: I
|
||||||
@@ -147,6 +167,10 @@ KtFirClassOrObjectSymbol:
|
|||||||
classIdIfNonLocal: X
|
classIdIfNonLocal: X
|
||||||
classKind: CLASS
|
classKind: CLASS
|
||||||
companionObject: null
|
companionObject: null
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
isInner: false
|
isInner: false
|
||||||
modality: FINAL
|
modality: FINAL
|
||||||
name: X
|
name: X
|
||||||
|
|||||||
Reference in New Issue
Block a user