yxliang

Results 110 comments of yxliang

@federicobond Like if you want to write a custom traverser of the AST tree, this function can provide information like whether an attribute of a node is yet another AST...

@federicobond I basically need the object path of each AST node in the AST tree. So that, I can directly visit the previous node visited node by the object path....

I see. Thanks for pointing this. But, this is quite inefficient given that need to traverse the AST for once more and increases memory space by quite much I feel....

@federicobond any suggestion for what should be done for this issue? Otherwise, this will be stale :(

@federicobond I am also happy to contribute to that :) . Will do it bit latter after I have done my current important tasks.

To be sure, @federicobond did you mean passing the parent node object to the visitor? Or, the object path for the whole AST(my need)?

The `getText` method shown in the example looks pretty useful :)

@federicobond Sure. It sounds good. I will do it tomorrow. But, since you are aware of this typing thing going on, would you think it's a good idea to bring...

@federicobond Please see https://github.com/federicobond/solidity-parser-antlr/issues/48 and the created PR as the begin of this effort.

I had a deeper look at the ANTLR grammar and feel like it doesn't really define the structural constraint of the Solidity language. So, it indeed doesn't look like we...