[K1 AA] fix default getter and setter

^KT-54311
This commit is contained in:
Dmitrii Gridin
2022-10-10 18:42:24 +02:00
committed by Space Team
parent 4ee5bf178c
commit afe7605649
15 changed files with 102 additions and 401 deletions
@@ -42,7 +42,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -107,7 +107,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: java/lang/Runnable
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -1,79 +0,0 @@
KtKotlinPropertySymbol:
annotationsList: []
callableIdIfNonLocal: /A.i
contextReceivers: []
getter: KtPropertyGetterSymbol:
annotationsList: []
callableIdIfNonLocal: null
contextReceivers: []
hasBody: false
hasStableParameterNames: true
isDefault: true
isExtension: false
isInline: false
isOverride: false
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
visibility: Public
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: null
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: i
origin: SOURCE
receiverType: null
returnType: kotlin/Int
setter: null
symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Public
getDispatchReceiver(): A
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getI
javaSetterName: null
setterDeprecationStatus: null
KtClassInitializerSymbol:
origin: SOURCE
symbolKind: CLASS_MEMBER
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationsList: []
classIdIfNonLocal: A
classKind: CLASS
companionObject: null
contextReceivers: []
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: A
origin: SOURCE
superTypes: [
kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -1,100 +0,0 @@
KtKotlinPropertySymbol:
annotationsList: []
callableIdIfNonLocal: /A.a
contextReceivers: []
getter: KtPropertyGetterSymbol:
annotationsList: []
callableIdIfNonLocal: null
contextReceivers: []
hasBody: false
hasStableParameterNames: true
isDefault: true
isExtension: false
isInline: false
isOverride: false
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
visibility: Public
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: KtConstantInitializerValue(10)
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: a
origin: SOURCE
receiverType: null
returnType: kotlin/Int
setter: null
symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Public
getDispatchReceiver(): A
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getA
javaSetterName: null
setterDeprecationStatus: null
KtFunctionSymbol:
annotationsList: []
callableIdIfNonLocal: /A.x
contextReceivers: []
hasStableParameterNames: true
isBuiltinFunctionInvoke: false
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: FINAL
name: x
origin: SOURCE
receiverType: null
returnType: kotlin/Int
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
getDispatchReceiver(): A
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationsList: []
classIdIfNonLocal: A
classKind: CLASS
companionObject: null
contextReceivers: []
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: A
origin: SOURCE
superTypes: [
kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -183,7 +183,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: MyColor
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -249,7 +249,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Lazy<MyColor>
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -300,7 +300,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: MyColor
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -18,7 +18,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -56,7 +56,10 @@ KtKotlinPropertySymbol:
callableIdIfNonLocal: /i2
contextReceivers: []
getter: KtPropertyGetterSymbol:
annotationsList: []
annotationsList: [
kotlin/Deprecated(message = "don't use getter of i2")
psi: KtAnnotationEntry
]
callableIdIfNonLocal: null
contextReceivers: []
hasBody: false
@@ -68,7 +71,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -118,7 +121,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -141,7 +144,10 @@ KtKotlinPropertySymbol:
receiverType: null
returnType: kotlin/Int
setter: KtPropertySetterSymbol:
annotationsList: []
annotationsList: [
kotlin/Deprecated(message = "don't use getter of i3")
psi: KtAnnotationEntry
]
callableIdIfNonLocal: null
contextReceivers: []
hasBody: false
@@ -166,7 +172,7 @@ KtKotlinPropertySymbol:
name: value
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
receiverType: null
@@ -188,7 +194,7 @@ KtKotlinPropertySymbol:
name: value
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
]
@@ -208,7 +214,10 @@ KtKotlinPropertySymbol:
callableIdIfNonLocal: /i4
contextReceivers: []
getter: KtPropertyGetterSymbol:
annotationsList: []
annotationsList: [
kotlin/Deprecated(message = "don't use getter of i4")
psi: KtAnnotationEntry
]
callableIdIfNonLocal: null
contextReceivers: []
hasBody: false
@@ -220,7 +229,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -243,7 +252,10 @@ KtKotlinPropertySymbol:
receiverType: null
returnType: kotlin/Int
setter: KtPropertySetterSymbol:
annotationsList: []
annotationsList: [
kotlin/Deprecated(message = "don't use setter of i4")
psi: KtAnnotationEntry
]
callableIdIfNonLocal: null
contextReceivers: []
hasBody: false
@@ -268,7 +280,7 @@ KtKotlinPropertySymbol:
name: value
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
receiverType: null
@@ -290,7 +302,7 @@ KtKotlinPropertySymbol:
name: value
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
]
@@ -380,7 +392,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -487,7 +499,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -540,7 +552,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -590,7 +602,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -1,153 +0,0 @@
KtKotlinPropertySymbol:
annotationsList: []
callableIdIfNonLocal: /Foo.p
contextReceivers: []
getter: KtPropertyGetterSymbol:
annotationsList: []
callableIdIfNonLocal: null
contextReceivers: []
hasBody: false
hasStableParameterNames: true
isDefault: true
isExtension: false
isInline: false
isOverride: false
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
visibility: Public
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: KtConstantInitializerValue(null)
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: p
origin: SOURCE
receiverType: null
returnType: dynamic
setter: null
symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Public
getDispatchReceiver(): Foo
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getP
javaSetterName: null
setterDeprecationStatus: null
KtValueParameterSymbol:
annotationsList: []
callableIdIfNonLocal: null
contextReceivers: []
generatedPrimaryConstructorProperty: null
hasDefaultValue: false
isCrossinline: false
isExtension: false
isImplicitLambdaParameter: false
isNoinline: false
isVararg: false
name: p
origin: SOURCE
receiverType: null
returnType: dynamic
symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
KtAnonymousFunctionSymbol:
annotationsList: []
callableIdIfNonLocal: null
contextReceivers: []
hasStableParameterNames: true
isExtension: false
origin: SOURCE
receiverType: null
returnType: dynamic
symbolKind: LOCAL
typeParameters: []
valueParameters: []
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
KtFunctionSymbol:
annotationsList: []
callableIdIfNonLocal: /Foo.f
contextReceivers: []
hasStableParameterNames: true
isBuiltinFunctionInvoke: false
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: FINAL
name: f
origin: SOURCE
receiverType: null
returnType: dynamic
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: p
origin: SOURCE
receiverType: null
returnType: dynamic
symbolKind: LOCAL
typeParameters: []
]
visibility: Public
getDispatchReceiver(): Foo
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationsList: []
classIdIfNonLocal: Foo
classKind: CLASS
companionObject: null
contextReceivers: []
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: Foo
origin: SOURCE
superTypes: [
kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -159,7 +159,7 @@ KtKotlinPropertySymbol:
modality: ABSTRACT
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/String
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -15,7 +15,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Long
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -63,7 +63,7 @@ KtKotlinPropertySymbol:
name: value
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Long
symbolKind: LOCAL
typeParameters: []
receiverType: null
@@ -85,7 +85,7 @@ KtKotlinPropertySymbol:
name: value
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Long
symbolKind: LOCAL
typeParameters: []
]
@@ -117,7 +117,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -165,7 +165,7 @@ KtKotlinPropertySymbol:
name: value
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
receiverType: null
@@ -187,7 +187,7 @@ KtKotlinPropertySymbol:
name: value
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
]
@@ -3,7 +3,10 @@ KtKotlinPropertySymbol:
callableIdIfNonLocal: /Foo.i
contextReceivers: []
getter: KtPropertyGetterSymbol:
annotationsList: []
annotationsList: [
kotlin/jvm/JvmName(name = "getMyI")
psi: KtAnnotationEntry
]
callableIdIfNonLocal: null
contextReceivers: []
hasBody: false
@@ -15,7 +18,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -38,7 +41,10 @@ KtKotlinPropertySymbol:
receiverType: null
returnType: kotlin/Int
setter: KtPropertySetterSymbol:
annotationsList: []
annotationsList: [
kotlin/jvm/JvmName(name = "setMyI")
psi: KtAnnotationEntry
]
callableIdIfNonLocal: null
contextReceivers: []
hasBody: false
@@ -63,7 +69,7 @@ KtKotlinPropertySymbol:
name: value
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
receiverType: null
@@ -85,7 +91,7 @@ KtKotlinPropertySymbol:
name: value
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
]
@@ -15,7 +15,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -121,7 +121,10 @@ KtKotlinPropertySymbol:
callableIdIfNonLocal: /prop
contextReceivers: []
getter: KtPropertyGetterSymbol:
annotationsList: []
annotationsList: [
GetAnnotation()
psi: KtAnnotationEntry
]
callableIdIfNonLocal: null
contextReceivers: []
hasBody: false
@@ -133,7 +136,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -156,7 +159,10 @@ KtKotlinPropertySymbol:
receiverType: null
returnType: kotlin/Int
setter: KtPropertySetterSymbol:
annotationsList: []
annotationsList: [
SetAnnotation()
psi: KtAnnotationEntry
]
callableIdIfNonLocal: null
contextReceivers: []
hasBody: false
@@ -168,7 +174,10 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
parameter: KtValueParameterSymbol:
annotationsList: []
annotationsList: [
SetparamAnnotation()
psi: KtAnnotationEntry
]
callableIdIfNonLocal: null
contextReceivers: []
generatedPrimaryConstructorProperty: null
@@ -181,7 +190,7 @@ KtKotlinPropertySymbol:
name: value
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
receiverType: null
@@ -190,7 +199,10 @@ KtKotlinPropertySymbol:
typeParameters: []
valueParameters: [
KtValueParameterSymbol:
annotationsList: []
annotationsList: [
SetparamAnnotation()
psi: KtAnnotationEntry
]
callableIdIfNonLocal: null
contextReceivers: []
generatedPrimaryConstructorProperty: null
@@ -203,7 +215,7 @@ KtKotlinPropertySymbol:
name: value
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
]
@@ -273,7 +285,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -15,7 +15,7 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: kotlin/Int
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
@@ -216,7 +216,10 @@ KtKotlinPropertySymbol:
modality: FINAL
origin: SOURCE
receiverType: null
returnType: ERROR_TYPE
returnType: [
Anno4()
psi: KtAnnotationEntry
] @R|Anno4|() I
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []