Module printAst
Provides queries to pretty-print a Ruby abstract syntax tree as a graph.
By default, this will print the AST for all nodes in the database. To change
this behavior, extend PrintASTConfiguration
and override shouldPrintNode
to hold for only the AST nodes you wish to view.
Import path
import codeql.ruby.printAst
Predicates
edges | Holds if |
graphProperties | Holds if property |
nodes | Holds if |
Classes
PrintAstConfiguration | The query can extend this class to control which nodes are printed. |
PrintAstNode | A node in the output tree. |
PrintRegExpNode | A parsed regexp node in the output tree. |
PrintRegularAstNode | An |