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