The Shape of Kotlin
summary
Accidental use of cashtree reveals Kotlin AST shapes (JSON dump of compiler nodes) and enables detecting TornadoFX UI nodes for test generation; AST gives full token structure while PSI omits details. 47 Degrees builds Arrow-meta to intercept AST, layer PSI, expose every KT element via a quote system and templates, and optionally emit IR or bytecode-level transforms. The tooling already lets teams write compiler and IDEA plugins, enable IR, and replace PSI-driven code reliably.
AI-written summary · about
chapters (10)
- 0:00Introduction to AST in Kotlin
- 3:40Kotlin compiler complexity
- 5:05What is an abstract syntax tree
- 7:59Kotlin compiler phases overview
- 12:36AST and Kotlin compiler together
- 16:35AST vs PSI in Kotlin
- 20:12PSI parsing and journey
- 21:36Era Meta project introduction
- 24:07Era Meta features and DSL
- 28:52Future of compiler plugins
