UNPKG

3.6 kBJavaScriptView Raw
1/**
2 * @fileoverview The AST node types produced by the parser.
3 * @author Nicholas C. Zakas
4 */
5
6//------------------------------------------------------------------------------
7// Requirements
8//------------------------------------------------------------------------------
9
10// None!
11
12//------------------------------------------------------------------------------
13// Public
14//------------------------------------------------------------------------------
15
16export default {
17 AssignmentExpression: "AssignmentExpression",
18 AssignmentPattern: "AssignmentPattern",
19 ArrayExpression: "ArrayExpression",
20 ArrayPattern: "ArrayPattern",
21 ArrowFunctionExpression: "ArrowFunctionExpression",
22 AwaitExpression: "AwaitExpression",
23 BlockStatement: "BlockStatement",
24 BinaryExpression: "BinaryExpression",
25 BreakStatement: "BreakStatement",
26 CallExpression: "CallExpression",
27 CatchClause: "CatchClause",
28 ClassBody: "ClassBody",
29 ClassDeclaration: "ClassDeclaration",
30 ClassExpression: "ClassExpression",
31 ConditionalExpression: "ConditionalExpression",
32 ContinueStatement: "ContinueStatement",
33 DoWhileStatement: "DoWhileStatement",
34 DebuggerStatement: "DebuggerStatement",
35 EmptyStatement: "EmptyStatement",
36 ExpressionStatement: "ExpressionStatement",
37 ForStatement: "ForStatement",
38 ForInStatement: "ForInStatement",
39 ForOfStatement: "ForOfStatement",
40 FunctionDeclaration: "FunctionDeclaration",
41 FunctionExpression: "FunctionExpression",
42 Identifier: "Identifier",
43 IfStatement: "IfStatement",
44 Literal: "Literal",
45 LabeledStatement: "LabeledStatement",
46 LogicalExpression: "LogicalExpression",
47 MemberExpression: "MemberExpression",
48 MetaProperty: "MetaProperty",
49 MethodDefinition: "MethodDefinition",
50 NewExpression: "NewExpression",
51 ObjectExpression: "ObjectExpression",
52 ObjectPattern: "ObjectPattern",
53 Program: "Program",
54 Property: "Property",
55 RestElement: "RestElement",
56 ReturnStatement: "ReturnStatement",
57 SequenceExpression: "SequenceExpression",
58 SpreadElement: "SpreadElement",
59 Super: "Super",
60 SwitchCase: "SwitchCase",
61 SwitchStatement: "SwitchStatement",
62 TaggedTemplateExpression: "TaggedTemplateExpression",
63 TemplateElement: "TemplateElement",
64 TemplateLiteral: "TemplateLiteral",
65 ThisExpression: "ThisExpression",
66 ThrowStatement: "ThrowStatement",
67 TryStatement: "TryStatement",
68 UnaryExpression: "UnaryExpression",
69 UpdateExpression: "UpdateExpression",
70 VariableDeclaration: "VariableDeclaration",
71 VariableDeclarator: "VariableDeclarator",
72 WhileStatement: "WhileStatement",
73 WithStatement: "WithStatement",
74 YieldExpression: "YieldExpression",
75 JSXIdentifier: "JSXIdentifier",
76 JSXNamespacedName: "JSXNamespacedName",
77 JSXMemberExpression: "JSXMemberExpression",
78 JSXEmptyExpression: "JSXEmptyExpression",
79 JSXExpressionContainer: "JSXExpressionContainer",
80 JSXElement: "JSXElement",
81 JSXClosingElement: "JSXClosingElement",
82 JSXOpeningElement: "JSXOpeningElement",
83 JSXAttribute: "JSXAttribute",
84 JSXSpreadAttribute: "JSXSpreadAttribute",
85 JSXText: "JSXText",
86 ExportDefaultDeclaration: "ExportDefaultDeclaration",
87 ExportNamedDeclaration: "ExportNamedDeclaration",
88 ExportAllDeclaration: "ExportAllDeclaration",
89 ExportSpecifier: "ExportSpecifier",
90 ImportDeclaration: "ImportDeclaration",
91 ImportSpecifier: "ImportSpecifier",
92 ImportDefaultSpecifier: "ImportDefaultSpecifier",
93 ImportNamespaceSpecifier: "ImportNamespaceSpecifier"
94};