UNPKG

6.32 kBJavaScriptView Raw
1/**
2 * @fileoverview The AST node types produced by the parser.
3 * @author Nicholas C. Zakas
4 * @author James Henry <https://github.com/JamesHenry>
5 * @copyright jQuery Foundation and other contributors, https://jquery.org/
6 * MIT License
7 */
8
9"use strict";
10
11//------------------------------------------------------------------------------
12// Requirements
13//------------------------------------------------------------------------------
14
15// None!
16
17//------------------------------------------------------------------------------
18// Public
19//------------------------------------------------------------------------------
20
21module.exports = {
22 ArrayExpression: "ArrayExpression",
23 ArrayPattern: "ArrayPattern",
24 ArrowFunctionExpression: "ArrowFunctionExpression",
25 AssignmentExpression: "AssignmentExpression",
26 AssignmentPattern: "AssignmentPattern",
27 AwaitExpression: "AwaitExpression",
28 BinaryExpression: "BinaryExpression",
29 BlockStatement: "BlockStatement",
30 BreakStatement: "BreakStatement",
31 CallExpression: "CallExpression",
32 CatchClause: "CatchClause",
33 ClassBody: "ClassBody",
34 ClassDeclaration: "ClassDeclaration",
35 ClassExpression: "ClassExpression",
36 ClassImplements: "ClassImplements",
37 ClassProperty: "ClassProperty",
38 ConditionalExpression: "ConditionalExpression",
39 ContinueStatement: "ContinueStatement",
40 DebuggerStatement: "DebuggerStatement",
41 DeclareFunction: "DeclareFunction",
42 Decorator: "Decorator",
43 DoWhileStatement: "DoWhileStatement",
44 EmptyStatement: "EmptyStatement",
45 ExperimentalRestProperty: "ExperimentalRestProperty",
46 ExperimentalSpreadProperty: "ExperimentalSpreadProperty",
47 ExportAllDeclaration: "ExportAllDeclaration",
48 ExportDefaultDeclaration: "ExportDefaultDeclaration",
49 ExportNamedDeclaration: "ExportNamedDeclaration",
50 ExportSpecifier: "ExportSpecifier",
51 ExpressionStatement: "ExpressionStatement",
52 ForInStatement: "ForInStatement",
53 ForOfStatement: "ForOfStatement",
54 ForStatement: "ForStatement",
55 FunctionDeclaration: "FunctionDeclaration",
56 FunctionExpression: "FunctionExpression",
57 GenericTypeAnnotation: "GenericTypeAnnotation",
58 Identifier: "Identifier",
59 IfStatement: "IfStatement",
60 Import: "Import",
61 ImportDeclaration: "ImportDeclaration",
62 ImportDefaultSpecifier: "ImportDefaultSpecifier",
63 ImportNamespaceSpecifier: "ImportNamespaceSpecifier",
64 ImportSpecifier: "ImportSpecifier",
65 JSXAttribute: "JSXAttribute",
66 JSXClosingElement: "JSXClosingElement",
67 JSXElement: "JSXElement",
68 JSXEmptyExpression: "JSXEmptyExpression",
69 JSXExpressionContainer: "JSXExpressionContainer",
70 JSXIdentifier: "JSXIdentifier",
71 JSXMemberExpression: "JSXMemberExpression",
72 JSXNamespacedName: "JSXNamespacedName",
73 JSXOpeningElement: "JSXOpeningElement",
74 JSXSpreadAttribute: "JSXSpreadAttribute",
75 JSXText: "JSXText",
76 LabeledStatement: "LabeledStatement",
77 Literal: "Literal",
78 LogicalExpression: "LogicalExpression",
79 MemberExpression: "MemberExpression",
80 MetaProperty: "MetaProperty",
81 MethodDefinition: "MethodDefinition",
82 NewExpression: "NewExpression",
83 ObjectExpression: "ObjectExpression",
84 ObjectPattern: "ObjectPattern",
85 Program: "Program",
86 Property: "Property",
87 RestElement: "RestElement",
88 ReturnStatement: "ReturnStatement",
89 SequenceExpression: "SequenceExpression",
90 SpreadElement: "SpreadElement",
91 Super: "Super",
92 SwitchCase: "SwitchCase",
93 SwitchStatement: "SwitchStatement",
94 TaggedTemplateExpression: "TaggedTemplateExpression",
95 TemplateElement: "TemplateElement",
96 TemplateLiteral: "TemplateLiteral",
97 ThisExpression: "ThisExpression",
98 ThrowStatement: "ThrowStatement",
99 TryStatement: "TryStatement",
100 /**
101 * TS-prefixed nodes
102 */
103 TSAbstractClassProperty: "TSAbstractClassProperty",
104 TSAbstractKeyword: "TSAbstractKeyword",
105 TSAbstractMethodDefinition: "TSAbstractMethodDefinition",
106 TSAnyKeyword: "TSAnyKeyword",
107 TSArrayType: "TSArrayType",
108 TSAsyncKeyword: "TSAsyncKeyword",
109 TSBooleanKeyword: "TSBooleanKeyword",
110 TSConstructorType: "TSConstructorType",
111 TSConstructSignature: "TSConstructSignature",
112 TSDeclareKeyword: "TSDeclareKeyword",
113 TSEnumDeclaration: "TSEnumDeclaration",
114 TSEnumMember: "TSEnumMember",
115 TSExportAssignment: "TSExportAssignment",
116 TSExportKeyword: "TSExportKeyword",
117 TSIndexSignature: "TSIndexSignature",
118 TSInterfaceBody: "TSInterfaceBody",
119 TSInterfaceDeclaration: "TSInterfaceDeclaration",
120 TSInterfaceHeritage: "TSInterfaceHeritage",
121 TSFunctionType: "TSFunctionType",
122 TSMethodSignature: "TSMethodSignature",
123 TSModuleBlock: "TSModuleBlock",
124 TSModuleDeclaration: "TSModuleDeclaration",
125 TSNamespaceFunctionDeclaration: "TSNamespaceFunctionDeclaration",
126 TSNonNullExpression: "TSNonNullExpression",
127 TSNeverKeyword: "TSNeverKeyword",
128 TSNullKeyword: "TSNullKeyword",
129 TSNumberKeyword: "TSNumberKeyword",
130 TSObjectKeyword: "TSObjectKeyword",
131 TSParameterProperty: "TSParameterProperty",
132 TSPrivateKeyword: "TSPrivateKeyword",
133 TSPropertySignature: "TSPropertySignature",
134 TSProtectedKeyword: "TSProtectedKeyword",
135 TSPublicKeyword: "TSPublicKeyword",
136 TSQualifiedName: "TSQualifiedName",
137 TSQuestionToken: "TSQuestionToken",
138 TSReadonlyKeyword: "TSReadonlyKeyword",
139 TSStaticKeyword: "TSStaticKeyword",
140 TSStringKeyword: "TSStringKeyword",
141 TSSymbolKeyword: "TSSymbolKeyword",
142 TSTypeAnnotation: "TSTypeAnnotation",
143 TSTypeLiteral: "TSTypeLiteral",
144 TSTypeOperator: "TSTypeOperator",
145 TSTypeParameter: "TSTypeParameter",
146 TSTypeParameterDeclaration: "TSTypeParameterDeclaration",
147 TSTypeParameterInstantiation: "TSTypeParameterInstantiation",
148 TSTypePredicate: "TSTypePredicate",
149 TSTypeReference: "TSTypeReference",
150 TSUnionType: "TSUnionType",
151 TSUndefinedKeyword: "TSUndefinedKeyword",
152 TSVoidKeyword: "TSVoidKeyword",
153 UnaryExpression: "UnaryExpression",
154 UpdateExpression: "UpdateExpression",
155 VariableDeclaration: "VariableDeclaration",
156 VariableDeclarator: "VariableDeclarator",
157 WhileStatement: "WhileStatement",
158 WithStatement: "WithStatement",
159 YieldExpression: "YieldExpression"
160};