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:
Simon Ogorodnik
2018-03-15 15:34:14 +03:00
committed by Mikhail Glukhikh
parent e5f0f2489f
commit 8a5a43d670
14 changed files with 422 additions and 3 deletions
+6 -3
View File
@@ -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"