Make a structure for frontend visualizer

Created visualizer module in compiler. It will contain basic tests for renderer. Additionally added three different modules in visualizer:
1) psi - will contain renderer for old frontend
2) fir - renderer for new frontend
3) common - will contain common code for both renderers
This commit is contained in:
Ivan Cilcic
2019-08-06 14:43:57 +03:00
committed by Mikhail Glukhikh
parent e895a0b8a0
commit 77c330d94e
5 changed files with 72 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
plugins {
kotlin("jvm")
}
dependencies {
testRuntime(intellijDep())
testCompile(project(":compiler:visualizer:render-psi"))
testCompile(project(":compiler:visualizer:render-fir"))
testCompile(project(":compiler:visualizer:common"))
testCompile(commonDep("junit:junit"))
testCompile(projectTests(":compiler:tests-common"))
testCompile(projectTests(":compiler:fir:resolve"))
}
sourceSets {
"main" {}
"test" { projectDefault() }
}
projectTest {
workingDir = rootDir
}
testsJar()
@@ -0,0 +1,13 @@
plugins {
kotlin("jvm")
}
dependencies {
compile(project(":compiler:frontend"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
}
sourceSets {
"main" { projectDefault() }
"test" { }
}
@@ -0,0 +1,15 @@
plugins {
kotlin("jvm")
}
dependencies {
compile(project(":compiler:fir:psi2fir"))
compile(project(":compiler:fir:resolve"))
compile(project(":compiler:visualizer:common"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
}
sourceSets {
"main" { projectDefault() }
"test" { }
}
@@ -0,0 +1,13 @@
plugins {
kotlin("jvm")
}
dependencies {
compile(project(":compiler:visualizer:common"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
}
sourceSets {
"main" { projectDefault() }
"test" { }
}
+4
View File
@@ -35,6 +35,10 @@ include ":kotlin-build-common",
":compiler:resolution",
":compiler:serialization",
":compiler:psi",
":compiler:visualizer",
":compiler:visualizer:common",
":compiler:visualizer:render-fir",
":compiler:visualizer:render-psi",
":compiler:fir:cones",
":compiler:fir:tree",
":compiler:fir:tree:visitors-generator",