[AA K2] implement symbol pointers for value parameters

^KT-54311
This commit is contained in:
Dmitrii Gridin
2022-11-04 17:03:11 +01:00
committed by Space Team
parent 043e3e6840
commit 202a022b49
18 changed files with 231 additions and 6 deletions
@@ -0,0 +1,7 @@
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
class A {
constructor(abc: Int) {
ab<caret>c
}
}
@@ -0,0 +1 @@
abc: kotlin.Int
@@ -0,0 +1,19 @@
KtValueParameterSymbol:
annotationsList: []
callableIdIfNonLocal: null
contextReceivers: []
generatedPrimaryConstructorProperty: null
hasDefaultValue: false
isCrossinline: false
isExtension: false
isImplicitLambdaParameter: false
isNoinline: false
isVararg: false
name: abc
origin: SOURCE
receiverType: null
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -1,4 +1,5 @@
// DO_NOT_CHECK_SYMBOL_RESTORE
// DO_NOT_CHECK_SYMBOL_RESTORE_K1
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
inline fun <T, R> T.use(block: (T) -> R): R {
return block(this)
@@ -0,0 +1,7 @@
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
class A(abc: Int) {
init {
ab<caret>c
}
}
@@ -0,0 +1,19 @@
KtValueParameterSymbol:
annotationsList: []
callableIdIfNonLocal: null
contextReceivers: []
generatedPrimaryConstructorProperty: null
hasDefaultValue: false
isCrossinline: false
isExtension: false
isImplicitLambdaParameter: false
isNoinline: false
isVararg: false
name: abc
origin: SOURCE
receiverType: null
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -0,0 +1,6 @@
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
var i: Int
set(value) {
valu<caret>e
}
@@ -0,0 +1 @@
value: kotlin.Int
@@ -0,0 +1,19 @@
KtValueParameterSymbol:
annotationsList: []
callableIdIfNonLocal: null
contextReceivers: []
generatedPrimaryConstructorProperty: null
hasDefaultValue: false
isCrossinline: false
isExtension: false
isImplicitLambdaParameter: false
isNoinline: false
isVararg: false
name: value
origin: SOURCE
receiverType: null
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -0,0 +1,5 @@
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
fun check(abc: Int) {
a<caret>bc
}
@@ -0,0 +1 @@
abc: kotlin.Int
@@ -0,0 +1,19 @@
KtValueParameterSymbol:
annotationsList: []
callableIdIfNonLocal: null
contextReceivers: []
generatedPrimaryConstructorProperty: null
hasDefaultValue: false
isCrossinline: false
isExtension: false
isImplicitLambdaParameter: false
isNoinline: false
isVararg: false
name: abc
origin: SOURCE
receiverType: null
returnType: kotlin/Int
symbolKind: LOCAL
typeParameters: []
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null