[LL FIR] add tests for getOrBuildFir for KtFileAnnotationList

^KT-65780
This commit is contained in:
Dmitrii Gridin
2024-02-13 16:11:35 +01:00
committed by Space Team
parent 5426cbc3df
commit 84b6d5d508
7 changed files with 53 additions and 0 deletions
@@ -0,0 +1,4 @@
// LOOK_UP_FOR_ELEMENT_OF_TYPE: KtFileAnnotationList
// WITH_STDLIB
<expr>@file:Suppress("")</expr>
@@ -0,0 +1,12 @@
KT element: KtFileAnnotationList
FIR element: FirFileAnnotationsContainerImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@FILE:R|kotlin/Suppress|[Types](names = vararg(String()))
[ResolvedTo(BODY_RESOLVE)] annotations container
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] fileAnnotationList.kt
@FILE:R|kotlin/Suppress|[Types](names = vararg(String()))
[ResolvedTo(BODY_RESOLVE)] annotations container
@@ -0,0 +1,4 @@
// LOOK_UP_FOR_ELEMENT_OF_TYPE: KtFileAnnotationList
// WITH_STDLIB
<expr>@file:Suppress("")</expr>
@@ -0,0 +1,15 @@
KT element: KtFileAnnotationList
FIR element: FirFileAnnotationsContainerImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@FILE:R|kotlin/Suppress|[Types](names = vararg(String()))
[ResolvedTo(BODY_RESOLVE)] annotations container
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] fileAnnotationListScript.kts
@FILE:R|kotlin/Suppress|[Types](names = vararg(String()))
[ResolvedTo(BODY_RESOLVE)] annotations container
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(RAW_FIR)] <script-fileAnnotationListScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
@@ -1299,6 +1299,12 @@ public class OutOfContentRootGetOrBuildFirTestGenerated extends AbstractOutOfCon
runTest("analysis/low-level-api-fir/testData/getOrBuildFir/wholeDeclaration/externalJavaAnnotation.kt");
}
@Test
@TestMetadata("fileAnnotationList.kt")
public void testFileAnnotationList() throws Exception {
runTest("analysis/low-level-api-fir/testData/getOrBuildFir/wholeDeclaration/fileAnnotationList.kt");
}
@Test
@TestMetadata("functionTypeParemeter.kt")
public void testFunctionTypeParemeter() throws Exception {
@@ -831,6 +831,12 @@ public class ScriptGetOrBuildFirTestGenerated extends AbstractScriptGetOrBuildFi
runTest("analysis/low-level-api-fir/testData/getOrBuildFir/wholeDeclaration/enumEntryScript.kts");
}
@Test
@TestMetadata("fileAnnotationListScript.kts")
public void testFileAnnotationListScript() throws Exception {
runTest("analysis/low-level-api-fir/testData/getOrBuildFir/wholeDeclaration/fileAnnotationListScript.kts");
}
@Test
@TestMetadata("function.kts")
public void testFunction() throws Exception {
@@ -1299,6 +1299,12 @@ public class SourceGetOrBuildFirTestGenerated extends AbstractSourceGetOrBuildFi
runTest("analysis/low-level-api-fir/testData/getOrBuildFir/wholeDeclaration/externalJavaAnnotation.kt");
}
@Test
@TestMetadata("fileAnnotationList.kt")
public void testFileAnnotationList() throws Exception {
runTest("analysis/low-level-api-fir/testData/getOrBuildFir/wholeDeclaration/fileAnnotationList.kt");
}
@Test
@TestMetadata("functionTypeParemeter.kt")
public void testFunctionTypeParemeter() throws Exception {