[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
@@ -16,6 +16,8 @@ import org.jetbrains.kotlin.analysis.api.renderer.types.renderers.KtTypeErrorTyp
import org.jetbrains.kotlin.analysis.api.scopes.KtScope import org.jetbrains.kotlin.analysis.api.scopes.KtScope
import org.jetbrains.kotlin.analysis.api.symbols.DebugSymbolRenderer import org.jetbrains.kotlin.analysis.api.symbols.DebugSymbolRenderer
import org.jetbrains.kotlin.analysis.api.symbols.KtDeclarationSymbol import org.jetbrains.kotlin.analysis.api.symbols.KtDeclarationSymbol
import org.jetbrains.kotlin.analysis.api.symbols.KtPackageSymbol
import org.jetbrains.kotlin.analysis.api.symbols.KtSymbol
import org.jetbrains.kotlin.analysis.api.types.KtType import org.jetbrains.kotlin.analysis.api.types.KtType
import org.jetbrains.kotlin.analysis.utils.printer.PrettyPrinter import org.jetbrains.kotlin.analysis.utils.printer.PrettyPrinter
import org.jetbrains.kotlin.analysis.utils.printer.prettyPrint import org.jetbrains.kotlin.analysis.utils.printer.prettyPrint
@@ -44,6 +46,15 @@ internal object TestScopeRenderer {
} }
} }
context(KtAnalysisSession)
fun PrettyPrinter.renderForTests(
scope: KtScope,
printPretty: Boolean,
additionalSymbolInfo: KtAnalysisSession.(KtSymbol) -> String? = { null }
) {
renderScopeMembers(scope, printPretty, additionalSymbolInfo)
}
context (KtAnalysisSession) context (KtAnalysisSession)
private fun renderType( private fun renderType(
type: KtType, type: KtType,
@@ -63,50 +74,70 @@ internal object TestScopeRenderer {
fullyPrintScope: (KtScopeKind) -> Boolean, fullyPrintScope: (KtScopeKind) -> Boolean,
) { ) {
for (scopeWithKind in scopeContext.scopes) { for (scopeWithKind in scopeContext.scopes) {
appendLine(renderForTests(scopeWithKind.scope, scopeWithKind.kind, printPretty, fullyPrintScope)) renderForTests(scopeWithKind.scope, scopeWithKind.kind, printPretty, fullyPrintScope)
appendLine()
} }
} }
context (KtAnalysisSession) context (KtAnalysisSession)
private fun renderForTests( private fun PrettyPrinter.renderForTests(
scope: KtScope, scope: KtScope,
scopeKind: KtScopeKind, scopeKind: KtScopeKind,
printPretty: Boolean, printPretty: Boolean,
fullyPrintScope: (KtScopeKind) -> Boolean, fullyPrintScope: (KtScopeKind) -> Boolean,
): String = prettyPrint { ) {
append("${scopeKind::class.simpleName}, index = ${scopeKind.indexInTower}") appendLine("${scopeKind::class.simpleName}, index = ${scopeKind.indexInTower}")
if (!fullyPrintScope(scopeKind)) { if (!fullyPrintScope(scopeKind)) {
appendLine() return
return@prettyPrint
} }
renderScopeMembers(scope, printPretty) withIndent {
renderScopeMembers(scope, printPretty) { null }
}
} }
context (KtAnalysisSession) context (KtAnalysisSession)
private fun PrettyPrinter.renderScopeMembers(scope: KtScope, printPretty: Boolean) { private fun PrettyPrinter.renderScopeMembers(
val callables = scope.getCallableSymbols().toList() scope: KtScope,
val classifiers = scope.getClassifierSymbols().toList() printPretty: Boolean,
val isEmpty = callables.isEmpty() && classifiers.isEmpty() additionalSymbolInfo: KtAnalysisSession.(KtSymbol) -> String?,
if (isEmpty) { ) {
appendLine(", empty") fun <T : KtSymbol> List<T>.renderAll(
} else { symbolKind: String,
appendLine() renderPrettySymbol: KtAnalysisSession.(T) -> String,
) {
appendLine("$symbolKind: $size")
withIndent { withIndent {
appendLine("classifiers: ${classifiers.size}") forEach {
withIndent { classifiers.forEach { appendLine(renderSymbol(it, printPretty)) } } appendLine(
appendLine("callables: ${callables.size}") if (printPretty) {
withIndent { callables.forEach { appendLine(renderSymbol(it, printPretty)) } } this@KtAnalysisSession.renderPrettySymbol(it)
} else {
debugRenderer.render(it)
}
)
this@KtAnalysisSession.additionalSymbolInfo(it)?.let {
withIndent { appendLine(it) }
}
}
} }
} }
scope.getPackageSymbols()
.toMutableList()
.apply { sortBy { it.fqName.asString() } }
.renderAll("packages") { prettyRenderPackage(it) }
scope.getClassifierSymbols().toList().renderAll("classifiers") { prettyRenderDeclaration(it) }
scope.getCallableSymbols().toList().renderAll("callables") { prettyRenderDeclaration(it) }
scope.getConstructors().toList().renderAll("constructors") { prettyRenderDeclaration(it) }
} }
context(KtAnalysisSession) private fun KtAnalysisSession.prettyRenderPackage(symbol: KtPackageSymbol): String =
private fun renderSymbol( symbol.fqName.asString()
symbol: KtDeclarationSymbol,
printPretty: Boolean private fun KtAnalysisSession.prettyRenderDeclaration(symbol: KtDeclarationSymbol): String =
): String = if (printPretty) symbol.render(prettyPrintSymbolRenderer) else debugRenderer.render(symbol) symbol.render(prettyPrintSymbolRenderer)
private val debugRenderer = DebugSymbolRenderer() private val debugRenderer = DebugSymbolRenderer()
@@ -4,7 +4,11 @@ scopes:
DefaultSimpleImportingScope, index = 1 DefaultSimpleImportingScope, index = 1
ExplicitStarImportingScope, index = 2, empty ExplicitStarImportingScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 3 DefaultSimpleImportingScope, index = 3
@@ -12,5 +16,9 @@ scopes:
PackageMemberScope, index = 5 PackageMemberScope, index = 5
ExplicitSimpleImportingScope, index = 6, empty ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 0
callables: 0
constructors: 0
@@ -4,7 +4,11 @@ scopes:
DefaultSimpleImportingScope, index = 1 DefaultSimpleImportingScope, index = 1
ExplicitStarImportingScope, index = 2, empty ExplicitStarImportingScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 3 DefaultSimpleImportingScope, index = 3
@@ -12,6 +16,9 @@ scopes:
PackageMemberScope, index = 5 PackageMemberScope, index = 5
ExplicitSimpleImportingScope, index = 6, empty ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 0
callables: 0
constructors: 0
@@ -4,7 +4,11 @@ scopes:
DefaultSimpleImportingScope, index = 1 DefaultSimpleImportingScope, index = 1
ExplicitStarImportingScope, index = 2, empty ExplicitStarImportingScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 3 DefaultSimpleImportingScope, index = 3
@@ -13,6 +17,9 @@ scopes:
PackageMemberScope, index = 5 PackageMemberScope, index = 5
ExplicitSimpleImportingScope, index = 6 ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 1 classifiers: 1
class A class A
callables: 0 callables: 0
constructors: 0
@@ -4,7 +4,11 @@ scopes:
DefaultSimpleImportingScope, index = 1 DefaultSimpleImportingScope, index = 1
ExplicitStarImportingScope, index = 2, empty ExplicitStarImportingScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 3 DefaultSimpleImportingScope, index = 3
@@ -13,6 +17,7 @@ scopes:
PackageMemberScope, index = 5 PackageMemberScope, index = 5
ExplicitSimpleImportingScope, index = 6 ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 1 classifiers: 1
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -38,4 +43,5 @@ scopes:
typeParameters: [] typeParameters: []
visibility: Public visibility: Public
callables: 0 callables: 0
constructors: 0
@@ -4,7 +4,11 @@ scopes:
DefaultSimpleImportingScope, index = 1 DefaultSimpleImportingScope, index = 1
ExplicitStarImportingScope, index = 2, empty ExplicitStarImportingScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 3 DefaultSimpleImportingScope, index = 3
@@ -12,5 +16,9 @@ scopes:
PackageMemberScope, index = 5 PackageMemberScope, index = 5
ExplicitSimpleImportingScope, index = 6, empty ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 0
callables: 0
constructors: 0
@@ -4,7 +4,11 @@ scopes:
DefaultSimpleImportingScope, index = 1 DefaultSimpleImportingScope, index = 1
ExplicitStarImportingScope, index = 2, empty ExplicitStarImportingScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 3 DefaultSimpleImportingScope, index = 3
@@ -12,6 +16,9 @@ scopes:
PackageMemberScope, index = 5 PackageMemberScope, index = 5
ExplicitSimpleImportingScope, index = 6, empty ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 0
callables: 0
constructors: 0
@@ -4,7 +4,11 @@ scopes:
DefaultSimpleImportingScope, index = 1 DefaultSimpleImportingScope, index = 1
ExplicitStarImportingScope, index = 2, empty ExplicitStarImportingScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 3 DefaultSimpleImportingScope, index = 3
@@ -13,6 +17,9 @@ scopes:
PackageMemberScope, index = 5 PackageMemberScope, index = 5
ExplicitSimpleImportingScope, index = 6 ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 1 classifiers: 1
class A class A
callables: 0 callables: 0
constructors: 0
@@ -4,7 +4,11 @@ scopes:
DefaultSimpleImportingScope, index = 1 DefaultSimpleImportingScope, index = 1
ExplicitStarImportingScope, index = 2, empty ExplicitStarImportingScope, index = 2
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 3 DefaultSimpleImportingScope, index = 3
@@ -13,6 +17,7 @@ scopes:
PackageMemberScope, index = 5 PackageMemberScope, index = 5
ExplicitSimpleImportingScope, index = 6 ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 1 classifiers: 1
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -38,4 +43,5 @@ scopes:
typeParameters: [] typeParameters: []
visibility: Public visibility: Public
callables: 0 callables: 0
constructors: 0
@@ -5,10 +5,12 @@ scopes:
DefaultSimpleImportingScope, index = 1 DefaultSimpleImportingScope, index = 1
ExplicitStarImportingScope, index = 2 ExplicitStarImportingScope, index = 2
packages: 0
classifiers: 1 classifiers: 1
class A class A
callables: 1 callables: 1
fun b() fun b()
constructors: 0
DefaultSimpleImportingScope, index = 3 DefaultSimpleImportingScope, index = 3
@@ -16,5 +18,9 @@ scopes:
PackageMemberScope, index = 5 PackageMemberScope, index = 5
ExplicitSimpleImportingScope, index = 6, empty ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 0
callables: 0
constructors: 0
@@ -5,6 +5,7 @@ scopes:
DefaultSimpleImportingScope, index = 1 DefaultSimpleImportingScope, index = 1
ExplicitStarImportingScope, index = 2 ExplicitStarImportingScope, index = 2
packages: 0
classifiers: 1 classifiers: 1
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -57,6 +58,7 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
constructors: 0
DefaultSimpleImportingScope, index = 3 DefaultSimpleImportingScope, index = 3
@@ -64,6 +66,9 @@ scopes:
PackageMemberScope, index = 5 PackageMemberScope, index = 5
ExplicitSimpleImportingScope, index = 6, empty ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 0
callables: 0
constructors: 0
@@ -4,32 +4,59 @@ implicit receivers:
owner symbol: KtFirFunctionSymbol owner symbol: KtFirFunctionSymbol
scopes: scopes:
LocalScope, index = 0, empty LocalScope, index = 0
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 1 TypeScope, index = 1
packages: 0
classifiers: 0 classifiers: 0
callables: 4 callables: 4
fun memberInContext() fun memberInContext()
fun equals(other: kotlin.Any?): kotlin.Boolean fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int fun hashCode(): kotlin.Int
fun toString(): kotlin.String 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 PackageMemberScope, index = 4
packages: 6
META-INF
java
javax
kotlin
org
sun
classifiers: 1 classifiers: 1
class Context class Context
callables: 1 callables: 1
context(Context) context(Context)
fun test() fun test()
constructors: 0
DefaultSimpleImportingScope, index = 5 DefaultSimpleImportingScope, index = 5
DefaultSimpleImportingScope, index = 6 DefaultSimpleImportingScope, index = 6
ExplicitStarImportingScope, index = 7, empty ExplicitStarImportingScope, index = 7
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8 DefaultSimpleImportingScope, index = 8
@@ -7,9 +7,14 @@ implicit receivers:
owner symbol: KtFirFunctionSymbol owner symbol: KtFirFunctionSymbol
scopes: scopes:
LocalScope, index = 0, empty LocalScope, index = 0
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 1 TypeScope, index = 1
packages: 0
classifiers: 0 classifiers: 0
callables: 4 callables: 4
KtFunctionSymbol: KtFunctionSymbol:
@@ -141,12 +146,58 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public 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 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 classifiers: 1
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -206,12 +257,17 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
constructors: 0
DefaultSimpleImportingScope, index = 5 DefaultSimpleImportingScope, index = 5
DefaultSimpleImportingScope, index = 6 DefaultSimpleImportingScope, index = 6
ExplicitStarImportingScope, index = 7, empty ExplicitStarImportingScope, index = 7
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8 DefaultSimpleImportingScope, index = 8
@@ -7,11 +7,20 @@ implicit receivers:
owner symbol: KtFirNamedClassOrObjectSymbol owner symbol: KtFirNamedClassOrObjectSymbol
scopes: 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 TypeScope, index = 2
packages: 0
classifiers: 1 classifiers: 1
companion object companion object
callables: 11 callables: 11
@@ -26,39 +35,63 @@ scopes:
val ordinal: kotlin.Int val ordinal: kotlin.Int
fun getDeclaringClass(): java.lang.Class<E?>? fun getDeclaringClass(): java.lang.Class<E?>?
fun finalize() fun finalize()
constructors: 1
constructor()
StaticMemberScope, index = 3 StaticMemberScope, index = 3
packages: 0
classifiers: 0 classifiers: 0
callables: 4 callables: 4
A A
fun values(): kotlin.Array<E> fun values(): kotlin.Array<E>
fun valueOf(value: kotlin.String): E fun valueOf(value: kotlin.String): E
val entries: kotlin.enums.EnumEntries<E> val entries: kotlin.enums.EnumEntries<E>
constructors: 0
StaticMemberScope, index = 4 StaticMemberScope, index = 4
packages: 0
classifiers: 1 classifiers: 1
companion object companion object
callables: 0 callables: 0
constructors: 0
TypeScope, index = 5 TypeScope, index = 5
packages: 0
classifiers: 0 classifiers: 0
callables: 3 callables: 3
fun equals(other: kotlin.Any?): kotlin.Boolean fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int fun hashCode(): kotlin.Int
fun toString(): kotlin.String fun toString(): kotlin.String
constructors: 0
ExplicitSimpleImportingScope, index = 6, empty ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 7 PackageMemberScope, index = 7
packages: 6
META-INF
java
javax
kotlin
org
sun
classifiers: 1 classifiers: 1
enum class E enum class E
callables: 0 callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8 DefaultSimpleImportingScope, index = 8
DefaultSimpleImportingScope, index = 9 DefaultSimpleImportingScope, index = 9
ExplicitStarImportingScope, index = 10, empty ExplicitStarImportingScope, index = 10
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 11 DefaultSimpleImportingScope, index = 11
@@ -13,11 +13,20 @@ implicit receivers:
owner symbol: KtFirNamedClassOrObjectSymbol owner symbol: KtFirNamedClassOrObjectSymbol
scopes: 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 TypeScope, index = 2
packages: 0
classifiers: 1 classifiers: 1
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -455,8 +464,28 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: ProtectedAndPackage 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 StaticMemberScope, index = 3
packages: 0
classifiers: 0 classifiers: 0
callables: 4 callables: 4
KtEnumEntrySymbol: KtEnumEntrySymbol:
@@ -614,8 +643,10 @@ scopes:
symbolKind: CLASS_MEMBER symbolKind: CLASS_MEMBER
typeParameters: [] typeParameters: []
visibility: Public visibility: Public
constructors: 0
StaticMemberScope, index = 4 StaticMemberScope, index = 4
packages: 0
classifiers: 1 classifiers: 1
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -641,8 +672,10 @@ scopes:
typeParameters: [] typeParameters: []
visibility: Public visibility: Public
callables: 0 callables: 0
constructors: 0
TypeScope, index = 5 TypeScope, index = 5
packages: 0
classifiers: 0 classifiers: 0
callables: 3 callables: 3
KtFunctionSymbol: KtFunctionSymbol:
@@ -747,10 +780,34 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
constructors: 0
ExplicitSimpleImportingScope, index = 6, empty ExplicitSimpleImportingScope, index = 6
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 7 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 classifiers: 1
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -781,12 +838,17 @@ scopes:
typeParameters: [] typeParameters: []
visibility: Public visibility: Public
callables: 0 callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8 DefaultSimpleImportingScope, index = 8
DefaultSimpleImportingScope, index = 9 DefaultSimpleImportingScope, index = 9
ExplicitStarImportingScope, index = 10, empty ExplicitStarImportingScope, index = 10
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 11 DefaultSimpleImportingScope, index = 11
@@ -7,13 +7,26 @@ implicit receivers:
owner symbol: KtFirAnonymousFunctionSymbol owner symbol: KtFirAnonymousFunctionSymbol
scopes: 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 TypeScope, index = 3
packages: 0
classifiers: 0 classifiers: 0
callables: 5 callables: 5
fun add(e: T) fun add(e: T)
@@ -21,27 +34,56 @@ scopes:
fun equals(other: kotlin.Any?): kotlin.Boolean fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int fun hashCode(): kotlin.Int
fun toString(): kotlin.String 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 PackageMemberScope, index = 8
packages: 6
META-INF
java
javax
kotlin
org
sun
classifiers: 1 classifiers: 1
interface List<T> interface List<T>
callables: 2 callables: 2
fun <E> buildList(f: List<E>.() -> kotlin.Unit): List<E> fun <E> buildList(f: List<E>.() -> kotlin.Unit): List<E>
fun test() fun test()
constructors: 0
DefaultSimpleImportingScope, index = 9 DefaultSimpleImportingScope, index = 9
DefaultSimpleImportingScope, index = 10 DefaultSimpleImportingScope, index = 10
ExplicitStarImportingScope, index = 11, empty ExplicitStarImportingScope, index = 11
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 12 DefaultSimpleImportingScope, index = 12
@@ -16,13 +16,26 @@ implicit receivers:
owner symbol: KtFirAnonymousFunctionSymbol owner symbol: KtFirAnonymousFunctionSymbol
scopes: 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 TypeScope, index = 3
packages: 0
classifiers: 0 classifiers: 0
callables: 5 callables: 5
KtFunctionSymbol: KtFunctionSymbol:
@@ -221,16 +234,52 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public 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 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 classifiers: 1
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -352,12 +401,17 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
constructors: 0
DefaultSimpleImportingScope, index = 9 DefaultSimpleImportingScope, index = 9
DefaultSimpleImportingScope, index = 10 DefaultSimpleImportingScope, index = 10
ExplicitStarImportingScope, index = 11, empty ExplicitStarImportingScope, index = 11
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 12 DefaultSimpleImportingScope, index = 12
@@ -5,13 +5,20 @@ implicit receivers:
scopes: scopes:
LocalScope, index = 0 LocalScope, index = 0
packages: 0
classifiers: 0 classifiers: 0
callables: 1 callables: 1
val localInX: kotlin.Int val localInX: kotlin.Int
constructors: 0
LocalScope, index = 1, empty LocalScope, index = 1
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 2 TypeScope, index = 2
packages: 0
classifiers: 0 classifiers: 0
callables: 5 callables: 5
val propertyInY: kotlin.Int val propertyInY: kotlin.Int
@@ -19,27 +26,51 @@ scopes:
fun equals(other: kotlin.Any?): kotlin.Boolean fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int fun hashCode(): kotlin.Int
fun toString(): kotlin.String fun toString(): kotlin.String
constructors: 1
constructor()
LocalScope, index = 3 LocalScope, index = 3
packages: 0
classifiers: 1 classifiers: 1
class Y class Y
callables: 1 callables: 1
val localInZ: kotlin.Int 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 PackageMemberScope, index = 6
packages: 6
META-INF
java
javax
kotlin
org
sun
classifiers: 0 classifiers: 0
callables: 1 callables: 1
fun z() fun z()
constructors: 0
DefaultSimpleImportingScope, index = 7 DefaultSimpleImportingScope, index = 7
DefaultSimpleImportingScope, index = 8 DefaultSimpleImportingScope, index = 8
ExplicitStarImportingScope, index = 9, empty ExplicitStarImportingScope, index = 9
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 10 DefaultSimpleImportingScope, index = 10
@@ -8,6 +8,7 @@ implicit receivers:
scopes: scopes:
LocalScope, index = 0 LocalScope, index = 0
packages: 0
classifiers: 0 classifiers: 0
callables: 1 callables: 1
KtLocalVariableSymbol: KtLocalVariableSymbol:
@@ -25,10 +26,16 @@ scopes:
type: kotlin/Int type: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: [] typeParameters: []
constructors: 0
LocalScope, index = 1, empty LocalScope, index = 1
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 2 TypeScope, index = 2
packages: 0
classifiers: 0 classifiers: 0
callables: 5 callables: 5
KtKotlinPropertySymbol: KtKotlinPropertySymbol:
@@ -224,8 +231,28 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public 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 LocalScope, index = 3
packages: 0
classifiers: 1 classifiers: 1
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -266,12 +293,40 @@ scopes:
type: kotlin/Int type: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: [] 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 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 classifiers: 0
callables: 1 callables: 1
KtFunctionSymbol: KtFunctionSymbol:
@@ -301,12 +356,17 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
constructors: 0
DefaultSimpleImportingScope, index = 7 DefaultSimpleImportingScope, index = 7
DefaultSimpleImportingScope, index = 8 DefaultSimpleImportingScope, index = 8
ExplicitStarImportingScope, index = 9, empty ExplicitStarImportingScope, index = 9
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 10 DefaultSimpleImportingScope, index = 10
@@ -11,54 +11,83 @@ implicit receivers:
scopes: scopes:
TypeScope, index = 0 TypeScope, index = 0
packages: 0
classifiers: 0 classifiers: 0
callables: 4 callables: 4
fun memberInA() fun memberInA()
fun equals(other: kotlin.Any?): kotlin.Boolean fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int fun hashCode(): kotlin.Int
fun toString(): kotlin.String 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 TypeScope, index = 3
packages: 0
classifiers: 0 classifiers: 0
callables: 4 callables: 4
fun memberInB() fun memberInB()
fun equals(other: kotlin.Any?): kotlin.Boolean fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int fun hashCode(): kotlin.Int
fun toString(): kotlin.String 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 LocalScope, index = 5
packages: 0
classifiers: 0 classifiers: 0
callables: 1 callables: 1
val localVarA: kotlin.Int val localVarA: kotlin.Int
constructors: 0
LocalScope, index = 6 LocalScope, index = 6
packages: 0
classifiers: 0 classifiers: 0
callables: 1 callables: 1
lambdaArg: kotlin.String lambdaArg: kotlin.String
constructors: 0
LocalScope, index = 7 LocalScope, index = 7
packages: 0
classifiers: 0 classifiers: 0
callables: 2 callables: 2
val localVarB: kotlin.Int val localVarB: kotlin.Int
fun localFunB() fun localFunB()
constructors: 0
LocalScope, index = 8 LocalScope, index = 8
packages: 0
classifiers: 0 classifiers: 0
callables: 1 callables: 1
param: kotlin.String? param: kotlin.String?
constructors: 0
TypeParameterScope, index = 9 TypeParameterScope, index = 9
packages: 0
classifiers: 1 classifiers: 1
T T
callables: 0 callables: 0
constructors: 0
TypeScope, index = 10 TypeScope, index = 10
packages: 0
classifiers: 2 classifiers: 2
class NestedInC class NestedInC
class NestedInJavaClass class NestedInJavaClass
@@ -67,20 +96,37 @@ scopes:
fun equals(other: kotlin.Any?): kotlin.Boolean fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int fun hashCode(): kotlin.Int
fun toString(): kotlin.String fun toString(): kotlin.String
constructors: 1
constructor()
StaticMemberScope, index = 11 StaticMemberScope, index = 11
packages: 0
classifiers: 1 classifiers: 1
class NestedInC class NestedInC
callables: 0 callables: 0
constructors: 0
StaticMemberScope, index = 12 StaticMemberScope, index = 12
packages: 0
classifiers: 1 classifiers: 1
class NestedInJavaClass class NestedInJavaClass
callables: 0 callables: 0
constructors: 0
ExplicitSimpleImportingScope, index = 13, empty ExplicitSimpleImportingScope, index = 13
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 14 PackageMemberScope, index = 14
packages: 6
META-INF
java
javax
kotlin
org
sun
classifiers: 3 classifiers: 3
class A class A
class B class B
@@ -90,15 +136,19 @@ scopes:
fun withB(f: B.() -> kotlin.Unit) fun withB(f: B.() -> kotlin.Unit)
fun withJavaClass(f: JavaClass.() -> kotlin.Unit) fun withJavaClass(f: JavaClass.() -> kotlin.Unit)
fun topLevel(): kotlin.Int fun topLevel(): kotlin.Int
constructors: 0
DefaultSimpleImportingScope, index = 15 DefaultSimpleImportingScope, index = 15
DefaultSimpleImportingScope, index = 16 DefaultSimpleImportingScope, index = 16
ExplicitStarImportingScope, index = 17, empty ExplicitStarImportingScope, index = 17
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 18 DefaultSimpleImportingScope, index = 18
DefaultStarImportingScope, index = 19 DefaultStarImportingScope, index = 19
@@ -20,6 +20,7 @@ implicit receivers:
scopes: scopes:
TypeScope, index = 0 TypeScope, index = 0
packages: 0
classifiers: 0 classifiers: 0
callables: 4 callables: 4
KtFunctionSymbol: KtFunctionSymbol:
@@ -151,12 +152,40 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public 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 TypeScope, index = 3
packages: 0
classifiers: 0 classifiers: 0
callables: 4 callables: 4
KtFunctionSymbol: KtFunctionSymbol:
@@ -288,10 +317,34 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public 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 LocalScope, index = 5
packages: 0
classifiers: 0 classifiers: 0
callables: 1 callables: 1
KtLocalVariableSymbol: KtLocalVariableSymbol:
@@ -309,8 +362,10 @@ scopes:
type: kotlin/Int type: kotlin/Int
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: [] typeParameters: []
constructors: 0
LocalScope, index = 6 LocalScope, index = 6
packages: 0
classifiers: 0 classifiers: 0
callables: 1 callables: 1
KtValueParameterSymbol: KtValueParameterSymbol:
@@ -333,8 +388,10 @@ scopes:
type: kotlin/String type: kotlin/String
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: [] typeParameters: []
constructors: 0
LocalScope, index = 7 LocalScope, index = 7
packages: 0
classifiers: 0 classifiers: 0
callables: 2 callables: 2
KtLocalVariableSymbol: KtLocalVariableSymbol:
@@ -379,8 +436,10 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Local visibility: Local
constructors: 0
LocalScope, index = 8 LocalScope, index = 8
packages: 0
classifiers: 0 classifiers: 0
callables: 1 callables: 1
KtValueParameterSymbol: KtValueParameterSymbol:
@@ -403,8 +462,10 @@ scopes:
type: kotlin/String? type: kotlin/String?
symbolKind: LOCAL symbolKind: LOCAL
typeParameters: [] typeParameters: []
constructors: 0
TypeParameterScope, index = 9 TypeParameterScope, index = 9
packages: 0
classifiers: 1 classifiers: 1
KtTypeParameterSymbol: KtTypeParameterSymbol:
annotationsList: [] annotationsList: []
@@ -415,8 +476,10 @@ scopes:
upperBounds: [] upperBounds: []
variance: INVARIANT variance: INVARIANT
callables: 0 callables: 0
constructors: 0
TypeScope, index = 10 TypeScope, index = 10
packages: 0
classifiers: 2 classifiers: 2
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -617,8 +680,28 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public 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 StaticMemberScope, index = 11
packages: 0
classifiers: 1 classifiers: 1
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -644,8 +727,10 @@ scopes:
typeParameters: [] typeParameters: []
visibility: Public visibility: Public
callables: 0 callables: 0
constructors: 0
StaticMemberScope, index = 12 StaticMemberScope, index = 12
packages: 0
classifiers: 1 classifiers: 1
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -671,10 +756,34 @@ scopes:
typeParameters: [] typeParameters: []
visibility: PackageVisibility visibility: PackageVisibility
callables: 0 callables: 0
constructors: 0
ExplicitSimpleImportingScope, index = 13, empty ExplicitSimpleImportingScope, index = 13
packages: 0
classifiers: 0
callables: 0
constructors: 0
PackageMemberScope, index = 14 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 classifiers: 3
KtNamedClassOrObjectSymbol: KtNamedClassOrObjectSymbol:
annotationsList: [] annotationsList: []
@@ -944,12 +1053,17 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
constructors: 0
DefaultSimpleImportingScope, index = 15 DefaultSimpleImportingScope, index = 15
DefaultSimpleImportingScope, index = 16 DefaultSimpleImportingScope, index = 16
ExplicitStarImportingScope, index = 17, empty ExplicitStarImportingScope, index = 17
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 18 DefaultSimpleImportingScope, index = 18
@@ -4,9 +4,14 @@ implicit receivers:
owner symbol: KtFirFunctionSymbol owner symbol: KtFirFunctionSymbol
scopes: scopes:
LocalScope, index = 0, empty LocalScope, index = 0
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 1 TypeScope, index = 1
packages: 0
classifiers: 0 classifiers: 0
callables: 5 callables: 5
fun getValue(): kotlin.Int? fun getValue(): kotlin.Int?
@@ -15,21 +20,43 @@ scopes:
fun toString(): kotlin.String fun toString(): kotlin.String
val value: kotlin.Int? val value: kotlin.Int?
get() 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 PackageMemberScope, index = 4
packages: 6
META-INF
java
javax
kotlin
org
sun
classifiers: 0 classifiers: 0
callables: 1 callables: 1
fun JavaClass.test() fun JavaClass.test()
constructors: 0
DefaultSimpleImportingScope, index = 5 DefaultSimpleImportingScope, index = 5
DefaultSimpleImportingScope, index = 6 DefaultSimpleImportingScope, index = 6
ExplicitStarImportingScope, index = 7, empty ExplicitStarImportingScope, index = 7
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8 DefaultSimpleImportingScope, index = 8
@@ -7,9 +7,14 @@ implicit receivers:
owner symbol: KtFirFunctionSymbol owner symbol: KtFirFunctionSymbol
scopes: scopes:
LocalScope, index = 0, empty LocalScope, index = 0
packages: 0
classifiers: 0
callables: 0
constructors: 0
TypeScope, index = 1 TypeScope, index = 1
packages: 0
classifiers: 0 classifiers: 0
callables: 5 callables: 5
KtFunctionSymbol: KtFunctionSymbol:
@@ -188,12 +193,58 @@ scopes:
symbolKind: CLASS_MEMBER symbolKind: CLASS_MEMBER
typeParameters: [] typeParameters: []
visibility: Public 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 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 classifiers: 0
callables: 1 callables: 1
KtFunctionSymbol: KtFunctionSymbol:
@@ -230,12 +281,17 @@ scopes:
typeParameters: [] typeParameters: []
valueParameters: [] valueParameters: []
visibility: Public visibility: Public
constructors: 0
DefaultSimpleImportingScope, index = 5 DefaultSimpleImportingScope, index = 5
DefaultSimpleImportingScope, index = 6 DefaultSimpleImportingScope, index = 6
ExplicitStarImportingScope, index = 7, empty ExplicitStarImportingScope, index = 7
packages: 0
classifiers: 0
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8 DefaultSimpleImportingScope, index = 8