1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | "use strict";
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | module.exports = {
|
41 |
|
42 |
|
43 | AssignmentExpression: ["left", "right"],
|
44 | AssignmentPattern: ["left", "right"],
|
45 | ArrayExpression: ["elements"],
|
46 | ArrayPattern: ["elements"],
|
47 | ArrowFunctionExpression: ["params", "body"],
|
48 | BlockStatement: ["body"],
|
49 | BinaryExpression: ["left", "right"],
|
50 | BreakStatement: ["label"],
|
51 | CallExpression: ["callee", "arguments"],
|
52 | CatchClause: ["param", "body"],
|
53 | ClassBody: ["body"],
|
54 | ClassDeclaration: ["id", "superClass", "body"],
|
55 | ClassExpression: ["id", "superClass", "body"],
|
56 | ConditionalExpression: ["test", "consequent", "alternate"],
|
57 | ContinueStatement: ["label"],
|
58 | DebuggerStatement: [],
|
59 | DirectiveStatement: [],
|
60 | DoWhileStatement: ["body", "test"],
|
61 | EmptyStatement: [],
|
62 | ExportAllDeclaration: ["source"],
|
63 | ExportDefaultDeclaration: ["declaration"],
|
64 | ExportNamedDeclaration: ["declaration", "specifiers", "source"],
|
65 | ExportSpecifier: ["exported", "local"],
|
66 | ExpressionStatement: ["expression"],
|
67 | ForStatement: ["init", "test", "update", "body"],
|
68 | ForInStatement: ["left", "right", "body"],
|
69 | ForOfStatement: ["left", "right", "body"],
|
70 | FunctionDeclaration: ["id", "params", "body"],
|
71 | FunctionExpression: ["id", "params", "body"],
|
72 | Identifier: [],
|
73 | IfStatement: ["test", "consequent", "alternate"],
|
74 | ImportDeclaration: ["specifiers", "source"],
|
75 | ImportDefaultSpecifier: ["local"],
|
76 | ImportNamespaceSpecifier: ["local"],
|
77 | ImportSpecifier: ["imported", "local"],
|
78 | Literal: [],
|
79 | LabeledStatement: ["label", "body"],
|
80 | LogicalExpression: ["left", "right"],
|
81 | MemberExpression: ["object", "property"],
|
82 | MetaProperty: ["meta", "property"],
|
83 | MethodDefinition: ["key", "value"],
|
84 | ModuleSpecifier: [],
|
85 | NewExpression: ["callee", "arguments"],
|
86 | ObjectExpression: ["properties"],
|
87 | ObjectPattern: ["properties"],
|
88 | Program: ["body"],
|
89 | Property: ["key", "value"],
|
90 | RestElement: ["argument"],
|
91 | ReturnStatement: ["argument"],
|
92 | SequenceExpression: ["expressions"],
|
93 | SpreadElement: ["argument"],
|
94 | Super: [],
|
95 | SwitchStatement: ["discriminant", "cases"],
|
96 | SwitchCase: ["test", "consequent"],
|
97 | TaggedTemplateExpression: ["tag", "quasi"],
|
98 | TemplateElement: [],
|
99 | TemplateLiteral: ["quasis", "expressions"],
|
100 | ThisExpression: [],
|
101 | ThrowStatement: ["argument"],
|
102 | TryStatement: ["block", "handler", "finalizer"],
|
103 | UnaryExpression: ["argument"],
|
104 | UpdateExpression: ["argument"],
|
105 | VariableDeclaration: ["declarations"],
|
106 | VariableDeclarator: ["id", "init"],
|
107 | WhileStatement: ["test", "body"],
|
108 | WithStatement: ["object", "body"],
|
109 | YieldExpression: ["argument"],
|
110 |
|
111 |
|
112 | JSXIdentifier: [],
|
113 | JSXNamespacedName: ["namespace", "name"],
|
114 | JSXMemberExpression: ["object", "property"],
|
115 | JSXEmptyExpression: [],
|
116 | JSXExpressionContainer: ["expression"],
|
117 | JSXElement: ["openingElement", "closingElement", "children"],
|
118 | JSXClosingElement: ["name"],
|
119 | JSXOpeningElement: ["name", "attributes"],
|
120 | JSXAttribute: ["name", "value"],
|
121 | JSXText: null,
|
122 | JSXSpreadAttribute: ["argument"]
|
123 | };
|