[FIR] FirScriptConfiguratorExtensionImpl: provide source for script parameters

We need this source to be able to find the parent declaration

^KT-62693 Fixed
This commit is contained in:
Dmitrii Gridin
2023-10-19 14:27:01 +02:00
committed by Space Team
parent 17ab005668
commit 0b45c6ce23
14 changed files with 120 additions and 19 deletions
@@ -0,0 +1,3 @@
fun foo() {
arg<caret>s
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in <local>: <script-ScriptArgument.kts>) val args: kotlin.Array<kotlin.String>
@@ -0,0 +1,5 @@
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
fun foo() {
ar<caret>gs
}
@@ -0,0 +1 @@
val args: kotlin.Array<kotlin.String>
@@ -0,0 +1,22 @@
KtLocalVariableSymbol:
annotationsList: []
callableIdIfNonLocal: null
contextReceivers: []
isExtension: false
isVal: true
name: args
origin: PLUGIN
receiverParameter: null
returnType: KtUsualClassType:
annotationsList: []
ownTypeArguments: [
KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: kotlin/String
]
type: kotlin/Array<kotlin/String>
symbolKind: LOCAL
typeParameters: []
getContainingModule: KtScriptModule "Script scriptArgument.kts"
deprecationStatus: null