[FIR][tree] replace FirDeclaration.resolvePhase -> resolveState

Lazy resolve state represents the lazy resolve
state of the current declaration
It can be either resolved or be in a process of resolve

^KT-56543
This commit is contained in:
Dmitrii Gridin
2023-03-28 12:04:29 +02:00
committed by Space Team
parent 77e1bc6f9e
commit faeafbbe29
196 changed files with 3918 additions and 3654 deletions
@@ -1,203 +1,203 @@
RAW_FIR:
FILE: [RAW_FIR] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final? [RAW_FIR] val resolveMe: A = LAZY_EXPRESSION
private [RAW_FIR] get(): A
public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| {
public? final? [RAW_FIR] fun x(): R|kotlin/Unit|
FILE: [ResolvedTo(RAW_FIR)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final? [ResolvedTo(RAW_FIR)] val resolveMe: A = LAZY_EXPRESSION
private [ResolvedTo(RAW_FIR)] get(): A
public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| {
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit|
}
IMPORTS:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final? [RAW_FIR] val resolveMe: A = LAZY_EXPRESSION
private [RAW_FIR] get(): A
public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| {
public? final? [RAW_FIR] fun x(): R|kotlin/Unit|
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final? [ResolvedTo(RAW_FIR)] val resolveMe: A = LAZY_EXPRESSION
private [ResolvedTo(RAW_FIR)] get(): A
public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| {
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit|
}
COMPILER_REQUIRED_ANNOTATIONS:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final? [COMPILER_REQUIRED_ANNOTATIONS] val resolveMe: A = LAZY_EXPRESSION
private [COMPILER_REQUIRED_ANNOTATIONS] get(): A
public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| {
public? final? [RAW_FIR] fun x(): R|kotlin/Unit|
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] val resolveMe: A = LAZY_EXPRESSION
private [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] get(): A
public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| {
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit|
}
COMPANION_GENERATION:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final? [COMPANION_GENERATION] val resolveMe: A = LAZY_EXPRESSION
private [COMPANION_GENERATION] get(): A
public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| {
public? final? [RAW_FIR] fun x(): R|kotlin/Unit|
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final? [ResolvedTo(COMPANION_GENERATION)] val resolveMe: A = LAZY_EXPRESSION
private [ResolvedTo(COMPANION_GENERATION)] get(): A
public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| {
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit|
}
SUPER_TYPES:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final? [SUPER_TYPES] val resolveMe: A = LAZY_EXPRESSION
private [SUPER_TYPES] get(): A
public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| {
public? final? [RAW_FIR] fun x(): R|kotlin/Unit|
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final? [ResolvedTo(SUPER_TYPES)] val resolveMe: A = LAZY_EXPRESSION
private [ResolvedTo(SUPER_TYPES)] get(): A
public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| {
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit|
}
TYPES:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final? [TYPES] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = LAZY_EXPRESSION
private [TYPES] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| {
public? final? [RAW_FIR] fun x(): R|kotlin/Unit|
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final? [ResolvedTo(TYPES)] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = LAZY_EXPRESSION
private [ResolvedTo(TYPES)] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| {
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit|
}
STATUS:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final [STATUS] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = LAZY_EXPRESSION
private [STATUS] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| {
public? final? [RAW_FIR] fun x(): R|kotlin/Unit|
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final [ResolvedTo(STATUS)] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = LAZY_EXPRESSION
private [ResolvedTo(STATUS)] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| {
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit|
}
EXPECT_ACTUAL_MATCHING:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final [EXPECT_ACTUAL_MATCHING] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : A<Int> {
private [RAW_FIR] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : A<Int> {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<<implicit>>()
}
public? open? override [RAW_FIR] fun x(): R|kotlin/Unit| {
public? open? override [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
}
}
private [EXPECT_ACTUAL_MATCHING] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| {
public? final? [RAW_FIR] fun x(): R|kotlin/Unit|
private [ResolvedTo(EXPECT_ACTUAL_MATCHING)] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| {
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit|
}
ARGUMENTS_OF_ANNOTATIONS:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final [ARGUMENTS_OF_ANNOTATIONS] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : A<Int> {
private [RAW_FIR] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : A<Int> {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<<implicit>>()
}
public? open? override [RAW_FIR] fun x(): R|kotlin/Unit| {
public? open? override [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
}
}
private [ARGUMENTS_OF_ANNOTATIONS] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| {
public? final? [RAW_FIR] fun x(): R|kotlin/Unit|
private [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| {
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit|
}
CONTRACTS:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final [CONTRACTS] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : A<Int> {
private [RAW_FIR] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final [ResolvedTo(CONTRACTS)] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : A<Int> {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<<implicit>>()
}
public? open? override [RAW_FIR] fun x(): R|kotlin/Unit| {
public? open? override [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
}
}
private [CONTRACTS] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| {
public? final? [RAW_FIR] fun x(): R|kotlin/Unit|
private [ResolvedTo(CONTRACTS)] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| {
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit|
}
IMPLICIT_TYPES_BODY_RESOLVE:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final [IMPLICIT_TYPES_BODY_RESOLVE] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : A<Int> {
private [RAW_FIR] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : A<Int> {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<<implicit>>()
}
public? open? override [RAW_FIR] fun x(): R|kotlin/Unit| {
public? open? override [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
}
}
private [IMPLICIT_TYPES_BODY_RESOLVE] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| {
public? final? [RAW_FIR] fun x(): R|kotlin/Unit|
private [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| {
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit|
}
ANNOTATIONS_ARGUMENTS_MAPPING:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final [ANNOTATIONS_ARGUMENTS_MAPPING] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : A<Int> {
private [RAW_FIR] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : A<Int> {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<<implicit>>()
}
public? open? override [RAW_FIR] fun x(): R|kotlin/Unit| {
public? open? override [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
}
}
private [ANNOTATIONS_ARGUMENTS_MAPPING] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| {
public? final? [RAW_FIR] fun x(): R|kotlin/Unit|
private [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] get(): <ERROR TYPE REF: Wrong number of type arguments>
public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| {
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit|
}
BODY_RESOLVE:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[RAW_FIR] annotations container
private final [BODY_RESOLVE] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : R|A<kotlin/Int>| {
private [BODY_RESOLVE] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(RAW_FIR)] annotations container
private final [ResolvedTo(BODY_RESOLVE)] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : R|A<kotlin/Int>| {
private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<R|kotlin/Any|>()
}
public open override [BODY_RESOLVE] fun x(): R|kotlin/Unit| {
public open override [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
}
}
private [BODY_RESOLVE] get(): <ERROR TYPE REF: Wrong number of type arguments>
public abstract [TYPES] interface A<[TYPES] T> : R|kotlin/Any| {
public abstract [TYPES] fun x(): R|kotlin/Unit|
private [ResolvedTo(BODY_RESOLVE)] get(): <ERROR TYPE REF: Wrong number of type arguments>
public abstract [ResolvedTo(TYPES)] interface A<[ResolvedTo(TYPES)] T> : R|kotlin/Any| {
public abstract [ResolvedTo(TYPES)] fun x(): R|kotlin/Unit|
}
FILE RAW TO BODY:
FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt
[BODY_RESOLVE] annotations container
private final [BODY_RESOLVE] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : R|A<kotlin/Int>| {
private [BODY_RESOLVE] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
[ResolvedTo(BODY_RESOLVE)] annotations container
private final [ResolvedTo(BODY_RESOLVE)] val resolveMe: <ERROR TYPE REF: Wrong number of type arguments> = ERROR_EXPR(Should have initializer)Null(null) = object : R|A<kotlin/Int>| {
private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<R|kotlin/Any|>()
}
public open override [BODY_RESOLVE] fun x(): R|kotlin/Unit| {
public open override [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
}
}
private [BODY_RESOLVE] get(): <ERROR TYPE REF: Wrong number of type arguments>
public abstract [BODY_RESOLVE] interface A<[BODY_RESOLVE] T> : R|kotlin/Any| {
public abstract [BODY_RESOLVE] fun x(): R|kotlin/Unit|
private [ResolvedTo(BODY_RESOLVE)] get(): <ERROR TYPE REF: Wrong number of type arguments>
public abstract [ResolvedTo(BODY_RESOLVE)] interface A<[ResolvedTo(BODY_RESOLVE)] T> : R|kotlin/Any| {
public abstract [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit|
}