ast-types 0.12.3 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.travis.yml +1 -0
- package/README.md +218 -201
- package/def/core.js +4 -7
- package/def/flow.js +4 -0
- package/def/typescript.js +5 -5
- package/fork.d.ts +3 -7
- package/fork.js +1 -2
- package/gen/builders.d.ts +500 -497
- package/gen/kinds.d.ts +262 -262
- package/gen/namedTypes.d.ts +1791 -262
- package/gen/namedTypes.js +3 -0
- package/gen/nodes.d.ts +16 -16
- package/gen/visitor.d.ts +262 -262
- package/lib/node-path.js +8 -6
- package/lib/path-visitor.d.ts +1 -1
- package/lib/scope.js +7 -2
- package/lib/types.d.ts +2 -6
- package/main.d.ts +25 -13
- package/main.js +25 -6
- package/package.json +19 -19
package/gen/visitor.d.ts
CHANGED
|
@@ -1,266 +1,266 @@
|
|
|
1
1
|
import { NodePath } from "../lib/node-path";
|
|
2
2
|
import { Context } from "../lib/path-visitor";
|
|
3
|
-
import
|
|
3
|
+
import { namedTypes } from "./namedTypes";
|
|
4
4
|
export interface Visitor<M = {}> {
|
|
5
|
-
visitPrintable?(this: Context & M, path: NodePath<
|
|
6
|
-
visitSourceLocation?(this: Context & M, path: NodePath<
|
|
7
|
-
visitNode?(this: Context & M, path: NodePath<
|
|
8
|
-
visitComment?(this: Context & M, path: NodePath<
|
|
9
|
-
visitPosition?(this: Context & M, path: NodePath<
|
|
10
|
-
visitFile?(this: Context & M, path: NodePath<
|
|
11
|
-
visitProgram?(this: Context & M, path: NodePath<
|
|
12
|
-
visitStatement?(this: Context & M, path: NodePath<
|
|
13
|
-
visitFunction?(this: Context & M, path: NodePath<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
visitIdentifier?(this: Context & M, path: NodePath<
|
|
17
|
-
visitBlockStatement?(this: Context & M, path: NodePath<
|
|
18
|
-
visitEmptyStatement?(this: Context & M, path: NodePath<
|
|
19
|
-
visitExpressionStatement?(this: Context & M, path: NodePath<
|
|
20
|
-
visitIfStatement?(this: Context & M, path: NodePath<
|
|
21
|
-
visitLabeledStatement?(this: Context & M, path: NodePath<
|
|
22
|
-
visitBreakStatement?(this: Context & M, path: NodePath<
|
|
23
|
-
visitContinueStatement?(this: Context & M, path: NodePath<
|
|
24
|
-
visitWithStatement?(this: Context & M, path: NodePath<
|
|
25
|
-
visitSwitchStatement?(this: Context & M, path: NodePath<
|
|
26
|
-
visitSwitchCase?(this: Context & M, path: NodePath<
|
|
27
|
-
visitReturnStatement?(this: Context & M, path: NodePath<
|
|
28
|
-
visitThrowStatement?(this: Context & M, path: NodePath<
|
|
29
|
-
visitTryStatement?(this: Context & M, path: NodePath<
|
|
30
|
-
visitCatchClause?(this: Context & M, path: NodePath<
|
|
31
|
-
visitWhileStatement?(this: Context & M, path: NodePath<
|
|
32
|
-
visitDoWhileStatement?(this: Context & M, path: NodePath<
|
|
33
|
-
visitForStatement?(this: Context & M, path: NodePath<
|
|
34
|
-
visitDeclaration?(this: Context & M, path: NodePath<
|
|
35
|
-
visitVariableDeclaration?(this: Context & M, path: NodePath<
|
|
36
|
-
visitForInStatement?(this: Context & M, path: NodePath<
|
|
37
|
-
visitDebuggerStatement?(this: Context & M, path: NodePath<
|
|
38
|
-
visitFunctionDeclaration?(this: Context & M, path: NodePath<
|
|
39
|
-
visitFunctionExpression?(this: Context & M, path: NodePath<
|
|
40
|
-
visitVariableDeclarator?(this: Context & M, path: NodePath<
|
|
41
|
-
visitThisExpression?(this: Context & M, path: NodePath<
|
|
42
|
-
visitArrayExpression?(this: Context & M, path: NodePath<
|
|
43
|
-
visitObjectExpression?(this: Context & M, path: NodePath<
|
|
44
|
-
visitProperty?(this: Context & M, path: NodePath<
|
|
45
|
-
visitLiteral?(this: Context & M, path: NodePath<
|
|
46
|
-
visitSequenceExpression?(this: Context & M, path: NodePath<
|
|
47
|
-
visitUnaryExpression?(this: Context & M, path: NodePath<
|
|
48
|
-
visitBinaryExpression?(this: Context & M, path: NodePath<
|
|
49
|
-
visitAssignmentExpression?(this: Context & M, path: NodePath<
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
visitRestElement?(this: Context & M, path: NodePath<
|
|
57
|
-
visitTypeAnnotation?(this: Context & M, path: NodePath<
|
|
58
|
-
visitTSTypeAnnotation?(this: Context & M, path: NodePath<
|
|
59
|
-
visitSpreadElementPattern?(this: Context & M, path: NodePath<
|
|
60
|
-
visitArrowFunctionExpression?(this: Context & M, path: NodePath<
|
|
61
|
-
visitForOfStatement?(this: Context & M, path: NodePath<
|
|
62
|
-
visitYieldExpression?(this: Context & M, path: NodePath<
|
|
63
|
-
visitGeneratorExpression?(this: Context & M, path: NodePath<
|
|
64
|
-
visitComprehensionBlock?(this: Context & M, path: NodePath<
|
|
65
|
-
visitComprehensionExpression?(this: Context & M, path: NodePath<
|
|
66
|
-
visitObjectProperty?(this: Context & M, path: NodePath<
|
|
67
|
-
visitPropertyPattern?(this: Context & M, path: NodePath<
|
|
68
|
-
visitObjectPattern?(this: Context & M, path: NodePath<
|
|
69
|
-
visitArrayPattern?(this: Context & M, path: NodePath<
|
|
70
|
-
visitMethodDefinition?(this: Context & M, path: NodePath<
|
|
71
|
-
visitSpreadElement?(this: Context & M, path: NodePath<
|
|
72
|
-
visitAssignmentPattern?(this: Context & M, path: NodePath<
|
|
73
|
-
visitClassPropertyDefinition?(this: Context & M, path: NodePath<
|
|
74
|
-
visitClassProperty?(this: Context & M, path: NodePath<
|
|
75
|
-
visitClassBody?(this: Context & M, path: NodePath<
|
|
76
|
-
visitClassDeclaration?(this: Context & M, path: NodePath<
|
|
77
|
-
visitClassExpression?(this: Context & M, path: NodePath<
|
|
78
|
-
visitSpecifier?(this: Context & M, path: NodePath<
|
|
79
|
-
visitModuleSpecifier?(this: Context & M, path: NodePath<
|
|
80
|
-
visitImportSpecifier?(this: Context & M, path: NodePath<
|
|
81
|
-
visitImportNamespaceSpecifier?(this: Context & M, path: NodePath<
|
|
82
|
-
visitImportDefaultSpecifier?(this: Context & M, path: NodePath<
|
|
83
|
-
visitImportDeclaration?(this: Context & M, path: NodePath<
|
|
84
|
-
visitTaggedTemplateExpression?(this: Context & M, path: NodePath<
|
|
85
|
-
visitTemplateLiteral?(this: Context & M, path: NodePath<
|
|
86
|
-
visitTemplateElement?(this: Context & M, path: NodePath<
|
|
87
|
-
visitSpreadProperty?(this: Context & M, path: NodePath<
|
|
88
|
-
visitSpreadPropertyPattern?(this: Context & M, path: NodePath<
|
|
89
|
-
visitAwaitExpression?(this: Context & M, path: NodePath<
|
|
90
|
-
visitJSXAttribute?(this: Context & M, path: NodePath<
|
|
91
|
-
visitJSXIdentifier?(this: Context & M, path: NodePath<
|
|
92
|
-
visitJSXNamespacedName?(this: Context & M, path: NodePath<
|
|
93
|
-
visitJSXExpressionContainer?(this: Context & M, path: NodePath<
|
|
94
|
-
visitJSXMemberExpression?(this: Context & M, path: NodePath<
|
|
95
|
-
visitJSXSpreadAttribute?(this: Context & M, path: NodePath<
|
|
96
|
-
visitJSXElement?(this: Context & M, path: NodePath<
|
|
97
|
-
visitJSXOpeningElement?(this: Context & M, path: NodePath<
|
|
98
|
-
visitJSXClosingElement?(this: Context & M, path: NodePath<
|
|
99
|
-
visitJSXFragment?(this: Context & M, path: NodePath<
|
|
100
|
-
visitJSXText?(this: Context & M, path: NodePath<
|
|
101
|
-
visitJSXOpeningFragment?(this: Context & M, path: NodePath<
|
|
102
|
-
visitJSXClosingFragment?(this: Context & M, path: NodePath<
|
|
103
|
-
visitJSXEmptyExpression?(this: Context & M, path: NodePath<
|
|
104
|
-
visitJSXSpreadChild?(this: Context & M, path: NodePath<
|
|
105
|
-
visitTypeParameterDeclaration?(this: Context & M, path: NodePath<
|
|
106
|
-
visitTSTypeParameterDeclaration?(this: Context & M, path: NodePath<
|
|
107
|
-
visitTypeParameterInstantiation?(this: Context & M, path: NodePath<
|
|
108
|
-
visitTSTypeParameterInstantiation?(this: Context & M, path: NodePath<
|
|
109
|
-
visitClassImplements?(this: Context & M, path: NodePath<
|
|
110
|
-
visitTSType?(this: Context & M, path: NodePath<
|
|
111
|
-
visitTSHasOptionalTypeParameterInstantiation?(this: Context & M, path: NodePath<
|
|
112
|
-
visitTSExpressionWithTypeArguments?(this: Context & M, path: NodePath<
|
|
113
|
-
visitFlow?(this: Context & M, path: NodePath<
|
|
114
|
-
visitFlowType?(this: Context & M, path: NodePath<
|
|
115
|
-
visitAnyTypeAnnotation?(this: Context & M, path: NodePath<
|
|
116
|
-
visitEmptyTypeAnnotation?(this: Context & M, path: NodePath<
|
|
117
|
-
visitMixedTypeAnnotation?(this: Context & M, path: NodePath<
|
|
118
|
-
visitVoidTypeAnnotation?(this: Context & M, path: NodePath<
|
|
119
|
-
visitNumberTypeAnnotation?(this: Context & M, path: NodePath<
|
|
120
|
-
visitNumberLiteralTypeAnnotation?(this: Context & M, path: NodePath<
|
|
121
|
-
visitNumericLiteralTypeAnnotation?(this: Context & M, path: NodePath<
|
|
122
|
-
visitStringTypeAnnotation?(this: Context & M, path: NodePath<
|
|
123
|
-
visitStringLiteralTypeAnnotation?(this: Context & M, path: NodePath<
|
|
124
|
-
visitBooleanTypeAnnotation?(this: Context & M, path: NodePath<
|
|
125
|
-
visitBooleanLiteralTypeAnnotation?(this: Context & M, path: NodePath<
|
|
126
|
-
visitNullableTypeAnnotation?(this: Context & M, path: NodePath<
|
|
127
|
-
visitNullLiteralTypeAnnotation?(this: Context & M, path: NodePath<
|
|
128
|
-
visitNullTypeAnnotation?(this: Context & M, path: NodePath<
|
|
129
|
-
visitThisTypeAnnotation?(this: Context & M, path: NodePath<
|
|
130
|
-
visitExistsTypeAnnotation?(this: Context & M, path: NodePath<
|
|
131
|
-
visitExistentialTypeParam?(this: Context & M, path: NodePath<
|
|
132
|
-
visitFunctionTypeAnnotation?(this: Context & M, path: NodePath<
|
|
133
|
-
visitFunctionTypeParam?(this: Context & M, path: NodePath<
|
|
134
|
-
visitArrayTypeAnnotation?(this: Context & M, path: NodePath<
|
|
135
|
-
visitObjectTypeAnnotation?(this: Context & M, path: NodePath<
|
|
136
|
-
visitObjectTypeProperty?(this: Context & M, path: NodePath<
|
|
137
|
-
visitObjectTypeSpreadProperty?(this: Context & M, path: NodePath<
|
|
138
|
-
visitObjectTypeIndexer?(this: Context & M, path: NodePath<
|
|
139
|
-
visitObjectTypeCallProperty?(this: Context & M, path: NodePath<
|
|
140
|
-
visitObjectTypeInternalSlot?(this: Context & M, path: NodePath<
|
|
141
|
-
visitVariance?(this: Context & M, path: NodePath<
|
|
142
|
-
visitQualifiedTypeIdentifier?(this: Context & M, path: NodePath<
|
|
143
|
-
visitGenericTypeAnnotation?(this: Context & M, path: NodePath<
|
|
144
|
-
visitMemberTypeAnnotation?(this: Context & M, path: NodePath<
|
|
145
|
-
visitUnionTypeAnnotation?(this: Context & M, path: NodePath<
|
|
146
|
-
visitIntersectionTypeAnnotation?(this: Context & M, path: NodePath<
|
|
147
|
-
visitTypeofTypeAnnotation?(this: Context & M, path: NodePath<
|
|
148
|
-
visitTypeParameter?(this: Context & M, path: NodePath<
|
|
149
|
-
visitInterfaceTypeAnnotation?(this: Context & M, path: NodePath<
|
|
150
|
-
visitInterfaceExtends?(this: Context & M, path: NodePath<
|
|
151
|
-
visitInterfaceDeclaration?(this: Context & M, path: NodePath<
|
|
152
|
-
visitDeclareInterface?(this: Context & M, path: NodePath<
|
|
153
|
-
visitTypeAlias?(this: Context & M, path: NodePath<
|
|
154
|
-
visitOpaqueType?(this: Context & M, path: NodePath<
|
|
155
|
-
visitDeclareTypeAlias?(this: Context & M, path: NodePath<
|
|
156
|
-
visitDeclareOpaqueType?(this: Context & M, path: NodePath<
|
|
157
|
-
visitTypeCastExpression?(this: Context & M, path: NodePath<
|
|
158
|
-
visitTupleTypeAnnotation?(this: Context & M, path: NodePath<
|
|
159
|
-
visitDeclareVariable?(this: Context & M, path: NodePath<
|
|
160
|
-
visitDeclareFunction?(this: Context & M, path: NodePath<
|
|
161
|
-
visitDeclareClass?(this: Context & M, path: NodePath<
|
|
162
|
-
visitDeclareModule?(this: Context & M, path: NodePath<
|
|
163
|
-
visitDeclareModuleExports?(this: Context & M, path: NodePath<
|
|
164
|
-
visitDeclareExportDeclaration?(this: Context & M, path: NodePath<
|
|
165
|
-
visitExportSpecifier?(this: Context & M, path: NodePath<
|
|
166
|
-
visitExportBatchSpecifier?(this: Context & M, path: NodePath<
|
|
167
|
-
visitDeclareExportAllDeclaration?(this: Context & M, path: NodePath<
|
|
168
|
-
visitFlowPredicate?(this: Context & M, path: NodePath<
|
|
169
|
-
visitInferredPredicate?(this: Context & M, path: NodePath<
|
|
170
|
-
visitDeclaredPredicate?(this: Context & M, path: NodePath<
|
|
171
|
-
visitExportDeclaration?(this: Context & M, path: NodePath<
|
|
172
|
-
visitBlock?(this: Context & M, path: NodePath<
|
|
173
|
-
visitLine?(this: Context & M, path: NodePath<
|
|
174
|
-
visitNoop?(this: Context & M, path: NodePath<
|
|
175
|
-
visitDoExpression?(this: Context & M, path: NodePath<
|
|
176
|
-
visitSuper?(this: Context & M, path: NodePath<
|
|
177
|
-
visitBindExpression?(this: Context & M, path: NodePath<
|
|
178
|
-
visitDecorator?(this: Context & M, path: NodePath<
|
|
179
|
-
visitMetaProperty?(this: Context & M, path: NodePath<
|
|
180
|
-
visitParenthesizedExpression?(this: Context & M, path: NodePath<
|
|
181
|
-
visitExportDefaultDeclaration?(this: Context & M, path: NodePath<
|
|
182
|
-
visitExportNamedDeclaration?(this: Context & M, path: NodePath<
|
|
183
|
-
visitExportNamespaceSpecifier?(this: Context & M, path: NodePath<
|
|
184
|
-
visitExportDefaultSpecifier?(this: Context & M, path: NodePath<
|
|
185
|
-
visitExportAllDeclaration?(this: Context & M, path: NodePath<
|
|
186
|
-
visitCommentBlock?(this: Context & M, path: NodePath<
|
|
187
|
-
visitCommentLine?(this: Context & M, path: NodePath<
|
|
188
|
-
visitDirective?(this: Context & M, path: NodePath<
|
|
189
|
-
visitDirectiveLiteral?(this: Context & M, path: NodePath<
|
|
190
|
-
visitInterpreterDirective?(this: Context & M, path: NodePath<
|
|
191
|
-
visitStringLiteral?(this: Context & M, path: NodePath<
|
|
192
|
-
visitNumericLiteral?(this: Context & M, path: NodePath<
|
|
193
|
-
visitBigIntLiteral?(this: Context & M, path: NodePath<
|
|
194
|
-
visitNullLiteral?(this: Context & M, path: NodePath<
|
|
195
|
-
visitBooleanLiteral?(this: Context & M, path: NodePath<
|
|
196
|
-
visitRegExpLiteral?(this: Context & M, path: NodePath<
|
|
197
|
-
visitObjectMethod?(this: Context & M, path: NodePath<
|
|
198
|
-
visitClassPrivateProperty?(this: Context & M, path: NodePath<
|
|
199
|
-
visitClassMethod?(this: Context & M, path: NodePath<
|
|
200
|
-
visitClassPrivateMethod?(this: Context & M, path: NodePath<
|
|
201
|
-
visitPrivateName?(this: Context & M, path: NodePath<
|
|
202
|
-
visitRestProperty?(this: Context & M, path: NodePath<
|
|
203
|
-
visitForAwaitStatement?(this: Context & M, path: NodePath<
|
|
204
|
-
visitImport?(this: Context & M, path: NodePath<
|
|
205
|
-
visitTSQualifiedName?(this: Context & M, path: NodePath<
|
|
206
|
-
visitTSTypeReference?(this: Context & M, path: NodePath<
|
|
207
|
-
visitTSHasOptionalTypeParameters?(this: Context & M, path: NodePath<
|
|
208
|
-
visitTSHasOptionalTypeAnnotation?(this: Context & M, path: NodePath<
|
|
209
|
-
visitTSAsExpression?(this: Context & M, path: NodePath<
|
|
210
|
-
visitTSNonNullExpression?(this: Context & M, path: NodePath<
|
|
211
|
-
visitTSAnyKeyword?(this: Context & M, path: NodePath<
|
|
212
|
-
visitTSBigIntKeyword?(this: Context & M, path: NodePath<
|
|
213
|
-
visitTSBooleanKeyword?(this: Context & M, path: NodePath<
|
|
214
|
-
visitTSNeverKeyword?(this: Context & M, path: NodePath<
|
|
215
|
-
visitTSNullKeyword?(this: Context & M, path: NodePath<
|
|
216
|
-
visitTSNumberKeyword?(this: Context & M, path: NodePath<
|
|
217
|
-
visitTSObjectKeyword?(this: Context & M, path: NodePath<
|
|
218
|
-
visitTSStringKeyword?(this: Context & M, path: NodePath<
|
|
219
|
-
visitTSSymbolKeyword?(this: Context & M, path: NodePath<
|
|
220
|
-
visitTSUndefinedKeyword?(this: Context & M, path: NodePath<
|
|
221
|
-
visitTSUnknownKeyword?(this: Context & M, path: NodePath<
|
|
222
|
-
visitTSVoidKeyword?(this: Context & M, path: NodePath<
|
|
223
|
-
visitTSThisType?(this: Context & M, path: NodePath<
|
|
224
|
-
visitTSArrayType?(this: Context & M, path: NodePath<
|
|
225
|
-
visitTSLiteralType?(this: Context & M, path: NodePath<
|
|
226
|
-
visitTSUnionType?(this: Context & M, path: NodePath<
|
|
227
|
-
visitTSIntersectionType?(this: Context & M, path: NodePath<
|
|
228
|
-
visitTSConditionalType?(this: Context & M, path: NodePath<
|
|
229
|
-
visitTSInferType?(this: Context & M, path: NodePath<
|
|
230
|
-
visitTSTypeParameter?(this: Context & M, path: NodePath<
|
|
231
|
-
visitTSParenthesizedType?(this: Context & M, path: NodePath<
|
|
232
|
-
visitTSFunctionType?(this: Context & M, path: NodePath<
|
|
233
|
-
visitTSConstructorType?(this: Context & M, path: NodePath<
|
|
234
|
-
visitTSDeclareFunction?(this: Context & M, path: NodePath<
|
|
235
|
-
visitTSDeclareMethod?(this: Context & M, path: NodePath<
|
|
236
|
-
visitTSMappedType?(this: Context & M, path: NodePath<
|
|
237
|
-
visitTSTupleType?(this: Context & M, path: NodePath<
|
|
238
|
-
visitTSRestType?(this: Context & M, path: NodePath<
|
|
239
|
-
visitTSOptionalType?(this: Context & M, path: NodePath<
|
|
240
|
-
visitTSIndexedAccessType?(this: Context & M, path: NodePath<
|
|
241
|
-
visitTSTypeOperator?(this: Context & M, path: NodePath<
|
|
242
|
-
visitTSIndexSignature?(this: Context & M, path: NodePath<
|
|
243
|
-
visitTSPropertySignature?(this: Context & M, path: NodePath<
|
|
244
|
-
visitTSMethodSignature?(this: Context & M, path: NodePath<
|
|
245
|
-
visitTSTypePredicate?(this: Context & M, path: NodePath<
|
|
246
|
-
visitTSCallSignatureDeclaration?(this: Context & M, path: NodePath<
|
|
247
|
-
visitTSConstructSignatureDeclaration?(this: Context & M, path: NodePath<
|
|
248
|
-
visitTSEnumMember?(this: Context & M, path: NodePath<
|
|
249
|
-
visitTSTypeQuery?(this: Context & M, path: NodePath<
|
|
250
|
-
visitTSImportType?(this: Context & M, path: NodePath<
|
|
251
|
-
visitTSTypeLiteral?(this: Context & M, path: NodePath<
|
|
252
|
-
visitTSTypeAssertion?(this: Context & M, path: NodePath<
|
|
253
|
-
visitTSEnumDeclaration?(this: Context & M, path: NodePath<
|
|
254
|
-
visitTSTypeAliasDeclaration?(this: Context & M, path: NodePath<
|
|
255
|
-
visitTSModuleBlock?(this: Context & M, path: NodePath<
|
|
256
|
-
visitTSModuleDeclaration?(this: Context & M, path: NodePath<
|
|
257
|
-
visitTSImportEqualsDeclaration?(this: Context & M, path: NodePath<
|
|
258
|
-
visitTSExternalModuleReference?(this: Context & M, path: NodePath<
|
|
259
|
-
visitTSExportAssignment?(this: Context & M, path: NodePath<
|
|
260
|
-
visitTSNamespaceExportDeclaration?(this: Context & M, path: NodePath<
|
|
261
|
-
visitTSInterfaceBody?(this: Context & M, path: NodePath<
|
|
262
|
-
visitTSInterfaceDeclaration?(this: Context & M, path: NodePath<
|
|
263
|
-
visitTSParameterProperty?(this: Context & M, path: NodePath<
|
|
264
|
-
visitOptionalMemberExpression?(this: Context & M, path: NodePath<
|
|
265
|
-
visitOptionalCallExpression?(this: Context & M, path: NodePath<
|
|
5
|
+
visitPrintable?(this: Context & M, path: NodePath<namedTypes.Printable>): any;
|
|
6
|
+
visitSourceLocation?(this: Context & M, path: NodePath<namedTypes.SourceLocation>): any;
|
|
7
|
+
visitNode?(this: Context & M, path: NodePath<namedTypes.Node>): any;
|
|
8
|
+
visitComment?(this: Context & M, path: NodePath<namedTypes.Comment>): any;
|
|
9
|
+
visitPosition?(this: Context & M, path: NodePath<namedTypes.Position>): any;
|
|
10
|
+
visitFile?(this: Context & M, path: NodePath<namedTypes.File>): any;
|
|
11
|
+
visitProgram?(this: Context & M, path: NodePath<namedTypes.Program>): any;
|
|
12
|
+
visitStatement?(this: Context & M, path: NodePath<namedTypes.Statement>): any;
|
|
13
|
+
visitFunction?(this: Context & M, path: NodePath<namedTypes.Function>): any;
|
|
14
|
+
visitExpression?(this: Context & M, path: NodePath<namedTypes.Expression>): any;
|
|
15
|
+
visitPattern?(this: Context & M, path: NodePath<namedTypes.Pattern>): any;
|
|
16
|
+
visitIdentifier?(this: Context & M, path: NodePath<namedTypes.Identifier>): any;
|
|
17
|
+
visitBlockStatement?(this: Context & M, path: NodePath<namedTypes.BlockStatement>): any;
|
|
18
|
+
visitEmptyStatement?(this: Context & M, path: NodePath<namedTypes.EmptyStatement>): any;
|
|
19
|
+
visitExpressionStatement?(this: Context & M, path: NodePath<namedTypes.ExpressionStatement>): any;
|
|
20
|
+
visitIfStatement?(this: Context & M, path: NodePath<namedTypes.IfStatement>): any;
|
|
21
|
+
visitLabeledStatement?(this: Context & M, path: NodePath<namedTypes.LabeledStatement>): any;
|
|
22
|
+
visitBreakStatement?(this: Context & M, path: NodePath<namedTypes.BreakStatement>): any;
|
|
23
|
+
visitContinueStatement?(this: Context & M, path: NodePath<namedTypes.ContinueStatement>): any;
|
|
24
|
+
visitWithStatement?(this: Context & M, path: NodePath<namedTypes.WithStatement>): any;
|
|
25
|
+
visitSwitchStatement?(this: Context & M, path: NodePath<namedTypes.SwitchStatement>): any;
|
|
26
|
+
visitSwitchCase?(this: Context & M, path: NodePath<namedTypes.SwitchCase>): any;
|
|
27
|
+
visitReturnStatement?(this: Context & M, path: NodePath<namedTypes.ReturnStatement>): any;
|
|
28
|
+
visitThrowStatement?(this: Context & M, path: NodePath<namedTypes.ThrowStatement>): any;
|
|
29
|
+
visitTryStatement?(this: Context & M, path: NodePath<namedTypes.TryStatement>): any;
|
|
30
|
+
visitCatchClause?(this: Context & M, path: NodePath<namedTypes.CatchClause>): any;
|
|
31
|
+
visitWhileStatement?(this: Context & M, path: NodePath<namedTypes.WhileStatement>): any;
|
|
32
|
+
visitDoWhileStatement?(this: Context & M, path: NodePath<namedTypes.DoWhileStatement>): any;
|
|
33
|
+
visitForStatement?(this: Context & M, path: NodePath<namedTypes.ForStatement>): any;
|
|
34
|
+
visitDeclaration?(this: Context & M, path: NodePath<namedTypes.Declaration>): any;
|
|
35
|
+
visitVariableDeclaration?(this: Context & M, path: NodePath<namedTypes.VariableDeclaration>): any;
|
|
36
|
+
visitForInStatement?(this: Context & M, path: NodePath<namedTypes.ForInStatement>): any;
|
|
37
|
+
visitDebuggerStatement?(this: Context & M, path: NodePath<namedTypes.DebuggerStatement>): any;
|
|
38
|
+
visitFunctionDeclaration?(this: Context & M, path: NodePath<namedTypes.FunctionDeclaration>): any;
|
|
39
|
+
visitFunctionExpression?(this: Context & M, path: NodePath<namedTypes.FunctionExpression>): any;
|
|
40
|
+
visitVariableDeclarator?(this: Context & M, path: NodePath<namedTypes.VariableDeclarator>): any;
|
|
41
|
+
visitThisExpression?(this: Context & M, path: NodePath<namedTypes.ThisExpression>): any;
|
|
42
|
+
visitArrayExpression?(this: Context & M, path: NodePath<namedTypes.ArrayExpression>): any;
|
|
43
|
+
visitObjectExpression?(this: Context & M, path: NodePath<namedTypes.ObjectExpression>): any;
|
|
44
|
+
visitProperty?(this: Context & M, path: NodePath<namedTypes.Property>): any;
|
|
45
|
+
visitLiteral?(this: Context & M, path: NodePath<namedTypes.Literal>): any;
|
|
46
|
+
visitSequenceExpression?(this: Context & M, path: NodePath<namedTypes.SequenceExpression>): any;
|
|
47
|
+
visitUnaryExpression?(this: Context & M, path: NodePath<namedTypes.UnaryExpression>): any;
|
|
48
|
+
visitBinaryExpression?(this: Context & M, path: NodePath<namedTypes.BinaryExpression>): any;
|
|
49
|
+
visitAssignmentExpression?(this: Context & M, path: NodePath<namedTypes.AssignmentExpression>): any;
|
|
50
|
+
visitMemberExpression?(this: Context & M, path: NodePath<namedTypes.MemberExpression>): any;
|
|
51
|
+
visitUpdateExpression?(this: Context & M, path: NodePath<namedTypes.UpdateExpression>): any;
|
|
52
|
+
visitLogicalExpression?(this: Context & M, path: NodePath<namedTypes.LogicalExpression>): any;
|
|
53
|
+
visitConditionalExpression?(this: Context & M, path: NodePath<namedTypes.ConditionalExpression>): any;
|
|
54
|
+
visitNewExpression?(this: Context & M, path: NodePath<namedTypes.NewExpression>): any;
|
|
55
|
+
visitCallExpression?(this: Context & M, path: NodePath<namedTypes.CallExpression>): any;
|
|
56
|
+
visitRestElement?(this: Context & M, path: NodePath<namedTypes.RestElement>): any;
|
|
57
|
+
visitTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TypeAnnotation>): any;
|
|
58
|
+
visitTSTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TSTypeAnnotation>): any;
|
|
59
|
+
visitSpreadElementPattern?(this: Context & M, path: NodePath<namedTypes.SpreadElementPattern>): any;
|
|
60
|
+
visitArrowFunctionExpression?(this: Context & M, path: NodePath<namedTypes.ArrowFunctionExpression>): any;
|
|
61
|
+
visitForOfStatement?(this: Context & M, path: NodePath<namedTypes.ForOfStatement>): any;
|
|
62
|
+
visitYieldExpression?(this: Context & M, path: NodePath<namedTypes.YieldExpression>): any;
|
|
63
|
+
visitGeneratorExpression?(this: Context & M, path: NodePath<namedTypes.GeneratorExpression>): any;
|
|
64
|
+
visitComprehensionBlock?(this: Context & M, path: NodePath<namedTypes.ComprehensionBlock>): any;
|
|
65
|
+
visitComprehensionExpression?(this: Context & M, path: NodePath<namedTypes.ComprehensionExpression>): any;
|
|
66
|
+
visitObjectProperty?(this: Context & M, path: NodePath<namedTypes.ObjectProperty>): any;
|
|
67
|
+
visitPropertyPattern?(this: Context & M, path: NodePath<namedTypes.PropertyPattern>): any;
|
|
68
|
+
visitObjectPattern?(this: Context & M, path: NodePath<namedTypes.ObjectPattern>): any;
|
|
69
|
+
visitArrayPattern?(this: Context & M, path: NodePath<namedTypes.ArrayPattern>): any;
|
|
70
|
+
visitMethodDefinition?(this: Context & M, path: NodePath<namedTypes.MethodDefinition>): any;
|
|
71
|
+
visitSpreadElement?(this: Context & M, path: NodePath<namedTypes.SpreadElement>): any;
|
|
72
|
+
visitAssignmentPattern?(this: Context & M, path: NodePath<namedTypes.AssignmentPattern>): any;
|
|
73
|
+
visitClassPropertyDefinition?(this: Context & M, path: NodePath<namedTypes.ClassPropertyDefinition>): any;
|
|
74
|
+
visitClassProperty?(this: Context & M, path: NodePath<namedTypes.ClassProperty>): any;
|
|
75
|
+
visitClassBody?(this: Context & M, path: NodePath<namedTypes.ClassBody>): any;
|
|
76
|
+
visitClassDeclaration?(this: Context & M, path: NodePath<namedTypes.ClassDeclaration>): any;
|
|
77
|
+
visitClassExpression?(this: Context & M, path: NodePath<namedTypes.ClassExpression>): any;
|
|
78
|
+
visitSpecifier?(this: Context & M, path: NodePath<namedTypes.Specifier>): any;
|
|
79
|
+
visitModuleSpecifier?(this: Context & M, path: NodePath<namedTypes.ModuleSpecifier>): any;
|
|
80
|
+
visitImportSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportSpecifier>): any;
|
|
81
|
+
visitImportNamespaceSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportNamespaceSpecifier>): any;
|
|
82
|
+
visitImportDefaultSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportDefaultSpecifier>): any;
|
|
83
|
+
visitImportDeclaration?(this: Context & M, path: NodePath<namedTypes.ImportDeclaration>): any;
|
|
84
|
+
visitTaggedTemplateExpression?(this: Context & M, path: NodePath<namedTypes.TaggedTemplateExpression>): any;
|
|
85
|
+
visitTemplateLiteral?(this: Context & M, path: NodePath<namedTypes.TemplateLiteral>): any;
|
|
86
|
+
visitTemplateElement?(this: Context & M, path: NodePath<namedTypes.TemplateElement>): any;
|
|
87
|
+
visitSpreadProperty?(this: Context & M, path: NodePath<namedTypes.SpreadProperty>): any;
|
|
88
|
+
visitSpreadPropertyPattern?(this: Context & M, path: NodePath<namedTypes.SpreadPropertyPattern>): any;
|
|
89
|
+
visitAwaitExpression?(this: Context & M, path: NodePath<namedTypes.AwaitExpression>): any;
|
|
90
|
+
visitJSXAttribute?(this: Context & M, path: NodePath<namedTypes.JSXAttribute>): any;
|
|
91
|
+
visitJSXIdentifier?(this: Context & M, path: NodePath<namedTypes.JSXIdentifier>): any;
|
|
92
|
+
visitJSXNamespacedName?(this: Context & M, path: NodePath<namedTypes.JSXNamespacedName>): any;
|
|
93
|
+
visitJSXExpressionContainer?(this: Context & M, path: NodePath<namedTypes.JSXExpressionContainer>): any;
|
|
94
|
+
visitJSXMemberExpression?(this: Context & M, path: NodePath<namedTypes.JSXMemberExpression>): any;
|
|
95
|
+
visitJSXSpreadAttribute?(this: Context & M, path: NodePath<namedTypes.JSXSpreadAttribute>): any;
|
|
96
|
+
visitJSXElement?(this: Context & M, path: NodePath<namedTypes.JSXElement>): any;
|
|
97
|
+
visitJSXOpeningElement?(this: Context & M, path: NodePath<namedTypes.JSXOpeningElement>): any;
|
|
98
|
+
visitJSXClosingElement?(this: Context & M, path: NodePath<namedTypes.JSXClosingElement>): any;
|
|
99
|
+
visitJSXFragment?(this: Context & M, path: NodePath<namedTypes.JSXFragment>): any;
|
|
100
|
+
visitJSXText?(this: Context & M, path: NodePath<namedTypes.JSXText>): any;
|
|
101
|
+
visitJSXOpeningFragment?(this: Context & M, path: NodePath<namedTypes.JSXOpeningFragment>): any;
|
|
102
|
+
visitJSXClosingFragment?(this: Context & M, path: NodePath<namedTypes.JSXClosingFragment>): any;
|
|
103
|
+
visitJSXEmptyExpression?(this: Context & M, path: NodePath<namedTypes.JSXEmptyExpression>): any;
|
|
104
|
+
visitJSXSpreadChild?(this: Context & M, path: NodePath<namedTypes.JSXSpreadChild>): any;
|
|
105
|
+
visitTypeParameterDeclaration?(this: Context & M, path: NodePath<namedTypes.TypeParameterDeclaration>): any;
|
|
106
|
+
visitTSTypeParameterDeclaration?(this: Context & M, path: NodePath<namedTypes.TSTypeParameterDeclaration>): any;
|
|
107
|
+
visitTypeParameterInstantiation?(this: Context & M, path: NodePath<namedTypes.TypeParameterInstantiation>): any;
|
|
108
|
+
visitTSTypeParameterInstantiation?(this: Context & M, path: NodePath<namedTypes.TSTypeParameterInstantiation>): any;
|
|
109
|
+
visitClassImplements?(this: Context & M, path: NodePath<namedTypes.ClassImplements>): any;
|
|
110
|
+
visitTSType?(this: Context & M, path: NodePath<namedTypes.TSType>): any;
|
|
111
|
+
visitTSHasOptionalTypeParameterInstantiation?(this: Context & M, path: NodePath<namedTypes.TSHasOptionalTypeParameterInstantiation>): any;
|
|
112
|
+
visitTSExpressionWithTypeArguments?(this: Context & M, path: NodePath<namedTypes.TSExpressionWithTypeArguments>): any;
|
|
113
|
+
visitFlow?(this: Context & M, path: NodePath<namedTypes.Flow>): any;
|
|
114
|
+
visitFlowType?(this: Context & M, path: NodePath<namedTypes.FlowType>): any;
|
|
115
|
+
visitAnyTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.AnyTypeAnnotation>): any;
|
|
116
|
+
visitEmptyTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.EmptyTypeAnnotation>): any;
|
|
117
|
+
visitMixedTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.MixedTypeAnnotation>): any;
|
|
118
|
+
visitVoidTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.VoidTypeAnnotation>): any;
|
|
119
|
+
visitNumberTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumberTypeAnnotation>): any;
|
|
120
|
+
visitNumberLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumberLiteralTypeAnnotation>): any;
|
|
121
|
+
visitNumericLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumericLiteralTypeAnnotation>): any;
|
|
122
|
+
visitStringTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.StringTypeAnnotation>): any;
|
|
123
|
+
visitStringLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.StringLiteralTypeAnnotation>): any;
|
|
124
|
+
visitBooleanTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.BooleanTypeAnnotation>): any;
|
|
125
|
+
visitBooleanLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.BooleanLiteralTypeAnnotation>): any;
|
|
126
|
+
visitNullableTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NullableTypeAnnotation>): any;
|
|
127
|
+
visitNullLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NullLiteralTypeAnnotation>): any;
|
|
128
|
+
visitNullTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NullTypeAnnotation>): any;
|
|
129
|
+
visitThisTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.ThisTypeAnnotation>): any;
|
|
130
|
+
visitExistsTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.ExistsTypeAnnotation>): any;
|
|
131
|
+
visitExistentialTypeParam?(this: Context & M, path: NodePath<namedTypes.ExistentialTypeParam>): any;
|
|
132
|
+
visitFunctionTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.FunctionTypeAnnotation>): any;
|
|
133
|
+
visitFunctionTypeParam?(this: Context & M, path: NodePath<namedTypes.FunctionTypeParam>): any;
|
|
134
|
+
visitArrayTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.ArrayTypeAnnotation>): any;
|
|
135
|
+
visitObjectTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.ObjectTypeAnnotation>): any;
|
|
136
|
+
visitObjectTypeProperty?(this: Context & M, path: NodePath<namedTypes.ObjectTypeProperty>): any;
|
|
137
|
+
visitObjectTypeSpreadProperty?(this: Context & M, path: NodePath<namedTypes.ObjectTypeSpreadProperty>): any;
|
|
138
|
+
visitObjectTypeIndexer?(this: Context & M, path: NodePath<namedTypes.ObjectTypeIndexer>): any;
|
|
139
|
+
visitObjectTypeCallProperty?(this: Context & M, path: NodePath<namedTypes.ObjectTypeCallProperty>): any;
|
|
140
|
+
visitObjectTypeInternalSlot?(this: Context & M, path: NodePath<namedTypes.ObjectTypeInternalSlot>): any;
|
|
141
|
+
visitVariance?(this: Context & M, path: NodePath<namedTypes.Variance>): any;
|
|
142
|
+
visitQualifiedTypeIdentifier?(this: Context & M, path: NodePath<namedTypes.QualifiedTypeIdentifier>): any;
|
|
143
|
+
visitGenericTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.GenericTypeAnnotation>): any;
|
|
144
|
+
visitMemberTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.MemberTypeAnnotation>): any;
|
|
145
|
+
visitUnionTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.UnionTypeAnnotation>): any;
|
|
146
|
+
visitIntersectionTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.IntersectionTypeAnnotation>): any;
|
|
147
|
+
visitTypeofTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TypeofTypeAnnotation>): any;
|
|
148
|
+
visitTypeParameter?(this: Context & M, path: NodePath<namedTypes.TypeParameter>): any;
|
|
149
|
+
visitInterfaceTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.InterfaceTypeAnnotation>): any;
|
|
150
|
+
visitInterfaceExtends?(this: Context & M, path: NodePath<namedTypes.InterfaceExtends>): any;
|
|
151
|
+
visitInterfaceDeclaration?(this: Context & M, path: NodePath<namedTypes.InterfaceDeclaration>): any;
|
|
152
|
+
visitDeclareInterface?(this: Context & M, path: NodePath<namedTypes.DeclareInterface>): any;
|
|
153
|
+
visitTypeAlias?(this: Context & M, path: NodePath<namedTypes.TypeAlias>): any;
|
|
154
|
+
visitOpaqueType?(this: Context & M, path: NodePath<namedTypes.OpaqueType>): any;
|
|
155
|
+
visitDeclareTypeAlias?(this: Context & M, path: NodePath<namedTypes.DeclareTypeAlias>): any;
|
|
156
|
+
visitDeclareOpaqueType?(this: Context & M, path: NodePath<namedTypes.DeclareOpaqueType>): any;
|
|
157
|
+
visitTypeCastExpression?(this: Context & M, path: NodePath<namedTypes.TypeCastExpression>): any;
|
|
158
|
+
visitTupleTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TupleTypeAnnotation>): any;
|
|
159
|
+
visitDeclareVariable?(this: Context & M, path: NodePath<namedTypes.DeclareVariable>): any;
|
|
160
|
+
visitDeclareFunction?(this: Context & M, path: NodePath<namedTypes.DeclareFunction>): any;
|
|
161
|
+
visitDeclareClass?(this: Context & M, path: NodePath<namedTypes.DeclareClass>): any;
|
|
162
|
+
visitDeclareModule?(this: Context & M, path: NodePath<namedTypes.DeclareModule>): any;
|
|
163
|
+
visitDeclareModuleExports?(this: Context & M, path: NodePath<namedTypes.DeclareModuleExports>): any;
|
|
164
|
+
visitDeclareExportDeclaration?(this: Context & M, path: NodePath<namedTypes.DeclareExportDeclaration>): any;
|
|
165
|
+
visitExportSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportSpecifier>): any;
|
|
166
|
+
visitExportBatchSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportBatchSpecifier>): any;
|
|
167
|
+
visitDeclareExportAllDeclaration?(this: Context & M, path: NodePath<namedTypes.DeclareExportAllDeclaration>): any;
|
|
168
|
+
visitFlowPredicate?(this: Context & M, path: NodePath<namedTypes.FlowPredicate>): any;
|
|
169
|
+
visitInferredPredicate?(this: Context & M, path: NodePath<namedTypes.InferredPredicate>): any;
|
|
170
|
+
visitDeclaredPredicate?(this: Context & M, path: NodePath<namedTypes.DeclaredPredicate>): any;
|
|
171
|
+
visitExportDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportDeclaration>): any;
|
|
172
|
+
visitBlock?(this: Context & M, path: NodePath<namedTypes.Block>): any;
|
|
173
|
+
visitLine?(this: Context & M, path: NodePath<namedTypes.Line>): any;
|
|
174
|
+
visitNoop?(this: Context & M, path: NodePath<namedTypes.Noop>): any;
|
|
175
|
+
visitDoExpression?(this: Context & M, path: NodePath<namedTypes.DoExpression>): any;
|
|
176
|
+
visitSuper?(this: Context & M, path: NodePath<namedTypes.Super>): any;
|
|
177
|
+
visitBindExpression?(this: Context & M, path: NodePath<namedTypes.BindExpression>): any;
|
|
178
|
+
visitDecorator?(this: Context & M, path: NodePath<namedTypes.Decorator>): any;
|
|
179
|
+
visitMetaProperty?(this: Context & M, path: NodePath<namedTypes.MetaProperty>): any;
|
|
180
|
+
visitParenthesizedExpression?(this: Context & M, path: NodePath<namedTypes.ParenthesizedExpression>): any;
|
|
181
|
+
visitExportDefaultDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportDefaultDeclaration>): any;
|
|
182
|
+
visitExportNamedDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportNamedDeclaration>): any;
|
|
183
|
+
visitExportNamespaceSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportNamespaceSpecifier>): any;
|
|
184
|
+
visitExportDefaultSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportDefaultSpecifier>): any;
|
|
185
|
+
visitExportAllDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportAllDeclaration>): any;
|
|
186
|
+
visitCommentBlock?(this: Context & M, path: NodePath<namedTypes.CommentBlock>): any;
|
|
187
|
+
visitCommentLine?(this: Context & M, path: NodePath<namedTypes.CommentLine>): any;
|
|
188
|
+
visitDirective?(this: Context & M, path: NodePath<namedTypes.Directive>): any;
|
|
189
|
+
visitDirectiveLiteral?(this: Context & M, path: NodePath<namedTypes.DirectiveLiteral>): any;
|
|
190
|
+
visitInterpreterDirective?(this: Context & M, path: NodePath<namedTypes.InterpreterDirective>): any;
|
|
191
|
+
visitStringLiteral?(this: Context & M, path: NodePath<namedTypes.StringLiteral>): any;
|
|
192
|
+
visitNumericLiteral?(this: Context & M, path: NodePath<namedTypes.NumericLiteral>): any;
|
|
193
|
+
visitBigIntLiteral?(this: Context & M, path: NodePath<namedTypes.BigIntLiteral>): any;
|
|
194
|
+
visitNullLiteral?(this: Context & M, path: NodePath<namedTypes.NullLiteral>): any;
|
|
195
|
+
visitBooleanLiteral?(this: Context & M, path: NodePath<namedTypes.BooleanLiteral>): any;
|
|
196
|
+
visitRegExpLiteral?(this: Context & M, path: NodePath<namedTypes.RegExpLiteral>): any;
|
|
197
|
+
visitObjectMethod?(this: Context & M, path: NodePath<namedTypes.ObjectMethod>): any;
|
|
198
|
+
visitClassPrivateProperty?(this: Context & M, path: NodePath<namedTypes.ClassPrivateProperty>): any;
|
|
199
|
+
visitClassMethod?(this: Context & M, path: NodePath<namedTypes.ClassMethod>): any;
|
|
200
|
+
visitClassPrivateMethod?(this: Context & M, path: NodePath<namedTypes.ClassPrivateMethod>): any;
|
|
201
|
+
visitPrivateName?(this: Context & M, path: NodePath<namedTypes.PrivateName>): any;
|
|
202
|
+
visitRestProperty?(this: Context & M, path: NodePath<namedTypes.RestProperty>): any;
|
|
203
|
+
visitForAwaitStatement?(this: Context & M, path: NodePath<namedTypes.ForAwaitStatement>): any;
|
|
204
|
+
visitImport?(this: Context & M, path: NodePath<namedTypes.Import>): any;
|
|
205
|
+
visitTSQualifiedName?(this: Context & M, path: NodePath<namedTypes.TSQualifiedName>): any;
|
|
206
|
+
visitTSTypeReference?(this: Context & M, path: NodePath<namedTypes.TSTypeReference>): any;
|
|
207
|
+
visitTSHasOptionalTypeParameters?(this: Context & M, path: NodePath<namedTypes.TSHasOptionalTypeParameters>): any;
|
|
208
|
+
visitTSHasOptionalTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TSHasOptionalTypeAnnotation>): any;
|
|
209
|
+
visitTSAsExpression?(this: Context & M, path: NodePath<namedTypes.TSAsExpression>): any;
|
|
210
|
+
visitTSNonNullExpression?(this: Context & M, path: NodePath<namedTypes.TSNonNullExpression>): any;
|
|
211
|
+
visitTSAnyKeyword?(this: Context & M, path: NodePath<namedTypes.TSAnyKeyword>): any;
|
|
212
|
+
visitTSBigIntKeyword?(this: Context & M, path: NodePath<namedTypes.TSBigIntKeyword>): any;
|
|
213
|
+
visitTSBooleanKeyword?(this: Context & M, path: NodePath<namedTypes.TSBooleanKeyword>): any;
|
|
214
|
+
visitTSNeverKeyword?(this: Context & M, path: NodePath<namedTypes.TSNeverKeyword>): any;
|
|
215
|
+
visitTSNullKeyword?(this: Context & M, path: NodePath<namedTypes.TSNullKeyword>): any;
|
|
216
|
+
visitTSNumberKeyword?(this: Context & M, path: NodePath<namedTypes.TSNumberKeyword>): any;
|
|
217
|
+
visitTSObjectKeyword?(this: Context & M, path: NodePath<namedTypes.TSObjectKeyword>): any;
|
|
218
|
+
visitTSStringKeyword?(this: Context & M, path: NodePath<namedTypes.TSStringKeyword>): any;
|
|
219
|
+
visitTSSymbolKeyword?(this: Context & M, path: NodePath<namedTypes.TSSymbolKeyword>): any;
|
|
220
|
+
visitTSUndefinedKeyword?(this: Context & M, path: NodePath<namedTypes.TSUndefinedKeyword>): any;
|
|
221
|
+
visitTSUnknownKeyword?(this: Context & M, path: NodePath<namedTypes.TSUnknownKeyword>): any;
|
|
222
|
+
visitTSVoidKeyword?(this: Context & M, path: NodePath<namedTypes.TSVoidKeyword>): any;
|
|
223
|
+
visitTSThisType?(this: Context & M, path: NodePath<namedTypes.TSThisType>): any;
|
|
224
|
+
visitTSArrayType?(this: Context & M, path: NodePath<namedTypes.TSArrayType>): any;
|
|
225
|
+
visitTSLiteralType?(this: Context & M, path: NodePath<namedTypes.TSLiteralType>): any;
|
|
226
|
+
visitTSUnionType?(this: Context & M, path: NodePath<namedTypes.TSUnionType>): any;
|
|
227
|
+
visitTSIntersectionType?(this: Context & M, path: NodePath<namedTypes.TSIntersectionType>): any;
|
|
228
|
+
visitTSConditionalType?(this: Context & M, path: NodePath<namedTypes.TSConditionalType>): any;
|
|
229
|
+
visitTSInferType?(this: Context & M, path: NodePath<namedTypes.TSInferType>): any;
|
|
230
|
+
visitTSTypeParameter?(this: Context & M, path: NodePath<namedTypes.TSTypeParameter>): any;
|
|
231
|
+
visitTSParenthesizedType?(this: Context & M, path: NodePath<namedTypes.TSParenthesizedType>): any;
|
|
232
|
+
visitTSFunctionType?(this: Context & M, path: NodePath<namedTypes.TSFunctionType>): any;
|
|
233
|
+
visitTSConstructorType?(this: Context & M, path: NodePath<namedTypes.TSConstructorType>): any;
|
|
234
|
+
visitTSDeclareFunction?(this: Context & M, path: NodePath<namedTypes.TSDeclareFunction>): any;
|
|
235
|
+
visitTSDeclareMethod?(this: Context & M, path: NodePath<namedTypes.TSDeclareMethod>): any;
|
|
236
|
+
visitTSMappedType?(this: Context & M, path: NodePath<namedTypes.TSMappedType>): any;
|
|
237
|
+
visitTSTupleType?(this: Context & M, path: NodePath<namedTypes.TSTupleType>): any;
|
|
238
|
+
visitTSRestType?(this: Context & M, path: NodePath<namedTypes.TSRestType>): any;
|
|
239
|
+
visitTSOptionalType?(this: Context & M, path: NodePath<namedTypes.TSOptionalType>): any;
|
|
240
|
+
visitTSIndexedAccessType?(this: Context & M, path: NodePath<namedTypes.TSIndexedAccessType>): any;
|
|
241
|
+
visitTSTypeOperator?(this: Context & M, path: NodePath<namedTypes.TSTypeOperator>): any;
|
|
242
|
+
visitTSIndexSignature?(this: Context & M, path: NodePath<namedTypes.TSIndexSignature>): any;
|
|
243
|
+
visitTSPropertySignature?(this: Context & M, path: NodePath<namedTypes.TSPropertySignature>): any;
|
|
244
|
+
visitTSMethodSignature?(this: Context & M, path: NodePath<namedTypes.TSMethodSignature>): any;
|
|
245
|
+
visitTSTypePredicate?(this: Context & M, path: NodePath<namedTypes.TSTypePredicate>): any;
|
|
246
|
+
visitTSCallSignatureDeclaration?(this: Context & M, path: NodePath<namedTypes.TSCallSignatureDeclaration>): any;
|
|
247
|
+
visitTSConstructSignatureDeclaration?(this: Context & M, path: NodePath<namedTypes.TSConstructSignatureDeclaration>): any;
|
|
248
|
+
visitTSEnumMember?(this: Context & M, path: NodePath<namedTypes.TSEnumMember>): any;
|
|
249
|
+
visitTSTypeQuery?(this: Context & M, path: NodePath<namedTypes.TSTypeQuery>): any;
|
|
250
|
+
visitTSImportType?(this: Context & M, path: NodePath<namedTypes.TSImportType>): any;
|
|
251
|
+
visitTSTypeLiteral?(this: Context & M, path: NodePath<namedTypes.TSTypeLiteral>): any;
|
|
252
|
+
visitTSTypeAssertion?(this: Context & M, path: NodePath<namedTypes.TSTypeAssertion>): any;
|
|
253
|
+
visitTSEnumDeclaration?(this: Context & M, path: NodePath<namedTypes.TSEnumDeclaration>): any;
|
|
254
|
+
visitTSTypeAliasDeclaration?(this: Context & M, path: NodePath<namedTypes.TSTypeAliasDeclaration>): any;
|
|
255
|
+
visitTSModuleBlock?(this: Context & M, path: NodePath<namedTypes.TSModuleBlock>): any;
|
|
256
|
+
visitTSModuleDeclaration?(this: Context & M, path: NodePath<namedTypes.TSModuleDeclaration>): any;
|
|
257
|
+
visitTSImportEqualsDeclaration?(this: Context & M, path: NodePath<namedTypes.TSImportEqualsDeclaration>): any;
|
|
258
|
+
visitTSExternalModuleReference?(this: Context & M, path: NodePath<namedTypes.TSExternalModuleReference>): any;
|
|
259
|
+
visitTSExportAssignment?(this: Context & M, path: NodePath<namedTypes.TSExportAssignment>): any;
|
|
260
|
+
visitTSNamespaceExportDeclaration?(this: Context & M, path: NodePath<namedTypes.TSNamespaceExportDeclaration>): any;
|
|
261
|
+
visitTSInterfaceBody?(this: Context & M, path: NodePath<namedTypes.TSInterfaceBody>): any;
|
|
262
|
+
visitTSInterfaceDeclaration?(this: Context & M, path: NodePath<namedTypes.TSInterfaceDeclaration>): any;
|
|
263
|
+
visitTSParameterProperty?(this: Context & M, path: NodePath<namedTypes.TSParameterProperty>): any;
|
|
264
|
+
visitOptionalMemberExpression?(this: Context & M, path: NodePath<namedTypes.OptionalMemberExpression>): any;
|
|
265
|
+
visitOptionalCallExpression?(this: Context & M, path: NodePath<namedTypes.OptionalCallExpression>): any;
|
|
266
266
|
}
|
package/lib/node-path.js
CHANGED
|
@@ -163,20 +163,22 @@ function nodePathPlugin(fork) {
|
|
|
163
163
|
return this.name === "object"
|
|
164
164
|
&& parent.object === node;
|
|
165
165
|
case "BinaryExpression":
|
|
166
|
-
case "LogicalExpression":
|
|
166
|
+
case "LogicalExpression": {
|
|
167
|
+
var n_1 = node;
|
|
167
168
|
var po = parent.operator;
|
|
168
|
-
var
|
|
169
|
-
var no =
|
|
169
|
+
var pp_1 = PRECEDENCE[po];
|
|
170
|
+
var no = n_1.operator;
|
|
170
171
|
var np = PRECEDENCE[no];
|
|
171
|
-
if (
|
|
172
|
+
if (pp_1 > np) {
|
|
172
173
|
return true;
|
|
173
174
|
}
|
|
174
|
-
if (
|
|
175
|
-
if (parent.right !==
|
|
175
|
+
if (pp_1 === np && this.name === "right") {
|
|
176
|
+
if (parent.right !== n_1) {
|
|
176
177
|
throw new Error("Nodes must be equal");
|
|
177
178
|
}
|
|
178
179
|
return true;
|
|
179
180
|
}
|
|
181
|
+
}
|
|
180
182
|
default:
|
|
181
183
|
return false;
|
|
182
184
|
}
|
package/lib/path-visitor.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface PathVisitor {
|
|
|
22
22
|
}
|
|
23
23
|
export interface PathVisitorStatics {
|
|
24
24
|
fromMethodsObject(methods?: any): Visitor;
|
|
25
|
-
visit(node: ASTNode, methods?:
|
|
25
|
+
visit<M = {}>(node: ASTNode, methods?: import("../gen/visitor").Visitor<M>): any;
|
|
26
26
|
}
|
|
27
27
|
export interface PathVisitorConstructor extends PathVisitorStatics {
|
|
28
28
|
new (): PathVisitor;
|