[AA] support @JvmField in KtSymbolInfoProvider
^KT-54311 ^KT-54360 Fixed
This commit is contained in:
committed by
Space Team
parent
f4ae696aee
commit
01d5a5bc5b
+37
-4
@@ -6,7 +6,7 @@ KtFileSymbol:
|
||||
deprecationStatus: null
|
||||
|
||||
CALLABLE NAMES:
|
||||
[function, functionWithDefault, testVal, initializedVariable, unitializedVariable, lateinitVariable, variableWithBackingField, privateSetter, customGetter, jvmNameOnGetter, propertyWithReceiver, propertyWithGenericReceiver, constant, jvmField]
|
||||
[function, functionWithDefault, testVal, initializedVariable, unitializedVariable, lateinitVariable, variableWithBackingField, privateSetter, jvmNameOnSetter, customGetter, jvmNameOnGetter, propertyWithReceiver, propertyWithGenericReceiver, constant, jvmField]
|
||||
|
||||
CALLABLE SYMBOLS:
|
||||
KtFunctionSymbol:
|
||||
@@ -261,7 +261,40 @@ KtKotlinPropertySymbol:
|
||||
deprecationStatus: null
|
||||
getterDeprecationStatus: null
|
||||
javaGetterName: getPrivateSetter
|
||||
javaSetterName: setPrivateSetter
|
||||
javaSetterName: customPrivateSetter
|
||||
setterDeprecationStatus: null
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: /jvmNameOnSetter
|
||||
contextReceivers: []
|
||||
getter: KtPropertyGetterSymbol(<getter>)
|
||||
hasBackingField: true
|
||||
hasGetter: true
|
||||
hasSetter: true
|
||||
initializer: null
|
||||
isConst: false
|
||||
isDelegatedProperty: false
|
||||
isExtension: false
|
||||
isFromPrimaryConstructor: false
|
||||
isLateInit: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isVal: false
|
||||
modality: FINAL
|
||||
name: jvmNameOnSetter
|
||||
origin: SOURCE
|
||||
receiverType: null
|
||||
returnType: kotlin/String
|
||||
setter: KtPropertySetterSymbol(<setter>)
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
getterDeprecationStatus: null
|
||||
javaGetterName: getJvmNameOnSetter
|
||||
javaSetterName: customPrivateSetter
|
||||
setterDeprecationStatus: null
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
@@ -460,8 +493,8 @@ KtKotlinPropertySymbol:
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
getterDeprecationStatus: null
|
||||
javaGetterName: getJvmField
|
||||
javaSetterName: setJvmField
|
||||
javaGetterName: jvmField
|
||||
javaSetterName: jvmField
|
||||
setterDeprecationStatus: null
|
||||
|
||||
CLASSIFIER NAMES:
|
||||
|
||||
@@ -13,9 +13,14 @@ lateinit var lateinitVariable: String
|
||||
var variableWithBackingField: Long = 4
|
||||
get() = field
|
||||
|
||||
@set:JvmName("customPrivateSetter")
|
||||
var privateSetter = ""
|
||||
private set
|
||||
|
||||
var jvmNameOnSetter = ""
|
||||
@JvmName("customPrivateSetter")
|
||||
private set
|
||||
|
||||
@get:JvmName("myCustomGetter")
|
||||
val customGetter: Int get() = 2
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ KtFileSymbol:
|
||||
deprecationStatus: null
|
||||
|
||||
CALLABLE NAMES:
|
||||
[function, functionWithDefault, testVal, initializedVariable, unitializedVariable, lateinitVariable, variableWithBackingField, privateSetter, customGetter, jvmNameOnGetter, propertyWithReceiver, propertyWithGenericReceiver, constant, jvmField]
|
||||
[function, functionWithDefault, testVal, initializedVariable, unitializedVariable, lateinitVariable, variableWithBackingField, privateSetter, jvmNameOnSetter, customGetter, jvmNameOnGetter, propertyWithReceiver, propertyWithGenericReceiver, constant, jvmField]
|
||||
|
||||
CALLABLE SYMBOLS:
|
||||
KtFunctionSymbol:
|
||||
@@ -261,7 +261,40 @@ KtKotlinPropertySymbol:
|
||||
deprecationStatus: null
|
||||
getterDeprecationStatus: null
|
||||
javaGetterName: getPrivateSetter
|
||||
javaSetterName: setPrivateSetter
|
||||
javaSetterName: customPrivateSetter
|
||||
setterDeprecationStatus: null
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: /jvmNameOnSetter
|
||||
contextReceivers: []
|
||||
getter: KtPropertyGetterSymbol(<getter>)
|
||||
hasBackingField: true
|
||||
hasGetter: true
|
||||
hasSetter: true
|
||||
initializer: KtConstantInitializerValue("")
|
||||
isConst: false
|
||||
isDelegatedProperty: false
|
||||
isExtension: false
|
||||
isFromPrimaryConstructor: false
|
||||
isLateInit: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isVal: false
|
||||
modality: FINAL
|
||||
name: jvmNameOnSetter
|
||||
origin: SOURCE
|
||||
receiverType: null
|
||||
returnType: kotlin/String
|
||||
setter: KtPropertySetterSymbol(<setter>)
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
getterDeprecationStatus: null
|
||||
javaGetterName: getJvmNameOnSetter
|
||||
javaSetterName: customPrivateSetter
|
||||
setterDeprecationStatus: null
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
@@ -463,8 +496,8 @@ KtKotlinPropertySymbol:
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
getterDeprecationStatus: null
|
||||
javaGetterName: getJvmField
|
||||
javaSetterName: setJvmField
|
||||
javaGetterName: jvmField
|
||||
javaSetterName: jvmField
|
||||
setterDeprecationStatus: null
|
||||
|
||||
CLASSIFIER NAMES:
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
var jvmField: kotlin.Long
|
||||
|
||||
var jvmFieldOnField: kotlin.Int
|
||||
@@ -0,0 +1,65 @@
|
||||
KtKotlinPropertySymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: /jvmField
|
||||
contextReceivers: []
|
||||
getter: KtPropertyGetterSymbol(<getter>)
|
||||
hasBackingField: true
|
||||
hasGetter: true
|
||||
hasSetter: true
|
||||
initializer: KtConstantInitializerValue(2)
|
||||
isConst: false
|
||||
isDelegatedProperty: false
|
||||
isExtension: false
|
||||
isFromPrimaryConstructor: false
|
||||
isLateInit: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isVal: false
|
||||
modality: FINAL
|
||||
name: jvmField
|
||||
origin: SOURCE
|
||||
receiverType: null
|
||||
returnType: kotlin/Long
|
||||
setter: KtPropertySetterSymbol(<setter>)
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
getterDeprecationStatus: null
|
||||
javaGetterName: jvmField
|
||||
javaSetterName: jvmField
|
||||
setterDeprecationStatus: null
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: /jvmFieldOnField
|
||||
contextReceivers: []
|
||||
getter: KtPropertyGetterSymbol(<getter>)
|
||||
hasBackingField: true
|
||||
hasGetter: true
|
||||
hasSetter: true
|
||||
initializer: KtConstantInitializerValue(4)
|
||||
isConst: false
|
||||
isDelegatedProperty: false
|
||||
isExtension: false
|
||||
isFromPrimaryConstructor: false
|
||||
isLateInit: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isVal: false
|
||||
modality: FINAL
|
||||
name: jvmFieldOnField
|
||||
origin: SOURCE
|
||||
receiverType: null
|
||||
returnType: kotlin/Int
|
||||
setter: KtPropertySetterSymbol(<setter>)
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
getterDeprecationStatus: null
|
||||
javaGetterName: jvmFieldOnField
|
||||
javaSetterName: jvmFieldOnField
|
||||
setterDeprecationStatus: null
|
||||
@@ -0,0 +1,7 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
@JvmField
|
||||
var jvmField: Long = 2
|
||||
|
||||
@field:JvmField
|
||||
var jvmFieldOnField: Int = 4
|
||||
@@ -0,0 +1,5 @@
|
||||
@kotlin.jvm.JvmField
|
||||
var jvmField: kotlin.Long
|
||||
|
||||
@kotlin.jvm.JvmField
|
||||
var jvmFieldOnField: kotlin.Int
|
||||
@@ -0,0 +1,71 @@
|
||||
KtKotlinPropertySymbol:
|
||||
annotationsList: [
|
||||
kotlin/jvm/JvmField()
|
||||
psi: KtAnnotationEntry
|
||||
]
|
||||
callableIdIfNonLocal: /jvmField
|
||||
contextReceivers: []
|
||||
getter: KtPropertyGetterSymbol(<getter>)
|
||||
hasBackingField: true
|
||||
hasGetter: true
|
||||
hasSetter: true
|
||||
initializer: KtConstantInitializerValue(2)
|
||||
isConst: false
|
||||
isDelegatedProperty: false
|
||||
isExtension: false
|
||||
isFromPrimaryConstructor: false
|
||||
isLateInit: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isVal: false
|
||||
modality: FINAL
|
||||
name: jvmField
|
||||
origin: SOURCE
|
||||
receiverType: null
|
||||
returnType: kotlin/Long
|
||||
setter: KtPropertySetterSymbol(<setter>)
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
getterDeprecationStatus: null
|
||||
javaGetterName: jvmField
|
||||
javaSetterName: jvmField
|
||||
setterDeprecationStatus: null
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
annotationsList: [
|
||||
kotlin/jvm/JvmField()
|
||||
psi: KtAnnotationEntry
|
||||
]
|
||||
callableIdIfNonLocal: /jvmFieldOnField
|
||||
contextReceivers: []
|
||||
getter: KtPropertyGetterSymbol(<getter>)
|
||||
hasBackingField: true
|
||||
hasGetter: true
|
||||
hasSetter: true
|
||||
initializer: KtConstantInitializerValue(4)
|
||||
isConst: false
|
||||
isDelegatedProperty: false
|
||||
isExtension: false
|
||||
isFromPrimaryConstructor: false
|
||||
isLateInit: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isVal: false
|
||||
modality: FINAL
|
||||
name: jvmFieldOnField
|
||||
origin: SOURCE
|
||||
receiverType: null
|
||||
returnType: kotlin/Int
|
||||
setter: KtPropertySetterSymbol(<setter>)
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
getterDeprecationStatus: null
|
||||
javaGetterName: jvmFieldOnField
|
||||
javaSetterName: jvmFieldOnField
|
||||
setterDeprecationStatus: null
|
||||
Reference in New Issue
Block a user