[Analysis API] fix exception on symbol restore when symbol cannot be seen from the use-site module
^KT-56763 fixed
This commit is contained in:
committed by
Space Team
parent
ee1b018c9a
commit
803c3b88ac
+9
@@ -0,0 +1,9 @@
|
||||
// MODULE: main
|
||||
|
||||
fun f<caret>oo(){}
|
||||
|
||||
// MODULE: restoreInContextOf
|
||||
|
||||
fun restoreInContextOf() {
|
||||
<caret_restoreAt>
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
Inital from Sources of main:
|
||||
fun foo()
|
||||
|
||||
Restored in Sources of restoreInContextOf:
|
||||
<NOT RESTORED>
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
Inital from Sources of main:
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: /foo
|
||||
contextReceivers: []
|
||||
contractEffects: []
|
||||
hasStableParameterNames: true
|
||||
isBuiltinFunctionInvoke: false
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: FINAL
|
||||
name: foo
|
||||
origin: SOURCE
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Unit
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
|
||||
Restored in Sources of restoreInContextOf:
|
||||
<NOT RESTORED>
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// MODULE: main
|
||||
|
||||
fun f<caret>oo(){}
|
||||
|
||||
// MODULE: restoreInContextOf(main)
|
||||
|
||||
fun restoreInContextOf() {
|
||||
<caret_restoreAt>
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
Inital from Sources of main:
|
||||
fun foo()
|
||||
|
||||
Restored in Sources of restoreInContextOf:
|
||||
fun foo()
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
Inital from Sources of main:
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: /foo
|
||||
contextReceivers: []
|
||||
contractEffects: []
|
||||
hasStableParameterNames: true
|
||||
isBuiltinFunctionInvoke: false
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: FINAL
|
||||
name: foo
|
||||
origin: SOURCE
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Unit
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
|
||||
Restored in Sources of restoreInContextOf:
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: /foo
|
||||
contextReceivers: []
|
||||
contractEffects: []
|
||||
hasStableParameterNames: true
|
||||
isBuiltinFunctionInvoke: false
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: FINAL
|
||||
name: foo
|
||||
origin: SOURCE
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Unit
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
Reference in New Issue
Block a user