[Analysis API] Add reference resolution tests for code fragments
This commit is contained in:
+190
@@ -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")
|
||||
|
||||
+40
@@ -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")
|
||||
|
||||
+190
@@ -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")
|
||||
|
||||
+190
@@ -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")
|
||||
|
||||
+40
@@ -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")
|
||||
|
||||
+190
@@ -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")
|
||||
|
||||
+190
@@ -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")
|
||||
|
||||
Vendored
+19
@@ -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
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in kotlin.Int) operator fun plus(other: kotlin.Int): kotlin.Int
|
||||
Vendored
+16
@@ -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
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in kotlin.String) companion object
|
||||
+16
@@ -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()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) fun test()
|
||||
Vendored
+18
@@ -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()
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) fun foo()
|
||||
Vendored
+17
@@ -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()
|
||||
analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/LocalFunctionCall.txt
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in <local>: test) fun local()
|
||||
analysis/analysis-api/testData/referenceResolve/codeFragment/blockCodeFragment/NestedCodeFragment.kt
Vendored
+26
@@ -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()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) fun bar()
|
||||
+26
@@ -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()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in <local>: Local) constructor()
|
||||
+30
@@ -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()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in <local>: Local) constructor()
|
||||
+26
@@ -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()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) fun bar()
|
||||
Vendored
+18
@@ -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
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) val foo: kotlin.String
|
||||
Vendored
+20
@@ -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()
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) fun bar()
|
||||
+19
@@ -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
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in kotlin.Int) operator fun plus(other: kotlin.Int): kotlin.Int
|
||||
analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/CompanionCall.kt
Vendored
+16
@@ -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
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in kotlin.String) companion object
|
||||
+16
@@ -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()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) fun test()
|
||||
Vendored
+18
@@ -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()
|
||||
analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/FunctionCall.txt
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) fun foo()
|
||||
+17
@@ -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()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in <local>: test) fun local()
|
||||
+26
@@ -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()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) fun bar()
|
||||
+29
@@ -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()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in <local>: <no name>) fun bar()
|
||||
Vendored
+18
@@ -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
|
||||
analysis/analysis-api/testData/referenceResolve/codeFragment/expressionCodeFragment/PropertyCall.txt
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) val foo: kotlin.String
|
||||
Vendored
+18
@@ -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
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) class Foo
|
||||
Vendored
+19
@@ -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
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) object Foo
|
||||
Vendored
+16
@@ -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>
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in kotlin.collections) interface List<out E> : kotlin.collections.Collection<E>
|
||||
analysis/analysis-api/testData/referenceResolve/codeFragment/typeCodeFragment/GenericTypeArgument.kt
Vendored
+16
@@ -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>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in kotlin) class String : kotlin.Comparable<kotlin.String>, kotlin.CharSequence, java.io.Serializable
|
||||
+16
@@ -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
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in kotlin) class String : kotlin.Comparable<kotlin.String>, kotlin.CharSequence, java.io.Serializable
|
||||
Vendored
+19
@@ -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
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Anno) constructor()
|
||||
Reference in New Issue
Block a user