[Analysis API] make KtDeclarationSymbol <: KtSymbolWithTypeParameters

To simplify work with type parameters
This commit is contained in:
Ilya Kirillov
2022-05-27 16:15:58 +02:00
committed by teamcity
parent 8f4554959e
commit f189fd1ff0
43 changed files with 142 additions and 20 deletions
@@ -16,6 +16,7 @@ import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtPsiBasedSymbolPointe
import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer
import org.jetbrains.kotlin.analysis.api.types.KtType import org.jetbrains.kotlin.analysis.api.types.KtType
import org.jetbrains.kotlin.analysis.api.lifetime.withValidityAssertion import org.jetbrains.kotlin.analysis.api.lifetime.withValidityAssertion
import org.jetbrains.kotlin.analysis.api.symbols.KtTypeParameterSymbol
import org.jetbrains.kotlin.name.CallableId import org.jetbrains.kotlin.name.CallableId
import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.resolve.calls.inference.returnTypeOrNothing import org.jetbrains.kotlin.resolve.calls.inference.returnTypeOrNothing
@@ -53,6 +54,10 @@ internal class KtFe10DescSamConstructorSymbol(
override val origin: KtSymbolOrigin override val origin: KtSymbolOrigin
get() = withValidityAssertion { expandedDescriptor.getSymbolOrigin(analysisContext) } get() = withValidityAssertion { expandedDescriptor.getSymbolOrigin(analysisContext) }
override val typeParameters: List<KtTypeParameterSymbol>
get() = withValidityAssertion { descriptor.typeParameters.map { KtFe10DescTypeParameterSymbol(it, analysisContext) } }
override fun createPointer(): KtSymbolPointer<KtSamConstructorSymbol> = withValidityAssertion { override fun createPointer(): KtSymbolPointer<KtSamConstructorSymbol> = withValidityAssertion {
val pointerByPsi = KtPsiBasedSymbolPointer.createForSymbolFromSource(this) val pointerByPsi = KtPsiBasedSymbolPointer.createForSymbolFromSource(this)
if (pointerByPsi != null) { if (pointerByPsi != null) {
@@ -18,6 +18,7 @@ import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer
import org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeToken import org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeToken
import org.jetbrains.kotlin.analysis.api.types.KtType import org.jetbrains.kotlin.analysis.api.types.KtType
import org.jetbrains.kotlin.analysis.api.lifetime.withValidityAssertion import org.jetbrains.kotlin.analysis.api.lifetime.withValidityAssertion
import org.jetbrains.kotlin.analysis.api.symbols.KtTypeParameterSymbol
import org.jetbrains.kotlin.analysis.low.level.api.fir.api.LLFirResolveSession import org.jetbrains.kotlin.analysis.low.level.api.fir.api.LLFirResolveSession
import org.jetbrains.kotlin.fir.resolve.getHasStableParameterNames import org.jetbrains.kotlin.fir.resolve.getHasStableParameterNames
import org.jetbrains.kotlin.fir.symbols.impl.FirNamedFunctionSymbol import org.jetbrains.kotlin.fir.symbols.impl.FirNamedFunctionSymbol
@@ -59,6 +60,9 @@ internal class KtFirSamConstructorSymbol(
override val callableIdIfNonLocal: CallableId? get() = withValidityAssertion { firSymbol.getCallableIdIfNonLocal() } override val callableIdIfNonLocal: CallableId? get() = withValidityAssertion { firSymbol.getCallableIdIfNonLocal() }
override val typeParameters: List<KtTypeParameterSymbol>
get() = withValidityAssertion { firSymbol.createKtTypeParameters(builder) }
override fun createPointer(): KtSymbolPointer<KtSamConstructorSymbol> { override fun createPointer(): KtSymbolPointer<KtSamConstructorSymbol> {
val callableId = firSymbol.callableId val callableId = firSymbol.callableId
return KtFirSamConstructorSymbolPointer(ClassId(callableId.packageName, callableId.callableName)) return KtFirSamConstructorSymbolPointer(ClassId(callableId.packageName, callableId.callableName))
@@ -8,11 +8,12 @@ package org.jetbrains.kotlin.analysis.api.symbols
import org.jetbrains.kotlin.analysis.api.symbols.markers.KtAnnotatedSymbol import org.jetbrains.kotlin.analysis.api.symbols.markers.KtAnnotatedSymbol
import org.jetbrains.kotlin.analysis.api.symbols.markers.KtPossibleMemberSymbol import org.jetbrains.kotlin.analysis.api.symbols.markers.KtPossibleMemberSymbol
import org.jetbrains.kotlin.analysis.api.symbols.markers.KtSymbolWithKind import org.jetbrains.kotlin.analysis.api.symbols.markers.KtSymbolWithKind
import org.jetbrains.kotlin.analysis.api.symbols.markers.KtSymbolWithTypeParameters
import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer
import org.jetbrains.kotlin.analysis.api.types.KtType import org.jetbrains.kotlin.analysis.api.types.KtType
import org.jetbrains.kotlin.name.CallableId import org.jetbrains.kotlin.name.CallableId
public abstract class KtCallableSymbol : KtSymbol, KtSymbolWithKind, KtAnnotatedSymbol, KtPossibleMemberSymbol, KtDeclarationSymbol { public abstract class KtCallableSymbol : KtSymbolWithKind, KtAnnotatedSymbol, KtPossibleMemberSymbol, KtDeclarationSymbol {
public abstract val callableIdIfNonLocal: CallableId? public abstract val callableIdIfNonLocal: CallableId?
public abstract val returnType: KtType public abstract val returnType: KtType
@@ -5,6 +5,7 @@
package org.jetbrains.kotlin.analysis.api.symbols package org.jetbrains.kotlin.analysis.api.symbols
import org.jetbrains.kotlin.analysis.api.lifetime.withValidityAssertion
import org.jetbrains.kotlin.analysis.api.symbols.markers.* import org.jetbrains.kotlin.analysis.api.symbols.markers.*
import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer
import org.jetbrains.kotlin.analysis.api.types.KtType import org.jetbrains.kotlin.analysis.api.types.KtType
@@ -21,6 +22,9 @@ public val KtClassifierSymbol.nameOrAnonymous: Name
public abstract class KtTypeParameterSymbol : KtClassifierSymbol(), KtNamedSymbol { public abstract class KtTypeParameterSymbol : KtClassifierSymbol(), KtNamedSymbol {
abstract override fun createPointer(): KtSymbolPointer<KtTypeParameterSymbol> abstract override fun createPointer(): KtSymbolPointer<KtTypeParameterSymbol>
final override val typeParameters: List<KtTypeParameterSymbol>
get() = withValidityAssertion { emptyList() }
public abstract val upperBounds: List<KtType> public abstract val upperBounds: List<KtType>
public abstract val variance: Variance public abstract val variance: Variance
public abstract val isReified: Boolean public abstract val isReified: Boolean
@@ -33,7 +37,6 @@ public sealed class KtClassLikeSymbol : KtClassifierSymbol(), KtSymbolWithKind,
} }
public abstract class KtTypeAliasSymbol : KtClassLikeSymbol(), public abstract class KtTypeAliasSymbol : KtClassLikeSymbol(),
KtSymbolWithTypeParameters,
KtSymbolWithVisibility, KtSymbolWithVisibility,
KtNamedSymbol, KtNamedSymbol,
KtAnnotatedSymbol { KtAnnotatedSymbol {
@@ -64,11 +67,13 @@ public abstract class KtAnonymousObjectSymbol : KtClassOrObjectSymbol() {
final override val symbolKind: KtSymbolKind get() = KtSymbolKind.LOCAL final override val symbolKind: KtSymbolKind get() = KtSymbolKind.LOCAL
final override val name: Name? get() = null final override val name: Name? get() = null
final override val typeParameters: List<KtTypeParameterSymbol>
get() = withValidityAssertion { emptyList() }
abstract override fun createPointer(): KtSymbolPointer<KtAnonymousObjectSymbol> abstract override fun createPointer(): KtSymbolPointer<KtAnonymousObjectSymbol>
} }
public abstract class KtNamedClassOrObjectSymbol : KtClassOrObjectSymbol(), public abstract class KtNamedClassOrObjectSymbol : KtClassOrObjectSymbol(),
KtSymbolWithTypeParameters,
KtSymbolWithModality, KtSymbolWithModality,
KtSymbolWithVisibility, KtSymbolWithVisibility,
KtNamedSymbol { KtNamedSymbol {
@@ -5,8 +5,10 @@
package org.jetbrains.kotlin.analysis.api.symbols package org.jetbrains.kotlin.analysis.api.symbols
import org.jetbrains.kotlin.analysis.api.symbols.markers.KtSymbolWithTypeParameters
/** /**
* Represents a symbol of declaration which can be directly expressed in source code. * Represents a symbol of declaration which can be directly expressed in source code.
* Eg, classes, type parameters or functions ar [KtDeclarationSymbol], but files and packages are not * Eg, classes, type parameters or functions ar [KtDeclarationSymbol], but files and packages are not
*/ */
public sealed interface KtDeclarationSymbol : KtSymbol public sealed interface KtDeclarationSymbol : KtSymbol, KtSymbolWithTypeParameters
@@ -5,6 +5,7 @@
package org.jetbrains.kotlin.analysis.api.symbols package org.jetbrains.kotlin.analysis.api.symbols
import org.jetbrains.kotlin.analysis.api.lifetime.withValidityAssertion
import org.jetbrains.kotlin.analysis.api.symbols.markers.* import org.jetbrains.kotlin.analysis.api.symbols.markers.*
import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer
import org.jetbrains.kotlin.analysis.api.types.KtType import org.jetbrains.kotlin.analysis.api.types.KtType
@@ -28,6 +29,9 @@ public abstract class KtAnonymousFunctionSymbol : KtFunctionLikeSymbol() {
final override val symbolKind: KtSymbolKind get() = KtSymbolKind.LOCAL final override val symbolKind: KtSymbolKind get() = KtSymbolKind.LOCAL
final override val callableIdIfNonLocal: CallableId? get() = null final override val callableIdIfNonLocal: CallableId? get() = null
final override val typeParameters: List<KtTypeParameterSymbol>
get() = withValidityAssertion { emptyList() }
abstract override fun createPointer(): KtSymbolPointer<KtAnonymousFunctionSymbol> abstract override fun createPointer(): KtSymbolPointer<KtAnonymousFunctionSymbol>
} }
@@ -40,7 +44,6 @@ public abstract class KtSamConstructorSymbol : KtFunctionLikeSymbol(), KtNamedSy
public abstract class KtFunctionSymbol : KtFunctionLikeSymbol(), public abstract class KtFunctionSymbol : KtFunctionLikeSymbol(),
KtNamedSymbol, KtNamedSymbol,
KtPossibleMemberSymbol, KtPossibleMemberSymbol,
KtSymbolWithTypeParameters,
KtSymbolWithModality, KtSymbolWithModality,
KtSymbolWithVisibility, KtSymbolWithVisibility,
KtAnnotatedSymbol { KtAnnotatedSymbol {
@@ -64,8 +67,7 @@ public abstract class KtFunctionSymbol : KtFunctionLikeSymbol(),
public abstract class KtConstructorSymbol : KtFunctionLikeSymbol(), public abstract class KtConstructorSymbol : KtFunctionLikeSymbol(),
KtPossibleMemberSymbol, KtPossibleMemberSymbol,
KtAnnotatedSymbol, KtAnnotatedSymbol,
KtSymbolWithVisibility, KtSymbolWithVisibility {
KtSymbolWithTypeParameters {
public abstract val isPrimary: Boolean public abstract val isPrimary: Boolean
public abstract val containingClassIdIfNonLocal: ClassId? public abstract val containingClassIdIfNonLocal: ClassId?
@@ -5,6 +5,7 @@
package org.jetbrains.kotlin.analysis.api.symbols package org.jetbrains.kotlin.analysis.api.symbols
import org.jetbrains.kotlin.analysis.api.lifetime.withValidityAssertion
import org.jetbrains.kotlin.analysis.api.symbols.markers.* import org.jetbrains.kotlin.analysis.api.symbols.markers.*
import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer
@@ -17,6 +18,9 @@ public sealed class KtPropertyAccessorSymbol : KtFunctionLikeSymbol(),
final override val isExtension: Boolean get() = false final override val isExtension: Boolean get() = false
final override val typeParameters: List<KtTypeParameterSymbol>
get() = withValidityAssertion { emptyList() }
public abstract val isDefault: Boolean public abstract val isDefault: Boolean
public abstract val isInline: Boolean public abstract val isInline: Boolean
public abstract val isOverride: Boolean public abstract val isOverride: Boolean
@@ -7,6 +7,7 @@ package org.jetbrains.kotlin.analysis.api.symbols
import com.intellij.psi.PsiElement import com.intellij.psi.PsiElement
import org.jetbrains.kotlin.analysis.api.* import org.jetbrains.kotlin.analysis.api.*
import org.jetbrains.kotlin.analysis.api.lifetime.withValidityAssertion
import org.jetbrains.kotlin.builtins.StandardNames import org.jetbrains.kotlin.builtins.StandardNames
import org.jetbrains.kotlin.analysis.api.symbols.markers.* import org.jetbrains.kotlin.analysis.api.symbols.markers.*
import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer
@@ -42,6 +43,9 @@ public abstract class KtBackingFieldSymbol : KtVariableLikeSymbol() {
final override val isExtension: Boolean get() = false final override val isExtension: Boolean get() = false
final override val receiverType: KtType? get() = null final override val receiverType: KtType? get() = null
final override val typeParameters: List<KtTypeParameterSymbol>
get() = withValidityAssertion { emptyList() }
abstract override fun createPointer(): KtSymbolPointer<KtVariableLikeSymbol> abstract override fun createPointer(): KtSymbolPointer<KtVariableLikeSymbol>
public companion object { public companion object {
@@ -55,6 +59,9 @@ public abstract class KtEnumEntrySymbol : KtVariableLikeSymbol(), KtSymbolWithMe
final override val isExtension: Boolean get() = false final override val isExtension: Boolean get() = false
final override val receiverType: KtType? get() = null final override val receiverType: KtType? get() = null
final override val typeParameters: List<KtTypeParameterSymbol>
get() = withValidityAssertion { emptyList() }
//todo reduntant, remove //todo reduntant, remove
public abstract val containingEnumClassIdIfNonLocal: ClassId? public abstract val containingEnumClassIdIfNonLocal: ClassId?
@@ -75,6 +82,10 @@ public abstract class KtJavaFieldSymbol :
final override val symbolKind: KtSymbolKind get() = KtSymbolKind.CLASS_MEMBER final override val symbolKind: KtSymbolKind get() = KtSymbolKind.CLASS_MEMBER
final override val isExtension: Boolean get() = false final override val isExtension: Boolean get() = false
final override val receiverType: KtType? get() = null final override val receiverType: KtType? get() = null
final override val typeParameters: List<KtTypeParameterSymbol>
get() = withValidityAssertion { emptyList() }
public abstract val isStatic: Boolean public abstract val isStatic: Boolean
abstract override fun createPointer(): KtSymbolPointer<KtJavaFieldSymbol> abstract override fun createPointer(): KtSymbolPointer<KtJavaFieldSymbol>
@@ -82,7 +93,6 @@ public abstract class KtJavaFieldSymbol :
public sealed class KtPropertySymbol : KtVariableSymbol(), public sealed class KtPropertySymbol : KtVariableSymbol(),
KtPossibleMemberSymbol, KtPossibleMemberSymbol,
KtSymbolWithTypeParameters,
KtSymbolWithModality, KtSymbolWithModality,
KtSymbolWithVisibility, KtSymbolWithVisibility,
KtAnnotatedSymbol, KtAnnotatedSymbol,
@@ -142,6 +152,9 @@ public abstract class KtLocalVariableSymbol : KtVariableSymbol(), KtSymbolWithKi
final override val isExtension: Boolean get() = false final override val isExtension: Boolean get() = false
final override val receiverType: KtType? get() = null final override val receiverType: KtType? get() = null
final override val typeParameters: List<KtTypeParameterSymbol>
get() = withValidityAssertion { emptyList() }
abstract override fun createPointer(): KtSymbolPointer<KtLocalVariableSymbol> abstract override fun createPointer(): KtSymbolPointer<KtLocalVariableSymbol>
} }
@@ -151,6 +164,9 @@ public abstract class KtValueParameterSymbol : KtVariableLikeSymbol(), KtSymbolW
final override val isExtension: Boolean get() = false final override val isExtension: Boolean get() = false
final override val receiverType: KtType? get() = null final override val receiverType: KtType? get() = null
final override val typeParameters: List<KtTypeParameterSymbol>
get() = withValidityAssertion { emptyList() }
/** /**
* Whether this value parameter has a default value or not. * Whether this value parameter has a default value or not.
*/ */
@@ -10,6 +10,7 @@ KtJavaFieldSymbol:
receiverType: null receiverType: null
returnType: ft<kotlin/CharArray, kotlin/CharArray?> returnType: ft<kotlin/CharArray, kotlin/CharArray?>
symbolKind: CLASS_MEMBER symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Private visibility: Private
getDispatchReceiver(): java/lang/String getDispatchReceiver(): java/lang/String
getContainingModule: KtSdkModule "SDK jdk" getContainingModule: KtSdkModule "SDK jdk"
@@ -27,6 +28,7 @@ KtJavaFieldSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: CLASS_MEMBER symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Private visibility: Private
getDispatchReceiver(): java/lang/String getDispatchReceiver(): java/lang/String
getContainingModule: KtSdkModule "SDK jdk" getContainingModule: KtSdkModule "SDK jdk"
@@ -70,6 +72,7 @@ KtJavaFieldSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: CLASS_MEMBER symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Private visibility: Private
getDispatchReceiver(): java/lang/String getDispatchReceiver(): java/lang/String
getContainingModule: KtSdkModule "SDK jdk" getContainingModule: KtSdkModule "SDK jdk"
@@ -8,6 +8,7 @@ KtEnumEntrySymbol:
receiverType: null receiverType: null
returnType: kotlin/LazyThreadSafetyMode returnType: kotlin/LazyThreadSafetyMode
symbolKind: CLASS_MEMBER symbolKind: CLASS_MEMBER
typeParameters: []
getContainingModule: Could not render due to kotlin.NotImplementedError: An operation is not implemented: enum entry SYNCHRONIZED getContainingModule: Could not render due to kotlin.NotImplementedError: An operation is not implemented: enum entry SYNCHRONIZED
deprecationStatus: null deprecationStatus: null
@@ -8,5 +8,6 @@ KtEnumEntrySymbol:
receiverType: null receiverType: null
returnType: kotlin/LazyThreadSafetyMode returnType: kotlin/LazyThreadSafetyMode
symbolKind: CLASS_MEMBER symbolKind: CLASS_MEMBER
typeParameters: []
getContainingModule: KtLibraryModule "Library kotlin-stdlib" getContainingModule: KtLibraryModule "Library kotlin-stdlib"
deprecationStatus: null deprecationStatus: null
@@ -10,6 +10,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/String returnType: kotlin/String
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -25,6 +26,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -67,6 +67,7 @@ KtAnonymousObjectSymbol:
java/lang/Runnable java/lang/Runnable
] ]
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -67,6 +67,7 @@ KtAnonymousObjectSymbol:
java/lang/Runnable java/lang/Runnable
] ]
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -12,6 +12,7 @@ KtPropertyGetterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: ACCESSOR symbolKind: ACCESSOR
typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
@@ -29,6 +30,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -47,6 +49,7 @@ KtPropertySetterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Unit returnType: kotlin/Unit
symbolKind: ACCESSOR symbolKind: ACCESSOR
typeParameters: []
valueParameters: [ valueParameters: [
KtValueParameterSymbol(value) KtValueParameterSymbol(value)
] ]
@@ -27,6 +27,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -61,6 +62,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -76,6 +78,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/String returnType: kotlin/String
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -6,6 +6,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T name: T
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -18,6 +19,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: R name: R
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -10,6 +10,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -25,6 +26,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -40,6 +42,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -95,6 +98,7 @@ KtAnonymousFunctionSymbol:
receiverType: null receiverType: null
returnType: MyColor returnType: MyColor
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
valueParameters: [] valueParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -141,6 +145,7 @@ KtAnonymousFunctionSymbol:
receiverType: null receiverType: null
returnType: MyColor returnType: MyColor
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
valueParameters: [] valueParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -8,6 +8,7 @@ KtEnumEntrySymbol:
receiverType: null receiverType: null
returnType: X returnType: X
symbolKind: CLASS_MEMBER symbolKind: CLASS_MEMBER
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -21,6 +22,7 @@ KtEnumEntrySymbol:
receiverType: null receiverType: null
returnType: X returnType: X
symbolKind: CLASS_MEMBER symbolKind: CLASS_MEMBER
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -10,6 +10,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/String returnType: kotlin/String
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -46,6 +47,7 @@ KtPropertyGetterSymbol:
receiverType: null receiverType: null
returnType: kotlin/String returnType: kotlin/String
symbolKind: ACCESSOR symbolKind: ACCESSOR
typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
getDispatchReceiver(): Style.SHEET getDispatchReceiver(): Style.SHEET
@@ -95,6 +97,7 @@ KtEnumEntrySymbol:
receiverType: null receiverType: null
returnType: Style returnType: Style
symbolKind: CLASS_MEMBER symbolKind: CLASS_MEMBER
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -10,6 +10,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/String returnType: kotlin/String
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -46,6 +47,7 @@ KtPropertyGetterSymbol:
receiverType: null receiverType: null
returnType: kotlin/String returnType: kotlin/String
symbolKind: ACCESSOR symbolKind: ACCESSOR
typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
@@ -94,6 +96,7 @@ KtEnumEntrySymbol:
receiverType: null receiverType: null
returnType: Style returnType: Style
symbolKind: CLASS_MEMBER symbolKind: CLASS_MEMBER
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -8,6 +8,7 @@ KtLocalVariableSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -10,6 +10,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -3,6 +3,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: X name: X
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -22,6 +23,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: X returnType: X
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -10,6 +10,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -10,6 +10,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -23,6 +24,7 @@ KtLocalVariableSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -35,6 +37,7 @@ KtAnonymousFunctionSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
valueParameters: [ valueParameters: [
KtValueParameterSymbol(a) KtValueParameterSymbol(a)
] ]
@@ -51,6 +54,7 @@ KtLocalVariableSymbol:
receiverType: null receiverType: null
returnType: kotlin/Function1<kotlin/Int, kotlin/Int> returnType: kotlin/Function1<kotlin/Int, kotlin/Int>
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -66,6 +70,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -79,6 +84,7 @@ KtLocalVariableSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -91,6 +97,7 @@ KtAnonymousFunctionSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
valueParameters: [ valueParameters: [
KtValueParameterSymbol(a) KtValueParameterSymbol(a)
] ]
@@ -107,6 +114,7 @@ KtLocalVariableSymbol:
receiverType: null receiverType: null
returnType: kotlin/Function1<kotlin/Int, kotlin/Int> returnType: kotlin/Function1<kotlin/Int, kotlin/Int>
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -120,6 +128,7 @@ KtLocalVariableSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -132,6 +141,7 @@ KtAnonymousFunctionSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
valueParameters: [ valueParameters: [
KtValueParameterSymbol(it) KtValueParameterSymbol(it)
] ]
@@ -175,6 +185,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Function1<kotlin/Int, kotlin/Int> returnType: kotlin/Function1<kotlin/Int, kotlin/Int>
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -48,6 +48,7 @@ KtPropertyGetterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: ACCESSOR symbolKind: ACCESSOR
typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
getDispatchReceiver(): Foo getDispatchReceiver(): Foo
@@ -66,6 +67,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -87,6 +89,7 @@ KtPropertySetterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Unit returnType: kotlin/Unit
symbolKind: ACCESSOR symbolKind: ACCESSOR
typeParameters: []
valueParameters: [ valueParameters: [
KtValueParameterSymbol(value) KtValueParameterSymbol(value)
] ]
@@ -48,6 +48,7 @@ KtPropertyGetterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: ACCESSOR symbolKind: ACCESSOR
typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
@@ -65,6 +66,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -86,6 +88,7 @@ KtPropertySetterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Unit returnType: kotlin/Unit
symbolKind: ACCESSOR symbolKind: ACCESSOR
typeParameters: []
valueParameters: [ valueParameters: [
KtValueParameterSymbol(value) KtValueParameterSymbol(value)
] ]
@@ -8,6 +8,7 @@ KtLocalVariableSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -45,6 +45,7 @@ KtPropertyGetterSymbol:
receiverType: kotlin/Int receiverType: kotlin/Int
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: ACCESSOR symbolKind: ACCESSOR
typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
getDispatchReceiver(): A getDispatchReceiver(): A
@@ -45,6 +45,7 @@ KtPropertyGetterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: ACCESSOR symbolKind: ACCESSOR
typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
@@ -3,6 +3,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T name: T
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -15,6 +16,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T1 name: T1
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -51,6 +53,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T2 name: T2
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -87,6 +90,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T3 name: T3
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -99,6 +103,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T4 name: T4
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -111,6 +116,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T5 name: T5
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -147,6 +153,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T6 name: T6
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -3,6 +3,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T name: T
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -15,6 +16,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T1 name: T1
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -51,6 +53,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T2 name: T2
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -87,6 +90,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T3 name: T3
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -99,6 +103,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T4 name: T4
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -111,6 +116,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T5 name: T5
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -147,6 +153,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T6 name: T6
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -44,6 +44,7 @@ KtPropertyGetterSymbol:
receiverType: kotlin/Int receiverType: kotlin/Int
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: ACCESSOR symbolKind: ACCESSOR
typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
@@ -44,6 +44,7 @@ KtPropertyGetterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: ACCESSOR symbolKind: ACCESSOR
typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
@@ -3,6 +3,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: T name: T
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -39,6 +40,7 @@ KtTypeParameterSymbol:
isReified: false isReified: false
name: Z name: Z
origin: SOURCE origin: SOURCE
typeParameters: []
upperBounds: [ upperBounds: [
kotlin/Any? kotlin/Any?
] ]
@@ -135,6 +135,7 @@ KtValueParameterSymbol:
psi: KtAnnotationEntry psi: KtAnnotationEntry
] @R|Anno2|() I ] @R|Anno2|() I
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -135,6 +135,7 @@ KtValueParameterSymbol:
psi: KtAnnotationEntry psi: KtAnnotationEntry
] @R|Anno2|() I ] @R|Anno2|() I
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -10,6 +10,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -52,6 +53,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Float? returnType: kotlin/Float?
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -94,6 +96,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Any returnType: kotlin/Any
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -136,6 +139,7 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: ERROR_TYPE returnType: ERROR_TYPE
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -8,5 +8,6 @@ KtBackingFieldSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -10,5 +10,6 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -10,5 +10,6 @@ KtValueParameterSymbol:
receiverType: null receiverType: null
returnType: kotlin/Int returnType: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main" getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null deprecationStatus: null
@@ -8,6 +8,7 @@ KtSamConstructorSymbol:
receiverType: null receiverType: null
returnType: java/lang/Runnable returnType: java/lang/Runnable
symbolKind: SAM_CONSTRUCTOR symbolKind: SAM_CONSTRUCTOR
typeParameters: []
valueParameters: [ valueParameters: [
KtValueParameterSymbol(function) KtValueParameterSymbol(function)
] ]