Dennis Rieks
Dennis Rieks
Hi @raulraja, `kotlinx.ast` is a replacement for `kastree`. It is a new library and currently only parsing is supported. The difference is that `kotlinx.ast` is using `antlr` for parsing, not...
It is possible to implement an isomorphism between PSI and `kotlinx.ast`. The library is written language independent, it is also possible to implement... maybe a Java AST parser. You can...
I just found [KEEP-87](https://github.com/Kotlin/KEEP/pull/87) / https://github.com/arrow-kt/kotlin/pull/6. It is possible to extend `kotlinx.ast` to parse this syntax: ``` // Kotlin + KEEP-87 extension class WrapperSemigroup(with val semigroup: Semigroup) : Semigroup {...
Hi @saudet, thank you for the patch! I already tried a manually patched version and I found another problem. My Plan is to write a class `MyApplication` that extends `QApplication`...
Hi @saudet , I added an example, please have a look. It should just print "customEvent", but it will crash with a stack overflow. The Event Loop `QApplication::exec()` will deliver...
Hi @saudet, thank you very much, the virtual stuff is working now! But there is still another problem. When you set a breakpoint in function customEvent in my example application,...
https://raw.githubusercontent.com/drieks/javacpp-presets/master/qt/samples/ExampleApplication.java
Hi @rajatpundir, sorry for the late response. Adding the line number should be easy, I will look into this. Parsing the body of a function is currently not possible, but...
Hi @rajatpundir, I added support for line/row information and buffer index offset. You can find examples here: https://github.com/kotlinx/ast/tree/master/grammar-kotlin-parser-test/src/commonMain/resources/testdata The Kotlin source can be found in `*.kt.txt`, eg. in https://github.com/kotlinx/ast/blob/master/grammar-kotlin-parser-test/src/commonMain/resources/testdata/Class.kt.txt, the...
> And how can I get the AST representing statements inside the method? Sadly, there are only some summary nodes, but the full kotlin language is currently not covered. I'm...