KTIJ-26867 [AA] Allow resolve from write action in KtFirReferenceResolver

`KtReference` might be resolved from anywhere, even
from the write action - the call site might not know
anything about Kotlin, and might not be able to
somehow prevent the `inaccessible analysis session`
exception from being thrown. That's why we
have to be permissive here.

^KTIJ-26867 Fixed
This commit is contained in:
Roman Golyshev
2023-09-01 12:33:56 +02:00
parent 0f40b2adce
commit 496e4dd0e3
2 changed files with 13 additions and 8 deletions
@@ -72,6 +72,7 @@ allprojects {
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
kotlinOptions {
freeCompilerArgs += "-opt-in=org.jetbrains.kotlin.fir.symbols.SymbolInternals"
freeCompilerArgs += "-opt-in=org.jetbrains.kotlin.analysis.api.lifetime.KtAllowProhibitedAnalyzeFromWriteAction"
}
}
}