A prototype of a language server using the new analysis APIs can be found in the kotlin-analysis-server repo. Note that this is not production ready and mostly intended as a playground for experimentation currently.
The Kotlin frontend is currently undergoing large architectural changes with the migration to FIR and will provide some new APIs for IDE-related usage that we could hook into, once ready.
The interesting modules seem to be mostly located in analysis (in the Kotlin repo). Useful resources:
Update (June 2022):
A prototype of a language server using the new analysis APIs can be found in the
kotlin-analysis-server
repo. Note that this is not production ready and mostly intended as a playground for experimentation currently.The Kotlin frontend is currently undergoing large architectural changes with the migration to FIR and will provide some new APIs for IDE-related usage that we could hook into, once ready.
The interesting modules seem to be mostly located in
analysis
(in the Kotlin repo). Useful resources:KtAnalysisSession
fromanalysis
analysis-api-standalone
projectbuild.gradle.kts
for an example of the Maven repos and dependencies needed for the analysis APImain
method for an example how to bootstrap the compiler/analysis APIsThe road to the K2 compiler