Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2
*
3
* This Source Code Form is subject to the terms of the Mozilla Public
4
* License, v. 2.0. If a copy of the MPL was not distributed with this
5
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
/* AST_ERROR = -1 */
8
9
ASTDEF(AST_PROGRAM, "Program", "program")
10
11
ASTDEF(AST_IDENTIFIER, "Identifier", "identifier")
12
ASTDEF(AST_LITERAL, "Literal", "literal")
13
ASTDEF(AST_PROPERTY, "Property", "property")
14
ASTDEF(AST_PROTOTYPEMUTATION, "PrototypeMutation", "prototypeMutation")
15
16
ASTDEF(AST_MODULE_DECL, "ModuleDeclaration", "moduleDeclaration")
17
ASTDEF(AST_FUNC_DECL, "FunctionDeclaration", "functionDeclaration")
18
ASTDEF(AST_VAR_DECL, "VariableDeclaration", "variableDeclaration")
19
ASTDEF(AST_VAR_DTOR, "VariableDeclarator", "variableDeclarator")
20
21
ASTDEF(AST_LIST_EXPR, "SequenceExpression", "sequenceExpression")
22
ASTDEF(AST_COND_EXPR, "ConditionalExpression", "conditionalExpression")
23
ASTDEF(AST_UNARY_EXPR, "UnaryExpression", "unaryExpression")
24
ASTDEF(AST_BINARY_EXPR, "BinaryExpression", "binaryExpression")
25
ASTDEF(AST_ASSIGN_EXPR, "AssignmentExpression", "assignmentExpression")
26
ASTDEF(AST_LOGICAL_EXPR, "LogicalExpression", "logicalExpression")
27
ASTDEF(AST_UPDATE_EXPR, "UpdateExpression", "updateExpression")
28
ASTDEF(AST_NEW_EXPR, "NewExpression", "newExpression")
29
ASTDEF(AST_CALL_EXPR, "CallExpression", "callExpression")
30
ASTDEF(AST_MEMBER_EXPR, "MemberExpression", "memberExpression")
31
ASTDEF(AST_FUNC_EXPR, "FunctionExpression", "functionExpression")
32
ASTDEF(AST_ARROW_EXPR, "ArrowFunctionExpression", "arrowFunctionExpression")
33
ASTDEF(AST_ARRAY_EXPR, "ArrayExpression", "arrayExpression")
34
ASTDEF(AST_SPREAD_EXPR, "SpreadExpression", "spreadExpression")
35
ASTDEF(AST_OBJECT_EXPR, "ObjectExpression", "objectExpression")
36
ASTDEF(AST_THIS_EXPR, "ThisExpression", "thisExpression")
37
ASTDEF(AST_YIELD_EXPR, "YieldExpression", "yieldExpression")
38
ASTDEF(AST_CLASS_EXPR, "ClassExpression", "classExpression")
39
ASTDEF(AST_METAPROPERTY, "MetaProperty", "metaProperty")
40
ASTDEF(AST_SUPER, "Super", "super")
41
ASTDEF(AST_CALL_IMPORT, "CallImport", "callImport")
42
43
ASTDEF(AST_EMPTY_STMT, "EmptyStatement", "emptyStatement")
44
ASTDEF(AST_BLOCK_STMT, "BlockStatement", "blockStatement")
45
ASTDEF(AST_EXPR_STMT, "ExpressionStatement", "expressionStatement")
46
ASTDEF(AST_LAB_STMT, "LabeledStatement", "labeledStatement")
47
ASTDEF(AST_IF_STMT, "IfStatement", "ifStatement")
48
ASTDEF(AST_SWITCH_STMT, "SwitchStatement", "switchStatement")
49
ASTDEF(AST_WHILE_STMT, "WhileStatement", "whileStatement")
50
ASTDEF(AST_DO_STMT, "DoWhileStatement", "doWhileStatement")
51
ASTDEF(AST_FOR_STMT, "ForStatement", "forStatement")
52
ASTDEF(AST_FOR_IN_STMT, "ForInStatement", "forInStatement")
53
ASTDEF(AST_FOR_OF_STMT, "ForOfStatement", "forOfStatement")
54
ASTDEF(AST_BREAK_STMT, "BreakStatement", "breakStatement")
55
ASTDEF(AST_CONTINUE_STMT, "ContinueStatement", "continueStatement")
56
ASTDEF(AST_WITH_STMT, "WithStatement", "withStatement")
57
ASTDEF(AST_RETURN_STMT, "ReturnStatement", "returnStatement")
58
ASTDEF(AST_TRY_STMT, "TryStatement", "tryStatement")
59
ASTDEF(AST_THROW_STMT, "ThrowStatement", "throwStatement")
60
ASTDEF(AST_DEBUGGER_STMT, "DebuggerStatement", "debuggerStatement")
61
ASTDEF(AST_LET_STMT, "LetStatement", "letStatement")
62
ASTDEF(AST_IMPORT_DECL, "ImportDeclaration", "importDeclaration")
63
ASTDEF(AST_IMPORT_SPEC, "ImportSpecifier", "importSpecifier")
64
ASTDEF(AST_EXPORT_DECL, "ExportDeclaration", "exportDeclaration")
65
ASTDEF(AST_EXPORT_SPEC, "ExportSpecifier", "exportSpecifier")
66
ASTDEF(AST_EXPORT_BATCH_SPEC, "ExportBatchSpecifier", "exportBatchSpecifier")
67
68
ASTDEF(AST_CASE, "SwitchCase", "switchCase")
69
ASTDEF(AST_CATCH, "CatchClause", "catchClause")
70
71
ASTDEF(AST_ARRAY_PATT, "ArrayPattern", "arrayPattern")
72
ASTDEF(AST_OBJECT_PATT, "ObjectPattern", "objectPattern")
73
ASTDEF(AST_PROP_PATT, "Property", "propertyPattern")
74
ASTDEF(AST_TEMPLATE_LITERAL, "TemplateLiteral", "templateLiteral")
75
ASTDEF(AST_TAGGED_TEMPLATE, "TaggedTemplate", "taggedTemplate")
76
ASTDEF(AST_CALL_SITE_OBJ, "CallSiteObject", "callSiteObject")
77
ASTDEF(AST_COMPUTED_NAME, "ComputedName", "computedName")
78
79
ASTDEF(AST_CLASS_STMT, "ClassStatement", "classStatement")
80
ASTDEF(AST_CLASS_METHOD, "ClassMethod", "classMethod")
81
ASTDEF(AST_CLASS_FIELD, "ClassField", "classField")
82
/* AST_LIMIT = last + 1 */