UNPKG

oxc-parser

Version:
195 lines (192 loc) 5.6 kB
// Auto-generated code, DO NOT EDIT DIRECTLY! // To edit this generated file you have to edit `tasks/ast_tools/src/generators/raw_transfer_lazy.rs`. // Mapping from node type name to node type ID export const NODE_TYPE_IDS_MAP = new Map([ // Leaf nodes ["IdentifierName", 0], ["IdentifierReference", 1], ["BindingIdentifier", 2], ["LabelIdentifier", 3], ["ThisExpression", 4], ["Elision", 5], ["TemplateElement", 6], ["ImportMeta", 7], ["NewTarget", 8], ["Super", 9], ["Hashbang", 10], ["EmptyStatement", 11], ["DebuggerStatement", 12], ["PrivateIdentifier", 13], ["BooleanLiteral", 14], ["NullLiteral", 15], ["NumericLiteral", 16], ["StringLiteral", 17], ["BigIntLiteral", 18], ["RegExpLiteral", 19], ["JSXOpeningFragment", 20], ["JSXClosingFragment", 21], ["JSXEmptyExpression", 22], ["JSXIdentifier", 23], ["JSXText", 24], ["TSAnyKeyword", 25], ["TSStringKeyword", 26], ["TSBooleanKeyword", 27], ["TSNumberKeyword", 28], ["TSNeverKeyword", 29], ["TSIntrinsicKeyword", 30], ["TSUnknownKeyword", 31], ["TSNullKeyword", 32], ["TSUndefinedKeyword", 33], ["TSVoidKeyword", 34], ["TSSymbolKeyword", 35], ["TSThisType", 36], ["TSObjectKeyword", 37], ["TSBigIntKeyword", 38], ["JSDocUnknownType", 39], // Non-leaf nodes ["Program", 40], ["ArrayExpression", 41], ["ObjectExpression", 42], ["ObjectProperty", 43], ["TemplateLiteral", 44], ["TaggedTemplateExpression", 45], ["ComputedMemberExpression", 46], ["StaticMemberExpression", 47], ["PrivateFieldExpression", 48], ["CallExpression", 49], ["NewExpression", 50], ["SpreadElement", 51], ["UpdateExpression", 52], ["UnaryExpression", 53], ["BinaryExpression", 54], ["PrivateInExpression", 55], ["LogicalExpression", 56], ["ConditionalExpression", 57], ["AssignmentExpression", 58], ["ArrayAssignmentTarget", 59], ["ObjectAssignmentTarget", 60], ["AssignmentTargetWithDefault", 61], ["AssignmentTargetPropertyIdentifier", 62], ["AssignmentTargetPropertyProperty", 63], ["SequenceExpression", 64], ["AwaitExpression", 65], ["ChainExpression", 66], ["ParenthesizedExpression", 67], ["BlockStatement", 68], ["VariableDeclaration", 69], ["VariableDeclarator", 70], ["ExpressionStatement", 71], ["IfStatement", 72], ["DoWhileStatement", 73], ["WhileStatement", 74], ["ForStatement", 75], ["ForInStatement", 76], ["ForOfStatement", 77], ["ContinueStatement", 78], ["BreakStatement", 79], ["ReturnStatement", 80], ["WithStatement", 81], ["SwitchStatement", 82], ["SwitchCase", 83], ["LabeledStatement", 84], ["ThrowStatement", 85], ["TryStatement", 86], ["CatchClause", 87], ["AssignmentPattern", 88], ["ObjectPattern", 89], ["BindingProperty", 90], ["ArrayPattern", 91], ["Function", 92], ["FormalParameters", 93], ["FunctionBody", 94], ["ArrowFunctionExpression", 95], ["YieldExpression", 96], ["Class", 97], ["ClassBody", 98], ["MethodDefinition", 99], ["PropertyDefinition", 100], ["StaticBlock", 101], ["AccessorProperty", 102], ["ImportExpression", 103], ["ImportDeclaration", 104], ["ImportSpecifier", 105], ["ImportDefaultSpecifier", 106], ["ImportNamespaceSpecifier", 107], ["ImportAttribute", 108], ["ExportDeclaration", 109], ["ExportNamedDeclaration", 110], ["ExportFromDeclaration", 111], ["ExportDefaultDeclaration", 112], ["ExportAllDeclaration", 113], ["ExportSpecifier", 114], ["V8IntrinsicExpression", 115], ["JSXElement", 116], ["JSXOpeningElement", 117], ["JSXClosingElement", 118], ["JSXFragment", 119], ["JSXNamespacedName", 120], ["JSXMemberExpression", 121], ["JSXExpressionContainer", 122], ["JSXAttribute", 123], ["JSXSpreadAttribute", 124], ["JSXSpreadChild", 125], ["TSEnumDeclaration", 126], ["TSEnumBody", 127], ["TSEnumMember", 128], ["TSTypeAnnotation", 129], ["TSLiteralType", 130], ["TSConditionalType", 131], ["TSUnionType", 132], ["TSIntersectionType", 133], ["TSParenthesizedType", 134], ["TSTypeOperator", 135], ["TSArrayType", 136], ["TSIndexedAccessType", 137], ["TSTupleType", 138], ["TSNamedTupleMember", 139], ["TSOptionalType", 140], ["TSRestType", 141], ["TSTypeReference", 142], ["TSQualifiedName", 143], ["TSTypeParameterInstantiation", 144], ["TSTypeParameter", 145], ["TSTypeParameterDeclaration", 146], ["TSTypeAliasDeclaration", 147], ["TSClassImplements", 148], ["TSInterfaceDeclaration", 149], ["TSInterfaceBody", 150], ["TSPropertySignature", 151], ["TSIndexSignature", 152], ["TSCallSignatureDeclaration", 153], ["TSMethodSignature", 154], ["TSConstructSignatureDeclaration", 155], ["TSIndexSignatureName", 156], ["TSInterfaceHeritage", 157], ["TSTypePredicate", 158], ["TSModuleDeclaration", 159], ["TSGlobalDeclaration", 160], ["TSModuleBlock", 161], ["TSTypeLiteral", 162], ["TSInferType", 163], ["TSTypeQuery", 164], ["TSImportType", 165], ["TSImportTypeQualifiedName", 166], ["TSFunctionType", 167], ["TSConstructorType", 168], ["TSMappedType", 169], ["TSTemplateLiteralType", 170], ["TSAsExpression", 171], ["TSSatisfiesExpression", 172], ["TSTypeAssertion", 173], ["TSImportEqualsDeclaration", 174], ["TSExternalModuleReference", 175], ["TSNonNullExpression", 176], ["Decorator", 177], ["TSExportAssignment", 178], ["TSNamespaceExportDeclaration", 179], ["TSInstantiationExpression", 180], ["JSDocNullableType", 181], ["JSDocNonNullableType", 182], ]); export const NODE_TYPES_COUNT = 183; export const LEAF_NODE_TYPES_COUNT = 40;