Module printAst
Provides queries to pretty-print an Kaleidoscope 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.actions.ideContextual.printAstPredicates
| 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. |
| PrintRegularAstNode | An |