[LL FIR] make dependency from library on builtins invisible from outside

^KTIJ-23421

hide explicit builtins to reveal target platform dependencies.
Otherwise, `expect` class from builtin of e.g. JDK
would be found instead of actual dependency from Kotlin Runtime
This commit is contained in:
Anna Kozlova
2022-11-22 22:19:43 +01:00
committed by Space Team
parent 28ff475dd6
commit 43bd05f470
9 changed files with 91 additions and 18 deletions
@@ -0,0 +1,27 @@
KtNamedClassOrObjectSymbol:
annotationsList: []
classIdIfNonLocal: kotlin/reflect/KClass
classKind: INTERFACE
companionObject: null
contextReceivers: []
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: ABSTRACT
name: KClass
origin: LIBRARY
superTypes: [
kotlin/reflect/KDeclarationContainer
kotlin/reflect/KAnnotatedElement
kotlin/reflect/KClassifier
]
symbolKind: TOP_LEVEL
typeParameters: [
KtTypeParameterSymbol(T)
]
visibility: Public
getContainingModule: Could not render due to kotlin.NotImplementedError: An operation is not implemented: org.jetbrains.kotlin.analysis.api.descriptors.symbols.descriptorBased.KtFe10DescNamedClassOrObjectSymbol
deprecationStatus: null
@@ -0,0 +1 @@
class: kotlin/reflect/KClass
@@ -0,0 +1 @@
interface KClass<T : kotlin.Any> : kotlin.reflect.KDeclarationContainer, kotlin.reflect.KAnnotatedElement, kotlin.reflect.KClassifier
@@ -0,0 +1,26 @@
KtNamedClassOrObjectSymbol:
annotationsList: []
classIdIfNonLocal: kotlin/reflect/KClass
classKind: INTERFACE
companionObject: null
contextReceivers: []
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: ABSTRACT
name: KClass
origin: LIBRARY
superTypes: [
kotlin/reflect/KDeclarationContainer
kotlin/reflect/KAnnotatedElement
kotlin/reflect/KClassifier
]
symbolKind: TOP_LEVEL
typeParameters: [
KtTypeParameterSymbol(T)
]
visibility: Public
getContainingModule: KtLibraryModule "Library kotlin-stdlib"
deprecationStatus: null