[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
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@@ -285,6 +285,9 @@ sealed class KtFakeSourceElementKind(final override val shouldSkipErrorTypeRepor
// Scripts get implicit imports from their configurations
object ImplicitImport : KtFakeSourceElementKind()
// For provided parameters inside a script
object ScriptParameter : KtFakeSourceElementKind()
}
sealed class AbstractKtSourceElement {