Ruby syntaxtree: Difference between revisions

From wikinotes
No edit summary
No edit summary
Line 2: Line 2:


node-types all defined within [https://github.com/ruby-syntax-tree/syntax_tree/blob/main/lib/syntax_tree/node.rb node.rb]
node-types all defined within [https://github.com/ruby-syntax-tree/syntax_tree/blob/main/lib/syntax_tree/node.rb node.rb]
<source lang="bash">
stree search 'VarRef[value: Const[value: "MyModule"]]' **/*.rb
</source>

Revision as of 16:28, 4 October 2023

a very fast ruby ast

node-types all defined within node.rb


stree search 'VarRef[value: Const[value: "MyModule"]]' **/*.rb