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
455 stars 83 forks source link

Add AST display as a "fake target" #213

Open sschuberth opened 4 months ago

sschuberth commented 4 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.