Add IDEA action to show raw FIR of currently opened file
This action works correctly with fir.enabled=true in Gradle properties
This commit is contained in:
committed by
Mikhail Glukhikh
parent
e5f0f2489f
commit
8a5a43d670
@@ -10,12 +10,9 @@ plugins {
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
val generatorClasspath by configurations.creating
|
||||
|
||||
dependencies {
|
||||
compile(project(":core:descriptors"))
|
||||
compile(project(":compiler:fir:cones"))
|
||||
generatorClasspath(project("visitors-generator"))
|
||||
// Necessary only to store bound PsiElement inside FirElement
|
||||
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "annotations") }
|
||||
}
|
||||
@@ -28,6 +25,12 @@ sourceSets {
|
||||
"test" {}
|
||||
}
|
||||
|
||||
val generatorClasspath by configurations.creating
|
||||
|
||||
dependencies {
|
||||
generatorClasspath(project("visitors-generator"))
|
||||
}
|
||||
|
||||
val generateVisitors by tasks.creating(JavaExec::class) {
|
||||
val generationRoot = "$projectDir/src/org/jetbrains/kotlin/fir/"
|
||||
val output = "$projectDir/visitors"
|
||||
|
||||
Reference in New Issue
Block a user