[Analysis API] Add reference resolution tests for code fragments

This commit is contained in:
Yan Zhulanow
2024-01-18 18:20:14 +09:00
committed by Space Team
parent c548bed6f6
commit ef890e9b76
57 changed files with 1575 additions and 0 deletions
@@ -744,6 +744,196 @@ public class Fe10IdeNormalAnalysisSourceModuleReferenceResolveTestGenerated exte
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment")
@TestDataPath("$PROJECT_ROOT")
public class CodeFragment {
@Test
public void testAllFilesPresentInCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class BlockCodeFragment {
@Test
public void testAllFilesPresentInBlockCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("BinaryExpression.kt")
public void testBinaryExpression() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/BinaryExpression.kt");
}
@Test
@TestMetadata("CompanionCall.kt")
public void testCompanionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/CompanionCall.kt");
}
@Test
@TestMetadata("ContextFunctionCall.kt")
public void testContextFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/ContextFunctionCall.kt");
}
@Test
@TestMetadata("FunctionCall.kt")
public void testFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/FunctionCall.kt");
}
@Test
@TestMetadata("LocalFunctionCall.kt")
public void testLocalFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/LocalFunctionCall.kt");
}
@Test
@TestMetadata("NestedCodeFragment.kt")
public void testNestedCodeFragment() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragment.kt");
}
@Test
@TestMetadata("NestedCodeFragmentClass.kt")
public void testNestedCodeFragmentClass() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentClass.kt");
}
@Test
@TestMetadata("NestedCodeFragmentClassMember.kt")
public void testNestedCodeFragmentClassMember() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentClassMember.kt");
}
@Test
@TestMetadata("NestedCodeFragmentFunction.kt")
public void testNestedCodeFragmentFunction() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentFunction.kt");
}
@Test
@TestMetadata("PropertyCall.kt")
public void testPropertyCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/PropertyCall.kt");
}
@Test
@TestMetadata("SecondStatement.kt")
public void testSecondStatement() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/SecondStatement.kt");
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class ExpressionCodeFragment {
@Test
public void testAllFilesPresentInExpressionCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("BinaryExpression.kt")
public void testBinaryExpression() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/BinaryExpression.kt");
}
@Test
@TestMetadata("CompanionCall.kt")
public void testCompanionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/CompanionCall.kt");
}
@Test
@TestMetadata("ContextFunctionCall.kt")
public void testContextFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/ContextFunctionCall.kt");
}
@Test
@TestMetadata("FunctionCall.kt")
public void testFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/FunctionCall.kt");
}
@Test
@TestMetadata("LocalFunctionCall.kt")
public void testLocalFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/LocalFunctionCall.kt");
}
@Test
@TestMetadata("NestedCodeFragment.kt")
public void testNestedCodeFragment() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/NestedCodeFragment.kt");
}
@Test
@TestMetadata("NestedCodeFragmentUsage.kt")
public void testNestedCodeFragmentUsage() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/NestedCodeFragmentUsage.kt");
}
@Test
@TestMetadata("PropertyCall.kt")
public void testPropertyCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/PropertyCall.kt");
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class TypeCodeFragment {
@Test
public void testAllFilesPresentInTypeCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("FromContextFile.kt")
public void testFromContextFile() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/FromContextFile.kt");
}
@Test
@TestMetadata("FromContextModule.kt")
public void testFromContextModule() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/FromContextModule.kt");
}
@Test
@TestMetadata("GenericType.kt")
public void testGenericType() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/GenericType.kt");
}
@Test
@TestMetadata("GenericTypeArgument.kt")
public void testGenericTypeArgument() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/GenericTypeArgument.kt");
}
@Test
@TestMetadata("Simple.kt")
public void testSimple() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/Simple.kt");
}
@Test
@TestMetadata("TypeAnnotation.kt")
public void testTypeAnnotation() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/TypeAnnotation.kt");
}
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/constructorDelegatingReference")
@TestDataPath("$PROJECT_ROOT")
@@ -78,6 +78,46 @@ public class FirIdeDependentAnalysisScriptSourceModuleReferenceResolveTestGenera
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment")
@TestDataPath("$PROJECT_ROOT")
public class CodeFragment {
@Test
public void testAllFilesPresentInCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment"), Pattern.compile("^(.+)\\.kts$"), null, true);
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class BlockCodeFragment {
@Test
public void testAllFilesPresentInBlockCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment"), Pattern.compile("^(.+)\\.kts$"), null, true);
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class ExpressionCodeFragment {
@Test
public void testAllFilesPresentInExpressionCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment"), Pattern.compile("^(.+)\\.kts$"), null, true);
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class TypeCodeFragment {
@Test
public void testAllFilesPresentInTypeCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment"), Pattern.compile("^(.+)\\.kts$"), null, true);
}
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/constructorDelegatingReference")
@TestDataPath("$PROJECT_ROOT")
@@ -744,6 +744,196 @@ public class FirIdeDependentAnalysisSourceModuleReferenceResolveTestGenerated ex
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment")
@TestDataPath("$PROJECT_ROOT")
public class CodeFragment {
@Test
public void testAllFilesPresentInCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class BlockCodeFragment {
@Test
public void testAllFilesPresentInBlockCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("BinaryExpression.kt")
public void testBinaryExpression() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/BinaryExpression.kt");
}
@Test
@TestMetadata("CompanionCall.kt")
public void testCompanionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/CompanionCall.kt");
}
@Test
@TestMetadata("ContextFunctionCall.kt")
public void testContextFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/ContextFunctionCall.kt");
}
@Test
@TestMetadata("FunctionCall.kt")
public void testFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/FunctionCall.kt");
}
@Test
@TestMetadata("LocalFunctionCall.kt")
public void testLocalFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/LocalFunctionCall.kt");
}
@Test
@TestMetadata("NestedCodeFragment.kt")
public void testNestedCodeFragment() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragment.kt");
}
@Test
@TestMetadata("NestedCodeFragmentClass.kt")
public void testNestedCodeFragmentClass() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentClass.kt");
}
@Test
@TestMetadata("NestedCodeFragmentClassMember.kt")
public void testNestedCodeFragmentClassMember() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentClassMember.kt");
}
@Test
@TestMetadata("NestedCodeFragmentFunction.kt")
public void testNestedCodeFragmentFunction() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentFunction.kt");
}
@Test
@TestMetadata("PropertyCall.kt")
public void testPropertyCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/PropertyCall.kt");
}
@Test
@TestMetadata("SecondStatement.kt")
public void testSecondStatement() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/SecondStatement.kt");
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class ExpressionCodeFragment {
@Test
public void testAllFilesPresentInExpressionCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("BinaryExpression.kt")
public void testBinaryExpression() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/BinaryExpression.kt");
}
@Test
@TestMetadata("CompanionCall.kt")
public void testCompanionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/CompanionCall.kt");
}
@Test
@TestMetadata("ContextFunctionCall.kt")
public void testContextFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/ContextFunctionCall.kt");
}
@Test
@TestMetadata("FunctionCall.kt")
public void testFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/FunctionCall.kt");
}
@Test
@TestMetadata("LocalFunctionCall.kt")
public void testLocalFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/LocalFunctionCall.kt");
}
@Test
@TestMetadata("NestedCodeFragment.kt")
public void testNestedCodeFragment() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/NestedCodeFragment.kt");
}
@Test
@TestMetadata("NestedCodeFragmentUsage.kt")
public void testNestedCodeFragmentUsage() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/NestedCodeFragmentUsage.kt");
}
@Test
@TestMetadata("PropertyCall.kt")
public void testPropertyCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/PropertyCall.kt");
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class TypeCodeFragment {
@Test
public void testAllFilesPresentInTypeCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("FromContextFile.kt")
public void testFromContextFile() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/FromContextFile.kt");
}
@Test
@TestMetadata("FromContextModule.kt")
public void testFromContextModule() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/FromContextModule.kt");
}
@Test
@TestMetadata("GenericType.kt")
public void testGenericType() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/GenericType.kt");
}
@Test
@TestMetadata("GenericTypeArgument.kt")
public void testGenericTypeArgument() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/GenericTypeArgument.kt");
}
@Test
@TestMetadata("Simple.kt")
public void testSimple() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/Simple.kt");
}
@Test
@TestMetadata("TypeAnnotation.kt")
public void testTypeAnnotation() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/TypeAnnotation.kt");
}
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/constructorDelegatingReference")
@TestDataPath("$PROJECT_ROOT")
@@ -716,6 +716,196 @@ public class FirIdeNormalAnalysisLibrarySourceModuleReferenceResolveTestGenerate
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment")
@TestDataPath("$PROJECT_ROOT")
public class CodeFragment {
@Test
public void testAllFilesPresentInCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true, "withErrors");
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class BlockCodeFragment {
@Test
public void testAllFilesPresentInBlockCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true, "withErrors");
}
@Test
@TestMetadata("BinaryExpression.kt")
public void testBinaryExpression() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/BinaryExpression.kt");
}
@Test
@TestMetadata("CompanionCall.kt")
public void testCompanionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/CompanionCall.kt");
}
@Test
@TestMetadata("ContextFunctionCall.kt")
public void testContextFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/ContextFunctionCall.kt");
}
@Test
@TestMetadata("FunctionCall.kt")
public void testFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/FunctionCall.kt");
}
@Test
@TestMetadata("LocalFunctionCall.kt")
public void testLocalFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/LocalFunctionCall.kt");
}
@Test
@TestMetadata("NestedCodeFragment.kt")
public void testNestedCodeFragment() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragment.kt");
}
@Test
@TestMetadata("NestedCodeFragmentClass.kt")
public void testNestedCodeFragmentClass() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentClass.kt");
}
@Test
@TestMetadata("NestedCodeFragmentClassMember.kt")
public void testNestedCodeFragmentClassMember() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentClassMember.kt");
}
@Test
@TestMetadata("NestedCodeFragmentFunction.kt")
public void testNestedCodeFragmentFunction() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentFunction.kt");
}
@Test
@TestMetadata("PropertyCall.kt")
public void testPropertyCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/PropertyCall.kt");
}
@Test
@TestMetadata("SecondStatement.kt")
public void testSecondStatement() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/SecondStatement.kt");
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class ExpressionCodeFragment {
@Test
public void testAllFilesPresentInExpressionCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true, "withErrors");
}
@Test
@TestMetadata("BinaryExpression.kt")
public void testBinaryExpression() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/BinaryExpression.kt");
}
@Test
@TestMetadata("CompanionCall.kt")
public void testCompanionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/CompanionCall.kt");
}
@Test
@TestMetadata("ContextFunctionCall.kt")
public void testContextFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/ContextFunctionCall.kt");
}
@Test
@TestMetadata("FunctionCall.kt")
public void testFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/FunctionCall.kt");
}
@Test
@TestMetadata("LocalFunctionCall.kt")
public void testLocalFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/LocalFunctionCall.kt");
}
@Test
@TestMetadata("NestedCodeFragment.kt")
public void testNestedCodeFragment() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/NestedCodeFragment.kt");
}
@Test
@TestMetadata("NestedCodeFragmentUsage.kt")
public void testNestedCodeFragmentUsage() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/NestedCodeFragmentUsage.kt");
}
@Test
@TestMetadata("PropertyCall.kt")
public void testPropertyCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/PropertyCall.kt");
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class TypeCodeFragment {
@Test
public void testAllFilesPresentInTypeCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true, "withErrors");
}
@Test
@TestMetadata("FromContextFile.kt")
public void testFromContextFile() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/FromContextFile.kt");
}
@Test
@TestMetadata("FromContextModule.kt")
public void testFromContextModule() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/FromContextModule.kt");
}
@Test
@TestMetadata("GenericType.kt")
public void testGenericType() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/GenericType.kt");
}
@Test
@TestMetadata("GenericTypeArgument.kt")
public void testGenericTypeArgument() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/GenericTypeArgument.kt");
}
@Test
@TestMetadata("Simple.kt")
public void testSimple() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/Simple.kt");
}
@Test
@TestMetadata("TypeAnnotation.kt")
public void testTypeAnnotation() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/TypeAnnotation.kt");
}
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/constructorDelegatingReference")
@TestDataPath("$PROJECT_ROOT")
@@ -78,6 +78,46 @@ public class FirIdeNormalAnalysisScriptSourceModuleReferenceResolveTestGenerated
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment")
@TestDataPath("$PROJECT_ROOT")
public class CodeFragment {
@Test
public void testAllFilesPresentInCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment"), Pattern.compile("^(.+)\\.kts$"), null, true);
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class BlockCodeFragment {
@Test
public void testAllFilesPresentInBlockCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment"), Pattern.compile("^(.+)\\.kts$"), null, true);
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class ExpressionCodeFragment {
@Test
public void testAllFilesPresentInExpressionCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment"), Pattern.compile("^(.+)\\.kts$"), null, true);
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class TypeCodeFragment {
@Test
public void testAllFilesPresentInTypeCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment"), Pattern.compile("^(.+)\\.kts$"), null, true);
}
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/constructorDelegatingReference")
@TestDataPath("$PROJECT_ROOT")
@@ -744,6 +744,196 @@ public class FirIdeNormalAnalysisSourceModuleReferenceResolveTestGenerated exten
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment")
@TestDataPath("$PROJECT_ROOT")
public class CodeFragment {
@Test
public void testAllFilesPresentInCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class BlockCodeFragment {
@Test
public void testAllFilesPresentInBlockCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("BinaryExpression.kt")
public void testBinaryExpression() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/BinaryExpression.kt");
}
@Test
@TestMetadata("CompanionCall.kt")
public void testCompanionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/CompanionCall.kt");
}
@Test
@TestMetadata("ContextFunctionCall.kt")
public void testContextFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/ContextFunctionCall.kt");
}
@Test
@TestMetadata("FunctionCall.kt")
public void testFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/FunctionCall.kt");
}
@Test
@TestMetadata("LocalFunctionCall.kt")
public void testLocalFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/LocalFunctionCall.kt");
}
@Test
@TestMetadata("NestedCodeFragment.kt")
public void testNestedCodeFragment() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragment.kt");
}
@Test
@TestMetadata("NestedCodeFragmentClass.kt")
public void testNestedCodeFragmentClass() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentClass.kt");
}
@Test
@TestMetadata("NestedCodeFragmentClassMember.kt")
public void testNestedCodeFragmentClassMember() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentClassMember.kt");
}
@Test
@TestMetadata("NestedCodeFragmentFunction.kt")
public void testNestedCodeFragmentFunction() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentFunction.kt");
}
@Test
@TestMetadata("PropertyCall.kt")
public void testPropertyCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/PropertyCall.kt");
}
@Test
@TestMetadata("SecondStatement.kt")
public void testSecondStatement() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/SecondStatement.kt");
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class ExpressionCodeFragment {
@Test
public void testAllFilesPresentInExpressionCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("BinaryExpression.kt")
public void testBinaryExpression() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/BinaryExpression.kt");
}
@Test
@TestMetadata("CompanionCall.kt")
public void testCompanionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/CompanionCall.kt");
}
@Test
@TestMetadata("ContextFunctionCall.kt")
public void testContextFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/ContextFunctionCall.kt");
}
@Test
@TestMetadata("FunctionCall.kt")
public void testFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/FunctionCall.kt");
}
@Test
@TestMetadata("LocalFunctionCall.kt")
public void testLocalFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/LocalFunctionCall.kt");
}
@Test
@TestMetadata("NestedCodeFragment.kt")
public void testNestedCodeFragment() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/NestedCodeFragment.kt");
}
@Test
@TestMetadata("NestedCodeFragmentUsage.kt")
public void testNestedCodeFragmentUsage() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/NestedCodeFragmentUsage.kt");
}
@Test
@TestMetadata("PropertyCall.kt")
public void testPropertyCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/PropertyCall.kt");
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class TypeCodeFragment {
@Test
public void testAllFilesPresentInTypeCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("FromContextFile.kt")
public void testFromContextFile() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/FromContextFile.kt");
}
@Test
@TestMetadata("FromContextModule.kt")
public void testFromContextModule() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/FromContextModule.kt");
}
@Test
@TestMetadata("GenericType.kt")
public void testGenericType() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/GenericType.kt");
}
@Test
@TestMetadata("GenericTypeArgument.kt")
public void testGenericTypeArgument() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/GenericTypeArgument.kt");
}
@Test
@TestMetadata("Simple.kt")
public void testSimple() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/Simple.kt");
}
@Test
@TestMetadata("TypeAnnotation.kt")
public void testTypeAnnotation() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/TypeAnnotation.kt");
}
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/constructorDelegatingReference")
@TestDataPath("$PROJECT_ROOT")
@@ -744,6 +744,196 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceResolveTestGenerate
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment")
@TestDataPath("$PROJECT_ROOT")
public class CodeFragment {
@Test
public void testAllFilesPresentInCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class BlockCodeFragment {
@Test
public void testAllFilesPresentInBlockCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("BinaryExpression.kt")
public void testBinaryExpression() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/BinaryExpression.kt");
}
@Test
@TestMetadata("CompanionCall.kt")
public void testCompanionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/CompanionCall.kt");
}
@Test
@TestMetadata("ContextFunctionCall.kt")
public void testContextFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/ContextFunctionCall.kt");
}
@Test
@TestMetadata("FunctionCall.kt")
public void testFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/FunctionCall.kt");
}
@Test
@TestMetadata("LocalFunctionCall.kt")
public void testLocalFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/LocalFunctionCall.kt");
}
@Test
@TestMetadata("NestedCodeFragment.kt")
public void testNestedCodeFragment() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragment.kt");
}
@Test
@TestMetadata("NestedCodeFragmentClass.kt")
public void testNestedCodeFragmentClass() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentClass.kt");
}
@Test
@TestMetadata("NestedCodeFragmentClassMember.kt")
public void testNestedCodeFragmentClassMember() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentClassMember.kt");
}
@Test
@TestMetadata("NestedCodeFragmentFunction.kt")
public void testNestedCodeFragmentFunction() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragmentFunction.kt");
}
@Test
@TestMetadata("PropertyCall.kt")
public void testPropertyCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/PropertyCall.kt");
}
@Test
@TestMetadata("SecondStatement.kt")
public void testSecondStatement() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/SecondStatement.kt");
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class ExpressionCodeFragment {
@Test
public void testAllFilesPresentInExpressionCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("BinaryExpression.kt")
public void testBinaryExpression() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/BinaryExpression.kt");
}
@Test
@TestMetadata("CompanionCall.kt")
public void testCompanionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/CompanionCall.kt");
}
@Test
@TestMetadata("ContextFunctionCall.kt")
public void testContextFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/ContextFunctionCall.kt");
}
@Test
@TestMetadata("FunctionCall.kt")
public void testFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/FunctionCall.kt");
}
@Test
@TestMetadata("LocalFunctionCall.kt")
public void testLocalFunctionCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/LocalFunctionCall.kt");
}
@Test
@TestMetadata("NestedCodeFragment.kt")
public void testNestedCodeFragment() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/NestedCodeFragment.kt");
}
@Test
@TestMetadata("NestedCodeFragmentUsage.kt")
public void testNestedCodeFragmentUsage() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/NestedCodeFragmentUsage.kt");
}
@Test
@TestMetadata("PropertyCall.kt")
public void testPropertyCall() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/PropertyCall.kt");
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment")
@TestDataPath("$PROJECT_ROOT")
public class TypeCodeFragment {
@Test
public void testAllFilesPresentInTypeCodeFragment() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("FromContextFile.kt")
public void testFromContextFile() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/FromContextFile.kt");
}
@Test
@TestMetadata("FromContextModule.kt")
public void testFromContextModule() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/FromContextModule.kt");
}
@Test
@TestMetadata("GenericType.kt")
public void testGenericType() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/GenericType.kt");
}
@Test
@TestMetadata("GenericTypeArgument.kt")
public void testGenericTypeArgument() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/GenericTypeArgument.kt");
}
@Test
@TestMetadata("Simple.kt")
public void testSimple() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/Simple.kt");
}
@Test
@TestMetadata("TypeAnnotation.kt")
public void testTypeAnnotation() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/TypeAnnotation.kt");
}
}
}
@Nested
@TestMetadata("analysis/analysis-api/testData/referenceResolve/constructorDelegatingReference")
@TestDataPath("$PROJECT_ROOT")
@@ -0,0 +1,19 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
val a: Int = 0
val b: Int = 5
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: BLOCK
a <caret>+ b
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin.Int) operator fun plus(other: kotlin.Int): kotlin.Int
@@ -0,0 +1,16 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: BLOCK
<caret>String
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin.String) companion object
@@ -0,0 +1,16 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: BLOCK
<caret>test()
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun test()
@@ -0,0 +1,18 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
fun foo() {}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: BLOCK
<caret>foo()
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun foo()
@@ -0,0 +1,17 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
fun local() {}
<caret_context>Unit
}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: BLOCK
<caret>local()
@@ -0,0 +1,2 @@
Resolved to:
0: (in <local>: test) fun local()
@@ -0,0 +1,26 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
fun foo() {}
fun bar() {}
// MODULE: contextFragment
// MODULE_KIND: CodeFragment
// FILE: contextFragment.kt
// CODE_FRAGMENT_KIND: EXPRESSION
<caret_context>foo()
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: BLOCK
<caret>bar()
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun bar()
@@ -0,0 +1,26 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
fun foo() {}
// MODULE: contextFragment
// MODULE_KIND: CodeFragment
// FILE: contextFragment.kt
// CODE_FRAGMENT_KIND: BLOCK
class Local {}
<caret_context>Local()
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: BLOCK
<caret>Local()
@@ -0,0 +1,2 @@
Resolved to:
0: (in <local>: Local) constructor()
@@ -0,0 +1,30 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
fun foo() {}
// MODULE: contextFragment
// MODULE_KIND: CodeFragment
// FILE: contextFragment.kt
// CODE_FRAGMENT_KIND: BLOCK
class Local {
fun local() {
Unit
}
}
<caret_context>Local().local()
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: BLOCK
<caret>Local().local()
@@ -0,0 +1,2 @@
Resolved to:
0: (in <local>: Local) constructor()
@@ -0,0 +1,26 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
fun foo() {}
// MODULE: contextFragment
// MODULE_KIND: CodeFragment
// FILE: contextFragment.kt
// CODE_FRAGMENT_KIND: BLOCK
fun bar() {}
<caret_context>bar()
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: BLOCK
<caret>bar()
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun bar()
@@ -0,0 +1,18 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
val foo = "foo"
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: BLOCK
<caret>foo
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) val foo: kotlin.String
@@ -0,0 +1,20 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
fun foo() {}
fun bar() {}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: BLOCK
foo()
<caret>bar()
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun bar()
@@ -0,0 +1,19 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
val a: Int = 0
val b: Int = 5
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: EXPRESSION
a <caret>+ b
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin.Int) operator fun plus(other: kotlin.Int): kotlin.Int
@@ -0,0 +1,16 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: EXPRESSION
<caret>String
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin.String) companion object
@@ -0,0 +1,16 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: EXPRESSION
<caret>test()
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun test()
@@ -0,0 +1,18 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
fun foo() {}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: EXPRESSION
<caret>foo()
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun foo()
@@ -0,0 +1,17 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
fun local() {}
<caret_context>Unit
}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: EXPRESSION
<caret>local()
@@ -0,0 +1,2 @@
Resolved to:
0: (in <local>: test) fun local()
@@ -0,0 +1,26 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
fun foo() {}
fun bar() {}
// MODULE: contextFragment
// MODULE_KIND: CodeFragment
// FILE: contextFragment.kt
// CODE_FRAGMENT_KIND: EXPRESSION
<caret_context>foo()
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: EXPRESSION
<caret>bar()
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun bar()
@@ -0,0 +1,29 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
fun foo() {}
// MODULE: contextFragment
// MODULE_KIND: CodeFragment
// FILE: contextFragment.kt
// CODE_FRAGMENT_KIND: EXPRESSION
object {
fun bar() {
<caret_context>Unit
}
}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: EXPRESSION
<caret>bar()
@@ -0,0 +1,2 @@
Resolved to:
0: (in <local>: <no name>) fun bar()
@@ -0,0 +1,18 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
val foo = "foo"
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: EXPRESSION
<caret>foo
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) val foo: kotlin.String
@@ -0,0 +1,18 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
class Foo
fun test() {
<caret_context>Foo()
}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: TYPE
<caret>Foo
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) class Foo
@@ -0,0 +1,19 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Foo
}
// FILE: other.kt
object Foo
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: TYPE
<caret>Foo
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) object Foo
@@ -0,0 +1,16 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: TYPE
<caret>List<String>
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin.collections) interface List<out E> : kotlin.collections.Collection<E>
@@ -0,0 +1,16 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: TYPE
List<<caret>String>
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin) class String : kotlin.Comparable<kotlin.String>, kotlin.CharSequence, java.io.Serializable
@@ -0,0 +1,16 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
fun test() {
<caret_context>Unit
}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: TYPE
<caret>String
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin) class String : kotlin.Comparable<kotlin.String>, kotlin.CharSequence, java.io.Serializable
@@ -0,0 +1,19 @@
// IGNORE_FE10
// MODULE: context
// FILE: context.kt
@Target(AnnotationTarget.TYPE)
annotation class Anno
fun test() {
<caret_context>Unit
}
// MODULE: main
// MODULE_KIND: CodeFragment
// FILE: fragment.kt
// CODE_FRAGMENT_KIND: TYPE
@<caret>Anno String
@@ -0,0 +1,2 @@
Resolved to:
0: (in Anno) constructor()