You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tree-sitter parser for Kotlin is quite unreliable.
In many cases, it generates ERROR nodes (more details in the issue below) bonede/tree-sitter-ng#108
and it also parses functional interfaces as functions.
The tree-sitter parser for Kotlin is quite unreliable.
In many cases, it generates
ERRORnodes (more details in the issue below)bonede/tree-sitter-ng#108
and it also parses
functional interfacesasfunctions.I would strongly recommend to use
kotlin-compiler-embeddablehttps://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-compiler-embeddable/versions?repo=central
for generating the AST.
It provides a
org.jetbrains.kotlin.psi.KtVisitorParsing is easy as follows: