[AA] Expand functionality of TestScopeRenderer.

- Add package and constructor listings
- Add single-scope renderForTests() implementation, including a lambda
  to provide additional information about each symbol
- Remove special handling for empty scopes (interfered with single-scope
  rendering)

^KT-59329
This commit is contained in:
Justin Paupore
2023-06-15 18:02:46 -07:00
committed by Ilya Kirillov
parent f01b824751
commit fa0209a322
23 changed files with 810 additions and 100 deletions
@@ -4,32 +4,59 @@ implicit receivers:
owner symbol: KtFirFunctionSymbol
scopes:
LocalScope, index = 0, empty
LocalScope, index = 0
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 1
packages: 0
classifiers: 0
callables: 4
fun memberInContext()
fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int
fun toString(): kotlin.String
constructors: 1
constructor()
LocalScope, index = 2, empty
LocalScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
ExplicitSimpleImportingScope, index = 3, empty
ExplicitSimpleImportingScope, index = 3
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 4
packages: 6
META-INF
java
javax
kotlin
org
sun
classifiers: 1
class Context
callables: 1
context(Context)
fun test()
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultSimpleImportingScope, index = 6
ExplicitStarImportingScope, index = 7, empty
ExplicitStarImportingScope, index = 7
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
@@ -7,9 +7,14 @@ implicit receivers:
owner symbol: KtFirFunctionSymbol
scopes:
LocalScope, index = 0, empty
LocalScope, index = 0
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 1
packages: 0
classifiers: 0
callables: 4
KtFunctionSymbol:
@@ -141,12 +146,58 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Public
constructors: 1
KtConstructorSymbol:
annotationsList: []
callableIdIfNonLocal: null
containingClassIdIfNonLocal: Context
contextReceivers: []
hasStableParameterNames: true
isExtension: false
isPrimary: true
origin: SOURCE_MEMBER_GENERATED
receiverParameter: null
returnType: KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: Context
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
LocalScope, index = 2, empty
LocalScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
ExplicitSimpleImportingScope, index = 3, empty
ExplicitSimpleImportingScope, index = 3
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 4
packages: 6
KtPackageSymbol:
fqName: META-INF
origin: SOURCE
KtPackageSymbol:
fqName: java
origin: SOURCE
KtPackageSymbol:
fqName: javax
origin: SOURCE
KtPackageSymbol:
fqName: kotlin
origin: SOURCE
KtPackageSymbol:
fqName: org
origin: SOURCE
KtPackageSymbol:
fqName: sun
origin: SOURCE
classifiers: 1
KtNamedClassOrObjectSymbol:
annotationsList: []
@@ -206,12 +257,17 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Public
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultSimpleImportingScope, index = 6
ExplicitStarImportingScope, index = 7, empty
ExplicitStarImportingScope, index = 7
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
@@ -7,11 +7,20 @@ implicit receivers:
owner symbol: KtFirNamedClassOrObjectSymbol
scopes:
LocalScope, index = 0, empty
LocalScope, index = 0
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 1, empty
LocalScope, index = 1
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 2
packages: 0
classifiers: 1
companion object
callables: 11
@@ -26,39 +35,63 @@ scopes:
val ordinal: kotlin.Int
fun getDeclaringClass(): java.lang.Class<E?>?
fun finalize()
constructors: 1
constructor()
StaticMemberScope, index = 3
packages: 0
classifiers: 0
callables: 4
A
fun values(): kotlin.Array<E>
fun valueOf(value: kotlin.String): E
val entries: kotlin.enums.EnumEntries<E>
constructors: 0
StaticMemberScope, index = 4
packages: 0
classifiers: 1
companion object
callables: 0
constructors: 0
TypeScope, index = 5
packages: 0
classifiers: 0
callables: 3
fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int
fun toString(): kotlin.String
constructors: 0
ExplicitSimpleImportingScope, index = 6, empty
ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 7
packages: 6
META-INF
java
javax
kotlin
org
sun
classifiers: 1
enum class E
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
DefaultSimpleImportingScope, index = 9
ExplicitStarImportingScope, index = 10, empty
ExplicitStarImportingScope, index = 10
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 11
@@ -13,11 +13,20 @@ implicit receivers:
owner symbol: KtFirNamedClassOrObjectSymbol
scopes:
LocalScope, index = 0, empty
LocalScope, index = 0
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 1, empty
LocalScope, index = 1
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 2
packages: 0
classifiers: 1
KtNamedClassOrObjectSymbol:
annotationsList: []
@@ -455,8 +464,28 @@ scopes:
typeParameters: []
valueParameters: []
visibility: ProtectedAndPackage
constructors: 1
KtConstructorSymbol:
annotationsList: []
callableIdIfNonLocal: null
containingClassIdIfNonLocal: null
contextReceivers: []
hasStableParameterNames: true
isExtension: false
isPrimary: true
origin: SOURCE_MEMBER_GENERATED
receiverParameter: null
returnType: KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: <anonymous>
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Private
StaticMemberScope, index = 3
packages: 0
classifiers: 0
callables: 4
KtEnumEntrySymbol:
@@ -614,8 +643,10 @@ scopes:
symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Public
constructors: 0
StaticMemberScope, index = 4
packages: 0
classifiers: 1
KtNamedClassOrObjectSymbol:
annotationsList: []
@@ -641,8 +672,10 @@ scopes:
typeParameters: []
visibility: Public
callables: 0
constructors: 0
TypeScope, index = 5
packages: 0
classifiers: 0
callables: 3
KtFunctionSymbol:
@@ -747,10 +780,34 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Public
constructors: 0
ExplicitSimpleImportingScope, index = 6, empty
ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 7
packages: 6
KtPackageSymbol:
fqName: META-INF
origin: SOURCE
KtPackageSymbol:
fqName: java
origin: SOURCE
KtPackageSymbol:
fqName: javax
origin: SOURCE
KtPackageSymbol:
fqName: kotlin
origin: SOURCE
KtPackageSymbol:
fqName: org
origin: SOURCE
KtPackageSymbol:
fqName: sun
origin: SOURCE
classifiers: 1
KtNamedClassOrObjectSymbol:
annotationsList: []
@@ -781,12 +838,17 @@ scopes:
typeParameters: []
visibility: Public
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
DefaultSimpleImportingScope, index = 9
ExplicitStarImportingScope, index = 10, empty
ExplicitStarImportingScope, index = 10
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 11
@@ -7,13 +7,26 @@ implicit receivers:
owner symbol: KtFirAnonymousFunctionSymbol
scopes:
TypeScope, index = 0, empty
TypeScope, index = 0
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 1, empty
LocalScope, index = 1
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 2, empty
LocalScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 3
packages: 0
classifiers: 0
callables: 5
fun add(e: T)
@@ -21,27 +34,56 @@ scopes:
fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int
fun toString(): kotlin.String
constructors: 0
LocalScope, index = 4, empty
LocalScope, index = 4
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 5, empty
LocalScope, index = 5
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 6, empty
LocalScope, index = 6
packages: 0
classifiers: 0
callables: 0
constructors: 0
ExplicitSimpleImportingScope, index = 7, empty
ExplicitSimpleImportingScope, index = 7
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 8
packages: 6
META-INF
java
javax
kotlin
org
sun
classifiers: 1
interface List<T>
callables: 2
fun <E> buildList(f: List<E>.() -> kotlin.Unit): List<E>
fun test()
constructors: 0
DefaultSimpleImportingScope, index = 9
DefaultSimpleImportingScope, index = 10
ExplicitStarImportingScope, index = 11, empty
ExplicitStarImportingScope, index = 11
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 12
@@ -16,13 +16,26 @@ implicit receivers:
owner symbol: KtFirAnonymousFunctionSymbol
scopes:
TypeScope, index = 0, empty
TypeScope, index = 0
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 1, empty
LocalScope, index = 1
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 2, empty
LocalScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 3
packages: 0
classifiers: 0
callables: 5
KtFunctionSymbol:
@@ -221,16 +234,52 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Public
constructors: 0
LocalScope, index = 4, empty
LocalScope, index = 4
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 5, empty
LocalScope, index = 5
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 6, empty
LocalScope, index = 6
packages: 0
classifiers: 0
callables: 0
constructors: 0
ExplicitSimpleImportingScope, index = 7, empty
ExplicitSimpleImportingScope, index = 7
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 8
packages: 6
KtPackageSymbol:
fqName: META-INF
origin: SOURCE
KtPackageSymbol:
fqName: java
origin: SOURCE
KtPackageSymbol:
fqName: javax
origin: SOURCE
KtPackageSymbol:
fqName: kotlin
origin: SOURCE
KtPackageSymbol:
fqName: org
origin: SOURCE
KtPackageSymbol:
fqName: sun
origin: SOURCE
classifiers: 1
KtNamedClassOrObjectSymbol:
annotationsList: []
@@ -352,12 +401,17 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Public
constructors: 0
DefaultSimpleImportingScope, index = 9
DefaultSimpleImportingScope, index = 10
ExplicitStarImportingScope, index = 11, empty
ExplicitStarImportingScope, index = 11
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 12
@@ -5,13 +5,20 @@ implicit receivers:
scopes:
LocalScope, index = 0
packages: 0
classifiers: 0
callables: 1
val localInX: kotlin.Int
constructors: 0
LocalScope, index = 1, empty
LocalScope, index = 1
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 2
packages: 0
classifiers: 0
callables: 5
val propertyInY: kotlin.Int
@@ -19,27 +26,51 @@ scopes:
fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int
fun toString(): kotlin.String
constructors: 1
constructor()
LocalScope, index = 3
packages: 0
classifiers: 1
class Y
callables: 1
val localInZ: kotlin.Int
constructors: 0
LocalScope, index = 4, empty
LocalScope, index = 4
packages: 0
classifiers: 0
callables: 0
constructors: 0
ExplicitSimpleImportingScope, index = 5, empty
ExplicitSimpleImportingScope, index = 5
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 6
packages: 6
META-INF
java
javax
kotlin
org
sun
classifiers: 0
callables: 1
fun z()
constructors: 0
DefaultSimpleImportingScope, index = 7
DefaultSimpleImportingScope, index = 8
ExplicitStarImportingScope, index = 9, empty
ExplicitStarImportingScope, index = 9
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 10
@@ -8,6 +8,7 @@ implicit receivers:
scopes:
LocalScope, index = 0
packages: 0
classifiers: 0
callables: 1
KtLocalVariableSymbol:
@@ -25,10 +26,16 @@ scopes:
type: kotlin/Int
symbolKind: LOCAL
typeParameters: []
constructors: 0
LocalScope, index = 1, empty
LocalScope, index = 1
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 2
packages: 0
classifiers: 0
callables: 5
KtKotlinPropertySymbol:
@@ -224,8 +231,28 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Public
constructors: 1
KtConstructorSymbol:
annotationsList: []
callableIdIfNonLocal: null
containingClassIdIfNonLocal: null
contextReceivers: []
hasStableParameterNames: true
isExtension: false
isPrimary: true
origin: SOURCE_MEMBER_GENERATED
receiverParameter: null
returnType: KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: Y
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
LocalScope, index = 3
packages: 0
classifiers: 1
KtNamedClassOrObjectSymbol:
annotationsList: []
@@ -266,12 +293,40 @@ scopes:
type: kotlin/Int
symbolKind: LOCAL
typeParameters: []
constructors: 0
LocalScope, index = 4, empty
LocalScope, index = 4
packages: 0
classifiers: 0
callables: 0
constructors: 0
ExplicitSimpleImportingScope, index = 5, empty
ExplicitSimpleImportingScope, index = 5
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 6
packages: 6
KtPackageSymbol:
fqName: META-INF
origin: SOURCE
KtPackageSymbol:
fqName: java
origin: SOURCE
KtPackageSymbol:
fqName: javax
origin: SOURCE
KtPackageSymbol:
fqName: kotlin
origin: SOURCE
KtPackageSymbol:
fqName: org
origin: SOURCE
KtPackageSymbol:
fqName: sun
origin: SOURCE
classifiers: 0
callables: 1
KtFunctionSymbol:
@@ -301,12 +356,17 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Public
constructors: 0
DefaultSimpleImportingScope, index = 7
DefaultSimpleImportingScope, index = 8
ExplicitStarImportingScope, index = 9, empty
ExplicitStarImportingScope, index = 9
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 10
@@ -11,54 +11,83 @@ implicit receivers:
scopes:
TypeScope, index = 0
packages: 0
classifiers: 0
callables: 4
fun memberInA()
fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int
fun toString(): kotlin.String
constructors: 1
constructor()
LocalScope, index = 1, empty
LocalScope, index = 1
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 2, empty
LocalScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 3
packages: 0
classifiers: 0
callables: 4
fun memberInB()
fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int
fun toString(): kotlin.String
constructors: 1
constructor()
LocalScope, index = 4, empty
LocalScope, index = 4
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 5
packages: 0
classifiers: 0
callables: 1
val localVarA: kotlin.Int
constructors: 0
LocalScope, index = 6
packages: 0
classifiers: 0
callables: 1
lambdaArg: kotlin.String
constructors: 0
LocalScope, index = 7
packages: 0
classifiers: 0
callables: 2
val localVarB: kotlin.Int
fun localFunB()
constructors: 0
LocalScope, index = 8
packages: 0
classifiers: 0
callables: 1
param: kotlin.String?
constructors: 0
TypeParameterScope, index = 9
packages: 0
classifiers: 1
T
callables: 0
constructors: 0
TypeScope, index = 10
packages: 0
classifiers: 2
class NestedInC
class NestedInJavaClass
@@ -67,20 +96,37 @@ scopes:
fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int
fun toString(): kotlin.String
constructors: 1
constructor()
StaticMemberScope, index = 11
packages: 0
classifiers: 1
class NestedInC
callables: 0
constructors: 0
StaticMemberScope, index = 12
packages: 0
classifiers: 1
class NestedInJavaClass
callables: 0
constructors: 0
ExplicitSimpleImportingScope, index = 13, empty
ExplicitSimpleImportingScope, index = 13
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 14
packages: 6
META-INF
java
javax
kotlin
org
sun
classifiers: 3
class A
class B
@@ -90,15 +136,19 @@ scopes:
fun withB(f: B.() -> kotlin.Unit)
fun withJavaClass(f: JavaClass.() -> kotlin.Unit)
fun topLevel(): kotlin.Int
constructors: 0
DefaultSimpleImportingScope, index = 15
DefaultSimpleImportingScope, index = 16
ExplicitStarImportingScope, index = 17, empty
ExplicitStarImportingScope, index = 17
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 18
DefaultStarImportingScope, index = 19
@@ -20,6 +20,7 @@ implicit receivers:
scopes:
TypeScope, index = 0
packages: 0
classifiers: 0
callables: 4
KtFunctionSymbol:
@@ -151,12 +152,40 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Public
constructors: 1
KtConstructorSymbol:
annotationsList: []
callableIdIfNonLocal: null
containingClassIdIfNonLocal: A
contextReceivers: []
hasStableParameterNames: true
isExtension: false
isPrimary: true
origin: SOURCE_MEMBER_GENERATED
receiverParameter: null
returnType: KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: A
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
LocalScope, index = 1, empty
LocalScope, index = 1
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 2, empty
LocalScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 3
packages: 0
classifiers: 0
callables: 4
KtFunctionSymbol:
@@ -288,10 +317,34 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Public
constructors: 1
KtConstructorSymbol:
annotationsList: []
callableIdIfNonLocal: null
containingClassIdIfNonLocal: B
contextReceivers: []
hasStableParameterNames: true
isExtension: false
isPrimary: true
origin: SOURCE_MEMBER_GENERATED
receiverParameter: null
returnType: KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: B
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
LocalScope, index = 4, empty
LocalScope, index = 4
packages: 0
classifiers: 0
callables: 0
constructors: 0
LocalScope, index = 5
packages: 0
classifiers: 0
callables: 1
KtLocalVariableSymbol:
@@ -309,8 +362,10 @@ scopes:
type: kotlin/Int
symbolKind: LOCAL
typeParameters: []
constructors: 0
LocalScope, index = 6
packages: 0
classifiers: 0
callables: 1
KtValueParameterSymbol:
@@ -333,8 +388,10 @@ scopes:
type: kotlin/String
symbolKind: LOCAL
typeParameters: []
constructors: 0
LocalScope, index = 7
packages: 0
classifiers: 0
callables: 2
KtLocalVariableSymbol:
@@ -379,8 +436,10 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Local
constructors: 0
LocalScope, index = 8
packages: 0
classifiers: 0
callables: 1
KtValueParameterSymbol:
@@ -403,8 +462,10 @@ scopes:
type: kotlin/String?
symbolKind: LOCAL
typeParameters: []
constructors: 0
TypeParameterScope, index = 9
packages: 0
classifiers: 1
KtTypeParameterSymbol:
annotationsList: []
@@ -415,8 +476,10 @@ scopes:
upperBounds: []
variance: INVARIANT
callables: 0
constructors: 0
TypeScope, index = 10
packages: 0
classifiers: 2
KtNamedClassOrObjectSymbol:
annotationsList: []
@@ -617,8 +680,28 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Public
constructors: 1
KtConstructorSymbol:
annotationsList: []
callableIdIfNonLocal: null
containingClassIdIfNonLocal: C
contextReceivers: []
hasStableParameterNames: true
isExtension: false
isPrimary: true
origin: SOURCE_MEMBER_GENERATED
receiverParameter: null
returnType: KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: C
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
StaticMemberScope, index = 11
packages: 0
classifiers: 1
KtNamedClassOrObjectSymbol:
annotationsList: []
@@ -644,8 +727,10 @@ scopes:
typeParameters: []
visibility: Public
callables: 0
constructors: 0
StaticMemberScope, index = 12
packages: 0
classifiers: 1
KtNamedClassOrObjectSymbol:
annotationsList: []
@@ -671,10 +756,34 @@ scopes:
typeParameters: []
visibility: PackageVisibility
callables: 0
constructors: 0
ExplicitSimpleImportingScope, index = 13, empty
ExplicitSimpleImportingScope, index = 13
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 14
packages: 6
KtPackageSymbol:
fqName: META-INF
origin: SOURCE
KtPackageSymbol:
fqName: java
origin: SOURCE
KtPackageSymbol:
fqName: javax
origin: SOURCE
KtPackageSymbol:
fqName: kotlin
origin: SOURCE
KtPackageSymbol:
fqName: org
origin: SOURCE
KtPackageSymbol:
fqName: sun
origin: SOURCE
classifiers: 3
KtNamedClassOrObjectSymbol:
annotationsList: []
@@ -944,12 +1053,17 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Public
constructors: 0
DefaultSimpleImportingScope, index = 15
DefaultSimpleImportingScope, index = 16
ExplicitStarImportingScope, index = 17, empty
ExplicitStarImportingScope, index = 17
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 18
@@ -4,9 +4,14 @@ implicit receivers:
owner symbol: KtFirFunctionSymbol
scopes:
LocalScope, index = 0, empty
LocalScope, index = 0
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 1
packages: 0
classifiers: 0
callables: 5
fun getValue(): kotlin.Int?
@@ -15,21 +20,43 @@ scopes:
fun toString(): kotlin.String
val value: kotlin.Int?
get()
constructors: 1
constructor()
LocalScope, index = 2, empty
LocalScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
ExplicitSimpleImportingScope, index = 3, empty
ExplicitSimpleImportingScope, index = 3
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 4
packages: 6
META-INF
java
javax
kotlin
org
sun
classifiers: 0
callables: 1
fun JavaClass.test()
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultSimpleImportingScope, index = 6
ExplicitStarImportingScope, index = 7, empty
ExplicitStarImportingScope, index = 7
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
@@ -7,9 +7,14 @@ implicit receivers:
owner symbol: KtFirFunctionSymbol
scopes:
LocalScope, index = 0, empty
LocalScope, index = 0
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 1
packages: 0
classifiers: 0
callables: 5
KtFunctionSymbol:
@@ -188,12 +193,58 @@ scopes:
symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Public
constructors: 1
KtConstructorSymbol:
annotationsList: []
callableIdIfNonLocal: null
containingClassIdIfNonLocal: JavaClass
contextReceivers: []
hasStableParameterNames: false
isExtension: false
isPrimary: true
origin: JAVA
receiverParameter: null
returnType: KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: JavaClass
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
LocalScope, index = 2, empty
LocalScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
ExplicitSimpleImportingScope, index = 3, empty
ExplicitSimpleImportingScope, index = 3
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 4
packages: 6
KtPackageSymbol:
fqName: META-INF
origin: SOURCE
KtPackageSymbol:
fqName: java
origin: SOURCE
KtPackageSymbol:
fqName: javax
origin: SOURCE
KtPackageSymbol:
fqName: kotlin
origin: SOURCE
KtPackageSymbol:
fqName: org
origin: SOURCE
KtPackageSymbol:
fqName: sun
origin: SOURCE
classifiers: 0
callables: 1
KtFunctionSymbol:
@@ -230,12 +281,17 @@ scopes:
typeParameters: []
valueParameters: []
visibility: Public
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultSimpleImportingScope, index = 6
ExplicitStarImportingScope, index = 7, empty
ExplicitStarImportingScope, index = 7
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8