[FIR] Add opt-in annotation which prevents from using symbol.fir
This commit is contained in:
committed by
teamcityserver
parent
c99a02796f
commit
e94d75d433
@@ -0,0 +1,26 @@
|
||||
val projectsAllowedToUseFirFromSymbol = listOf(
|
||||
"analysis-tests",
|
||||
"dump",
|
||||
"fir-deserialization",
|
||||
"fir-serialization",
|
||||
"fir2ir",
|
||||
"java",
|
||||
"jvm",
|
||||
"raw-fir",
|
||||
"resolve",
|
||||
"tree",
|
||||
"jvm-backend",
|
||||
"light-tree2fir",
|
||||
"psi2fir",
|
||||
"raw-fir.common"
|
||||
)
|
||||
|
||||
subprojects {
|
||||
if (name in projectsAllowedToUseFirFromSymbol) {
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += "-Xopt-in=org.jetbrains.kotlin.fir.symbols.SymbolInternals"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user