diff --git a/analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/inferTypeFromGetValueDelegateLibrary.standalone.fir.txt b/analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/inferTypeFromGetValueDelegateLibrary.standalone.fir.txt deleted file mode 100644 index 9f370a89565..00000000000 --- a/analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/inferTypeFromGetValueDelegateLibrary.standalone.fir.txt +++ /dev/null @@ -1 +0,0 @@ -Diagnostics from elements: diff --git a/analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/inferTypeFromGetValueDelegateLibrary.txt b/analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/inferTypeFromGetValueDelegateLibrary.txt index 071a7299fd8..9f370a89565 100644 --- a/analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/inferTypeFromGetValueDelegateLibrary.txt +++ b/analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/inferTypeFromGetValueDelegateLibrary.txt @@ -1,7 +1 @@ Diagnostics from elements: - for PSI element of type KtNameReferenceExpression at (18,29-48) - INAPPLICABLE_CANDIDATE text ranges: [(188,207)] - PSI: KtNameReferenceExpression at (18,29-48) - for PSI element of type KtNameReferenceExpression at (19,29-43) - INAPPLICABLE_CANDIDATE text ranges: [(237,251)] - PSI: KtNameReferenceExpression at (19,29-43) diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/MutableList.standalone.fir.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/MutableList.standalone.fir.txt deleted file mode 100644 index bc14cb37e39..00000000000 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/MutableList.standalone.fir.txt +++ /dev/null @@ -1,1599 +0,0 @@ -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.add - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: add - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.add - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: add - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Unit - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: index - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.addAll - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: addAll - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: index - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: elements - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/Collection - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.addAll - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: addAll - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: elements - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/Collection - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.clear - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: clear - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Unit - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.listIterator - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: listIterator - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableListIterator - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.listIterator - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: listIterator - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableListIterator - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: index - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.remove - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: remove - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.removeAll - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: removeAll - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: elements - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/Collection - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.removeAt - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: removeAt - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: index - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.retainAll - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: retainAll - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: elements - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/Collection - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.set - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: set - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: index - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.subList - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: subList - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: fromIndex - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: toIndex - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.List - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/collections/List.size - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: ABSTRACT - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/List - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.List - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: false - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: ABSTRACT - name: size - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/List - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.List - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getSize - javaSetterName: null - setterDeprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.isEmpty - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: isEmpty - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/List - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.List - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.contains - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: contains - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.iterator - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: iterator - origin: INTERSECTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableIterator - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.containsAll - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: containsAll - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: elements - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/Collection - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.get - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: get - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: index - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.indexOf - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: indexOf - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/MutableList.lastIndexOf - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: lastIndexOf - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/MutableList - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.collections.MutableList - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Any.equals - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: equals - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any? - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Any - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Any - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Any.hashCode - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: hashCode - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Any - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Any.toString - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: toString - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Any - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/MutableList.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/MutableList.txt index dab48eb5964..bc14cb37e39 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/MutableList.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/memberScope/MutableList.txt @@ -960,9 +960,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/collections/List.size contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: ABSTRACT + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/collections/List + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.collections.List + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: false - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClass.standalone.fir.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClass.standalone.fir.txt deleted file mode 100644 index ee5833c0050..00000000000 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClass.standalone.fir.txt +++ /dev/null @@ -1,590 +0,0 @@ -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.clone - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: clone - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Protected - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.compareTo - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: compareTo - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: KtFileSymbol(enumClass.kt) - getContainingJvmClassName: test.E - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumClass.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.equals - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: equals - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any? - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.hashCode - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: hashCode - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.toString - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: toString - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [ - kotlin/internal/IntrinsicConstEvaluation() - psi: null - ] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/Enum.name - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: name - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getName - javaSetterName: null - setterDeprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/Enum.ordinal - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: ordinal - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getOrdinal - javaSetterName: null - setterDeprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.getDeclaringClass - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: false - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: getDeclaringClass - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtFlexibleType: - annotationsList: [] - type: ft, java/lang/Class?> - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumClass.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.finalize - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: false - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: finalize - origin: JAVA - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Unit - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: ProtectedAndPackage - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtNamedClassOrObjectSymbol: - annotationsList: [] - classIdIfNonLocal: kotlin/Enum.Companion - classKind: COMPANION_OBJECT - companionObject: null - contextReceivers: [] - isActual: false - isData: false - isExpect: false - isExternal: false - isFun: false - isInline: false - isInner: false - modality: FINAL - name: Companion - origin: LIBRARY - superTypes: [ - KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - ] - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getContainingFileSymbol: null - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - annotationApplicableTargets: null - deprecationStatus: null - -KtConstructorSymbol: - annotationsList: [] - callableIdIfNonLocal: null - containingClassIdIfNonLocal: test/E - contextReceivers: [] - hasStableParameterNames: true - isActual: false - isExpect: false - isExtension: false - isPrimary: true - origin: SOURCE_MEMBER_GENERATED - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Private - getContainingFileSymbol: KtFileSymbol(enumClass.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClass.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClass.txt index 075498910ba..ee5833c0050 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClass.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClass.txt @@ -280,9 +280,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.name contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/Enum + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.Enum + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -347,9 +379,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.ordinal contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/Enum + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.Enum + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithAbstractMembers.standalone.fir.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithAbstractMembers.standalone.fir.txt deleted file mode 100644 index 25b18cae8fb..00000000000 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithAbstractMembers.standalone.fir.txt +++ /dev/null @@ -1,719 +0,0 @@ -KtKotlinPropertySymbol: - annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - isExtension: false - name: field - origin: PROPERTY_BACKING_FIELD - owningProperty: KtKotlinPropertySymbol(test/E.foo) - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int? - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: KtFileSymbol(enumClassWithAbstractMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - callableIdIfNonLocal: test/E.foo - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - 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 - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumClassWithAbstractMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - hasBackingField: false - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: ABSTRACT - name: foo - origin: SOURCE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int? - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumClassWithAbstractMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getFoo - javaSetterName: null - setterDeprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.bar - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: bar - origin: SOURCE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Unit - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumClassWithAbstractMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.clone - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: clone - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Protected - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.compareTo - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: compareTo - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: KtFileSymbol(enumClassWithAbstractMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumClassWithAbstractMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.equals - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: equals - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any? - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.hashCode - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: hashCode - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.toString - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: toString - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [ - kotlin/internal/IntrinsicConstEvaluation() - psi: null - ] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/Enum.name - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: name - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getName - javaSetterName: null - setterDeprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/Enum.ordinal - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: ordinal - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getOrdinal - javaSetterName: null - setterDeprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.getDeclaringClass - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: false - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: getDeclaringClass - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtFlexibleType: - annotationsList: [] - type: ft, java/lang/Class?> - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumClassWithAbstractMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.finalize - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: false - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: finalize - origin: JAVA - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Unit - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: ProtectedAndPackage - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtNamedClassOrObjectSymbol: - annotationsList: [] - classIdIfNonLocal: kotlin/Enum.Companion - classKind: COMPANION_OBJECT - companionObject: null - contextReceivers: [] - isActual: false - isData: false - isExpect: false - isExternal: false - isFun: false - isInline: false - isInner: false - modality: FINAL - name: Companion - origin: LIBRARY - superTypes: [ - KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - ] - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getContainingFileSymbol: null - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - annotationApplicableTargets: null - deprecationStatus: null - -KtConstructorSymbol: - annotationsList: [] - callableIdIfNonLocal: null - containingClassIdIfNonLocal: test/E - contextReceivers: [] - hasStableParameterNames: true - isActual: false - isExpect: false - isExtension: false - isPrimary: true - origin: SOURCE_MEMBER_GENERATED - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Private - getContainingFileSymbol: KtFileSymbol(enumClassWithAbstractMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithAbstractMembers.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithAbstractMembers.txt index 0057bfa97a1..25b18cae8fb 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithAbstractMembers.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithAbstractMembers.txt @@ -409,9 +409,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.name contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/Enum + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.Enum + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -476,9 +508,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.ordinal contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/Enum + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.Enum + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -652,4 +716,4 @@ KtConstructorSymbol: getContainingFileSymbol: KtFileSymbol(enumClassWithAbstractMembers.kt) getContainingJvmClassName: test.E getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null + deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithFinalMembers.standalone.fir.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithFinalMembers.standalone.fir.txt deleted file mode 100644 index 7d81f5965e2..00000000000 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithFinalMembers.standalone.fir.txt +++ /dev/null @@ -1,719 +0,0 @@ -KtKotlinPropertySymbol: - annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - isExtension: false - name: field - origin: PROPERTY_BACKING_FIELD - owningProperty: KtKotlinPropertySymbol(test/E.foo) - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: KtFileSymbol(enumClassWithFinalMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - callableIdIfNonLocal: test/E.foo - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - 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 - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumClassWithFinalMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: KtConstantInitializerValue(5) - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: foo - origin: SOURCE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumClassWithFinalMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getFoo - javaSetterName: null - setterDeprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.bar - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: bar - origin: SOURCE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Unit - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumClassWithFinalMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.clone - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: clone - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Protected - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.compareTo - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: compareTo - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: KtFileSymbol(enumClassWithFinalMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumClassWithFinalMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.equals - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: equals - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any? - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.hashCode - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: hashCode - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.toString - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: toString - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [ - kotlin/internal/IntrinsicConstEvaluation() - psi: null - ] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/Enum.name - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: name - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getName - javaSetterName: null - setterDeprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/Enum.ordinal - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: ordinal - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getOrdinal - javaSetterName: null - setterDeprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.getDeclaringClass - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: false - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: getDeclaringClass - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtFlexibleType: - annotationsList: [] - type: ft, java/lang/Class?> - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumClassWithFinalMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.finalize - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: false - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: finalize - origin: JAVA - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Unit - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: ProtectedAndPackage - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtNamedClassOrObjectSymbol: - annotationsList: [] - classIdIfNonLocal: kotlin/Enum.Companion - classKind: COMPANION_OBJECT - companionObject: null - contextReceivers: [] - isActual: false - isData: false - isExpect: false - isExternal: false - isFun: false - isInline: false - isInner: false - modality: FINAL - name: Companion - origin: LIBRARY - superTypes: [ - KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - ] - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getContainingFileSymbol: null - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - annotationApplicableTargets: null - deprecationStatus: null - -KtConstructorSymbol: - annotationsList: [] - callableIdIfNonLocal: null - containingClassIdIfNonLocal: test/E - contextReceivers: [] - hasStableParameterNames: true - isActual: false - isExpect: false - isExtension: false - isPrimary: true - origin: SOURCE_MEMBER_GENERATED - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Private - getContainingFileSymbol: KtFileSymbol(enumClassWithFinalMembers.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithFinalMembers.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithFinalMembers.txt index 87e4004a96c..7d81f5965e2 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithFinalMembers.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumClassWithFinalMembers.txt @@ -409,9 +409,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.name contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/Enum + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.Enum + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -476,9 +508,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.ordinal contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/Enum + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.Enum + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializer.standalone.fir.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializer.standalone.fir.txt deleted file mode 100644 index e71f349520c..00000000000 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializer.standalone.fir.txt +++ /dev/null @@ -1,681 +0,0 @@ -KtKotlinPropertySymbol: - annotationsList: [] - 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: [] - getContainingFileSymbol: KtFileSymbol(enumEntryInitializer.kt) - getContainingJvmClassName: null - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - callableIdIfNonLocal: null - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: SOURCE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/ - getContainingFileSymbol: KtFileSymbol(enumEntryInitializer.kt) - getContainingJvmClassName: null - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: KtConstantInitializerValue("") - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: x - origin: SOURCE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/ - getContainingFileSymbol: KtFileSymbol(enumEntryInitializer.kt) - getContainingJvmClassName: null - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getX - javaSetterName: null - setterDeprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.clone - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: clone - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Protected - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.compareTo - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: compareTo - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: KtFileSymbol(enumEntryInitializer.kt) - getContainingJvmClassName: test.E - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumEntryInitializer.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.equals - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: equals - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any? - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.hashCode - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: hashCode - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.toString - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: toString - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [ - kotlin/internal/IntrinsicConstEvaluation() - psi: null - ] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/Enum.name - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: name - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getName - javaSetterName: null - setterDeprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/Enum.ordinal - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: ordinal - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getOrdinal - javaSetterName: null - setterDeprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.getDeclaringClass - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: false - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: getDeclaringClass - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtFlexibleType: - annotationsList: [] - type: ft, java/lang/Class?> - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumEntryInitializer.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.finalize - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: false - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: finalize - origin: JAVA - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Unit - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: ProtectedAndPackage - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtNamedClassOrObjectSymbol: - annotationsList: [] - classIdIfNonLocal: kotlin/Enum.Companion - classKind: COMPANION_OBJECT - companionObject: null - contextReceivers: [] - isActual: false - isData: false - isExpect: false - isExternal: false - isFun: false - isInline: false - isInner: false - modality: FINAL - name: Companion - origin: LIBRARY - superTypes: [ - KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - ] - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getContainingFileSymbol: null - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - annotationApplicableTargets: null - deprecationStatus: null - -KtConstructorSymbol: - annotationsList: [] - callableIdIfNonLocal: null - containingClassIdIfNonLocal: null - contextReceivers: [] - hasStableParameterNames: true - isActual: false - isExpect: false - isExtension: false - isPrimary: true - origin: SOURCE_MEMBER_GENERATED - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/ - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Private - getContainingFileSymbol: KtFileSymbol(enumEntryInitializer.kt) - getContainingJvmClassName: null - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializer.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializer.txt index 7bd0901a9dd..e71f349520c 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializer.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializer.txt @@ -371,9 +371,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.name contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/Enum + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.Enum + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -438,9 +470,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.ordinal contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/Enum + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.Enum + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -614,4 +678,4 @@ KtConstructorSymbol: getContainingFileSymbol: KtFileSymbol(enumEntryInitializer.kt) getContainingJvmClassName: null getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null + deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithFinalEnumMember.standalone.fir.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithFinalEnumMember.standalone.fir.txt deleted file mode 100644 index 054bd799772..00000000000 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithFinalEnumMember.standalone.fir.txt +++ /dev/null @@ -1,772 +0,0 @@ -KtKotlinPropertySymbol: - annotationsList: [] - 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: [] - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithFinalEnumMember.kt) - getContainingJvmClassName: null - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - callableIdIfNonLocal: null - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: SOURCE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/ - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithFinalEnumMember.kt) - getContainingJvmClassName: null - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: KtConstantInitializerValue("") - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: x - origin: SOURCE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/ - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithFinalEnumMember.kt) - getContainingJvmClassName: null - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getX - javaSetterName: null - setterDeprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - isExtension: false - name: field - origin: PROPERTY_BACKING_FIELD - owningProperty: KtKotlinPropertySymbol(test/E.foo) - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithFinalEnumMember.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - callableIdIfNonLocal: test/E.foo - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - 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 - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithFinalEnumMember.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: KtConstantInitializerValue(5) - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: foo - origin: SOURCE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithFinalEnumMember.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getFoo - javaSetterName: null - setterDeprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.clone - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: clone - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Protected - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.compareTo - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: compareTo - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithFinalEnumMember.kt) - getContainingJvmClassName: test.E - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithFinalEnumMember.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.equals - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: equals - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any? - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.hashCode - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: hashCode - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.toString - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: toString - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [ - kotlin/internal/IntrinsicConstEvaluation() - psi: null - ] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/Enum.name - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: name - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getName - javaSetterName: null - setterDeprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/Enum.ordinal - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: ordinal - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getOrdinal - javaSetterName: null - setterDeprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.getDeclaringClass - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: false - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: getDeclaringClass - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtFlexibleType: - annotationsList: [] - type: ft, java/lang/Class?> - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithFinalEnumMember.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.finalize - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: false - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: finalize - origin: JAVA - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Unit - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: ProtectedAndPackage - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtNamedClassOrObjectSymbol: - annotationsList: [] - classIdIfNonLocal: kotlin/Enum.Companion - classKind: COMPANION_OBJECT - companionObject: null - contextReceivers: [] - isActual: false - isData: false - isExpect: false - isExternal: false - isFun: false - isInline: false - isInner: false - modality: FINAL - name: Companion - origin: LIBRARY - superTypes: [ - KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - ] - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getContainingFileSymbol: null - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - annotationApplicableTargets: null - deprecationStatus: null - -KtConstructorSymbol: - annotationsList: [] - callableIdIfNonLocal: null - containingClassIdIfNonLocal: null - contextReceivers: [] - hasStableParameterNames: true - isActual: false - isExpect: false - isExtension: false - isPrimary: true - origin: SOURCE_MEMBER_GENERATED - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/ - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Private - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithFinalEnumMember.kt) - getContainingJvmClassName: null - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithFinalEnumMember.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithFinalEnumMember.txt index dd954cde2e8..054bd799772 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithFinalEnumMember.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithFinalEnumMember.txt @@ -462,9 +462,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.name contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/Enum + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.Enum + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -529,9 +561,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.ordinal contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/Enum + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.Enum + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -705,4 +769,4 @@ KtConstructorSymbol: getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithFinalEnumMember.kt) getContainingJvmClassName: null getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null + deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithOverriddenMember.standalone.fir.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithOverriddenMember.standalone.fir.txt deleted file mode 100644 index 09643cb2951..00000000000 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithOverriddenMember.standalone.fir.txt +++ /dev/null @@ -1,681 +0,0 @@ -KtKotlinPropertySymbol: - annotationsList: [] - 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: [] - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithOverriddenMember.kt) - getContainingJvmClassName: null - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - callableIdIfNonLocal: null - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: true - modality: FINAL - origin: SOURCE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/ - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithOverriddenMember.kt) - getContainingJvmClassName: null - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: KtConstantInitializerValue(65) - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: true - isStatic: false - isVal: true - modality: OPEN - name: foo - origin: SOURCE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/ - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithOverriddenMember.kt) - getContainingJvmClassName: null - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getFoo - javaSetterName: null - setterDeprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.clone - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: clone - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Protected - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.compareTo - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: compareTo - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithOverriddenMember.kt) - getContainingJvmClassName: test.E - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithOverriddenMember.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.equals - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: equals - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any? - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.hashCode - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: hashCode - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.toString - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: toString - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [ - kotlin/internal/IntrinsicConstEvaluation() - psi: null - ] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/Enum.name - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: name - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getName - javaSetterName: null - setterDeprecationStatus: null - -KtKotlinPropertySymbol: - annotationsList: [] - 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: [] - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - callableIdIfNonLocal: kotlin/Enum.ordinal - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: ordinal - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getOrdinal - javaSetterName: null - setterDeprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: test/E.getDeclaringClass - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: false - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: getDeclaringClass - origin: SUBSTITUTION_OVERRIDE - receiverParameter: null - returnType: KtFlexibleType: - annotationsList: [] - type: ft, java/lang/Class?> - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/E - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithOverriddenMember.kt) - getContainingJvmClassName: test.E - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null - -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Enum.finalize - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: false - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: finalize - origin: JAVA - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Unit - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: ProtectedAndPackage - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/Enum - getContainingFileSymbol: null - getContainingJvmClassName: kotlin.Enum - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - deprecationStatus: null - -KtNamedClassOrObjectSymbol: - annotationsList: [] - classIdIfNonLocal: kotlin/Enum.Companion - classKind: COMPANION_OBJECT - companionObject: null - contextReceivers: [] - isActual: false - isData: false - isExpect: false - isExternal: false - isFun: false - isInline: false - isInner: false - modality: FINAL - name: Companion - origin: LIBRARY - superTypes: [ - KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any - ] - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getContainingFileSymbol: null - getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" - annotationApplicableTargets: null - deprecationStatus: null - -KtConstructorSymbol: - annotationsList: [] - callableIdIfNonLocal: null - containingClassIdIfNonLocal: null - contextReceivers: [] - hasStableParameterNames: true - isActual: false - isExpect: false - isExtension: false - isPrimary: true - origin: SOURCE_MEMBER_GENERATED - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: test/ - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Private - getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithOverriddenMember.kt) - getContainingJvmClassName: null - getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithOverriddenMember.txt b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithOverriddenMember.txt index 1d6c1afc0cc..09643cb2951 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithOverriddenMember.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/memberScope/enumEntryInitializerWithOverriddenMember.txt @@ -371,9 +371,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.name contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/Enum + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.Enum + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -438,9 +470,41 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: kotlin/Enum.ordinal contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [ + KtTypeParameterType: + annotationsList: [] + type: E + ] + type: kotlin/Enum + getContainingFileSymbol: null + getContainingJvmClassName: kotlin.Enum + getContainingModule: KtBinaryModule "Builtins for JVM (1.8)" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -614,4 +678,4 @@ KtConstructorSymbol: getContainingFileSymbol: KtFileSymbol(enumEntryInitializerWithOverriddenMember.kt) getContainingJvmClassName: null getContainingModule: KtSourceModule "Sources of main" - deprecationStatus: null + deprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/enumEntry.txt b/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/enumEntry.txt index 9dcb2513870..c094967ffa1 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/enumEntry.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/enumEntry.txt @@ -358,9 +358,29 @@ scopes: typeParameters: [] callableIdIfNonLocal: kotlin/Enum.name contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -404,9 +424,29 @@ scopes: typeParameters: [] callableIdIfNonLocal: kotlin/Enum.ordinal contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false diff --git a/analysis/analysis-api/testData/components/scopeProvider/typeScope/intList.standalone.fir.txt b/analysis/analysis-api/testData/components/scopeProvider/typeScope/intList.standalone.fir.txt deleted file mode 100644 index 82e53f1af38..00000000000 --- a/analysis/analysis-api/testData/components/scopeProvider/typeScope/intList.standalone.fir.txt +++ /dev/null @@ -1,801 +0,0 @@ -expression: list -KtType: kotlin.collections.List - -KtTypeScope: -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Boolean - symbol = kotlin/collections/List.contains(: kotlin.collections.List, element: E): kotlin.Boolean - valueParameters = [ - KtVariableLikeSignature: - name = element - receiverType = null - returnType = kotlin.Int - symbol = element: E - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.contains -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Boolean - symbol = kotlin/collections/List.containsAll(: kotlin.collections.List, elements: kotlin.collections.Collection): kotlin.Boolean - valueParameters = [ - KtVariableLikeSignature: - name = elements - receiverType = null - returnType = kotlin.collections.Collection - symbol = elements: kotlin.collections.Collection - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.containsAll -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Int - symbol = kotlin/collections/List.get(: kotlin.collections.List, index: kotlin.Int): E - valueParameters = [ - KtVariableLikeSignature: - name = index - receiverType = null - returnType = kotlin.Int - symbol = index: kotlin.Int - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.get -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Int - symbol = kotlin/collections/List.indexOf(: kotlin.collections.List, element: E): kotlin.Int - valueParameters = [ - KtVariableLikeSignature: - name = element - receiverType = null - returnType = kotlin.Int - symbol = element: E - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.indexOf -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Boolean - symbol = kotlin/collections/List.isEmpty(: kotlin.collections.List): kotlin.Boolean - valueParameters = [] - callableIdIfNonLocal = kotlin/collections/List.isEmpty -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.collections.Iterator - symbol = kotlin/collections/List.iterator(: kotlin.collections.List): kotlin.collections.Iterator - valueParameters = [] - callableIdIfNonLocal = kotlin/collections/List.iterator -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Int - symbol = kotlin/collections/List.lastIndexOf(: kotlin.collections.List, element: E): kotlin.Int - valueParameters = [ - KtVariableLikeSignature: - name = element - receiverType = null - returnType = kotlin.Int - symbol = element: E - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.lastIndexOf -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.collections.ListIterator - symbol = kotlin/collections/List.listIterator(: kotlin.collections.List): kotlin.collections.ListIterator - valueParameters = [] - callableIdIfNonLocal = kotlin/collections/List.listIterator -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.collections.ListIterator - symbol = kotlin/collections/List.listIterator(: kotlin.collections.List, index: kotlin.Int): kotlin.collections.ListIterator - valueParameters = [ - KtVariableLikeSignature: - name = index - receiverType = null - returnType = kotlin.Int - symbol = index: kotlin.Int - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.listIterator -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.collections.List - symbol = kotlin/collections/List.subList(: kotlin.collections.List, fromIndex: kotlin.Int, toIndex: kotlin.Int): kotlin.collections.List - valueParameters = [ - KtVariableLikeSignature: - name = fromIndex - receiverType = null - returnType = kotlin.Int - symbol = fromIndex: kotlin.Int - callableIdIfNonLocal = null, - KtVariableLikeSignature: - name = toIndex - receiverType = null - returnType = kotlin.Int - symbol = toIndex: kotlin.Int - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.subList -KtVariableLikeSignature: - name = size - receiverType = null - returnType = kotlin.Int - symbol = val size: kotlin.Int - callableIdIfNonLocal = kotlin/collections/List.size -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Boolean - symbol = kotlin/Any.equals(: kotlin.Any, other: kotlin.Any?): kotlin.Boolean - valueParameters = [ - KtVariableLikeSignature: - name = other - receiverType = null - returnType = kotlin.Any? - symbol = other: kotlin.Any? - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/Any.equals -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Int - symbol = kotlin/Any.hashCode(: kotlin.Any): kotlin.Int - valueParameters = [] - callableIdIfNonLocal = kotlin/Any.hashCode -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.String - symbol = kotlin/Any.toString(: kotlin.Any): kotlin.String - valueParameters = [] - callableIdIfNonLocal = kotlin/Any.toString - - -Declaration Scope: -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.contains - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: contains - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.containsAll - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: containsAll - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: elements - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/Collection - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.get - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: get - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: index - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.indexOf - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: indexOf - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.isEmpty - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: isEmpty - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.iterator - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: iterator - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/Iterator - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.lastIndexOf - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: lastIndexOf - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.listIterator - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: listIterator - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/ListIterator - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.listIterator - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: listIterator - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/ListIterator - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: index - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.subList - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: subList - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/List - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: fromIndex - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: toIndex - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtKotlinPropertySymbol: - annotationsList: [] - 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: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: ABSTRACT - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - hasBackingField: false - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: ABSTRACT - name: size - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Any.equals - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: equals - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any? - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Any.hashCode - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: hashCode - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Any.toString - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: toString - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - diff --git a/analysis/analysis-api/testData/components/scopeProvider/typeScope/intList.txt b/analysis/analysis-api/testData/components/scopeProvider/typeScope/intList.txt index 5f3f26d8ae4..82e53f1af38 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/typeScope/intList.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/typeScope/intList.txt @@ -643,9 +643,29 @@ KtKotlinPropertySymbol: typeParameters: [] callableIdIfNonLocal: kotlin/collections/List.size contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: ABSTRACT + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public hasBackingField: false - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -778,3 +798,4 @@ KtFunctionSymbol: typeParameters: [] valueParameters: [] visibility: Public + diff --git a/analysis/analysis-api/testData/components/scopeProvider/typeScope/substitutedTypeFromLib.standalone.fir.txt b/analysis/analysis-api/testData/components/scopeProvider/typeScope/substitutedTypeFromLib.standalone.fir.txt deleted file mode 100644 index 9e789ab4b06..00000000000 --- a/analysis/analysis-api/testData/components/scopeProvider/typeScope/substitutedTypeFromLib.standalone.fir.txt +++ /dev/null @@ -1,441 +0,0 @@ -expression: el -KtType: kotlin.Pair - -KtTypeScope: -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Int - symbol = kotlin/Pair.component1(: kotlin.Pair): A - valueParameters = [] - callableIdIfNonLocal = kotlin/Pair.component1 -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Int - symbol = kotlin/Pair.component2(: kotlin.Pair): B - valueParameters = [] - callableIdIfNonLocal = kotlin/Pair.component2 -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Pair - symbol = kotlin/Pair.copy(: kotlin.Pair, first: A, second: B): kotlin.Pair - valueParameters = [ - KtVariableLikeSignature: - name = first - receiverType = null - returnType = kotlin.Int - symbol = first: A - callableIdIfNonLocal = null, - KtVariableLikeSignature: - name = second - receiverType = null - returnType = kotlin.Int - symbol = second: B - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/Pair.copy -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Boolean - symbol = kotlin/Pair.equals(: kotlin.Pair, other: kotlin.Any?): kotlin.Boolean - valueParameters = [ - KtVariableLikeSignature: - name = other - receiverType = null - returnType = kotlin.Any? - symbol = other: kotlin.Any? - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/Pair.equals -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Int - symbol = kotlin/Pair.hashCode(: kotlin.Pair): kotlin.Int - valueParameters = [] - callableIdIfNonLocal = kotlin/Pair.hashCode -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.String - symbol = kotlin/Pair.toString(: kotlin.Pair): kotlin.String - valueParameters = [] - callableIdIfNonLocal = kotlin/Pair.toString -KtVariableLikeSignature: - name = first - receiverType = null - returnType = kotlin.Int - symbol = val first: A - callableIdIfNonLocal = kotlin/Pair.first -KtVariableLikeSignature: - name = second - receiverType = null - returnType = kotlin.Int - symbol = val second: B - callableIdIfNonLocal = kotlin/Pair.second - - -Declaration Scope: -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Pair.component1 - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: component1 - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: A - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Pair.component2 - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: component2 - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: B - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Pair.copy - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: FINAL - name: copy - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: A - KtTypeParameterType: - annotationsList: [] - type: B - ] - type: kotlin/Pair - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: true - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: first - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: A - symbolKind: LOCAL - typeParameters: [] - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: true - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: second - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: B - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Pair.equals - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: equals - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any? - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Pair.hashCode - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: hashCode - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Pair.toString - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: toString - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public -KtKotlinPropertySymbol: - annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - isExtension: false - name: field - origin: PROPERTY_BACKING_FIELD - owningProperty: KtKotlinPropertySymbol(kotlin/Pair.first) - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: A - symbolKind: LOCAL - typeParameters: [] - callableIdIfNonLocal: kotlin/Pair.first - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: A - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: first - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: A - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public -KtKotlinPropertySymbol: - annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - isExtension: false - name: field - origin: PROPERTY_BACKING_FIELD - owningProperty: KtKotlinPropertySymbol(kotlin/Pair.second) - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: B - symbolKind: LOCAL - typeParameters: [] - callableIdIfNonLocal: kotlin/Pair.second - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: B - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: second - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: B - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - diff --git a/analysis/analysis-api/testData/components/scopeProvider/typeScope/substitutedTypeFromLib.txt b/analysis/analysis-api/testData/components/scopeProvider/typeScope/substitutedTypeFromLib.txt index 5deccd491ee..9e789ab4b06 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/typeScope/substitutedTypeFromLib.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/typeScope/substitutedTypeFromLib.txt @@ -330,9 +330,28 @@ KtKotlinPropertySymbol: typeParameters: [] callableIdIfNonLocal: kotlin/Pair.first contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtTypeParameterType: + annotationsList: [] + type: A + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -374,9 +393,28 @@ KtKotlinPropertySymbol: typeParameters: [] callableIdIfNonLocal: kotlin/Pair.second contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtTypeParameterType: + annotationsList: [] + type: B + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -400,3 +438,4 @@ KtKotlinPropertySymbol: symbolKind: CLASS_MEMBER typeParameters: [] visibility: Public + diff --git a/analysis/analysis-api/testData/components/scopeProvider/typeScope/typeParamList.standalone.fir.txt b/analysis/analysis-api/testData/components/scopeProvider/typeScope/typeParamList.standalone.fir.txt deleted file mode 100644 index b6b7d150174..00000000000 --- a/analysis/analysis-api/testData/components/scopeProvider/typeScope/typeParamList.standalone.fir.txt +++ /dev/null @@ -1,801 +0,0 @@ -expression: list -KtType: kotlin.collections.List - -KtTypeScope: -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Boolean - symbol = kotlin/collections/List.contains(: kotlin.collections.List, element: E): kotlin.Boolean - valueParameters = [ - KtVariableLikeSignature: - name = element - receiverType = null - returnType = AAA - symbol = element: E - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.contains -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Boolean - symbol = kotlin/collections/List.containsAll(: kotlin.collections.List, elements: kotlin.collections.Collection): kotlin.Boolean - valueParameters = [ - KtVariableLikeSignature: - name = elements - receiverType = null - returnType = kotlin.collections.Collection - symbol = elements: kotlin.collections.Collection - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.containsAll -KtFunctionLikeSignature: - receiverType = null - returnType = AAA - symbol = kotlin/collections/List.get(: kotlin.collections.List, index: kotlin.Int): E - valueParameters = [ - KtVariableLikeSignature: - name = index - receiverType = null - returnType = kotlin.Int - symbol = index: kotlin.Int - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.get -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Int - symbol = kotlin/collections/List.indexOf(: kotlin.collections.List, element: E): kotlin.Int - valueParameters = [ - KtVariableLikeSignature: - name = element - receiverType = null - returnType = AAA - symbol = element: E - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.indexOf -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Boolean - symbol = kotlin/collections/List.isEmpty(: kotlin.collections.List): kotlin.Boolean - valueParameters = [] - callableIdIfNonLocal = kotlin/collections/List.isEmpty -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.collections.Iterator - symbol = kotlin/collections/List.iterator(: kotlin.collections.List): kotlin.collections.Iterator - valueParameters = [] - callableIdIfNonLocal = kotlin/collections/List.iterator -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Int - symbol = kotlin/collections/List.lastIndexOf(: kotlin.collections.List, element: E): kotlin.Int - valueParameters = [ - KtVariableLikeSignature: - name = element - receiverType = null - returnType = AAA - symbol = element: E - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.lastIndexOf -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.collections.ListIterator - symbol = kotlin/collections/List.listIterator(: kotlin.collections.List): kotlin.collections.ListIterator - valueParameters = [] - callableIdIfNonLocal = kotlin/collections/List.listIterator -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.collections.ListIterator - symbol = kotlin/collections/List.listIterator(: kotlin.collections.List, index: kotlin.Int): kotlin.collections.ListIterator - valueParameters = [ - KtVariableLikeSignature: - name = index - receiverType = null - returnType = kotlin.Int - symbol = index: kotlin.Int - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.listIterator -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.collections.List - symbol = kotlin/collections/List.subList(: kotlin.collections.List, fromIndex: kotlin.Int, toIndex: kotlin.Int): kotlin.collections.List - valueParameters = [ - KtVariableLikeSignature: - name = fromIndex - receiverType = null - returnType = kotlin.Int - symbol = fromIndex: kotlin.Int - callableIdIfNonLocal = null, - KtVariableLikeSignature: - name = toIndex - receiverType = null - returnType = kotlin.Int - symbol = toIndex: kotlin.Int - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/collections/List.subList -KtVariableLikeSignature: - name = size - receiverType = null - returnType = kotlin.Int - symbol = val size: kotlin.Int - callableIdIfNonLocal = kotlin/collections/List.size -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Boolean - symbol = kotlin/Any.equals(: kotlin.Any, other: kotlin.Any?): kotlin.Boolean - valueParameters = [ - KtVariableLikeSignature: - name = other - receiverType = null - returnType = kotlin.Any? - symbol = other: kotlin.Any? - callableIdIfNonLocal = null - ] - callableIdIfNonLocal = kotlin/Any.equals -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.Int - symbol = kotlin/Any.hashCode(: kotlin.Any): kotlin.Int - valueParameters = [] - callableIdIfNonLocal = kotlin/Any.hashCode -KtFunctionLikeSignature: - receiverType = null - returnType = kotlin.String - symbol = kotlin/Any.toString(: kotlin.Any): kotlin.String - valueParameters = [] - callableIdIfNonLocal = kotlin/Any.toString - - -Declaration Scope: -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.contains - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: contains - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.containsAll - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: containsAll - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: elements - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/Collection - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.get - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: get - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: index - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.indexOf - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: indexOf - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.isEmpty - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: isEmpty - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.iterator - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: iterator - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/Iterator - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.lastIndexOf - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: lastIndexOf - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: element - origin: LIBRARY - receiverParameter: null - returnType: KtTypeParameterType: - annotationsList: [] - type: E - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.listIterator - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: listIterator - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/ListIterator - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.listIterator - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: listIterator - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/ListIterator - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: index - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/collections/List.subList - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: ABSTRACT - name: subList - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [ - KtTypeParameterType: - annotationsList: [] - type: E - ] - type: kotlin/collections/List - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: fromIndex - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: toIndex - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtKotlinPropertySymbol: - annotationsList: [] - 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: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: ABSTRACT - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - hasBackingField: false - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: ABSTRACT - name: size - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Any.equals - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: true - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: equals - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [ - KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: other - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Any? - symbolKind: LOCAL - typeParameters: [] - ] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Any.hashCode - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: hashCode - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Int - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public -KtFunctionSymbol: - annotationsList: [] - callableIdIfNonLocal: kotlin/Any.toString - contextReceivers: [] - contractEffects: [] - hasStableParameterNames: true - isActual: false - isBuiltinFunctionInvoke: false - isExpect: false - isExtension: false - isExternal: false - isInfix: false - isInline: false - isOperator: false - isOverride: false - isStatic: false - isSuspend: false - modality: OPEN - name: toString - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: CLASS_MEMBER - typeParameters: [] - valueParameters: [] - visibility: Public - diff --git a/analysis/analysis-api/testData/components/scopeProvider/typeScope/typeParamList.txt b/analysis/analysis-api/testData/components/scopeProvider/typeScope/typeParamList.txt index daa7fc3dce4..b6b7d150174 100644 --- a/analysis/analysis-api/testData/components/scopeProvider/typeScope/typeParamList.txt +++ b/analysis/analysis-api/testData/components/scopeProvider/typeScope/typeParamList.txt @@ -643,9 +643,29 @@ KtKotlinPropertySymbol: typeParameters: [] callableIdIfNonLocal: kotlin/collections/List.size contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: ABSTRACT + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Int + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public hasBackingField: false - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -778,3 +798,4 @@ KtFunctionSymbol: typeParameters: [] valueParameters: [] visibility: Public + diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorProperty.standalone.fir.txt b/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorProperty.standalone.fir.txt deleted file mode 100644 index 01375eb249a..00000000000 --- a/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorProperty.standalone.fir.txt +++ /dev/null @@ -1,90 +0,0 @@ -KtKotlinPropertySymbol: - annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - isExtension: false - name: field - origin: PROPERTY_BACKING_FIELD - owningProperty: KtKotlinPropertySymbol(one/SimpleClass.constructorProperty) - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - callableIdIfNonLocal: one/SimpleClass.constructorProperty - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: one/SimpleClass - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: constructorProperty - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: one/SimpleClass - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getConstructorProperty - javaSetterName: null - setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorProperty.txt b/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorProperty.txt index 89222d6c3a3..01375eb249a 100644 --- a/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorProperty.txt +++ b/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorProperty.txt @@ -21,9 +21,37 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: one/SimpleClass.constructorProperty contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: one/SimpleClass + getContainingFileSymbol: null + getContainingJvmClassName: one.SimpleClass + getContainingModule: KtLibraryModule "Library lib" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -59,4 +87,4 @@ KtKotlinPropertySymbol: getterDeprecationStatus: null javaGetterName: getConstructorProperty javaSetterName: null - setterDeprecationStatus: null + setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorVariable.standalone.fir.txt b/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorVariable.standalone.fir.txt deleted file mode 100644 index 966d72fb5cc..00000000000 --- a/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorVariable.standalone.fir.txt +++ /dev/null @@ -1,167 +0,0 @@ -KtKotlinPropertySymbol: - annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - isExtension: false - name: field - origin: PROPERTY_BACKING_FIELD - owningProperty: KtKotlinPropertySymbol(one/SimpleClass.constructorVariable) - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - callableIdIfNonLocal: one/SimpleClass.constructorVariable - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: one/SimpleClass - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: true - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: false - modality: FINAL - name: constructorVariable - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - setter: KtPropertySetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - parameter: KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: value - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: null - getContainingModule: KtLibraryModule "Library lib" - 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: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: null - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: one/SimpleClass - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: one/SimpleClass - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getConstructorVariable - javaSetterName: setConstructorVariable - setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorVariable.txt b/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorVariable.txt index c95521a24fe..966d72fb5cc 100644 --- a/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorVariable.txt +++ b/analysis/analysis-api/testData/symbols/symbolByReference/libraryConstructorVariable.txt @@ -21,10 +21,38 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: one/SimpleClass.constructorVariable contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Boolean + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: one/SimpleClass + getContainingFileSymbol: null + getContainingJvmClassName: one.SimpleClass + getContainingModule: KtLibraryModule "Library lib" + deprecationStatus: null hasBackingField: true - hasGetter: false - hasSetter: false + hasGetter: true + hasSetter: true initializer: null isActual: false isConst: false @@ -44,7 +72,84 @@ KtKotlinPropertySymbol: annotationsList: [] ownTypeArguments: [] type: kotlin/Boolean - setter: null + setter: KtPropertySetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + parameter: KtValueParameterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + generatedPrimaryConstructorProperty: null + hasDefaultValue: false + isCrossinline: false + isExtension: false + isImplicitLambdaParameter: false + isNoinline: false + isVararg: false + name: value + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Boolean + symbolKind: LOCAL + typeParameters: [] + getContainingFileSymbol: null + getContainingJvmClassName: null + getContainingModule: KtLibraryModule "Library lib" + 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: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Boolean + symbolKind: LOCAL + typeParameters: [] + getContainingFileSymbol: null + getContainingJvmClassName: null + getContainingModule: KtLibraryModule "Library lib" + deprecationStatus: null + ] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: one/SimpleClass + getContainingFileSymbol: null + getContainingJvmClassName: one.SimpleClass + getContainingModule: KtLibraryModule "Library lib" + deprecationStatus: null symbolKind: CLASS_MEMBER typeParameters: [] visibility: Public @@ -59,4 +164,4 @@ KtKotlinPropertySymbol: getterDeprecationStatus: null javaGetterName: getConstructorVariable javaSetterName: setConstructorVariable - setterDeprecationStatus: null + setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberProperty.standalone.fir.txt b/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberProperty.standalone.fir.txt deleted file mode 100644 index c48fec79991..00000000000 --- a/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberProperty.standalone.fir.txt +++ /dev/null @@ -1,90 +0,0 @@ -KtKotlinPropertySymbol: - annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - isExtension: false - name: field - origin: PROPERTY_BACKING_FIELD - owningProperty: KtKotlinPropertySymbol(one/SimpleClass.memberProperty) - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - callableIdIfNonLocal: one/SimpleClass.memberProperty - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: one/SimpleClass - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: memberProperty - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - setter: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: one/SimpleClass - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getMemberProperty - javaSetterName: null - setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberProperty.txt b/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberProperty.txt index e3a902362a8..c48fec79991 100644 --- a/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberProperty.txt +++ b/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberProperty.txt @@ -21,9 +21,37 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: one/SimpleClass.memberProperty contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: one/SimpleClass + getContainingFileSymbol: null + getContainingJvmClassName: one.SimpleClass + getContainingModule: KtLibraryModule "Library lib" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -59,4 +87,4 @@ KtKotlinPropertySymbol: getterDeprecationStatus: null javaGetterName: getMemberProperty javaSetterName: null - setterDeprecationStatus: null + setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberVariable.standalone.fir.txt b/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberVariable.standalone.fir.txt deleted file mode 100644 index eb1db5bd895..00000000000 --- a/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberVariable.standalone.fir.txt +++ /dev/null @@ -1,167 +0,0 @@ -KtKotlinPropertySymbol: - annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - isExtension: false - name: field - origin: PROPERTY_BACKING_FIELD - owningProperty: KtKotlinPropertySymbol(one/SimpleClass.memberVariable) - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - callableIdIfNonLocal: one/SimpleClass.memberVariable - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: one/SimpleClass - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: true - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: false - modality: FINAL - name: memberVariable - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - setter: KtPropertySetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - parameter: KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: value - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: null - getContainingModule: KtLibraryModule "Library lib" - 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: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: null - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - ] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: one/SimpleClass - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - symbolKind: CLASS_MEMBER - typeParameters: [] - visibility: Public - getDispatchReceiver(): KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: one/SimpleClass - getContainingFileSymbol: null - getContainingJvmClassName: one.SimpleClass - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getMemberVariable - javaSetterName: setMemberVariable - setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberVariable.txt b/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberVariable.txt index 3afc3825aa0..eb1db5bd895 100644 --- a/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberVariable.txt +++ b/analysis/analysis-api/testData/symbols/symbolByReference/libraryMemberVariable.txt @@ -21,10 +21,38 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: one/SimpleClass.memberVariable contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Boolean + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: one/SimpleClass + getContainingFileSymbol: null + getContainingJvmClassName: one.SimpleClass + getContainingModule: KtLibraryModule "Library lib" + deprecationStatus: null hasBackingField: true - hasGetter: false - hasSetter: false + hasGetter: true + hasSetter: true initializer: null isActual: false isConst: false @@ -44,7 +72,84 @@ KtKotlinPropertySymbol: annotationsList: [] ownTypeArguments: [] type: kotlin/Boolean - setter: null + setter: KtPropertySetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + parameter: KtValueParameterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + generatedPrimaryConstructorProperty: null + hasDefaultValue: false + isCrossinline: false + isExtension: false + isImplicitLambdaParameter: false + isNoinline: false + isVararg: false + name: value + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Boolean + symbolKind: LOCAL + typeParameters: [] + getContainingFileSymbol: null + getContainingJvmClassName: null + getContainingModule: KtLibraryModule "Library lib" + 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: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Boolean + symbolKind: LOCAL + typeParameters: [] + getContainingFileSymbol: null + getContainingJvmClassName: null + getContainingModule: KtLibraryModule "Library lib" + deprecationStatus: null + ] + visibility: Public + getDispatchReceiver(): KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: one/SimpleClass + getContainingFileSymbol: null + getContainingJvmClassName: one.SimpleClass + getContainingModule: KtLibraryModule "Library lib" + deprecationStatus: null symbolKind: CLASS_MEMBER typeParameters: [] visibility: Public @@ -59,4 +164,4 @@ KtKotlinPropertySymbol: getterDeprecationStatus: null javaGetterName: getMemberVariable javaSetterName: setMemberVariable - setterDeprecationStatus: null + setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/libraryProperty.standalone.fir.txt b/analysis/analysis-api/testData/symbols/symbolByReference/libraryProperty.standalone.fir.txt deleted file mode 100644 index 05bcf3b84fa..00000000000 --- a/analysis/analysis-api/testData/symbols/symbolByReference/libraryProperty.standalone.fir.txt +++ /dev/null @@ -1,82 +0,0 @@ -KtKotlinPropertySymbol: - annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - isExtension: false - name: field - origin: PROPERTY_BACKING_FIELD - owningProperty: KtKotlinPropertySymbol(one/topLevelProperty) - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: one.LibKt - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - callableIdIfNonLocal: one/topLevelProperty - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getContainingFileSymbol: null - getContainingJvmClassName: one.LibKt - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: false - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: true - modality: FINAL - name: topLevelProperty - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/String - setter: null - symbolKind: TOP_LEVEL - typeParameters: [] - visibility: Public - getContainingFileSymbol: null - getContainingJvmClassName: one.LibKt - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getTopLevelProperty - javaSetterName: null - setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/libraryProperty.txt b/analysis/analysis-api/testData/symbols/symbolByReference/libraryProperty.txt index b1615988c58..05bcf3b84fa 100644 --- a/analysis/analysis-api/testData/symbols/symbolByReference/libraryProperty.txt +++ b/analysis/analysis-api/testData/symbols/symbolByReference/libraryProperty.txt @@ -21,9 +21,33 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: one/topLevelProperty contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/String + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getContainingFileSymbol: null + getContainingJvmClassName: one.LibKt + getContainingModule: KtLibraryModule "Library lib" + deprecationStatus: null hasBackingField: true - hasGetter: false + hasGetter: true hasSetter: false initializer: null isActual: false @@ -55,4 +79,4 @@ KtKotlinPropertySymbol: getterDeprecationStatus: null javaGetterName: getTopLevelProperty javaSetterName: null - setterDeprecationStatus: null + setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/libraryVariable.standalone.fir.txt b/analysis/analysis-api/testData/symbols/symbolByReference/libraryVariable.standalone.fir.txt deleted file mode 100644 index f4cb73b5b73..00000000000 --- a/analysis/analysis-api/testData/symbols/symbolByReference/libraryVariable.standalone.fir.txt +++ /dev/null @@ -1,155 +0,0 @@ -KtKotlinPropertySymbol: - annotationsList: [] - backingFieldSymbol: KtBackingFieldSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - isExtension: false - name: field - origin: PROPERTY_BACKING_FIELD - owningProperty: KtKotlinPropertySymbol(one/topLevelVariable) - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: one.LibKt - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - callableIdIfNonLocal: one/topLevelVariable - contextReceivers: [] - getter: KtPropertyGetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: ACCESSOR - typeParameters: [] - valueParameters: [] - visibility: Public - getContainingFileSymbol: null - getContainingJvmClassName: one.LibKt - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - hasBackingField: true - hasGetter: true - hasSetter: true - initializer: null - isActual: false - isConst: false - isDelegatedProperty: false - isExpect: false - isExtension: false - isFromPrimaryConstructor: false - isLateInit: false - isOverride: false - isStatic: false - isVal: false - modality: FINAL - name: topLevelVariable - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - setter: KtPropertySetterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - hasBody: false - hasStableParameterNames: true - isDefault: true - isExtension: false - isInline: false - isOverride: false - modality: FINAL - origin: LIBRARY - parameter: KtValueParameterSymbol: - annotationsList: [] - callableIdIfNonLocal: null - contextReceivers: [] - generatedPrimaryConstructorProperty: null - hasDefaultValue: false - isCrossinline: false - isExtension: false - isImplicitLambdaParameter: false - isNoinline: false - isVararg: false - name: value - origin: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: null - getContainingModule: KtLibraryModule "Library lib" - 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: LIBRARY - receiverParameter: null - returnType: KtUsualClassType: - annotationsList: [] - ownTypeArguments: [] - type: kotlin/Boolean - symbolKind: LOCAL - typeParameters: [] - getContainingFileSymbol: null - getContainingJvmClassName: null - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - ] - visibility: Public - getContainingFileSymbol: null - getContainingJvmClassName: one.LibKt - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - symbolKind: TOP_LEVEL - typeParameters: [] - visibility: Public - getContainingFileSymbol: null - getContainingJvmClassName: one.LibKt - getContainingModule: KtLibraryModule "Library lib" - deprecationStatus: null - getterDeprecationStatus: null - javaGetterName: getTopLevelVariable - javaSetterName: setTopLevelVariable - setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/analysis-api/testData/symbols/symbolByReference/libraryVariable.txt b/analysis/analysis-api/testData/symbols/symbolByReference/libraryVariable.txt index dafef5980d2..f4cb73b5b73 100644 --- a/analysis/analysis-api/testData/symbols/symbolByReference/libraryVariable.txt +++ b/analysis/analysis-api/testData/symbols/symbolByReference/libraryVariable.txt @@ -21,10 +21,34 @@ KtKotlinPropertySymbol: deprecationStatus: null callableIdIfNonLocal: one/topLevelVariable contextReceivers: [] - getter: null + getter: KtPropertyGetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Boolean + symbolKind: ACCESSOR + typeParameters: [] + valueParameters: [] + visibility: Public + getContainingFileSymbol: null + getContainingJvmClassName: one.LibKt + getContainingModule: KtLibraryModule "Library lib" + deprecationStatus: null hasBackingField: true - hasGetter: false - hasSetter: false + hasGetter: true + hasSetter: true initializer: null isActual: false isConst: false @@ -44,7 +68,80 @@ KtKotlinPropertySymbol: annotationsList: [] ownTypeArguments: [] type: kotlin/Boolean - setter: null + setter: KtPropertySetterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + hasBody: false + hasStableParameterNames: true + isDefault: true + isExtension: false + isInline: false + isOverride: false + modality: FINAL + origin: LIBRARY + parameter: KtValueParameterSymbol: + annotationsList: [] + callableIdIfNonLocal: null + contextReceivers: [] + generatedPrimaryConstructorProperty: null + hasDefaultValue: false + isCrossinline: false + isExtension: false + isImplicitLambdaParameter: false + isNoinline: false + isVararg: false + name: value + origin: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Boolean + symbolKind: LOCAL + typeParameters: [] + getContainingFileSymbol: null + getContainingJvmClassName: null + getContainingModule: KtLibraryModule "Library lib" + 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: LIBRARY + receiverParameter: null + returnType: KtUsualClassType: + annotationsList: [] + ownTypeArguments: [] + type: kotlin/Boolean + symbolKind: LOCAL + typeParameters: [] + getContainingFileSymbol: null + getContainingJvmClassName: null + getContainingModule: KtLibraryModule "Library lib" + deprecationStatus: null + ] + visibility: Public + getContainingFileSymbol: null + getContainingJvmClassName: one.LibKt + getContainingModule: KtLibraryModule "Library lib" + deprecationStatus: null symbolKind: TOP_LEVEL typeParameters: [] visibility: Public @@ -55,4 +152,4 @@ KtKotlinPropertySymbol: getterDeprecationStatus: null javaGetterName: getTopLevelVariable javaSetterName: setTopLevelVariable - setterDeprecationStatus: null + setterDeprecationStatus: null \ No newline at end of file diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/stubBased/deserialization/StubBasedFirMemberDeserializer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/stubBased/deserialization/StubBasedFirMemberDeserializer.kt index aeb01529b24..b6b8dac46b5 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/stubBased/deserialization/StubBasedFirMemberDeserializer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/stubBased/deserialization/StubBasedFirMemberDeserializer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -12,12 +12,16 @@ import org.jetbrains.kotlin.descriptors.EffectiveVisibility import org.jetbrains.kotlin.descriptors.Modality import org.jetbrains.kotlin.descriptors.Visibilities import org.jetbrains.kotlin.descriptors.annotations.AnnotationUseSiteTarget +import org.jetbrains.kotlin.fakeElement import org.jetbrains.kotlin.fir.FirModuleData import org.jetbrains.kotlin.fir.FirSession import org.jetbrains.kotlin.fir.containingClassForStaticMemberAttr +import org.jetbrains.kotlin.fir.copyWithNewSourceKind import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.declarations.builder.* import org.jetbrains.kotlin.fir.declarations.impl.FirDefaultPropertyBackingField +import org.jetbrains.kotlin.fir.declarations.impl.FirDefaultPropertyGetter +import org.jetbrains.kotlin.fir.declarations.impl.FirDefaultPropertySetter import org.jetbrains.kotlin.fir.declarations.impl.FirResolvedDeclarationStatusImpl import org.jetbrains.kotlin.fir.declarations.utils.sourceElement import org.jetbrains.kotlin.fir.expressions.builder.buildExpressionStub @@ -324,7 +328,11 @@ internal class StubBasedFirMemberDeserializer( dispatchReceiverType = c.dispatchReceiver isLocal = false val visibility = property.visibility - status = FirResolvedDeclarationStatusImpl(visibility, propertyModality, visibility.toEffectiveVisibility(classSymbol)).apply { + val resolvedStatus = FirResolvedDeclarationStatusImpl( + visibility, + propertyModality, + visibility.toEffectiveVisibility(classSymbol) + ).apply { isExpect = property.hasExpectModifier() isActual = false isOverride = false @@ -333,6 +341,8 @@ internal class StubBasedFirMemberDeserializer( isExternal = property.hasModifier(KtTokens.EXTERNAL_KEYWORD) } + status = resolvedStatus + resolvePhase = FirResolvePhase.ANALYZED_DEPENDENCIES typeParameters += local.typeDeserializer.ownTypeParameters.map { it.fir } val allAnnotations = c.annotationDeserializer.loadAnnotations(property) @@ -344,29 +354,48 @@ internal class StubBasedFirMemberDeserializer( initialOrigin, source = property.toKtPsiSourceElement(KtFakeSourceElementKind.DefaultAccessor), backingFieldAnnotations.toMutableList(), - returnTypeRef, + returnTypeRef.copyWithNewSourceKind(KtFakeSourceElementKind.DefaultAccessor), isVar, symbol, status, ) - if (getter != null) { - this.getter = loadPropertyGetter( + this.getter = getter?.let { + loadPropertyGetter( getter, classSymbol, returnTypeRef, symbol ) - } + } ?: FirDefaultPropertyGetter( + source = source?.fakeElement(KtFakeSourceElementKind.DefaultAccessor), + moduleData = moduleData, + origin = origin, + propertyTypeRef = returnTypeRef.copyWithNewSourceKind(KtFakeSourceElementKind.DefaultAccessor), + propertySymbol = symbol, + visibility = resolvedStatus.visibility, + effectiveVisibility = resolvedStatus.effectiveVisibility, + modality = resolvedStatus.modality, + resolvePhase = FirResolvePhase.ANALYZED_DEPENDENCIES, + ) + val setter = property.setter - if (setter != null) { - this.setter = loadPropertySetter( - setter, - classSymbol, - symbol, - local + this.setter = when { + setter != null -> loadPropertySetter(setter, classSymbol, symbol, local) + isVar -> FirDefaultPropertySetter( + source = source?.fakeElement(KtFakeSourceElementKind.DefaultAccessor), + moduleData = moduleData, + origin = origin, + propertyTypeRef = returnTypeRef.copyWithNewSourceKind(KtFakeSourceElementKind.DefaultAccessor), + propertySymbol = symbol, + visibility = resolvedStatus.visibility, + effectiveVisibility = resolvedStatus.effectiveVisibility, + modality = resolvedStatus.modality, + resolvePhase = FirResolvePhase.ANALYZED_DEPENDENCIES, ) + else -> null } + this.containerSource = c.containerSource this.initializer = c.annotationDeserializer.loadConstant(property, symbol.callableId) deprecationsProvider = annotations.getDeprecationsProviderFromAnnotations(c.session, fromJava = false) diff --git a/analysis/low-level-api-fir/testData/getOrBuildFirBinary/delegate.txt b/analysis/low-level-api-fir/testData/getOrBuildFirBinary/delegate.txt index e2921d460c4..873f16373d4 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFirBinary/delegate.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFirBinary/delegate.txt @@ -25,21 +25,21 @@ public final [ResolvedTo(BODY_RESOLVE)] class I : R|A| { public open [ResolvedTo(BODY_RESOLVE)] fun R|kotlin/Int|.smth(): R|kotlin/Short| public open [ResolvedTo(BODY_RESOLVE)] var bar: R|kotlin/Long| - - + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Long| + public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Long|): R|kotlin/Unit| public open [ResolvedTo(BODY_RESOLVE)] val R|kotlin/Int|.doo: R|kotlin/String| - + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String| public open [ResolvedTo(BODY_RESOLVE)] val foo: R|kotlin/Int| - + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| private final [ResolvedTo(BODY_RESOLVE)] val p: R|A| - + private [ResolvedTo(BODY_RESOLVE)] get(): R|A| public open [ResolvedTo(BODY_RESOLVE)] var R|kotlin/Int|.zoo: R|kotlin/Unit| - - + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Unit| + public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Unit|): R|kotlin/Unit| public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=I] constructor([ResolvedTo(BODY_RESOLVE)] p: R|A|): R|I| diff --git a/analysis/low-level-api-fir/testData/getOrBuildFirBinary/js/typeAnnotation.txt b/analysis/low-level-api-fir/testData/getOrBuildFirBinary/js/typeAnnotation.txt index 8e054155fe6..0fcec6343f7 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFirBinary/js/typeAnnotation.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFirBinary/js/typeAnnotation.txt @@ -6,3 +6,4 @@ FIR source kind: KtRealSourceElementKind FIR element rendered: public final [ResolvedTo(BODY_RESOLVE)] val prop: R|@R|Y|() kotlin/Int| + public [ResolvedTo(BODY_RESOLVE)] get(): R|@R|Y|() kotlin/Int| \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFirBinary/publishedApi/publishedApiProperty.txt b/analysis/low-level-api-fir/testData/getOrBuildFirBinary/publishedApi/publishedApiProperty.txt index d6f7619d5bd..05e2afb902d 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFirBinary/publishedApi/publishedApiProperty.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFirBinary/publishedApi/publishedApiProperty.txt @@ -5,4 +5,5 @@ FIR element: FirPropertyImpl FIR source kind: KtRealSourceElementKind FIR element rendered: -@R|kotlin/PublishedApi|() internal final [ResolvedTo(BODY_RESOLVE)] [LazyPublishedApiEffectiveVisibilityKey=public] val published: R|kotlin/String| \ No newline at end of file +@R|kotlin/PublishedApi|() internal final [ResolvedTo(BODY_RESOLVE)] [LazyPublishedApiEffectiveVisibilityKey=public] val published: R|kotlin/String| + internal [ResolvedTo(BODY_RESOLVE)] [LazyPublishedApiEffectiveVisibilityKey=public] get(): R|kotlin/String| \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFirBinary/simpleProperty.txt b/analysis/low-level-api-fir/testData/getOrBuildFirBinary/simpleProperty.txt index e9260fe0689..8c7bdad6a10 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFirBinary/simpleProperty.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFirBinary/simpleProperty.txt @@ -5,4 +5,5 @@ FIR element: FirPropertyImpl FIR source kind: KtRealSourceElementKind FIR element rendered: -public final [ResolvedTo(BODY_RESOLVE)] val p: R|kotlin/String| \ No newline at end of file +public final [ResolvedTo(BODY_RESOLVE)] val p: R|kotlin/String| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String| \ No newline at end of file