From 6ba69482afc03b7a67862598e3c2f5255ae0ac9a Mon Sep 17 00:00:00 2001 From: Dmitrii Gridin Date: Thu, 14 Mar 2024 16:52:20 +0100 Subject: [PATCH] [Analysis API Fe10] generate ExpressionPsiTypeProviderTest ^KT-66603 --- ...xpressionPsiTypeProviderTestGenerated.java | 101 ++++++++++++++++++ .../forExpression/KTIJ25461.descriptors.txt | 97 +++++++++++++++++ .../capturedBoundType.descriptors.txt | 97 +++++++++++++++++ .../class_object_call.descriptors.txt | 97 +++++++++++++++++ .../class_object_constructor.descriptors.txt | 97 +++++++++++++++++ .../forExpression/errorType.descriptors.txt | 97 +++++++++++++++++ ...assWithUnresolvedSuperType.descriptors.txt | 97 +++++++++++++++++ ...eTypeParameter_localSimple.descriptors.txt | 97 +++++++++++++++++ ...ter_localWithTypeParameter.descriptors.txt | 97 +++++++++++++++++ ...ypeParamFlexibleUpperBound.descriptors.txt | 97 +++++++++++++++++ .../tests/analysis/api/analysisApi.kt | 2 +- 11 files changed, 975 insertions(+), 1 deletion(-) create mode 100644 analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/psiTypeProvider/Fe10IdeNormalAnalysisSourceModuleAnalysisApiExpressionPsiTypeProviderTestGenerated.java create mode 100644 analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/KTIJ25461.descriptors.txt create mode 100644 analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/capturedBoundType.descriptors.txt create mode 100644 analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/class_object_call.descriptors.txt create mode 100644 analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/class_object_constructor.descriptors.txt create mode 100644 analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/errorType.descriptors.txt create mode 100644 analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/localClassWithUnresolvedSuperType.descriptors.txt create mode 100644 analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/recursiveTypeParameter_localSimple.descriptors.txt create mode 100644 analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/recursiveTypeParameter_localWithTypeParameter.descriptors.txt create mode 100644 analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/typeParamFlexibleUpperBound.descriptors.txt diff --git a/analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/psiTypeProvider/Fe10IdeNormalAnalysisSourceModuleAnalysisApiExpressionPsiTypeProviderTestGenerated.java b/analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/psiTypeProvider/Fe10IdeNormalAnalysisSourceModuleAnalysisApiExpressionPsiTypeProviderTestGenerated.java new file mode 100644 index 00000000000..67c2b810189 --- /dev/null +++ b/analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/psiTypeProvider/Fe10IdeNormalAnalysisSourceModuleAnalysisApiExpressionPsiTypeProviderTestGenerated.java @@ -0,0 +1,101 @@ +/* + * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.analysis.api.fe10.test.cases.generated.cases.components.psiTypeProvider; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.kotlin.analysis.api.fe10.test.configurator.AnalysisApiFe10TestConfiguratorFactory; +import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiTestConfiguratorFactoryData; +import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiTestConfigurator; +import org.jetbrains.kotlin.analysis.test.framework.test.configurators.TestModuleKind; +import org.jetbrains.kotlin.analysis.test.framework.test.configurators.FrontendKind; +import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisSessionMode; +import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiMode; +import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.components.psiTypeProvider.AbstractAnalysisApiExpressionPsiTypeProviderTest; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.jupiter.api.Test; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +@TestMetadata("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression") +@TestDataPath("$PROJECT_ROOT") +public class Fe10IdeNormalAnalysisSourceModuleAnalysisApiExpressionPsiTypeProviderTestGenerated extends AbstractAnalysisApiExpressionPsiTypeProviderTest { + @NotNull + @Override + public AnalysisApiTestConfigurator getConfigurator() { + return AnalysisApiFe10TestConfiguratorFactory.INSTANCE.createConfigurator( + new AnalysisApiTestConfiguratorFactoryData( + FrontendKind.Fe10, + TestModuleKind.Source, + AnalysisSessionMode.Normal, + AnalysisApiMode.Ide + ) + ); + } + + @Test + public void testAllFilesPresentInForExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("capturedBoundType.kt") + public void testCapturedBoundType() { + runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/capturedBoundType.kt"); + } + + @Test + @TestMetadata("class_object_call.kt") + public void testClass_object_call() { + runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/class_object_call.kt"); + } + + @Test + @TestMetadata("class_object_constructor.kt") + public void testClass_object_constructor() { + runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/class_object_constructor.kt"); + } + + @Test + @TestMetadata("errorType.kt") + public void testErrorType() { + runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/errorType.kt"); + } + + @Test + @TestMetadata("KTIJ25461.kt") + public void testKTIJ25461() { + runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/KTIJ25461.kt"); + } + + @Test + @TestMetadata("localClassWithUnresolvedSuperType.kt") + public void testLocalClassWithUnresolvedSuperType() { + runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/localClassWithUnresolvedSuperType.kt"); + } + + @Test + @TestMetadata("recursiveTypeParameter_localSimple.kt") + public void testRecursiveTypeParameter_localSimple() { + runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/recursiveTypeParameter_localSimple.kt"); + } + + @Test + @TestMetadata("recursiveTypeParameter_localWithTypeParameter.kt") + public void testRecursiveTypeParameter_localWithTypeParameter() { + runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/recursiveTypeParameter_localWithTypeParameter.kt"); + } + + @Test + @TestMetadata("typeParamFlexibleUpperBound.kt") + public void testTypeParamFlexibleUpperBound() { + runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/typeParamFlexibleUpperBound.kt"); + } +} diff --git a/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/KTIJ25461.descriptors.txt b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/KTIJ25461.descriptors.txt new file mode 100644 index 00000000000..66bf78cce32 --- /dev/null +++ b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/KTIJ25461.descriptors.txt @@ -0,0 +1,97 @@ +KtType: kotlin.Unit +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: kotlin.Unit + diff --git a/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/capturedBoundType.descriptors.txt b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/capturedBoundType.descriptors.txt new file mode 100644 index 00000000000..66bf78cce32 --- /dev/null +++ b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/capturedBoundType.descriptors.txt @@ -0,0 +1,97 @@ +KtType: kotlin.Unit +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: kotlin.Unit + diff --git a/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/class_object_call.descriptors.txt b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/class_object_call.descriptors.txt new file mode 100644 index 00000000000..66bf78cce32 --- /dev/null +++ b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/class_object_call.descriptors.txt @@ -0,0 +1,97 @@ +KtType: kotlin.Unit +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: kotlin.Unit + diff --git a/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/class_object_constructor.descriptors.txt b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/class_object_constructor.descriptors.txt new file mode 100644 index 00000000000..40d6a4403ba --- /dev/null +++ b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/class_object_constructor.descriptors.txt @@ -0,0 +1,97 @@ +KtType: ``.Outer.Inner +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: kotlin.Any + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: kotlin.Any + diff --git a/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/errorType.descriptors.txt b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/errorType.descriptors.txt new file mode 100644 index 00000000000..5bfec66cc27 --- /dev/null +++ b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/errorType.descriptors.txt @@ -0,0 +1,97 @@ +KtType: `UNRESOLVED` +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: null + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: null + diff --git a/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/localClassWithUnresolvedSuperType.descriptors.txt b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/localClassWithUnresolvedSuperType.descriptors.txt new file mode 100644 index 00000000000..05b4731e694 --- /dev/null +++ b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/localClassWithUnresolvedSuperType.descriptors.txt @@ -0,0 +1,97 @@ +KtType: Foo.Bar +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: Foo.Bar + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: Foo.Bar + diff --git a/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/recursiveTypeParameter_localSimple.descriptors.txt b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/recursiveTypeParameter_localSimple.descriptors.txt new file mode 100644 index 00000000000..622d9f47450 --- /dev/null +++ b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/recursiveTypeParameter_localSimple.descriptors.txt @@ -0,0 +1,97 @@ +KtType: kotlin.collections.List +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.collections.List + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.collections.List + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.collections.List + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.collections.List + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: java.util.List + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: java.util.List + diff --git a/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/recursiveTypeParameter_localWithTypeParameter.descriptors.txt b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/recursiveTypeParameter_localWithTypeParameter.descriptors.txt new file mode 100644 index 00000000000..e61ec54e9c9 --- /dev/null +++ b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/recursiveTypeParameter_localWithTypeParameter.descriptors.txt @@ -0,0 +1,97 @@ +KtType: kotlin.collections.List> +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.collections.List> + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.collections.List> + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.collections.List> + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.collections.List> + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: java.util.List> + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: java.util.List> + diff --git a/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/typeParamFlexibleUpperBound.descriptors.txt b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/typeParamFlexibleUpperBound.descriptors.txt new file mode 100644 index 00000000000..66bf78cce32 --- /dev/null +++ b/analysis/analysis-api/testData/components/psiTypeProvider/psiType/forExpression/typeParamFlexibleUpperBound.descriptors.txt @@ -0,0 +1,97 @@ +KtType: kotlin.Unit +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=DEFAULT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=false, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=DEFAULT_UAST, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=GENERIC_ARGUMENT, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE_BOXED, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=RETURN_TYPE, isAnnotationMethod=true): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=false): + PsiType: kotlin.Unit + +asPsiType(allowErrorTypes=true, mode=VALUE_PARAMETER, isAnnotationMethod=true): + PsiType: kotlin.Unit + diff --git a/generators/analysis-api-generator/tests/org/jetbrains/kotlin/generators/tests/analysis/api/analysisApi.kt b/generators/analysis-api-generator/tests/org/jetbrains/kotlin/generators/tests/analysis/api/analysisApi.kt index 2c22d121e5a..f3480f1a2d6 100644 --- a/generators/analysis-api-generator/tests/org/jetbrains/kotlin/generators/tests/analysis/api/analysisApi.kt +++ b/generators/analysis-api-generator/tests/org/jetbrains/kotlin/generators/tests/analysis/api/analysisApi.kt @@ -398,7 +398,7 @@ private fun AnalysisApiTestGroup.generateAnalysisApiComponentsTests() { model(it, "psiType/forDeclaration") } - test(filter = frontendIs(FrontendKind.Fir)) { + test { model(it, "psiType/forExpression") }