[LL] Set publishedApiEffectiveVisibility on deserialized declarations from stubs
#KT-58641
This commit is contained in:
committed by
Space Team
parent
ee91ee9403
commit
d7effec4e8
@@ -5,4 +5,4 @@ FIR element: FirEnumEntryImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry Baz: R|FooBar|
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=FooBar] enum entry Baz: R|FooBar|
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// DECLARATION_TYPE: org.jetbrains.kotlin.psi.KtClass
|
||||
@PublishedApi
|
||||
internal class Foo
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
KT element: KtClass
|
||||
KT element text:
|
||||
@kotlin.PublishedApi internal final class Foo public constructor() {
|
||||
}
|
||||
FIR element: FirRegularClassImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
@R|kotlin/PublishedApi|() internal final [ResolvedTo(BODY_RESOLVE)] [LazyPublishedApiEffectiveVisibilityKey=public] class Foo : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo] constructor(): R|Foo|
|
||||
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// DECLARATION_TYPE: org.jetbrains.kotlin.psi.KtConstructor
|
||||
@PublishedApi
|
||||
internal class Foo {
|
||||
@PublishedApi internal constructor() {}
|
||||
}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
KT element: KtSecondaryConstructor
|
||||
KT element text:
|
||||
@kotlin.PublishedApi internal constructor() { /* compiled code */ }
|
||||
FIR element: FirConstructorImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
@R|kotlin/PublishedApi|() internal [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo, LazyPublishedApiEffectiveVisibilityKey=public] constructor(): R|Foo|
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// DECLARATION_TYPE: org.jetbrains.kotlin.psi.KtFunction
|
||||
@PublishedApi
|
||||
internal fun published() = "OK"
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
KT element: KtNamedFunction
|
||||
KT element text:
|
||||
@kotlin.PublishedApi internal fun published(): kotlin.String { /* compiled code */ }
|
||||
FIR element: FirSimpleFunctionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
@R|kotlin/PublishedApi|() internal final [ResolvedTo(BODY_RESOLVE)] [LazyPublishedApiEffectiveVisibilityKey=public] fun published(): R|kotlin/String|
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// DECLARATION_TYPE: org.jetbrains.kotlin.psi.KtPrimaryConstructor
|
||||
@PublishedApi
|
||||
internal class Foo @PublishedApi internal constructor(val foo: String) {
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
KT element: KtPrimaryConstructor
|
||||
KT element text:
|
||||
@kotlin.PublishedApi internal constructor(foo: kotlin.String)
|
||||
FIR element: FirPrimaryConstructor
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
@R|kotlin/PublishedApi|() internal [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo, LazyPublishedApiEffectiveVisibilityKey=public] constructor([ResolvedTo(BODY_RESOLVE)] foo: R|kotlin/String|): R|Foo|
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// DECLARATION_TYPE: org.jetbrains.kotlin.psi.KtProperty
|
||||
@PublishedApi
|
||||
internal val published = "OK"
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
KT element: KtProperty
|
||||
KT element text:
|
||||
@kotlin.PublishedApi internal val published: kotlin.String /* compiled code */
|
||||
FIR element: FirPropertyImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
@R|kotlin/PublishedApi|() internal final [ResolvedTo(BODY_RESOLVE)] [LazyPublishedApiEffectiveVisibilityKey=public] val published: R|kotlin/String|
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// DECLARATION_TYPE: org.jetbrains.kotlin.psi.KtPropertyAccessor
|
||||
@PublishedApi
|
||||
internal val published get() = "OK"
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
KT element: KtPropertyAccessor
|
||||
KT element text:
|
||||
internal final get
|
||||
FIR element: FirPropertyAccessorImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
internal [ResolvedTo(BODY_RESOLVE)] [LazyPublishedApiEffectiveVisibilityKey=public] get(): R|kotlin/String|
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// DECLARATION_TYPE: org.jetbrains.kotlin.psi.KtPropertyAccessor
|
||||
@PublishedApi
|
||||
internal var published = "OK"
|
||||
set(value) {}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
KT element: KtPropertyAccessor
|
||||
KT element text:
|
||||
internal final set(value: kotlin.String) {/* compiled code */ }
|
||||
FIR element: FirPropertyAccessorImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
internal [ResolvedTo(BODY_RESOLVE)] [LazyPublishedApiEffectiveVisibilityKey=public] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|kotlin/Unit|
|
||||
+1
-1
@@ -5,4 +5,4 @@ FIR element: FirConstructorImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] p: R|kotlin/String|): R|FooBar|
|
||||
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=FooBar] constructor([ResolvedTo(BODY_RESOLVE)] p: R|kotlin/String|): R|FooBar|
|
||||
@@ -10,6 +10,6 @@ FIR element rendered:
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class FooBar : R|kotlin/Any| {
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun doSmth(): R|kotlin/Unit|
|
||||
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|FooBar|
|
||||
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=FooBar] constructor(): R|FooBar|
|
||||
|
||||
}
|
||||
+1
-1
@@ -5,4 +5,4 @@ FIR element: FirPrimaryConstructor
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] p: R|kotlin/String|): R|FooBar|
|
||||
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=FooBar] constructor([ResolvedTo(BODY_RESOLVE)] p: R|kotlin/String|): R|FooBar|
|
||||
Reference in New Issue
Block a user