Module AST
Provides classes for working with the AST-based representation of JavaScript programs.
Import path
import semmle.javascript.AST
Imports
javascript |
Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML. |
Classes
AstNode |
A program element corresponding to JavaScript code, such as an expression or a statement. |
CodeInAttribute |
A code snippet originating from an HTML attribute value. |
EventHandlerCode |
A code snippet originating from an event handler attribute. |
ExprOrStmt |
A program element that is either an expression or a statement. |
ExternalScript |
A stand-alone file or an external script originating from an HTML |
Externs |
A toplevel syntactic entity containing Closure-style externs definitions. |
InlineScript |
A script embedded inline in an HTML |
JavaScriptUrl |
A code snippet originating from a URL with the |
Script |
A stand-alone file or script originating from an HTML |
StmtContainer |
A program element that contains statements, but isn’t itself a statement, in other words a toplevel or a function. |
TopLevel |
A toplevel syntactic unit; that is, a stand-alone script, an inline script embedded in an HTML |
Modules
AST |
Provides a class |
Aliases
ASTNode |
DEPRECATED: Alias for AstNode |
JavaScriptURL |
DEPRECATED: Alias for JavaScriptUrl |