[FIR] Make FirFile.annotationsContainer nullable
Previously, when no file annotations were present, the FIR element didn't have a source. By making it nullable, it will only be created when appropriate and the source will never be null. #KT-55835
This commit is contained in:
committed by
Space Team
parent
311975f1ed
commit
bed6cb7154
-1
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] annonymousClass.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
|
||||
[ResolvedTo(BODY_RESOLVE)] lval x: R|<anonymous>| = object : R|kotlin/Any| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|<anonymous>| {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] class.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B| {
|
||||
super<R|kotlin/Any|>()
|
||||
|
||||
Vendored
-1
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] class.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B| {
|
||||
super<R|kotlin/Any|>()
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] constructorParameter.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/String|): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] enum.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final [ResolvedTo(BODY_RESOLVE)] enum class Enum : R|kotlin/Enum<Enum>| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Int|): R|Enum| {
|
||||
super<R|kotlin/Enum<Enum>|>()
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] funWithoutTypes.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun main(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
Vendored
-1
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] functionValueParameter.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun bar([ResolvedTo(BODY_RESOLVE)] a: R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] b: R|(kotlin/Boolean) -> kotlin/Unit|): R|kotlin/Unit| {
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
|
||||
Vendored
-1
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] functionWithImplicitType.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T> checkSubtype([ResolvedTo(BODY_RESOLVE)] t: R|T|): R|T| {
|
||||
^checkSubtype R|<local>/t|
|
||||
}
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] functionWithImplicitType.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T> checkSubtype([ResolvedTo(BODY_RESOLVE)] t: R|T|): R|T| {
|
||||
^checkSubtype R|<local>/t|
|
||||
}
|
||||
|
||||
Vendored
-1
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] lambdaInImplicitFunBody.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> with([ResolvedTo(BODY_RESOLVE)] receiver: R|T|, [ResolvedTo(BODY_RESOLVE)] block: R|T.() -> R|): R|R| {
|
||||
^with R|<local>/block|.R|SubstitutionOverride<kotlin/Function1.invoke: R|R|>|(R|<local>/receiver|)
|
||||
}
|
||||
|
||||
Vendored
-1
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] lambdaInImplicitPropertyBody.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> with([ResolvedTo(BODY_RESOLVE)] receiver: R|T|, [ResolvedTo(BODY_RESOLVE)] block: R|T.() -> R|): R|R| {
|
||||
^with R|<local>/block|.R|SubstitutionOverride<kotlin/Function1.invoke: R|R|>|(R|<local>/receiver|)
|
||||
}
|
||||
|
||||
Vendored
-1
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] lambdasInWithBodyFunction.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> with([ResolvedTo(BODY_RESOLVE)] receiver: R|T|, [ResolvedTo(BODY_RESOLVE)] block: R|T.() -> R|): R|R| {
|
||||
^with R|<local>/block|.R|SubstitutionOverride<kotlin/Function1.invoke: R|R|>|(R|<local>/receiver|)
|
||||
}
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] localClass.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] class Local : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Local| {
|
||||
|
||||
Vendored
-1
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public final [ResolvedTo(BODY_RESOLVE)] var withGetterAndSetter: R|kotlin/Int| = Int(42)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| {
|
||||
^ F|/withGetterAndSetter|
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
FILE: [ResolvedTo(IMPORTS)] propertyWithSetter.kt
|
||||
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||
public abstract [ResolvedTo(BODY_RESOLVE)] class Foo : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Foo| {
|
||||
super<R|kotlin/Any|>()
|
||||
|
||||
Reference in New Issue
Block a user