JetBrains / kotlin-playground

Self-contained component to embed in websites for running Kotlin code
https://jetbrains.github.io/kotlin-playground/examples/
Apache License 2.0
447 stars 80 forks source link

Add AST display as a "fake target" #213

Open sschuberth opened 2 months ago

sschuberth commented 2 months ago

Sometimes it's useful to see the Abstract Syntax Tree (AST) for some code, e.g. when writing detekt / ktlint rules. It would be great if the playground could add the ASP display as a "fake target" and make it look similar to ktlint's (by now removed again, in favor of PsiViewer) --print-ast output.