From f4ae696aee99ae6b667f0be5c70d9ba0ac36f28b Mon Sep 17 00:00:00 2001 From: Dmitrii Gridin Date: Fri, 7 Oct 2022 16:02:21 +0200 Subject: [PATCH] [AA] more tests for file scope ^KT-54311 --- ...sisSourceModuleFileScopeTestGenerated.java | 6 + ...sisSourceModuleFileScopeTestGenerated.java | 6 + ...sisSourceModuleFileScopeTestGenerated.java | 6 + .../fileScopeTest/fileScope.descriptors.txt | 492 +++++++++++++++++ .../scopes/fileScopeTest/fileScope.kt | 35 ++ .../scopes/fileScopeTest/fileScope.txt | 495 ++++++++++++++++++ .../fileScopeTest/simpleFileScope.kt.result | 104 ---- 7 files changed, 1040 insertions(+), 104 deletions(-) create mode 100644 analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.descriptors.txt create mode 100644 analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.kt create mode 100644 analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.txt delete mode 100644 analysis/analysis-api/testData/scopes/fileScopeTest/simpleFileScope.kt.result diff --git a/analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/scopes/Fe10IdeNormalAnalysisSourceModuleFileScopeTestGenerated.java b/analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/scopes/Fe10IdeNormalAnalysisSourceModuleFileScopeTestGenerated.java index 3791c0ee048..253a764a159 100644 --- a/analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/scopes/Fe10IdeNormalAnalysisSourceModuleFileScopeTestGenerated.java +++ b/analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/scopes/Fe10IdeNormalAnalysisSourceModuleFileScopeTestGenerated.java @@ -46,6 +46,12 @@ public class Fe10IdeNormalAnalysisSourceModuleFileScopeTestGenerated extends Abs KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/scopes/fileScopeTest"), Pattern.compile("^(.+)\\.kt$"), null, true); } + @Test + @TestMetadata("fileScope.kt") + public void testFileScope() throws Exception { + runTest("analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.kt"); + } + @Test @TestMetadata("simpleFileScope.kt") public void testSimpleFileScope() throws Exception { diff --git a/analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/scopes/FirIdeNormalAnalysisSourceModuleFileScopeTestGenerated.java b/analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/scopes/FirIdeNormalAnalysisSourceModuleFileScopeTestGenerated.java index 8db73bdc8ad..46e3c05704e 100644 --- a/analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/scopes/FirIdeNormalAnalysisSourceModuleFileScopeTestGenerated.java +++ b/analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/scopes/FirIdeNormalAnalysisSourceModuleFileScopeTestGenerated.java @@ -46,6 +46,12 @@ public class FirIdeNormalAnalysisSourceModuleFileScopeTestGenerated extends Abst KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/scopes/fileScopeTest"), Pattern.compile("^(.+)\\.kt$"), null, true); } + @Test + @TestMetadata("fileScope.kt") + public void testFileScope() throws Exception { + runTest("analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.kt"); + } + @Test @TestMetadata("simpleFileScope.kt") public void testSimpleFileScope() throws Exception { diff --git a/analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/scopes/FirStandaloneNormalAnalysisSourceModuleFileScopeTestGenerated.java b/analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/scopes/FirStandaloneNormalAnalysisSourceModuleFileScopeTestGenerated.java index fef7b00e909..daa3cc0e81b 100644 --- a/analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/scopes/FirStandaloneNormalAnalysisSourceModuleFileScopeTestGenerated.java +++ b/analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/scopes/FirStandaloneNormalAnalysisSourceModuleFileScopeTestGenerated.java @@ -46,6 +46,12 @@ public class FirStandaloneNormalAnalysisSourceModuleFileScopeTestGenerated exten KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/scopes/fileScopeTest"), Pattern.compile("^(.+)\\.kt$"), null, true); } + @Test + @TestMetadata("fileScope.kt") + public void testFileScope() throws Exception { + runTest("analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.kt"); + } + @Test @TestMetadata("simpleFileScope.kt") public void testSimpleFileScope() throws Exception { diff --git a/analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.descriptors.txt b/analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.descriptors.txt new file mode 100644 index 00000000000..15fd1f7f14e --- /dev/null +++ b/analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.descriptors.txt @@ -0,0 +1,492 @@ +FILE SYMBOL: +KtFileSymbol: + annotationsList: [] + origin: SOURCE + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + +CALLABLE NAMES: +[function, functionWithDefault, testVal, initializedVariable, unitializedVariable, lateinitVariable, variableWithBackingField, privateSetter, customGetter, jvmNameOnGetter, propertyWithReceiver, propertyWithGenericReceiver, constant, jvmField] + +CALLABLE SYMBOLS: +KtFunctionSymbol: + annotationsList: [] + callableIdIfNonLocal: /function + contextReceivers: [] + hasStableParameterNames: true + isBuiltinFunctionInvoke: false + isExtension: false + isExternal: false + isInfix: false + isInline: false + isOperator: false + isOverride: false + isStatic: false + isSuspend: false + modality: FINAL + name: function + origin: SOURCE + receiverType: null + returnType: kotlin/Int + symbolKind: TOP_LEVEL + typeParameters: [] + valueParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + +KtFunctionSymbol: + annotationsList: [ + kotlin/jvm/JvmOverloads() + psi: KtAnnotationEntry + ] + callableIdIfNonLocal: /functionWithDefault + contextReceivers: [] + hasStableParameterNames: true + isBuiltinFunctionInvoke: false + isExtension: false + isExternal: false + isInfix: false + isInline: false + isOperator: false + isOverride: false + isStatic: false + isSuspend: false + modality: FINAL + name: functionWithDefault + origin: SOURCE + receiverType: null + returnType: kotlin/Unit + symbolKind: TOP_LEVEL + typeParameters: [] + valueParameters: [ + KtValueParameterSymbol(par1) + ] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /testVal + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: false + initializer: KtConstantInitializerValue(2) + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: true + modality: FINAL + name: testVal + origin: SOURCE + receiverType: null + returnType: kotlin/Int + setter: null + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getTestVal + javaSetterName: null + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /initializedVariable + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: true + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: false + modality: FINAL + name: initializedVariable + origin: SOURCE + receiverType: null + returnType: kotlin/Int + setter: KtPropertySetterSymbol() + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getInitializedVariable + javaSetterName: setInitializedVariable + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /unitializedVariable + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: true + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: false + modality: FINAL + name: unitializedVariable + origin: SOURCE + receiverType: null + returnType: kotlin/Long + setter: KtPropertySetterSymbol() + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getUnitializedVariable + javaSetterName: setUnitializedVariable + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /lateinitVariable + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: true + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: true + isOverride: false + isStatic: false + isVal: false + modality: FINAL + name: lateinitVariable + origin: SOURCE + receiverType: null + returnType: kotlin/String + setter: KtPropertySetterSymbol() + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getLateinitVariable + javaSetterName: setLateinitVariable + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /variableWithBackingField + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: true + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: false + modality: FINAL + name: variableWithBackingField + origin: SOURCE + receiverType: null + returnType: kotlin/Long + setter: KtPropertySetterSymbol() + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getVariableWithBackingField + javaSetterName: setVariableWithBackingField + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /privateSetter + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: true + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: false + modality: FINAL + name: privateSetter + origin: SOURCE + receiverType: null + returnType: kotlin/String + setter: KtPropertySetterSymbol() + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getPrivateSetter + javaSetterName: setPrivateSetter + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /customGetter + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: false + hasGetter: true + hasSetter: false + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: true + modality: FINAL + name: customGetter + origin: SOURCE + receiverType: null + returnType: kotlin/Int + setter: null + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: myCustomGetter + javaSetterName: null + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /jvmNameOnGetter + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: false + hasGetter: true + hasSetter: false + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: true + modality: FINAL + name: jvmNameOnGetter + origin: SOURCE + receiverType: null + returnType: kotlin/Int + setter: null + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: myCustomGetter + javaSetterName: null + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /propertyWithReceiver + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: false + hasGetter: true + hasSetter: false + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: true + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: true + modality: FINAL + name: propertyWithReceiver + origin: SOURCE + receiverType: kotlin/Int + returnType: kotlin/Int + setter: null + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getPropertyWithReceiver + javaSetterName: null + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /propertyWithGenericReceiver + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: false + hasGetter: true + hasSetter: false + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: true + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: true + modality: FINAL + name: propertyWithGenericReceiver + origin: SOURCE + receiverType: T + returnType: kotlin/Int + setter: null + symbolKind: TOP_LEVEL + typeParameters: [ + KtTypeParameterSymbol(T) + ] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getPropertyWithGenericReceiver + javaSetterName: null + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /constant + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: false + initializer: KtConstantInitializerValue(2) + isConst: true + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: true + modality: FINAL + name: constant + origin: SOURCE + receiverType: null + returnType: kotlin/Int + setter: null + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getConstant + javaSetterName: null + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /jvmField + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: true + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: false + modality: FINAL + name: jvmField + origin: SOURCE + receiverType: null + returnType: kotlin/Long + setter: KtPropertySetterSymbol() + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getJvmField + javaSetterName: setJvmField + setterDeprecationStatus: null + +CLASSIFIER NAMES: +[OuterClass] + +CLASSIFIER SYMBOLS: +KtNamedClassOrObjectSymbol: + annotationsList: [] + classIdIfNonLocal: OuterClass + classKind: CLASS + companionObject: null + contextReceivers: [] + isData: false + isExternal: false + isFun: false + isInline: false + isInner: false + modality: FINAL + name: OuterClass + origin: SOURCE + superTypes: [ + kotlin/Any + ] + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.kt b/analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.kt new file mode 100644 index 00000000000..ce76397b8a3 --- /dev/null +++ b/analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.kt @@ -0,0 +1,35 @@ +// WITH_STDLIB + +fun function(): Int = 1 + +@JvmOverloads +fun functionWithDefault(par1: Int) = Unit + +val testVal: Int = 2 +var initializedVariable = 3 +var unitializedVariable: Long +lateinit var lateinitVariable: String + +var variableWithBackingField: Long = 4 + get() = field + +var privateSetter = "" + private set + +@get:JvmName("myCustomGetter") +val customGetter: Int get() = 2 + +val jvmNameOnGetter: Int @JvmName("myCustomGetter") get() = 2 + +val Int.propertyWithReceiver: Int get() = this + +val T.propertyWithGenericReceiver: Int get() = 23 + +class OuterClass { + class NestedClass +} + +const val constant = 2 + +@JvmField +var jvmField: Long = 2 diff --git a/analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.txt b/analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.txt new file mode 100644 index 00000000000..5d687bcf157 --- /dev/null +++ b/analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.txt @@ -0,0 +1,495 @@ +FILE SYMBOL: +KtFileSymbol: + annotationsList: [] + origin: SOURCE + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + +CALLABLE NAMES: +[function, functionWithDefault, testVal, initializedVariable, unitializedVariable, lateinitVariable, variableWithBackingField, privateSetter, customGetter, jvmNameOnGetter, propertyWithReceiver, propertyWithGenericReceiver, constant, jvmField] + +CALLABLE SYMBOLS: +KtFunctionSymbol: + annotationsList: [] + callableIdIfNonLocal: /function + contextReceivers: [] + hasStableParameterNames: true + isBuiltinFunctionInvoke: false + isExtension: false + isExternal: false + isInfix: false + isInline: false + isOperator: false + isOverride: false + isStatic: false + isSuspend: false + modality: FINAL + name: function + origin: SOURCE + receiverType: null + returnType: kotlin/Int + symbolKind: TOP_LEVEL + typeParameters: [] + valueParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + +KtFunctionSymbol: + annotationsList: [ + kotlin/jvm/JvmOverloads() + psi: KtAnnotationEntry + ] + callableIdIfNonLocal: /functionWithDefault + contextReceivers: [] + hasStableParameterNames: true + isBuiltinFunctionInvoke: false + isExtension: false + isExternal: false + isInfix: false + isInline: false + isOperator: false + isOverride: false + isStatic: false + isSuspend: false + modality: FINAL + name: functionWithDefault + origin: SOURCE + receiverType: null + returnType: kotlin/Unit + symbolKind: TOP_LEVEL + typeParameters: [] + valueParameters: [ + KtValueParameterSymbol(par1) + ] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /testVal + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: false + initializer: KtConstantInitializerValue(2) + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: true + modality: FINAL + name: testVal + origin: SOURCE + receiverType: null + returnType: kotlin/Int + setter: null + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getTestVal + javaSetterName: null + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /initializedVariable + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: true + initializer: KtConstantInitializerValue(3) + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: false + modality: FINAL + name: initializedVariable + origin: SOURCE + receiverType: null + returnType: kotlin/Int + setter: KtPropertySetterSymbol() + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getInitializedVariable + javaSetterName: setInitializedVariable + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /unitializedVariable + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: true + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: false + modality: FINAL + name: unitializedVariable + origin: SOURCE + receiverType: null + returnType: kotlin/Long + setter: KtPropertySetterSymbol() + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getUnitializedVariable + javaSetterName: setUnitializedVariable + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /lateinitVariable + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: true + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: true + isOverride: false + isStatic: false + isVal: false + modality: FINAL + name: lateinitVariable + origin: SOURCE + receiverType: null + returnType: kotlin/String + setter: KtPropertySetterSymbol() + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getLateinitVariable + javaSetterName: setLateinitVariable + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /variableWithBackingField + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: true + initializer: KtConstantInitializerValue(4) + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: false + modality: FINAL + name: variableWithBackingField + origin: SOURCE + receiverType: null + returnType: kotlin/Long + setter: KtPropertySetterSymbol() + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getVariableWithBackingField + javaSetterName: setVariableWithBackingField + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /privateSetter + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: true + initializer: KtConstantInitializerValue("") + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: false + modality: FINAL + name: privateSetter + origin: SOURCE + receiverType: null + returnType: kotlin/String + setter: KtPropertySetterSymbol() + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getPrivateSetter + javaSetterName: setPrivateSetter + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /customGetter + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: false + hasGetter: true + hasSetter: false + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: true + modality: FINAL + name: customGetter + origin: SOURCE + receiverType: null + returnType: kotlin/Int + setter: null + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: myCustomGetter + javaSetterName: null + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /jvmNameOnGetter + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: false + hasGetter: true + hasSetter: false + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: true + modality: FINAL + name: jvmNameOnGetter + origin: SOURCE + receiverType: null + returnType: kotlin/Int + setter: null + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: myCustomGetter + javaSetterName: null + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /propertyWithReceiver + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: false + hasGetter: true + hasSetter: false + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: true + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: true + modality: FINAL + name: propertyWithReceiver + origin: SOURCE + receiverType: kotlin/Int + returnType: kotlin/Int + setter: null + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getPropertyWithReceiver + javaSetterName: null + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /propertyWithGenericReceiver + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: false + hasGetter: true + hasSetter: false + initializer: null + isConst: false + isDelegatedProperty: false + isExtension: true + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: true + modality: FINAL + name: propertyWithGenericReceiver + origin: SOURCE + receiverType: T + returnType: kotlin/Int + setter: null + symbolKind: TOP_LEVEL + typeParameters: [ + KtTypeParameterSymbol(T) + ] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getPropertyWithGenericReceiver + javaSetterName: null + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [] + callableIdIfNonLocal: /constant + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: false + initializer: KtConstantInitializerValue(2) + isConst: true + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: true + modality: FINAL + name: constant + origin: SOURCE + receiverType: null + returnType: kotlin/Int + setter: null + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getConstant + javaSetterName: null + setterDeprecationStatus: null + +KtKotlinPropertySymbol: + annotationsList: [ + kotlin/jvm/JvmField() + psi: KtAnnotationEntry + ] + callableIdIfNonLocal: /jvmField + contextReceivers: [] + getter: KtPropertyGetterSymbol() + hasBackingField: true + hasGetter: true + hasSetter: true + initializer: KtConstantInitializerValue(2) + isConst: false + isDelegatedProperty: false + isExtension: false + isFromPrimaryConstructor: false + isLateInit: false + isOverride: false + isStatic: false + isVal: false + modality: FINAL + name: jvmField + origin: SOURCE + receiverType: null + returnType: kotlin/Long + setter: KtPropertySetterSymbol() + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getJvmField + javaSetterName: setJvmField + setterDeprecationStatus: null + +CLASSIFIER NAMES: +[OuterClass] + +CLASSIFIER SYMBOLS: +KtNamedClassOrObjectSymbol: + annotationsList: [] + classIdIfNonLocal: OuterClass + classKind: CLASS + companionObject: null + contextReceivers: [] + isData: false + isExternal: false + isFun: false + isInline: false + isInner: false + modality: FINAL + name: OuterClass + origin: SOURCE + superTypes: [ + kotlin/Any + ] + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/scopes/fileScopeTest/simpleFileScope.kt.result b/analysis/analysis-api/testData/scopes/fileScopeTest/simpleFileScope.kt.result deleted file mode 100644 index e60d6b8273b..00000000000 --- a/analysis/analysis-api/testData/scopes/fileScopeTest/simpleFileScope.kt.result +++ /dev/null @@ -1,104 +0,0 @@ -FILE SYMBOL: -KtFirFileSymbol: - annotationClassIds: [] - annotations: [] - origin: SOURCE - -CALLABLE NAMES: -[test, testVal] - -CALLABLE SYMBOLS: -KtFirFunctionSymbol: - annotatedType: [] kotlin/Int - annotationClassIds: [] - annotations: [] - callableIdIfNonLocal: /test - dispatchType: null - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: test - origin: SOURCE - receiverType: null - symbolKind: TOP_LEVEL - typeParameters: [] - valueParameters: [] - visibility: Public - -KtFirKotlinPropertySymbol: - annotatedType: [] kotlin/Int - annotationClassIds: [] - annotations: [] - callableIdIfNonLocal: /testVal - dispatchType: null - getter: KtFirPropertyGetterSymbol() - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: 2 - isConst: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: testVal - origin: SOURCE - receiverType: null - setter: null - symbolKind: TOP_LEVEL - visibility: Public - -CLASSIFIER NAMES: -[C, I] - -CLASSIFIER SYMBOLS: -KtFirNamedClassOrObjectSymbol: - annotationClassIds: [] - annotations: [] - classIdIfNonLocal: C - classKind: CLASS - companionObject: null - isData: false - isExternal: false - isFun: false - isInline: false - isInner: false - modality: FINAL - name: C - origin: SOURCE - superTypes: [ - [] kotlin/Any - ] - symbolKind: TOP_LEVEL - typeParameters: [] - visibility: Public - -KtFirNamedClassOrObjectSymbol: - annotationClassIds: [] - annotations: [] - classIdIfNonLocal: I - classKind: INTERFACE - companionObject: null - isData: false - isExternal: false - isFun: false - isInline: false - isInner: false - modality: ABSTRACT - name: I - origin: SOURCE - superTypes: [ - [] kotlin/Any - ] - symbolKind: TOP_LEVEL - typeParameters: [] - visibility: Public