JavaScript/TypeScript Objects
AST Type mapping
An AST JavaScript specifies the type of object being processed. There is the mapping between the object type and the link to the documentation.
info
The following objects are valid for JavaScript AND TypeScript.
AST Rule Type | JavaScript Object |
---|---|
Class Definition | ClassDefinition |
Function Call | FunctionCall |
Function Definition | FunctionDefinition |
HTML Element | HTML Element |
If Condition | IfCondition |
For Loop | ForStatement |
Try Block | TryBlock |
Assignment | Assignment |
Variable Declaration | VariableDeclaration |