|
| 1 | +// see: https://github.com/estree/estree/blob/master/es2025.md |
| 2 | +module.exports = { |
| 3 | + ArrayExpression: ['type', 'elements'], |
| 4 | + ArrayPattern: ['type', 'elements'], |
| 5 | + ArrowFunctionExpression: ['type', 'id', 'params', 'body', 'generator', 'expression', 'async'], |
| 6 | + AssignmentExpression: ['type', 'operator', 'left', 'right'], |
| 7 | + AssignmentPattern: ['type', 'left', 'right'], |
| 8 | + AwaitExpression: ['type', 'argument'], |
| 9 | + BinaryExpression: ['type', 'operator', 'left', 'right'], |
| 10 | + BlockStatement: ['type', 'body'], |
| 11 | + BreakStatement: ['type', 'label'], |
| 12 | + CallExpression: ['type', 'callee', 'arguments', 'optional'], |
| 13 | + CatchClause: ['type', 'param', 'body'], |
| 14 | + ChainExpression: ['type', 'expression'], |
| 15 | + ClassBody: ['type', 'body'], |
| 16 | + ClassDeclaration: ['type', 'id', 'superClass', 'body'], |
| 17 | + ClassExpression: ['type', 'id', 'superClass', 'body'], |
| 18 | + ConditionalExpression: ['type', 'test', 'consequent', 'alternate'], |
| 19 | + ContinueStatement: ['type', 'label'], |
| 20 | + DebuggerStatement: ['type'], |
| 21 | + DoWhileStatement: ['type', 'body', 'test'], |
| 22 | + EmptyStatement: ['type'], |
| 23 | + ExportAllDeclaration: ['type', 'source', 'exported', 'attributes'], |
| 24 | + ExportDefaultDeclaration: ['type', 'declaration'], |
| 25 | + ExportNamedDeclaration: ['type', 'declaration', 'specifiers', 'source', 'attributes'], |
| 26 | + ExportSpecifier: ['type', 'exported', 'local'], |
| 27 | + ExpressionStatement: ['type', 'expression', 'directive'], |
| 28 | + ForInStatement: ['type', 'left', 'right', 'body'], |
| 29 | + ForOfStatement: ['type', 'left', 'right', 'body', 'await'], |
| 30 | + ForStatement: ['type', 'init', 'test', 'update', 'body'], |
| 31 | + FunctionDeclaration: ['type', 'id', 'params', 'body', 'generator', 'async'], |
| 32 | + FunctionExpression: ['type', 'id', 'params', 'body', 'generator', 'async'], |
| 33 | + Identifier: ['type', 'name'], |
| 34 | + IfStatement: ['type', 'test', 'consequent', 'alternate'], |
| 35 | + ImportAttribute: ['type', 'key', 'value'], |
| 36 | + ImportDeclaration: ['type', 'specifiers', 'source', 'attributes'], |
| 37 | + ImportDefaultSpecifier: ['type', 'local'], |
| 38 | + ImportExpression: ['type', 'source', 'options'], |
| 39 | + ImportNamespaceSpecifier: ['type', 'local'], |
| 40 | + ImportSpecifier: ['type', 'imported', 'local'], |
| 41 | + LabeledStatement: ['type', 'label', 'body'], |
| 42 | + Literal: ['type', 'value', 'regex', 'bigint'], |
| 43 | + LogicalExpression: ['type', 'operator', 'left', 'right'], |
| 44 | + MemberExpression: ['type', 'object', 'property', 'computed', 'optional'], |
| 45 | + MetaProperty: ['type', 'meta', 'property'], |
| 46 | + MethodDefinition: ['type', 'key', 'value', 'kind', 'computed', 'static'], |
| 47 | + NewExpression: ['type', 'callee', 'arguments'], |
| 48 | + ObjectExpression: ['type', 'properties'], |
| 49 | + ObjectPattern: ['type', 'properties'], |
| 50 | + PrivateIdentifier: ['type', 'name'], |
| 51 | + Program: ['type', 'body', 'sourceType'], |
| 52 | + Property: ['type', 'key', 'value', 'kind', 'method', 'shorthand', 'computed'], |
| 53 | + PropertyDefinition: ['type', 'key', 'value', 'computed', 'static'], |
| 54 | + RestElement: ['type', 'argument'], |
| 55 | + ReturnStatement: ['type', 'argument'], |
| 56 | + SequenceExpression: ['type', 'expressions'], |
| 57 | + SpreadElement: ['type', 'argument'], |
| 58 | + StaticBlock: ['type', 'body'], |
| 59 | + Super: ['type'], |
| 60 | + SwitchCase: ['type', 'test', 'consequent'], |
| 61 | + SwitchStatement: ['type', 'discriminant', 'cases'], |
| 62 | + TaggedTemplateExpression: ['type', 'tag', 'quasi'], |
| 63 | + TemplateElement: ['type', 'tail', 'value'], |
| 64 | + TemplateLiteral: ['type', 'quasis', 'expressions'], |
| 65 | + ThisExpression: ['type'], |
| 66 | + ThrowStatement: ['type', 'argument'], |
| 67 | + TryStatement: ['type', 'block', 'handler', 'finalizer'], |
| 68 | + UnaryExpression: ['type', 'operator', 'prefix', 'argument'], |
| 69 | + UpdateExpression: ['type', 'operator', 'argument', 'prefix'], |
| 70 | + VariableDeclaration: ['type', 'declarations', 'kind'], |
| 71 | + VariableDeclarator: ['type', 'id', 'init'], |
| 72 | + WhileStatement: ['type', 'test', 'body'], |
| 73 | + WithStatement: ['type', 'object', 'body'], |
| 74 | + YieldExpression: ['type', 'argument', 'delegate'] |
| 75 | +}; |
0 commit comments