Hi all,
Can anyone please point me at some code that uses the Sema interface?
What I’d like to achieve at this point is a printout of all integer variables in the code and all mutations performed on them.
Thanks in advance, and sorry if such a thing exists in an obvious place I missed.
Tzafrir Rehan.
Hi all,
Can anyone please point me at some code that uses the Sema interface?
Hi Tzafrir,
Sema is really a private interface used by the Parser to construct the AST. You probably don't want to interact with it directly.
What I'd like to achieve at this point is a printout of all integer variables in the code and all mutations performed on them.
The best way to walk the AST is to write an ASTConsumer. With it, you can walk the AST and find all the integer variables etc.
-Chris
Thanks, that clarifies things a bit.