[Analysis API] Add API for code compilation

The API replaces 'KotlinCompilerIde' in the IntelliJ IDEA plugin.
Code moved to Analysis API as its K2 implementation severely depends on
the internal compiler API (FIR).

The API is going to be used in the JVM debugger evaluator, and in
the Bytecode Tool Window.

In this commit, only ordinary Kotlin are supported.
In later commits, there will be also support for 'KtCodeFragment' files,
as well as some test coverage.
This commit is contained in:
Yan Zhulanow
2023-07-05 22:45:54 +09:00
committed by Space Team
parent 441735c2a8
commit 0f6f22d76b
29 changed files with 1103 additions and 4 deletions
@@ -130,6 +130,10 @@ internal fun TestGroupSuite.generateFirLowLevelApiTests() {
testClass<AbstractClassIdTest> {
model("classId")
}
testClass<AbstractCompilationPeerAnalysisTest> {
model("compilationPeers")
}
}
testGroup(