kastree icon indicating copy to clipboard operation
kastree copied to clipboard

Simple Kotlin Source AST and Syntax Parsing, Editing, and Writing

Results 13 kastree issues
Sort by recently updated
recently updated
newest added

Hi everyone, is there anyone who can tell me why I have this error message when I try to run the simple example ``` Exception in thread "main" java.lang.IllegalStateException: LOGGING:...

When running kastree on Java 11, an error occurs; it looks something like this: `Exception in thread "main" java.lang.IllegalStateException: LOGGING: Loading modules: [] (no MessageCollector configured)` This fixes this issue...

How to get the location of the node? Ex: * Start Line no * End Line no * Start Char no of line * End Char no of line

In `Modify nodes`, the documentation states > Note, since extraMap support relies on object identities and this creates entirely new objects in the immutable tree, the extra map becomes invalid...

Example: this expression: `throw SQLException("Failed to query file $this")` after Parsing and using Writer.write will originate the following statement: `throw SQLException("Failed to query file $`this`")`

That code can not be parsed: ``` @Suppress("unused") // @JsName("daName") fun myname(){ .... ``` If the both annotations are switched, it works just fine. --> The exception occurs if: -...

Bumps the Kotlin version to 1.3.41 as I had problems using the kastree library in projects that are built against latest Kotlin.

I found this, and I'd like to use it as part of a toy compiler plugin that I'm writing, but it seems as though Converter only converts from the PSI...

Hey, I'd like to make use of this library to parse Kotlin AST in a nodejs app, could someone add a gradle build task to compile it to js?

Please consider adding examples for simple tasks. For instance, an example how to list all classes within a source tree would be a nice example.