[FIR IDE] Enable symbol-by-psi tests for AAPI/FE10

This commit is contained in:
Yan Zhulanow
2021-11-02 01:57:57 +09:00
parent ae95b6745c
commit 07fb02c1f9
11 changed files with 1909 additions and 3 deletions
@@ -0,0 +1,206 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.api.descriptors.test.symbols;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("analysis/analysis-api/testData/symbols/symbolByPsi")
@TestDataPath("$PROJECT_ROOT")
public class KtFe10SymbolByPsiTestGenerated extends AbstractKtFe10SymbolByPsiTest {
@Test
public void testAllFilesPresentInSymbolByPsi() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/symbols/symbolByPsi"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@Test
@TestMetadata("annotations.kt")
public void testAnnotations() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/annotations.kt");
}
@Test
@TestMetadata("anonymousObject.kt")
public void testAnonymousObject() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/anonymousObject.kt");
}
@Test
@TestMetadata("backingField.kt")
public void testBackingField() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/backingField.kt");
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/class.kt");
}
@Test
@TestMetadata("classInitializer.kt")
public void testClassInitializer() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/classInitializer.kt");
}
@Test
@TestMetadata("classMembes.kt")
public void testClassMembes() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/classMembes.kt");
}
@Test
@TestMetadata("classPrimaryConstructor.kt")
public void testClassPrimaryConstructor() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/classPrimaryConstructor.kt");
}
@Test
@TestMetadata("classSecondaryConstructors.kt")
public void testClassSecondaryConstructors() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/classSecondaryConstructors.kt");
}
@Test
@TestMetadata("classWithTypeParams.kt")
public void testClassWithTypeParams() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/classWithTypeParams.kt");
}
@Test
@TestMetadata("delegateField.kt")
public void testDelegateField() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/delegateField.kt");
}
@Test
@TestMetadata("deprecated.kt")
public void testDeprecated() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.kt");
}
@Test
@TestMetadata("enum.kt")
public void testEnum() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/enum.kt");
}
@Test
@TestMetadata("enumValueMember.kt")
public void testEnumValueMember() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/enumValueMember.kt");
}
@Test
@TestMetadata("extensionFunction.kt")
public void testExtensionFunction() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/extensionFunction.kt");
}
@Test
@TestMetadata("forLoopVariable.kt")
public void testForLoopVariable() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/forLoopVariable.kt");
}
@Test
@TestMetadata("function.kt")
public void testFunction() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/function.kt");
}
@Test
@TestMetadata("functionWithTypeParams.kt")
public void testFunctionWithTypeParams() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/functionWithTypeParams.kt");
}
@Test
@TestMetadata("implicitConstructorDelegationCall.kt")
public void testImplicitConstructorDelegationCall() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/implicitConstructorDelegationCall.kt");
}
@Test
@TestMetadata("implicitReturn.kt")
public void testImplicitReturn() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/implicitReturn.kt");
}
@Test
@TestMetadata("implicitReturnInLambda.kt")
public void testImplicitReturnInLambda() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/implicitReturnInLambda.kt");
}
@Test
@TestMetadata("jvmName.kt")
public void testJvmName() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/jvmName.kt");
}
@Test
@TestMetadata("localDeclarations.kt")
public void testLocalDeclarations() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/localDeclarations.kt");
}
@Test
@TestMetadata("memberFunctions.kt")
public void testMemberFunctions() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/memberFunctions.kt");
}
@Test
@TestMetadata("memberProperties.kt")
public void testMemberProperties() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/memberProperties.kt");
}
@Test
@TestMetadata("outerAndInnerClasses.kt")
public void testOuterAndInnerClasses() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/outerAndInnerClasses.kt");
}
@Test
@TestMetadata("topLevelFunctions.kt")
public void testTopLevelFunctions() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/topLevelFunctions.kt");
}
@Test
@TestMetadata("topLevelProperties.kt")
public void testTopLevelProperties() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/topLevelProperties.kt");
}
@Test
@TestMetadata("typeAlias.kt")
public void testTypeAlias() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/typeAlias.kt");
}
@Test
@TestMetadata("typeAnnotations.kt")
public void testTypeAnnotations() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/typeAnnotations.kt");
}
@Test
@TestMetadata("varargFunctions.kt")
public void testVarargFunctions() throws Exception {
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/varargFunctions.kt");
}
}
@@ -0,0 +1,123 @@
KtFunctionSymbol:
annotatedType: [] kotlin/Unit
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
dispatchType: null
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: true
isStatic: false
isSuspend: false
modality: FINAL
name: run
origin: SOURCE
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
dispatchType: <no name provided>
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: 123
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: data
origin: SOURCE
receiverType: null
setter: null
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getData
javaSetterName: null
setterDeprecationStatus: null
KtAnonymousObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: null
classKind: ANONYMOUS_OBJECT
name: null
origin: SOURCE
superTypes: [
[] java/lang/Runnable
]
symbolKind: LOCAL
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] java/lang/Runnable
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /AnonymousContainer.anonymousObject
dispatchType: AnonymousContainer
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: KtUnsupportedConstantValue
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: anonymousObject
origin: SOURCE
receiverType: null
setter: null
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getAnonymousObject
javaSetterName: null
setterDeprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: AnonymousContainer
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: AnonymousContainer
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
@@ -0,0 +1,225 @@
KtValueParameterSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
hasDefaultValue: false
isExtension: false
isVararg: false
name: x
origin: SOURCE
receiverType: null
symbolKind: LOCAL
deprecationStatus: null
KtValueParameterSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
hasDefaultValue: false
isExtension: false
isVararg: false
name: y
origin: SOURCE
receiverType: null
symbolKind: LOCAL
deprecationStatus: null
KtValueParameterSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
hasDefaultValue: false
isExtension: false
isVararg: false
name: z
origin: SOURCE
receiverType: null
symbolKind: LOCAL
deprecationStatus: null
KtConstructorSymbol:
annotatedType: [] MyColor
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
containingClassIdIfNonLocal: MyColor
dispatchType: null
hasStableParameterNames: true
isExtension: false
isPrimary: true
origin: SOURCE
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(x)
KtValueParameterSymbol(y)
KtValueParameterSymbol(z)
]
visibility: Public
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: MyColor
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: MyColor
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
KtAnonymousFunctionSymbol:
annotatedType: [] MyColor
callableIdIfNonLocal: null
hasStableParameterNames: true
isExtension: false
origin: SOURCE
receiverType: null
symbolKind: LOCAL
valueParameters: []
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] MyColor
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /Some.delegate
dispatchType: Some
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: false
hasGetter: true
hasSetter: false
initializer: null
isConst: false
isDelegatedProperty: true
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: delegate
origin: SOURCE
receiverType: null
setter: null
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getDelegate
javaSetterName: null
setterDeprecationStatus: null
KtAnonymousFunctionSymbol:
annotatedType: [] MyColor
callableIdIfNonLocal: null
hasStableParameterNames: true
isExtension: false
origin: SOURCE
receiverType: null
symbolKind: LOCAL
valueParameters: []
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Lazy<MyColor>
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /Some.lambda
dispatchType: Some
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: KtUnsupportedConstantValue
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: lambda
origin: SOURCE
receiverType: null
setter: null
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getLambda
javaSetterName: null
setterDeprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] MyColor
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /Some.nonLazy
dispatchType: Some
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: KtUnsupportedConstantValue
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: nonLazy
origin: SOURCE
receiverType: null
setter: null
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getNonLazy
javaSetterName: null
setterDeprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: Some
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: Some
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
@@ -0,0 +1,384 @@
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: [
kotlin/Deprecated
]
annotations: [
kotlin/Deprecated(message = don't use i)
psi: KtAnnotationEntry
]
callableIdIfNonLocal: /i
dispatchType: null
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: 1
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: i
origin: SOURCE
receiverType: null
setter: null
symbolKind: TOP_LEVEL
visibility: Public
deprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use i)
getterDeprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use i)
javaGetterName: getI
javaSetterName: null
setterDeprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use i)
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /i2
dispatchType: null
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: 1
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: i2
origin: SOURCE
receiverType: null
setter: null
symbolKind: TOP_LEVEL
visibility: Public
deprecationStatus: null
getterDeprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use getter of i2)
javaGetterName: getI2
javaSetterName: null
setterDeprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /i3
dispatchType: null
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: true
initializer: 1
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: false
modality: FINAL
name: i3
origin: SOURCE
receiverType: null
setter: KtPropertySetterSymbol(<setter>)
symbolKind: TOP_LEVEL
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getI3
javaSetterName: setI3
setterDeprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use getter of i3)
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /i4
dispatchType: null
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: true
initializer: 1
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: false
modality: FINAL
name: i4
origin: SOURCE
receiverType: null
setter: KtPropertySetterSymbol(<setter>)
symbolKind: TOP_LEVEL
visibility: Public
deprecationStatus: null
getterDeprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use getter of i4)
javaGetterName: getI4
javaSetterName: setI4
setterDeprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use getter of i4)
KtFunctionSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: [
kotlin/Deprecated
]
annotations: [
kotlin/Deprecated(message = don't use f)
psi: KtAnnotationEntry
]
callableIdIfNonLocal: /f
dispatchType: null
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: FINAL
name: f
origin: SOURCE
receiverType: null
symbolKind: TOP_LEVEL
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use f)
KtNamedClassOrObjectSymbol:
annotationClassIds: [
kotlin/Deprecated
]
annotations: [
kotlin/Deprecated(message = don't use MyClass)
psi: KtAnnotationEntry
]
classIdIfNonLocal: MyClass
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: MyClass
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use MyClass)
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: [
kotlin/Deprecated
]
annotations: [
kotlin/Deprecated(message = don't use i2)
psi: KtAnnotationEntry
]
callableIdIfNonLocal: /Foo.i2
dispatchType: Foo
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: 1
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: i2
origin: SOURCE
receiverType: null
setter: null
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use i2)
getterDeprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use i2)
javaGetterName: getI2
javaSetterName: null
setterDeprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use i2)
KtFunctionSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: [
kotlin/Deprecated
]
annotations: [
kotlin/Deprecated(message = don't use f2)
psi: KtAnnotationEntry
]
callableIdIfNonLocal: /Foo.f2
dispatchType: Foo
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: FINAL
name: f2
origin: SOURCE
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=true, message=don't use f2)
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: Foo
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: Foo
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: [
kotlin/Deprecated
]
annotations: [
kotlin/Deprecated(level = KtEnumEntryConstantValue(kotlin/DeprecationLevel.ERROR), message = don't use j)
psi: KtAnnotationEntry
]
callableIdIfNonLocal: /j
dispatchType: null
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: 2
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: j
origin: SOURCE
receiverType: null
setter: null
symbolKind: TOP_LEVEL
visibility: Public
deprecationStatus: DeprecationInfo(deprecationLevel=ERROR, propagatesToOverrides=true, message=don't use j)
getterDeprecationStatus: DeprecationInfo(deprecationLevel=ERROR, propagatesToOverrides=true, message=don't use j)
javaGetterName: getJ
javaSetterName: null
setterDeprecationStatus: DeprecationInfo(deprecationLevel=ERROR, propagatesToOverrides=true, message=don't use j)
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: [
kotlin/Deprecated
]
annotations: [
kotlin/Deprecated(level = KtEnumEntryConstantValue(kotlin/DeprecationLevel.HIDDEN), message = don't use j2)
psi: KtAnnotationEntry
]
callableIdIfNonLocal: /j2
dispatchType: null
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: 2
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: j2
origin: SOURCE
receiverType: null
setter: null
symbolKind: TOP_LEVEL
visibility: Public
deprecationStatus: DeprecationInfo(deprecationLevel=HIDDEN, propagatesToOverrides=true, message=don't use j2)
getterDeprecationStatus: DeprecationInfo(deprecationLevel=HIDDEN, propagatesToOverrides=true, message=don't use j2)
javaGetterName: getJ2
javaSetterName: null
setterDeprecationStatus: DeprecationInfo(deprecationLevel=HIDDEN, propagatesToOverrides=true, message=don't use j2)
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /j2
dispatchType: null
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: 2
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: j2
origin: SOURCE
receiverType: null
setter: null
symbolKind: TOP_LEVEL
visibility: Public
deprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=false, message=null)
getterDeprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=false, message=null)
javaGetterName: getJ2
javaSetterName: null
setterDeprecationStatus: DeprecationInfo(deprecationLevel=WARNING, propagatesToOverrides=false, message=null)
@@ -0,0 +1,150 @@
KtValueParameterSymbol:
annotatedType: [] kotlin/String
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
hasDefaultValue: false
isExtension: false
isVararg: false
name: value
origin: SOURCE
receiverType: null
symbolKind: LOCAL
deprecationStatus: null
KtConstructorSymbol:
annotatedType: [] Style
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
containingClassIdIfNonLocal: Style
dispatchType: null
hasStableParameterNames: true
isExtension: false
isPrimary: true
origin: SOURCE
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(value)
]
visibility: Private
deprecationStatus: null
KtPropertyGetterSymbol:
annotatedType: [] kotlin/String
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
dispatchType: Style.SHEET
hasBody: true
hasStableParameterNames: true
isDefault: false
isExtension: false
isInline: false
isOverride: true
modality: FINAL
origin: SOURCE
receiverType: null
symbolKind: ACCESSOR
valueParameters: []
visibility: Public
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] kotlin/String
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
dispatchType: Style.SHEET
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: false
hasGetter: true
hasSetter: false
initializer: null
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: true
isStatic: false
isVal: true
modality: FINAL
name: exitAnimation
origin: SOURCE
receiverType: null
setter: null
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getExitAnimation
javaSetterName: null
setterDeprecationStatus: null
KtEnumEntrySymbol:
annotatedType: [] Style
callableIdIfNonLocal: /Style.SHEET
containingEnumClassIdIfNonLocal: Style
isExtension: false
name: SHEET
origin: SOURCE
receiverType: null
symbolKind: CLASS_MEMBER
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] kotlin/String
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /Style.exitAnimation
dispatchType: Style
getter: KtPropertyGetterSymbol(<getter>)
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: ABSTRACT
name: exitAnimation
origin: SOURCE
receiverType: null
setter: null
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getExitAnimation
javaSetterName: null
setterDeprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: Style
classKind: ENUM_CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: Style
origin: SOURCE
superTypes: [
[] kotlin/Enum<Style>
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
@@ -0,0 +1,152 @@
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /Foo.i
dispatchType: Foo
getter: KtPropertyGetterSymbol(<getter>)
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: i
origin: SOURCE
receiverType: null
setter: KtPropertySetterSymbol(<setter>)
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getMyI
javaSetterName: setMyI
setterDeprecationStatus: null
KtPropertyGetterSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: [
kotlin/jvm/JvmName
]
annotations: [
kotlin/jvm/JvmName(name = getMyJ)
psi: KtAnnotationEntry
]
callableIdIfNonLocal: null
dispatchType: Foo
hasBody: true
hasStableParameterNames: true
isDefault: false
isExtension: false
isInline: false
isOverride: false
modality: FINAL
origin: SOURCE
receiverType: null
symbolKind: ACCESSOR
valueParameters: []
visibility: Public
deprecationStatus: null
KtValueParameterSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
hasDefaultValue: false
isExtension: false
isVararg: false
name: value
origin: SOURCE
receiverType: null
symbolKind: LOCAL
deprecationStatus: null
KtPropertySetterSymbol:
annotatedType: [] kotlin/Unit
annotationClassIds: [
kotlin/jvm/JvmName
]
annotations: [
kotlin/jvm/JvmName(name = setMyJ)
psi: KtAnnotationEntry
]
callableIdIfNonLocal: null
dispatchType: Foo
hasBody: true
hasStableParameterNames: true
isDefault: false
isExtension: false
isInline: false
isOverride: false
modality: FINAL
origin: SOURCE
parameter: KtValueParameterSymbol(value)
receiverType: null
symbolKind: ACCESSOR
valueParameters: [
KtValueParameterSymbol(value)
]
visibility: Public
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /Foo.j
dispatchType: Foo
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: false
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: j
origin: SOURCE
receiverType: null
setter: KtPropertySetterSymbol(<setter>)
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getMyJ
javaSetterName: setMyJ
setterDeprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: Foo
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: Foo
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
@@ -0,0 +1,105 @@
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /A.x
dispatchType: A
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: 10
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: x
origin: SOURCE
receiverType: null
setter: null
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getX
javaSetterName: null
setterDeprecationStatus: null
KtPropertyGetterSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
dispatchType: A
hasBody: true
hasStableParameterNames: true
isDefault: false
isExtension: false
isInline: false
isOverride: false
modality: FINAL
origin: SOURCE
receiverType: [] kotlin/Int
symbolKind: ACCESSOR
valueParameters: []
visibility: Public
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /A.y
dispatchType: A
getter: KtPropertyGetterSymbol(<getter>)
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: y
origin: SOURCE
receiverType: [] kotlin/Int
setter: null
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getY
javaSetterName: null
setterDeprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: A
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: A
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
@@ -0,0 +1,240 @@
KtTypeParameterSymbol:
isReified: false
name: T
origin: SOURCE
upperBounds: [
kotlin/Any?
]
variance: INVARIANT
deprecationStatus: null
KtTypeParameterSymbol:
isReified: false
name: T1
origin: SOURCE
upperBounds: [
kotlin/Any?
]
variance: INVARIANT
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: X.Y
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: true
modality: FINAL
name: Y
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: CLASS_MEMBER
typeParameters: [
KtTypeParameterSymbol(T1)
]
visibility: Public
deprecationStatus: null
KtTypeParameterSymbol:
isReified: false
name: T2
origin: SOURCE
upperBounds: [
kotlin/Any?
]
variance: INVARIANT
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: X.Z
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: Z
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: CLASS_MEMBER
typeParameters: [
KtTypeParameterSymbol(T2)
]
visibility: Public
deprecationStatus: null
KtTypeParameterSymbol:
isReified: false
name: T3
origin: SOURCE
upperBounds: [
kotlin/Any?
]
variance: INVARIANT
deprecationStatus: null
KtTypeParameterSymbol:
isReified: false
name: T4
origin: SOURCE
upperBounds: [
kotlin/Any?
]
variance: INVARIANT
deprecationStatus: null
KtTypeParameterSymbol:
isReified: false
name: T5
origin: SOURCE
upperBounds: [
kotlin/Any?
]
variance: INVARIANT
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: null
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: true
modality: FINAL
name: K
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: CLASS_MEMBER
typeParameters: [
KtTypeParameterSymbol(T5)
]
visibility: Local
deprecationStatus: null
KtTypeParameterSymbol:
isReified: false
name: T6
origin: SOURCE
upperBounds: [
kotlin/Any?
]
variance: INVARIANT
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: null
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: C
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: CLASS_MEMBER
typeParameters: [
KtTypeParameterSymbol(T6)
]
visibility: Local
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: null
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: U
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: LOCAL
typeParameters: [
KtTypeParameterSymbol(T4)
]
visibility: Local
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Unit
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /X.foo
dispatchType: X<T>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: FINAL
name: foo
origin: SOURCE
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: [
KtTypeParameterSymbol(T3)
]
valueParameters: []
visibility: Public
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: X
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: X
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: [
KtTypeParameterSymbol(T)
]
visibility: Public
deprecationStatus: null
@@ -0,0 +1,83 @@
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /x
dispatchType: null
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: 10
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: x
origin: SOURCE
receiverType: null
setter: null
symbolKind: TOP_LEVEL
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getX
javaSetterName: null
setterDeprecationStatus: null
KtPropertyGetterSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
dispatchType: null
hasBody: true
hasStableParameterNames: true
isDefault: false
isExtension: false
isInline: false
isOverride: false
modality: FINAL
origin: SOURCE
receiverType: [] kotlin/Int
symbolKind: ACCESSOR
valueParameters: []
visibility: Public
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /y
dispatchType: null
getter: KtPropertyGetterSymbol(<getter>)
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: y
origin: SOURCE
receiverType: [] kotlin/Int
setter: null
symbolKind: TOP_LEVEL
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getY
javaSetterName: null
setterDeprecationStatus: null
@@ -0,0 +1,237 @@
KtNamedClassOrObjectSymbol:
annotationClassIds: [
kotlin/annotation/Target
]
annotations: [
kotlin/annotation/Target(allowedTargets = KtArrayConstantValue)
psi: KtAnnotationEntry
]
classIdIfNonLocal: Anno1
classKind: ANNOTATION_CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: Anno1
origin: SOURCE
superTypes: [
[] kotlin/Annotation
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: [
kotlin/annotation/Target
]
annotations: [
kotlin/annotation/Target(allowedTargets = KtArrayConstantValue)
psi: KtAnnotationEntry
]
classIdIfNonLocal: Anno2
classKind: ANNOTATION_CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: Anno2
origin: SOURCE
superTypes: [
[] kotlin/Annotation
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: [
kotlin/annotation/Target
]
annotations: [
kotlin/annotation/Target(allowedTargets = KtArrayConstantValue)
psi: KtAnnotationEntry
]
classIdIfNonLocal: Anno3
classKind: ANNOTATION_CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: Anno3
origin: SOURCE
superTypes: [
[] kotlin/Annotation
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: [
kotlin/annotation/Target
]
annotations: [
kotlin/annotation/Target(allowedTargets = KtArrayConstantValue)
psi: KtAnnotationEntry
]
classIdIfNonLocal: Anno4
classKind: ANNOTATION_CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: Anno4
origin: SOURCE
superTypes: [
[] kotlin/Annotation
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
KtNamedClassOrObjectSymbol:
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
deprecationStatus: null
KtValueParameterSymbol:
annotatedType: [
Anno2()
psi: KtAnnotationEntry
] I
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
hasDefaultValue: false
isExtension: false
isVararg: false
name: arg
origin: SOURCE
receiverType: null
symbolKind: LOCAL
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [
Anno3()
psi: KtAnnotationEntry
] I
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /X.f
dispatchType: X
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: FINAL
name: f
origin: SOURCE
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(arg)
]
visibility: Public
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [
Anno4()
psi: KtAnnotationEntry
] I
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /X.x
dispatchType: X
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: KtUnsupportedConstantValue
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: x
origin: SOURCE
receiverType: null
setter: null
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getX
javaSetterName: null
setterDeprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: X
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: X
origin: SOURCE
superTypes: [
[] kotlin/Any
[
Anno1()
psi: KtAnnotationEntry
] I
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
@@ -7,6 +7,7 @@ package org.jetbrains.kotlin.generators.tests.analysis.api
import org.jetbrains.kotlin.analysis.api.descriptors.test.components.*
import org.jetbrains.kotlin.analysis.api.descriptors.test.symbols.AbstractKtFe10SymbolByFqNameTest
import org.jetbrains.kotlin.analysis.api.descriptors.test.symbols.AbstractKtFe10SymbolByPsiTest
import org.jetbrains.kotlin.analysis.api.descriptors.test.symbols.AbstractKtFe10SymbolByReferenceTest
import org.jetbrains.kotlin.analysis.api.fir.AbstractFirReferenceResolveTest
import org.jetbrains.kotlin.analysis.api.fir.components.*
@@ -135,9 +136,9 @@ fun main(args: Array<String>) {
// model("scopes/fileScopeTest", extension = "kt")
// }
// testClass<AbstractKtFe10SymbolByPsiTest> {
// model("symbols/symbolByPsi")
// }
testClass<AbstractKtFe10SymbolByPsiTest> {
model("symbols/symbolByPsi")
}
// testClass<AbstractKtFe10CompileTimeConstantEvaluatorTest> {
// model("components/compileTimeConstantEvaluator")