Compiler Context
open class CompilerContext(configuration: CompilerConfiguration?, project: Project, messageCollector: MessageCollector?, ktPsiElementFactory: KtPsiFactory, eval: (String) -> Any?)
Content copied to clipboard
The Compiler Context represents the environment received by all plugins. The Compiler Context will get more services as they become relevant overtime to the development of compiler plugins.
Constructors
CompilerContext
Link copied to clipboard
fun CompilerContext(configuration: CompilerConfiguration?, project: Project, messageCollector: MessageCollector? = null, ktPsiElementFactory: KtPsiFactory = KtPsiFactory(project, false), eval: (String) -> Any? = { KotlinJsr223JvmLocalScriptEngineFactory().scriptEngine.eval(it) })
Content copied to clipboard
Functions
Properties
analysedDescriptors
Link copied to clipboard
analysisPhaseCanBeRewind
Link copied to clipboard
analysisPhaseWasRewind
Link copied to clipboard
bindingTrace
Link copied to clipboard
componentProvider
Link copied to clipboard
configuration
Link copied to clipboard
ctx
Link copied to clipboard
ktPsiElementFactory
Link copied to clipboard
messageCollector
Link copied to clipboard
Extensions
evaluate Depends On
Link copied to clipboard
fun <T> CompilerContext.evaluateDependsOn(noRewindablePhase: () -> T?, rewindablePhase: (Boolean) -> T?): T?
Content copied to clipboard
evaluate Depends On Rewindable Analysis Phase
Link copied to clipboard
fun <T> CompilerContext.evaluateDependsOnRewindableAnalysisPhase(evaluation: () -> T?): T?
Content copied to clipboard