Module PrintAst
Provides queries to pretty-print a JavaScript AST as a graph.
By default, this will print the AST for all elements in the database. To change this behavior,
extend PrintAstConfiguration and override shouldPrint to hold for only the elements
you wish to view the AST for.
Import path
import semmle.javascript.PrintAstImports
| javascript | Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML. |
Predicates
| edges | Holds if |
| graphProperties | Holds if property |
| nodes | Holds if |
Classes
| PrintAstConfiguration | The query can extend this class to control which elements are printed. |
| PrintAstNode | A node in the output tree. |
| TopLevelPrintAstNode | A top-level AST node. |