diff --git a/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SymbolContainingDeclarationProvider.kt b/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SymbolContainingDeclarationProvider.kt index 67f5d6a12a6..28b2ae12094 100644 --- a/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SymbolContainingDeclarationProvider.kt +++ b/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SymbolContainingDeclarationProvider.kt @@ -11,6 +11,7 @@ import com.intellij.psi.search.ProjectScope import org.jetbrains.kotlin.analysis.api.components.KtSymbolContainingDeclarationProvider import org.jetbrains.kotlin.analysis.api.descriptors.KtFe10AnalysisSession import org.jetbrains.kotlin.analysis.api.descriptors.components.base.Fe10KtAnalysisSessionComponent +import org.jetbrains.kotlin.analysis.api.descriptors.symbols.descriptorBased.KtFe10DescDefaultBackingFieldSymbol import org.jetbrains.kotlin.analysis.api.descriptors.symbols.descriptorBased.base.getDescriptor import org.jetbrains.kotlin.analysis.api.descriptors.symbols.descriptorBased.base.toKtSymbol import org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeToken @@ -58,6 +59,7 @@ internal class KtFe10SymbolContainingDeclarationProvider( return psiForModule?.getKtModule(analysisSession.analysisContext.resolveSession.project) ?: symbol.getDescriptor()?.getFakeContainingKtModule() + ?: (symbol as? KtBackingFieldSymbol)?.owningProperty?.let { getContainingModule(it) } ?: TODO(symbol::class.java.name) } diff --git a/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescDefaultBackingFieldSymbol.kt b/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescDefaultBackingFieldSymbol.kt index e8e2a3b66f2..5c184438951 100644 --- a/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescDefaultBackingFieldSymbol.kt +++ b/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescDefaultBackingFieldSymbol.kt @@ -9,6 +9,7 @@ import org.jetbrains.kotlin.analysis.api.KtAnalysisSession import org.jetbrains.kotlin.analysis.api.annotations.KtAnnotationsList import org.jetbrains.kotlin.analysis.api.descriptors.Fe10AnalysisContext import org.jetbrains.kotlin.analysis.api.descriptors.annotations.KtFe10AnnotationsList +import org.jetbrains.kotlin.analysis.api.descriptors.symbols.base.KtFe10Symbol import org.jetbrains.kotlin.analysis.api.descriptors.symbols.pointers.KtFe10NeverRestoringSymbolPointer import org.jetbrains.kotlin.analysis.api.descriptors.symbols.pointers.KtFe10PsiDefaultBackingFieldSymbolPointer import org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeToken @@ -25,8 +26,8 @@ import org.jetbrains.kotlin.descriptors.annotations.Annotations internal class KtFe10DescDefaultBackingFieldSymbol( private val fieldDescriptor: FieldDescriptor?, override val owningProperty: KtKotlinPropertySymbol, - val analysisContext: Fe10AnalysisContext -) : KtBackingFieldSymbol() { + override val analysisContext: Fe10AnalysisContext +) : KtBackingFieldSymbol(), KtFe10Symbol { context(KtAnalysisSession) override fun createPointer(): KtSymbolPointer = withValidityAssertion { KtPsiBasedSymbolPointer.createForSymbolFromSource(owningProperty) ?.let { KtFe10PsiDefaultBackingFieldSymbolPointer(it) } diff --git a/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt b/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt index 17cf7552e2f..766b2bacf59 100644 --- a/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt +++ b/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt @@ -15,7 +15,7 @@ import org.jetbrains.kotlin.analysis.api.descriptors.Fe10AnalysisContext import org.jetbrains.kotlin.analysis.api.descriptors.symbols.KtFe10FileSymbol import org.jetbrains.kotlin.analysis.api.descriptors.symbols.KtFe10PackageSymbol import org.jetbrains.kotlin.analysis.api.descriptors.symbols.descriptorBased.* -import org.jetbrains.kotlin.analysis.api.descriptors.symbols.psiBased.KtFe10PsiClassInitializerSymbol +import org.jetbrains.kotlin.analysis.api.descriptors.symbols.psiBased.* import org.jetbrains.kotlin.analysis.api.descriptors.symbols.psiBased.KtFe10PsiDefaultPropertyGetterSymbol import org.jetbrains.kotlin.analysis.api.descriptors.symbols.psiBased.KtFe10PsiDefaultPropertySetterSymbol import org.jetbrains.kotlin.analysis.api.descriptors.symbols.psiBased.KtFe10PsiDefaultSetterParameterSymbol @@ -143,6 +143,7 @@ internal fun KtSymbol.getDescriptor(): DeclarationDescriptor? { is KtFe10FileSymbol -> null is KtFe10DescDefaultPropertySetterSymbol.DefaultKtValueParameterSymbol -> descriptor is KtFe10PsiDefaultPropertySetterSymbol.DefaultKtValueParameterSymbol -> descriptor + is KtFe10DescDefaultBackingFieldSymbol, is KtFe10PsiDefaultBackingFieldSymbol -> null is KtFe10PsiClassInitializerSymbol -> null else -> unexpectedElementError("KtSymbol", this) } diff --git a/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiDefaultBackingFieldSymbol.kt b/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiDefaultBackingFieldSymbol.kt index e597c7a9435..5b9e4b002e1 100644 --- a/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiDefaultBackingFieldSymbol.kt +++ b/analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiDefaultBackingFieldSymbol.kt @@ -10,6 +10,7 @@ import org.jetbrains.kotlin.analysis.api.annotations.KtAnnotationsList import org.jetbrains.kotlin.analysis.api.descriptors.Fe10AnalysisContext import org.jetbrains.kotlin.analysis.api.descriptors.Fe10AnalysisFacade import org.jetbrains.kotlin.analysis.api.descriptors.annotations.KtFe10AnnotationsList +import org.jetbrains.kotlin.analysis.api.descriptors.symbols.base.KtFe10Symbol import org.jetbrains.kotlin.analysis.api.descriptors.symbols.pointers.KtFe10NeverRestoringSymbolPointer import org.jetbrains.kotlin.analysis.api.descriptors.symbols.pointers.KtFe10PsiDefaultBackingFieldSymbolPointer import org.jetbrains.kotlin.analysis.api.descriptors.utils.cached @@ -23,7 +24,6 @@ import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer import org.jetbrains.kotlin.analysis.api.types.KtType import org.jetbrains.kotlin.descriptors.FieldDescriptor import org.jetbrains.kotlin.descriptors.PropertyDescriptor -import org.jetbrains.kotlin.descriptors.PropertyGetterDescriptor import org.jetbrains.kotlin.descriptors.annotations.Annotations import org.jetbrains.kotlin.psi.KtProperty import org.jetbrains.kotlin.resolve.BindingContext @@ -31,8 +31,8 @@ import org.jetbrains.kotlin.resolve.BindingContext internal class KtFe10PsiDefaultBackingFieldSymbol( private val propertyPsi: KtProperty, override val owningProperty: KtKotlinPropertySymbol, - val analysisContext: Fe10AnalysisContext -) : KtBackingFieldSymbol() { + override val analysisContext: Fe10AnalysisContext +) : KtBackingFieldSymbol(), KtFe10Symbol { val descriptor: FieldDescriptor? by cached { val bindingContext = analysisContext.analyze(propertyPsi, Fe10AnalysisFacade.AnalysisMode.PARTIAL) (bindingContext[BindingContext.VARIABLE, propertyPsi] as? PropertyDescriptor)?.backingField diff --git a/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/impl/KtDeclarationRendererForSource.kt b/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/impl/KtDeclarationRendererForSource.kt index a268287afe6..ce97db6618c 100644 --- a/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/impl/KtDeclarationRendererForSource.kt +++ b/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/impl/KtDeclarationRendererForSource.kt @@ -50,7 +50,7 @@ public object KtDeclarationRendererForSource { classInitializerRender = KtClassInitializerRenderer.INIT_BLOCK_WITH_BRACES anonymousFunctionRenderer = KtAnonymousFunctionSymbolRenderer.AS_SOURCE - backingFieldRenderer = KtBackingFieldSymbolRenderer.AS_FIELD_KEYWROD + backingFieldRenderer = KtBackingFieldSymbolRenderer.AS_FIELD_KEYWORD constructorRenderer = KtConstructorSymbolRenderer.AS_SOURCE enumEntryRenderer = KtEnumEntrySymbolRenderer.AS_SOURCE functionSymbolRenderer = KtFunctionSymbolRenderer.AS_SOURCE diff --git a/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/ktRendererUtils.kt b/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/ktRendererUtils.kt index 7c8470e5936..22c27ccfe50 100644 --- a/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/ktRendererUtils.kt +++ b/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/ktRendererUtils.kt @@ -9,7 +9,6 @@ import org.jetbrains.kotlin.analysis.api.KtAnalysisSession import org.jetbrains.kotlin.analysis.api.annotations.KtAnnotated import org.jetbrains.kotlin.analysis.api.base.KtContextReceiversOwner import org.jetbrains.kotlin.analysis.api.symbols.KtDeclarationSymbol -import org.jetbrains.kotlin.analysis.api.symbols.KtPropertySymbol import org.jetbrains.kotlin.analysis.utils.printer.PrettyPrinter import org.jetbrains.kotlin.lexer.KtKeywordToken @@ -31,20 +30,14 @@ public fun renderAnnotationsModifiersAndContextReceivers( renderContextReceivers(symbol, printer) val annotationsRendered: Boolean - val fieldAnnotationsRendered: Boolean val modifiersRendered: Boolean codeStyle.getSeparatorBetweenAnnotationAndOwner(symbol).separated( { annotationsRendered = checkIfPrinted { annotationRenderer.renderAnnotations(symbol, printer) } }, - { - fieldAnnotationsRendered = checkIfPrinted { - if (symbol is KtPropertySymbol) symbol.backingFieldSymbol?.let { annotationRenderer.renderAnnotations(it, printer) } - } - }, { modifiersRendered = checkIfPrinted { modifiersRenderer.renderDeclarationModifiers(symbol, printer) } } ) val separator = when { - (annotationsRendered || fieldAnnotationsRendered) && !modifiersRendered -> codeStyle.getSeparatorBetweenAnnotationAndOwner(symbol) - annotationsRendered || fieldAnnotationsRendered || modifiersRendered -> codeStyle.getSeparatorBetweenModifiers() + annotationsRendered && !modifiersRendered -> codeStyle.getSeparatorBetweenAnnotationAndOwner(symbol) + annotationsRendered || modifiersRendered -> codeStyle.getSeparatorBetweenModifiers() else -> "" } @@ -61,7 +54,6 @@ public fun renderAnnotationsModifiersAndContextReceivers( renderContextReceivers(symbol, printer) codeStyle.getSeparatorBetweenAnnotationAndOwner(symbol).separated( { annotationRenderer.renderAnnotations(symbol, printer) }, - { if (symbol is KtPropertySymbol) symbol.backingFieldSymbol?.let { annotationRenderer.renderAnnotations(it, printer) } }, { modifiersRenderer.renderDeclarationModifiers(symbol, printer) } ) } diff --git a/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/callables/KtBackingFieldSymbolRenderer.kt b/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/callables/KtBackingFieldSymbolRenderer.kt index cb099c37d6c..623384489ff 100644 --- a/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/callables/KtBackingFieldSymbolRenderer.kt +++ b/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/callables/KtBackingFieldSymbolRenderer.kt @@ -15,10 +15,13 @@ public interface KtBackingFieldSymbolRenderer { context(KtAnalysisSession, KtDeclarationRenderer) public fun renderSymbol(symbol: KtBackingFieldSymbol, printer: PrettyPrinter) - public object AS_FIELD_KEYWROD : KtBackingFieldSymbolRenderer { + public object AS_FIELD_KEYWORD : KtBackingFieldSymbolRenderer { context(KtAnalysisSession, KtDeclarationRenderer) override fun renderSymbol(symbol: KtBackingFieldSymbol, printer: PrettyPrinter): Unit = printer { - keywordRenderer.renderKeyword(KtTokens.FIELD_KEYWORD, symbol, printer) + codeStyle.getSeparatorBetweenAnnotationAndOwner(symbol).separated( + { annotationRenderer.renderAnnotations(symbol, printer) }, + { keywordRenderer.renderKeyword(KtTokens.FIELD_KEYWORD, symbol, printer) }, + ) } } } \ No newline at end of file diff --git a/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/symbols/DebugSymbolRenderer.kt b/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/symbols/DebugSymbolRenderer.kt index 0d30860e525..98eda7efb3f 100644 --- a/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/symbols/DebugSymbolRenderer.kt +++ b/analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/symbols/DebugSymbolRenderer.kt @@ -173,7 +173,10 @@ public class DebugSymbolRenderer( } } - if (renderSymbolsFully || symbol is KtPropertyGetterSymbol || symbol is KtPropertySetterSymbol || symbol is KtValueParameterSymbol || symbol is KtReceiverParameterSymbol) { + if (renderSymbolsFully || symbol is KtBackingFieldSymbol || + symbol is KtPropertyGetterSymbol || symbol is KtPropertySetterSymbol || + symbol is KtValueParameterSymbol || symbol is KtReceiverParameterSymbol + ) { renderSymbol(symbol) return } @@ -187,13 +190,6 @@ public class DebugSymbolRenderer( else -> error("Unsupported symbol ${symbol::class.java.name}") } append(")") - if (symbol is KtBackingFieldSymbol && symbol.annotationsList.annotations.isNotEmpty()) { - appendLine() - withIndent { - append("annotationsList: ") - renderAnnotationsList(symbol.annotationsList) - } - } } context(KtAnalysisSession) diff --git a/analysis/analysis-api/testData/components/scopeProvider/delegatedMemberScope/propertyWithGetter.descriptors.txt b/analysis/analysis-api/testData/components/scopeProvider/delegatedMemberScope/propertyWithGetter.descriptors.txt index 1d441ebc668..226cf213b67 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/delegatedMemberScope/propertyWithGetter.descriptors.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/delegatedMemberScope/propertyWithGetter.descriptors.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/I.foo) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /I.foo contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/delegatedMemberScope/simple.descriptors.txt b/analysis/analysis-api/testData/components/scopeProvider/delegatedMemberScope/simple.descriptors.txt index d66fcb70d13..b078a5a7f2f 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/delegatedMemberScope/simple.descriptors.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/delegatedMemberScope/simple.descriptors.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/I.zoo) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Unit + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /I.zoo contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -242,7 +258,23 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/I.foo) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /I.foo contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -309,7 +341,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/I.bar) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Long + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /I.bar contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -447,7 +495,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/I.doo) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /I.doo contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/fileScope.descriptors.txt b/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/fileScope.descriptors.txt index 069d9a583e2..52e0fc12d6a 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/fileScope.descriptors.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/fileScope.descriptors.txt @@ -97,7 +97,23 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/testVal) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /testVal contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -156,7 +172,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/initializedVariable) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /initializedVariable contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -282,7 +314,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/unitializedVariable) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Long + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /unitializedVariable contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -408,7 +456,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/lateinitVariable) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /lateinitVariable contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -534,7 +598,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/variableWithBackingField) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Long + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /variableWithBackingField contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -660,7 +740,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/privateSetter) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /privateSetter contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -789,7 +885,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/jvmNameOnSetter) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /jvmNameOnSetter contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -918,7 +1030,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/customGetter) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /customGetter contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -980,7 +1108,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/jvmNameOnGetter) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /jvmNameOnGetter contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -1042,7 +1186,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/propertyWithReceiver) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /propertyWithReceiver contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -1119,7 +1279,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/propertyWithGenericReceiver) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /propertyWithGenericReceiver contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -1196,7 +1372,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/constant) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /constant contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -1255,11 +1447,26 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ kotlin/jvm/JvmField() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/jvmField) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Long + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /jvmField contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/fileScope.txt b/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/fileScope.txt index 4c7c61e4bd8..c264f5bd9a0 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/fileScope.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/fileScope.txt @@ -97,7 +97,23 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/testVal) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /testVal contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -156,7 +172,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/initializedVariable) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /initializedVariable contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -282,7 +314,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/unitializedVariable) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Long + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /unitializedVariable contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -408,7 +456,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/lateinitVariable) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /lateinitVariable contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -534,7 +598,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/variableWithBackingField) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Long + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /variableWithBackingField contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -660,7 +740,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/privateSetter) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /privateSetter contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -789,7 +885,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/jvmNameOnSetter) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /jvmNameOnSetter contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -918,7 +1030,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/customGetter) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /customGetter contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -980,7 +1108,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/jvmNameOnGetter) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /jvmNameOnGetter contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -1042,7 +1186,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/propertyWithReceiver) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /propertyWithReceiver contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -1119,7 +1279,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/propertyWithGenericReceiver) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /propertyWithGenericReceiver contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -1196,7 +1372,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/constant) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /constant contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -1255,11 +1447,26 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ kotlin/jvm/JvmField() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/jvmField) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Long + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /jvmField contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/simpleFileScope.txt b/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/simpleFileScope.txt index b9e17ff1f39..bb523651c99 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/simpleFileScope.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/simpleFileScope.txt @@ -41,7 +41,23 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/testVal) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /testVal contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScopeByFqName/MutableList.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScopeByFqName/MutableList.txt index 58522ed80ac..07e8e9b4f0a 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScopeByFqName/MutableList.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/memberScopeByFqName/MutableList.txt @@ -1242,7 +1242,23 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(kotlin/collections/List.size) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null callableIdIfNonLocal: kotlin/collections/List.size contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScopeByFqName/dataClass.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScopeByFqName/dataClass.txt index 744590ffb66..eca19c4d2fa 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScopeByFqName/dataClass.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/memberScopeByFqName/dataClass.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Abc.firstProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Abc.firstProperty contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -67,7 +83,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Abc.secondProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Double + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Abc.secondProperty contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -134,7 +166,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Abc.thirdProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Abc.thirdProperty contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -235,7 +283,23 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Abc.bodyProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Long + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Abc.bodyProperty contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -665,7 +729,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Abc.firstProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Abc.firstProperty contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -752,7 +832,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Abc.secondProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Double + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Abc.secondProperty contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -839,7 +935,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Abc.thirdProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Abc.thirdProperty contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScopeByFqName/enumEntry.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScopeByFqName/enumEntry.txt index 9de25c4c7ce..2050a6b710b 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScopeByFqName/enumEntry.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/memberScopeByFqName/enumEntry.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -302,7 +318,23 @@ KtKotlinPropertySymbol: kotlin/internal/IntrinsicConstEvaluation() psi: null ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(kotlin/Enum.name) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.name contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -377,7 +409,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(kotlin/Enum.ordinal) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.ordinal contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/enumEntry.txt b/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/enumEntry.txt index 229002fdead..fe70bef69a5 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/enumEntry.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/enumEntry.txt @@ -45,7 +45,21 @@ scopes: callables: 9 KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -302,7 +316,21 @@ scopes: kotlin/internal/IntrinsicConstEvaluation() psi: null ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(kotlin/Enum.name) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] callableIdIfNonLocal: kotlin/Enum.name contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -352,7 +380,21 @@ scopes: visibility: Public KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(kotlin/Enum.ordinal) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] callableIdIfNonLocal: kotlin/Enum.ordinal contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/localTypeScope.txt b/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/localTypeScope.txt index b4fea21022e..22749ed308e 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/localTypeScope.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/localTypeScope.txt @@ -33,7 +33,21 @@ scopes: callables: 5 KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/propertyInY) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/typeScope/innerClassTypeParamsSubstitution.txt b/analysis/analysis-api/testData/components/scopeProvider/typeScope/innerClassTypeParamsSubstitution.txt index 9b639c22ea1..c911c3db932 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/typeScope/innerClassTypeParamsSubstitution.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/typeScope/innerClassTypeParamsSubstitution.txt @@ -146,7 +146,28 @@ KtFunctionSymbol: visibility: Public KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Outer.A.map) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: X + KtTypeParameterType: + annotationsList: [] + type: O + ] + type: kotlin/collections/Map + symbolKind: LOCAL + typeParameters: [] callableIdIfNonLocal: /Outer.A.map contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/typeScope/intList.txt b/analysis/analysis-api/testData/components/scopeProvider/typeScope/intList.txt index 5fae92dfe59..19858b06ccc 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/typeScope/intList.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/typeScope/intList.txt @@ -606,7 +606,21 @@ KtFunctionSymbol: visibility: Public KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(kotlin/collections/List.size) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] callableIdIfNonLocal: kotlin/collections/List.size contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/typeScope/outerClassTypeParamsSubstitution.txt b/analysis/analysis-api/testData/components/scopeProvider/typeScope/outerClassTypeParamsSubstitution.txt index 32e1a24ee63..64364815889 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/typeScope/outerClassTypeParamsSubstitution.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/typeScope/outerClassTypeParamsSubstitution.txt @@ -140,7 +140,28 @@ KtFunctionSymbol: visibility: Public KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Outer.A.map) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: X + KtTypeParameterType: + annotationsList: [] + type: O + ] + type: kotlin/collections/Map + symbolKind: LOCAL + typeParameters: [] callableIdIfNonLocal: /Outer.A.map contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/typeScope/outerTypeParamsSubstitution.txt b/analysis/analysis-api/testData/components/scopeProvider/typeScope/outerTypeParamsSubstitution.txt index 16a0b30d162..0e44a7bd3bf 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/typeScope/outerTypeParamsSubstitution.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/typeScope/outerTypeParamsSubstitution.txt @@ -132,7 +132,29 @@ KtFunctionSymbol: visibility: Public KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/A.map) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: X + KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + ] + type: kotlin/collections/Map + symbolKind: LOCAL + typeParameters: [] callableIdIfNonLocal: /A.map contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/components/scopeProvider/typeScope/typeParamList.txt b/analysis/analysis-api/testData/components/scopeProvider/typeScope/typeParamList.txt index 1eb905c1443..2b4f74303d7 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/typeScope/typeParamList.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/typeScope/typeParamList.txt @@ -606,7 +606,21 @@ KtFunctionSymbol: visibility: Public KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(kotlin/collections/List.size) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] callableIdIfNonLocal: kotlin/collections/List.size contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotations.descriptors.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotations.descriptors.txt index 343ed6ef62c..57fb712a921 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotations.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotations.descriptors.txt @@ -3,11 +3,26 @@ KtKotlinPropertySymbol: PropertyAnnotation() psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ FieldAnnotation() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/prop) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /prop contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotations.pretty.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotations.pretty.txt index 3bd4c668a96..4dc1184c8c4 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotations.pretty.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotations.pretty.txt @@ -1,5 +1,4 @@ @PropertyAnnotation -@FieldAnnotation var prop: kotlin.Int @GetAnnotation get() diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotations.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotations.txt index 4c564311047..98d5096744a 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotations.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotations.txt @@ -3,11 +3,26 @@ KtKotlinPropertySymbol: PropertyAnnotation() psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ FieldAnnotation() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/prop) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /prop contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.descriptors.pretty.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.descriptors.pretty.txt index 11de3268365..6eff8943ddd 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.descriptors.pretty.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.descriptors.pretty.txt @@ -1,5 +1,4 @@ @PropertyAnnotation -@FieldAnnotation var x: kotlin.Int @GetAnnotation @ExplicitGetAnnotation diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.descriptors.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.descriptors.txt index 37069afb0b2..5f0f6b627ca 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.descriptors.txt @@ -3,11 +3,26 @@ KtKotlinPropertySymbol: PropertyAnnotation() psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ FieldAnnotation() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /x contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.pretty.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.pretty.txt index 34307d36543..9085428ebd5 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.pretty.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.pretty.txt @@ -1,5 +1,4 @@ @PropertyAnnotation -@FieldAnnotation var x: kotlin.Int @ExplicitGetAnnotation @GetAnnotation diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.txt index de43bf2c8da..7fe4b7afb25 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithAnnotationsAndAccessors.txt @@ -3,11 +3,26 @@ KtKotlinPropertySymbol: PropertyAnnotation() psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ FieldAnnotation() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /x contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithDelegateAndAnnotations.descriptors.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithDelegateAndAnnotations.descriptors.txt index 4773b6dcf27..5c68e5c4a1e 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithDelegateAndAnnotations.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithDelegateAndAnnotations.descriptors.txt @@ -5,7 +5,23 @@ KtKotlinPropertySymbol: ExplicitPropertyAnnotation() psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/lazyProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /lazyProperty contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithDelegateAndAnnotations.pretty.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithDelegateAndAnnotations.pretty.txt index c62841ac8be..04b2366a602 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithDelegateAndAnnotations.pretty.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithDelegateAndAnnotations.pretty.txt @@ -1,5 +1,4 @@ @ExplicitPropertyAnnotation @PropertyAnnotation -@delegate:DelegateAnnotation val lazyProperty: kotlin.Int get() \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithDelegateAndAnnotations.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithDelegateAndAnnotations.txt index 2ea6b323a7d..c28a9424994 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithDelegateAndAnnotations.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithDelegateAndAnnotations.txt @@ -5,11 +5,26 @@ KtKotlinPropertySymbol: PropertyAnnotation() psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ DelegateAnnotation() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/lazyProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /lazyProperty contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithReceiverAnnotation.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithReceiverAnnotation.txt index 2c3bc2cc6eb..7edd5ab1de9 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithReceiverAnnotation.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/propertyWithReceiverAnnotation.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/prop) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Boolean + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /prop contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReceiverType.descriptors.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReceiverType.descriptors.txt index 73c7cfa8f11..20c188903da 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReceiverType.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReceiverType.descriptors.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/foo) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /foo contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReceiverType.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReceiverType.txt index 9bbcdeb0ab6..25b70e6fe94 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReceiverType.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReceiverType.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/foo) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /foo contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReturnType.descriptors.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReturnType.descriptors.txt index 3fff6139b3f..b0cf2a87577 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReturnType.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReturnType.descriptors.txt @@ -1,6 +1,29 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/foo) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [ + Anno3() + psi: KtAnnotationEntry + Anno2() + psi: KtAnnotationEntry + Anno1() + psi: KtAnnotationEntry + ] + ownTypeArguments: [] + type: @R|Anno3|() @R|Anno2|() @R|Anno1|() @R|Anno3|() SecondTypeAlias + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /foo contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReturnType.txt b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReturnType.txt index 11468e4ac9b..6358385190f 100644 --- a/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReturnType.txt +++ b/analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsOnPropertyReturnType.txt @@ -1,6 +1,29 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/foo) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [ + Anno1() + psi: KtAnnotationEntry + Anno2() + psi: KtAnnotationEntry + Anno3() + psi: KtAnnotationEntry + ] + ownTypeArguments: [] + type: @R|Anno1|() @R|Anno2|() @R|Anno3|() BaseInterface + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /foo contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/annotations.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/annotations.descriptors.txt index c20f17791a5..50d70cfe45d 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/annotations.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/annotations.descriptors.txt @@ -21,7 +21,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Anno.param1) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Anno.param1 contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -108,7 +124,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Anno.param2) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Anno.param2 contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/annotations.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/annotations.txt index a82ee9f36cb..2695464be78 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/annotations.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/annotations.txt @@ -21,7 +21,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Anno.param1) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Anno.param1 contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -108,7 +124,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Anno.param2) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Anno.param2 contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/anonymousObject.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/anonymousObject.descriptors.txt index a4839c4aaf4..655f89fc506 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/anonymousObject.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/anonymousObject.descriptors.txt @@ -34,7 +34,23 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/data) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -119,7 +135,23 @@ KtAnonymousObjectSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/AnonymousContainer.anonymousObject) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: java/lang/Runnable + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /AnonymousContainer.anonymousObject contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/anonymousObject.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/anonymousObject.txt index 2f15ad08093..2db1c051f1b 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/anonymousObject.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/anonymousObject.txt @@ -34,7 +34,23 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/data) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -119,7 +135,23 @@ KtAnonymousObjectSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/AnonymousContainer.anonymousObject) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: java/lang/Runnable + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /AnonymousContainer.anonymousObject contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/backingField.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/backingField.txt index 416869e2394..6e2dc8a43d9 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/backingField.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/backingField.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/p) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /p contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/classInitializer.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/classInitializer.txt index b101e66232f..8f1712a4f69 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/classInitializer.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/classInitializer.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/A.i) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /A.i contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/classMembes.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/classMembes.txt index 647daf063b3..4ac4a9ca084 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/classMembes.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/classMembes.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/A.a) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /A.a contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/classPrimaryConstructor.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/classPrimaryConstructor.descriptors.txt index 96ea47a0110..9bca9291b8b 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/classPrimaryConstructor.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/classPrimaryConstructor.descriptors.txt @@ -21,7 +21,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/A.a) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /A.a contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/classPrimaryConstructor.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/classPrimaryConstructor.txt index 7d81a19c68f..35aeef376f1 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/classPrimaryConstructor.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/classPrimaryConstructor.txt @@ -21,7 +21,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/A.a) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /A.a contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/contextReceivers/contextReceiversOnProperty.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/contextReceivers/contextReceiversOnProperty.txt index 08eb281c768..fcaafac92f0 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/contextReceivers/contextReceiversOnProperty.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/contextReceivers/contextReceiversOnProperty.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/y) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /y contextReceivers: [ KtContextReceiver: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/delegateField.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/delegateField.descriptors.txt index 55f5f35643f..dd24a61d53e 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/delegateField.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/delegateField.descriptors.txt @@ -21,7 +21,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyColor.x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyColor.x contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -108,7 +124,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyColor.y) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyColor.y contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -195,7 +227,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyColor.z) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyColor.z contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -328,7 +376,23 @@ KtAnonymousFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Some.delegate) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: MyColor + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Some.delegate contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -413,7 +477,28 @@ KtAnonymousFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Some.lambda) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: MyColor + ] + type: kotlin/Lazy + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Some.lambda contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -490,7 +575,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Some.nonLazy) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: MyColor + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Some.nonLazy contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/delegateField.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/delegateField.txt index 74daa175e78..6f49031dce3 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/delegateField.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/delegateField.txt @@ -21,7 +21,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyColor.x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyColor.x contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -108,7 +124,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyColor.y) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyColor.y contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -195,7 +227,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyColor.z) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyColor.z contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -328,7 +376,23 @@ KtAnonymousFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Some.delegate) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: MyColor + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Some.delegate contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -409,7 +473,28 @@ KtAnonymousFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Some.lambda) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: MyColor + ] + type: kotlin/Lazy + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Some.lambda contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -486,7 +571,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Some.nonLazy) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: MyColor + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Some.nonLazy contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/delegatedProp.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/delegatedProp.descriptors.txt index 2251bdf03f0..0589735ab85 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/delegatedProp.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/delegatedProp.descriptors.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/delegatedProp) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /delegatedProp contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/delegatedProp.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/delegatedProp.txt index 20e65620b85..05fc230e837 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/delegatedProp.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/delegatedProp.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/delegatedProp) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /delegatedProp contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.descriptors.txt index 937701fbe49..df64cda5b8a 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.descriptors.txt @@ -3,7 +3,23 @@ KtKotlinPropertySymbol: kotlin/Deprecated(message = "don't use i") psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/i) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /i contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -62,7 +78,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/i2) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /i2 contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -124,7 +156,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/i3) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /i3 contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -254,7 +302,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/i4) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /i4 contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -453,7 +517,23 @@ KtKotlinPropertySymbol: kotlin/Deprecated(message = "don't use i2") psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Foo.i2) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Foo.i2 contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -587,7 +667,23 @@ KtKotlinPropertySymbol: kotlin/Deprecated(level = kotlin.DeprecationLevel.ERROR, message = "don't use j") psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/j) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /j contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -649,7 +745,23 @@ KtKotlinPropertySymbol: kotlin/Deprecated(level = kotlin.DeprecationLevel.HIDDEN, message = "don't use j2") psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/j2) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /j2 contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -708,11 +820,26 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ java/lang/Deprecated() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/j3) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /j3 contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.pretty.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.pretty.txt index 93c30bcfce3..92cfba21eb4 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.pretty.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.pretty.txt @@ -24,7 +24,6 @@ val j: kotlin.Int @kotlin.Deprecated(message = "don't use j2", level = kotlin.DeprecationLevel.HIDDEN) val j2: kotlin.Int -@java.lang.Deprecated val j3: kotlin.Int @kotlin.Deprecated(message = "don't use MyClass") diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.txt index 633bfd7bb23..a26ed0cdfeb 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/deprecated.txt @@ -3,7 +3,23 @@ KtKotlinPropertySymbol: kotlin/Deprecated(message = "don't use i") psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/i) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /i contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -62,7 +78,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/i2) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /i2 contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -124,7 +156,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/i3) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /i3 contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -253,7 +301,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/i4) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /i4 contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -451,7 +515,23 @@ KtKotlinPropertySymbol: kotlin/Deprecated(message = "don't use i2") psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Foo.i2) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Foo.i2 contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -585,7 +665,23 @@ KtKotlinPropertySymbol: kotlin/Deprecated(level = kotlin.DeprecationLevel.ERROR, message = "don't use j") psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/j) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /j contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -647,7 +743,23 @@ KtKotlinPropertySymbol: kotlin/Deprecated(level = kotlin.DeprecationLevel.HIDDEN, message = "don't use j2") psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/j2) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /j2 contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -706,11 +818,26 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ java/lang/Deprecated() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/j3) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /j3 contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/destructuringDeclaration.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/destructuringDeclaration.descriptors.txt index 01ca6f9861c..2564c822ec3 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/destructuringDeclaration.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/destructuringDeclaration.descriptors.txt @@ -21,7 +21,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/P.x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /P.x contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -108,7 +124,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/P.y) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /P.y contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/destructuringDeclaration.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/destructuringDeclaration.txt index 3499cf56e91..9da27a174ea 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/destructuringDeclaration.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/destructuringDeclaration.txt @@ -21,7 +21,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/P.x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /P.x contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -108,7 +124,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/P.y) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /P.y contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/dynamic.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/dynamic.txt index d91ecdb67f6..60497bc347e 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/dynamic.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/dynamic.txt @@ -1,6 +1,21 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Foo.p) + receiverParameter: null + returnType: KtDynamicType: + annotationsList: [] + type: dynamic + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Foo.p contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryOverride.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryOverride.descriptors.txt index 0cc38501806..56ad0439a54 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryOverride.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryOverride.descriptors.txt @@ -120,7 +120,23 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/i) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -405,7 +421,23 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyEnumClass.i) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyEnumClass.i contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryOverride.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryOverride.txt index e0b5add06f1..30994fe8852 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryOverride.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryOverride.txt @@ -120,7 +120,23 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/i) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -401,7 +417,23 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyEnumClass.i) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyEnumClass.i contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryProperties.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryProperties.descriptors.txt index cebc4ea4fef..95880de4ddd 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryProperties.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryProperties.descriptors.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/a) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -103,7 +119,23 @@ KtEnumEntrySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/b) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -170,7 +202,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/d) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryProperties.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryProperties.txt index f9ac0fececf..83a34a79dd4 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryProperties.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/enumEntryProperties.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/a) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -103,7 +119,23 @@ KtEnumEntrySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/b) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -170,7 +202,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/d) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/enumValueMember.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/enumValueMember.descriptors.txt index 9d497c9684e..7ea93bfc1c5 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/enumValueMember.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/enumValueMember.descriptors.txt @@ -21,7 +21,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Style.value) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Style.value contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -109,7 +125,23 @@ KtConstructorSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/exitAnimation) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -194,7 +226,23 @@ KtEnumEntrySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Style.exitAnimation) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Style.exitAnimation contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/enumValueMember.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/enumValueMember.txt index 8a2682022ee..20b5076992d 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/enumValueMember.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/enumValueMember.txt @@ -21,7 +21,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Style.value) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Style.value contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -109,7 +125,23 @@ KtConstructorSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/exitAnimation) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: null contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -190,7 +222,23 @@ KtEnumEntrySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Style.exitAnimation) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Style.exitAnimation contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/explicitBackingField.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/explicitBackingField.descriptors.txt new file mode 100644 index 00000000000..6e2dc8a43d9 --- /dev/null +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/explicitBackingField.descriptors.txt @@ -0,0 +1,141 @@ +KtKotlinPropertySymbol: + annotationsList: [] + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/p) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + callableIdIfNonLocal: /p + contextReceivers: [] + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: true + hasStableParameterNames: true + isDefault: false + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: SOURCE + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + 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: p + origin: SOURCE + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + setter: KtPropertySetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: true + hasStableParameterNames: true + isDefault: false + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: SOURCE + parameter: KtValueParameterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + generatedPrimaryConstructorProperty: null + hasDefaultValue: false + isCrossinline: false + isExtension: false + isImplicitLambdaParameter: false + isNoinline: false + isVararg: false + name: value + origin: SOURCE + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Unit + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [ + KtValueParameterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + generatedPrimaryConstructorProperty: null + hasDefaultValue: false + isCrossinline: false + isExtension: false + isImplicitLambdaParameter: false + isNoinline: false + isVararg: false + name: value + origin: SOURCE + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + ] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + symbolKind: TOP_LEVEL + typeParameters: [] + visibility: Public + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null + getterDeprecationStatus: null + javaGetterName: getP + javaSetterName: setP + setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/explicitBackingField.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/explicitBackingField.txt index 416869e2394..a02e21c6d00 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/explicitBackingField.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/explicitBackingField.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/p) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /p contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/jvmField.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/jvmField.descriptors.txt index 38ae1c17d7c..bd57c345400 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/jvmField.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/jvmField.descriptors.txt @@ -1,10 +1,25 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ kotlin/jvm/JvmField() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/jvmField) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Long + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /jvmField contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -131,11 +146,26 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ kotlin/jvm/JvmField() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/jvmFieldOnField) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /jvmFieldOnField contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/jvmField.pretty.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/jvmField.pretty.txt index a9a1eaa75c6..0d2498ad696 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/jvmField.pretty.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/jvmField.pretty.txt @@ -1,5 +1,3 @@ -@kotlin.jvm.JvmField var jvmField: kotlin.Long -@kotlin.jvm.JvmField var jvmFieldOnField: kotlin.Int \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/jvmField.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/jvmField.txt index 1b7fa43c9eb..25508565b5c 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/jvmField.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/jvmField.txt @@ -1,10 +1,25 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ kotlin/jvm/JvmField() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/jvmField) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Long + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /jvmField contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -130,11 +145,26 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ kotlin/jvm/JvmField() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/jvmFieldOnField) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /jvmFieldOnField contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/jvmName.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/jvmName.descriptors.txt index 00a25410a2b..60f3a4462a7 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/jvmName.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/jvmName.descriptors.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Foo.i) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Foo.i contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -141,7 +157,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Foo.j) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Foo.j contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/jvmName.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/jvmName.txt index f2f61412d34..1e83e942e63 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/jvmName.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/jvmName.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Foo.i) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Foo.i contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -144,7 +160,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Foo.j) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Foo.j contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/memberProperties.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/memberProperties.descriptors.txt index f4f98b15b05..d54b1c68959 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/memberProperties.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/memberProperties.descriptors.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/A.x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /A.x contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -67,7 +83,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/A.y) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /A.y contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/memberProperties.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/memberProperties.txt index 1075a9dee57..1a4dad11758 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/memberProperties.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/memberProperties.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/A.x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /A.x contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -67,7 +83,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/A.y) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /A.y contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/propertiesFromCompanion.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/propertiesFromCompanion.descriptors.txt index a93f0b9c765..d36b1d66be6 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/propertiesFromCompanion.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/propertiesFromCompanion.descriptors.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.property) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.property contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -67,7 +83,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.constProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.constProperty contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -137,7 +169,23 @@ KtKotlinPropertySymbol: kotlin/jvm/JvmStatic() psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.staticProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.staticProperty contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -204,11 +252,26 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ kotlin/jvm/JvmField() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.fieldProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.fieldProperty contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -275,7 +338,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.variable) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.variable contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -413,7 +492,23 @@ KtKotlinPropertySymbol: kotlin/jvm/JvmStatic() psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.staticVariable) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.staticVariable contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -548,11 +643,26 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ kotlin/jvm/JvmField() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.fieldVariable) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.fieldVariable contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/propertiesFromCompanion.pretty.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/propertiesFromCompanion.pretty.txt index c3ed27a8590..57bdd13f94d 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/propertiesFromCompanion.pretty.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/propertiesFromCompanion.pretty.txt @@ -7,7 +7,6 @@ class MyClass { @kotlin.jvm.JvmStatic val staticProperty: kotlin.Int - @kotlin.jvm.JvmField val fieldProperty: kotlin.Int var variable: kotlin.Int @@ -15,7 +14,6 @@ class MyClass { @kotlin.jvm.JvmStatic var staticVariable: kotlin.Int - @kotlin.jvm.JvmField var fieldVariable: kotlin.Int } } \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/propertiesFromCompanion.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/propertiesFromCompanion.txt index 4acaa08e425..05283b99aec 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/propertiesFromCompanion.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/propertiesFromCompanion.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.property) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.property contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -67,7 +83,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.constProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.constProperty contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -137,7 +169,23 @@ KtKotlinPropertySymbol: kotlin/jvm/JvmStatic() psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.staticProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.staticProperty contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -204,11 +252,26 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ kotlin/jvm/JvmField() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.fieldProperty) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.fieldProperty contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -275,7 +338,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.variable) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.variable contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -416,7 +495,23 @@ KtKotlinPropertySymbol: kotlin/jvm/JvmStatic() psi: KtAnnotationEntry ] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.staticVariable) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.staticVariable contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -554,11 +649,26 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: annotationsList: [ kotlin/jvm/JvmField() psi: KtAnnotationEntry ] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyClass.Companion.fieldVariable) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyClass.Companion.fieldVariable contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/topLevelProperties.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/topLevelProperties.txt index 95599487ee5..eece82c2fab 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/topLevelProperties.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/topLevelProperties.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /x contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -59,7 +75,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/y) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /y contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -136,7 +168,23 @@ KtKotlinPropertySymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/get) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Long + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /get contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/typeAnnotations.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/typeAnnotations.descriptors.txt index 9adb280f143..c5d719d61d8 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/typeAnnotations.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/typeAnnotations.descriptors.txt @@ -141,7 +141,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Anno5.s) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Anno5.s contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -349,7 +365,26 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/X.x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [ + Anno4() + psi: KtAnnotationEntry + ] + ownTypeArguments: [] + type: @R|Anno4|() I + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /X.x contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByPsi/typeAnnotations.txt b/analysis/analysis-api/testData/symbols/symbolByPsi/typeAnnotations.txt index 3f00d505e86..e9845debc24 100644 --- a/analysis/analysis-api/testData/symbols/symbolByPsi/typeAnnotations.txt +++ b/analysis/analysis-api/testData/symbols/symbolByPsi/typeAnnotations.txt @@ -141,7 +141,23 @@ KtConstructorSymbol: contextReceivers: [] generatedPrimaryConstructorProperty: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/Anno5.s) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /Anno5.s contextReceivers: [] getter: KtPropertyGetterSymbol: @@ -349,7 +365,26 @@ KtFunctionSymbol: KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/X.x) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [ + Anno4() + psi: KtAnnotationEntry + ] + ownTypeArguments: [] + type: @R|Anno4|() I + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /X.x contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/accessorField.descriptors.pretty.txt b/analysis/analysis-api/testData/symbols/symbolByReference/accessorField.descriptors.pretty.txt new file mode 100644 index 00000000000..4b04d1c1b48 --- /dev/null +++ b/analysis/analysis-api/testData/symbols/symbolByReference/accessorField.descriptors.pretty.txt @@ -0,0 +1 @@ +field \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/accessorField.pretty.txt b/analysis/analysis-api/testData/symbols/symbolByReference/accessorField.pretty.txt index 4b04d1c1b48..89c3d3c625a 100644 --- a/analysis/analysis-api/testData/symbols/symbolByReference/accessorField.pretty.txt +++ b/analysis/analysis-api/testData/symbols/symbolByReference/accessorField.pretty.txt @@ -1 +1,2 @@ +@FieldAnnotation field \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/enumEntries.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByReference/enumEntries.descriptors.txt index 824b0e38d9e..e06cda0404a 100644 --- a/analysis/analysis-api/testData/symbols/symbolByReference/enumEntries.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByReference/enumEntries.descriptors.txt @@ -1,6 +1,27 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/MyKotlinEnum.entries) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: MyKotlinEnum + ] + type: kotlin/enums/EnumEntries + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /MyKotlinEnum.entries contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/primaryConstructorValueParameterAsProperty.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByReference/primaryConstructorValueParameterAsProperty.descriptors.txt index aa82b194a88..ac445b1962c 100644 --- a/analysis/analysis-api/testData/symbols/symbolByReference/primaryConstructorValueParameterAsProperty.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByReference/primaryConstructorValueParameterAsProperty.descriptors.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/A.abc) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /A.abc contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/primaryConstructorValueParameterAsProperty.txt b/analysis/analysis-api/testData/symbols/symbolByReference/primaryConstructorValueParameterAsProperty.txt index 86c9765ee86..3cd10dd74fe 100644 --- a/analysis/analysis-api/testData/symbols/symbolByReference/primaryConstructorValueParameterAsProperty.txt +++ b/analysis/analysis-api/testData/symbols/symbolByReference/primaryConstructorValueParameterAsProperty.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/A.abc) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /A.abc contextReceivers: [] getter: KtPropertyGetterSymbol: diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/propertyReceiverParameter.descriptors.txt b/analysis/analysis-api/testData/symbols/symbolByReference/propertyReceiverParameter.descriptors.txt index 2c3bc2cc6eb..7edd5ab1de9 100644 --- a/analysis/analysis-api/testData/symbols/symbolByReference/propertyReceiverParameter.descriptors.txt +++ b/analysis/analysis-api/testData/symbols/symbolByReference/propertyReceiverParameter.descriptors.txt @@ -1,6 +1,22 @@ KtKotlinPropertySymbol: annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol(/field) + backingFieldSymbol: KtBackingFieldSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + isExtension: false + name: field + origin: PROPERTY_BACKING_FIELD + owningProperty: KtKotlinPropertySymbol(/prop) + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Boolean + symbolKind: LOCAL + typeParameters: [] + getContainingModule: KtSourceModule "Sources of main" + deprecationStatus: null callableIdIfNonLocal: /prop contextReceivers: [] getter: KtPropertyGetterSymbol: