[FIR] getValueClassUnderlyingParameters: fix TODO

^KT-53573 Obsolete
This commit is contained in:
Dmitrii Gridin
2023-07-14 13:29:49 +02:00
committed by Space Team
parent 5e63f7627f
commit 1642eaa48a
5 changed files with 37 additions and 12 deletions
@@ -0,0 +1,3 @@
// LOOK_UP_FOR_ELEMENT_OF_TYPE: org.jetbrains.kotlin.psi.KtParameter
class X(<expr>resolveMe: Int = 5</expr>)
@@ -0,0 +1,16 @@
KT element: KtParameter
FIR element: FirValueParameterImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
[ResolvedTo(BODY_RESOLVE)] resolveMe: R|kotlin/Int| = Int(5)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] constructorParameter.kt
[ResolvedTo(BODY_RESOLVE)] annotations container
public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| {
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] constructor([ResolvedTo(BODY_RESOLVE)] resolveMe: R|kotlin/Int| = Int(5)): R|X| {
super<R|kotlin/Any|>()
}
}
@@ -477,6 +477,12 @@ public class OutOfContentRootGetOrBuildFirTestGenerated extends AbstractOutOfCon
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testdata/getOrBuildFir/declarations"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@Test
@TestMetadata("constructorParameter.kt")
public void testConstructorParameter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/declarations/constructorParameter.kt");
}
@Test
@TestMetadata("constructorProperty.kt")
public void testConstructorProperty() throws Exception {
@@ -477,6 +477,12 @@ public class SourceGetOrBuildFirTestGenerated extends AbstractSourceGetOrBuildFi
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testdata/getOrBuildFir/declarations"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@Test
@TestMetadata("constructorParameter.kt")
public void testConstructorParameter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/declarations/constructorParameter.kt");
}
@Test
@TestMetadata("constructorProperty.kt")
public void testConstructorProperty() throws Exception {