[LL FIR] FileStructure: resolve FirFile to body phase as all other elements

This is the correct behavior as we have to resolve to body phase
to build CFG and run diagnostics collector correctly

^KT-65780 Fixed
This commit is contained in:
Dmitrii Gridin
2024-02-13 14:33:29 +01:00
committed by Space Team
parent 84b6d5d508
commit 7796ef43db
27 changed files with 27 additions and 28 deletions
@@ -6,6 +6,6 @@ FIR element rendered:
@FILE:R|kotlin/Suppress|[Types](names = vararg(String()))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] fileAnnotation.kt
FILE: [ResolvedTo(BODY_RESOLVE)] fileAnnotation.kt
@FILE:R|kotlin/Suppress|[Types](names = vararg(String()))
[ResolvedTo(BODY_RESOLVE)] annotations container
@@ -6,7 +6,7 @@ FIR element rendered:
@FILE:R|kotlin/Suppress|[Types](names = vararg(String()))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] fileAnnotationScript.kts
FILE: [ResolvedTo(BODY_RESOLVE)] fileAnnotationScript.kts
@FILE:R|kotlin/Suppress|[Types](names = vararg(String()))
[ResolvedTo(BODY_RESOLVE)] annotations container
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
@@ -6,7 +6,7 @@ FIR element rendered:
@FILE:R|Ann|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] file.kt
FILE: [ResolvedTo(BODY_RESOLVE)] file.kt
@FILE:R|Ann|[Types]()
[ResolvedTo(BODY_RESOLVE)] annotations container
public final [ResolvedTo(STATUS)] annotation class Ann : R|kotlin/Annotation| {
@@ -6,7 +6,7 @@ FIR element rendered:
@FILE:R|Ann|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] fileScript.kts
FILE: [ResolvedTo(BODY_RESOLVE)] fileScript.kts
@FILE:R|Ann|[Types]()
[ResolvedTo(BODY_RESOLVE)] annotations container
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)