McpScriptResolutionConfigurator

internal class McpScriptResolutionConfigurator(session: FirSession) : FirScriptResolutionConfigurationExtension

Puts DEFAULT_IMPORTS in a scope below the snippet's own imports, so an explicit import of the same name shadows them instead of conflicting. Imports are added at the FIR level, never by prepending text: a source rewrite would shift every diagnostic's line number off what the user typed.

Constructors

Link copied to clipboard
constructor(session: FirSession)

Properties

Link copied to clipboard
override val extensionType: KClass<out FirExtension>
Link copied to clipboard
override val name: FirExtensionPointName
Link copied to clipboard
val session: FirSession

Functions

Link copied to clipboard
open override fun getScriptDefaultImports(script: FirScript): List<FirImport>
Link copied to clipboard
open fun FirDeclarationPredicateRegistrar.registerPredicates()