Dennis Rieks

Results 48 comments of Dennis Rieks

Hi @lululu016, sorry for my late answer. It is possible to implement the missing code here in kotlinx.ast. There are many unit tests and it is easy to add new...

Hi @lululu016, this is great! I will try to write some more examples.

Hi @lululu016, I think I have currently no time to write a documentation, but a step by step way sounds good. Thank you! The first step is adding the transformation...

Hi @lululu016 , I added a transformation from functionBody to KlassBlock. The Implementation is not finished, currently, only a dummy comment is added as an example: ``` // functionBody //...

Hi @lululu016 , in commit https://github.com/drieks/ast/commit/fe52ba7f31f26f177cb16d6e325faaf3344598ad I added a new class `KlassBlock`. The idea is to represent a code block using this class, so every function should contain a `KlassBlock`....

In the next commit (https://github.com/drieks/ast/commit/7c79d0a0a433ecaf886c9a5ff5e3243d831c2e3d) I added the "real" implementation for the "functionBody" transformation. `recursiveFlatten` will recursively transform all child nodes of the passed `node`. `recursiveChildren` will return the "same"...

Hi ShreckYe, yes, `kotlinx.ast` it is not releated to JetBrains. I will see if I can find another name.

Hi @henrikbarium, thank you for reporting, I will fix it.

Hi @henrikbarium, should be working now. Some AST-Nodes were dropping "unrelated" AST-Nodes, but comments were handled as unrelated. I changed this "related" filter and added a new comment filter to...

Hi @saintjab, the unittest for kotlinx.ast are implemented in this way, a normal unittest that will read a file, parse the ast and then it will dump it. You can...