[FIR] JavaTypeParameterStack: allow nullable return from get

It is not always possible to have the correct mapping,
at least on the Analysis API side

^KT-66530 Fixed
This commit is contained in:
Dmitrii Gridin
2024-03-12 16:42:20 +01:00
committed by Space Team
parent eb8054ac1e
commit 675bf36049
16 changed files with 182 additions and 16 deletions
@@ -57,6 +57,24 @@ public class FirStandaloneNormalAnalysisSourceModuleAnalysisApiKtTypeByPsiTypePr
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/asKtType/extends.kt");
}
@Test
@TestMetadata("methodTypeParameterWithKotlinUseSite.kt")
public void testMethodTypeParameterWithKotlinUseSite() {
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/asKtType/methodTypeParameterWithKotlinUseSite.kt");
}
@Test
@TestMetadata("methodTypeParameterWithMethodUseSite.kt")
public void testMethodTypeParameterWithMethodUseSite() {
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/asKtType/methodTypeParameterWithMethodUseSite.kt");
}
@Test
@TestMetadata("methodTypeParameterWithTypeParameterUseSite.kt")
public void testMethodTypeParameterWithTypeParameterUseSite() {
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/asKtType/methodTypeParameterWithTypeParameterUseSite.kt");
}
@Test
@TestMetadata("methodTypeParameters.kt")
public void testMethodTypeParameters() {
@@ -81,6 +99,18 @@ public class FirStandaloneNormalAnalysisSourceModuleAnalysisApiKtTypeByPsiTypePr
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/asKtType/primitive.kt");
}
@Test
@TestMetadata("typeParameterWithKotlinUseSite.kt")
public void testTypeParameterWithKotlinUseSite() {
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/asKtType/typeParameterWithKotlinUseSite.kt");
}
@Test
@TestMetadata("typeParameterWithMethodUseSite.kt")
public void testTypeParameterWithMethodUseSite() {
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/asKtType/typeParameterWithMethodUseSite.kt");
}
@Test
@TestMetadata("typeParameters.kt")
public void testTypeParameters() {