[LL FIR] add tests for getOrBuildFir for KtFileAnnotationList
^KT-65780
This commit is contained in:
committed by
Space Team
parent
5426cbc3df
commit
84b6d5d508
+4
@@ -0,0 +1,4 @@
|
||||
// LOOK_UP_FOR_ELEMENT_OF_TYPE: KtFileAnnotationList
|
||||
// WITH_STDLIB
|
||||
|
||||
<expr>@file:Suppress("")</expr>
|
||||
+12
@@ -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
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// LOOK_UP_FOR_ELEMENT_OF_TYPE: KtFileAnnotationList
|
||||
// WITH_STDLIB
|
||||
|
||||
<expr>@file:Suppress("")</expr>
|
||||
Vendored
+15
@@ -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>|
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user