ast-types 0.12.2 → 0.13.1
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/typescript.js +9 -6
- package/fork.d.ts +3 -7
- package/fork.js +1 -2
- package/gen/builders.d.ts +504 -502
- package/gen/kinds.d.ts +262 -262
- package/gen/namedTypes.d.ts +1789 -262
- package/gen/namedTypes.js +3 -0
- package/gen/nodes.d.ts +22 -21
- 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/builders.d.ts
CHANGED
|
@@ -1,139 +1,139 @@
|
|
|
1
1
|
import * as K from "./kinds";
|
|
2
|
-
import
|
|
2
|
+
import { namedTypes } from "./namedTypes";
|
|
3
3
|
export interface FileBuilder {
|
|
4
|
-
(program: K.ProgramKind, name?: string | null):
|
|
4
|
+
(program: K.ProgramKind, name?: string | null): namedTypes.File;
|
|
5
5
|
from(params: {
|
|
6
6
|
comments?: K.CommentKind[] | null;
|
|
7
7
|
loc?: K.SourceLocationKind | null;
|
|
8
8
|
name?: string | null;
|
|
9
9
|
program: K.ProgramKind;
|
|
10
|
-
}):
|
|
10
|
+
}): namedTypes.File;
|
|
11
11
|
}
|
|
12
12
|
export interface ProgramBuilder {
|
|
13
|
-
(body: K.StatementKind[]):
|
|
13
|
+
(body: K.StatementKind[]): namedTypes.Program;
|
|
14
14
|
from(params: {
|
|
15
15
|
body: K.StatementKind[];
|
|
16
16
|
comments?: K.CommentKind[] | null;
|
|
17
17
|
directives?: K.DirectiveKind[];
|
|
18
18
|
interpreter?: K.InterpreterDirectiveKind | null;
|
|
19
19
|
loc?: K.SourceLocationKind | null;
|
|
20
|
-
}):
|
|
20
|
+
}): namedTypes.Program;
|
|
21
21
|
}
|
|
22
22
|
export interface IdentifierBuilder {
|
|
23
|
-
(name: string):
|
|
23
|
+
(name: string): namedTypes.Identifier;
|
|
24
24
|
from(params: {
|
|
25
25
|
comments?: K.CommentKind[] | null;
|
|
26
26
|
loc?: K.SourceLocationKind | null;
|
|
27
27
|
name: string;
|
|
28
28
|
optional?: boolean;
|
|
29
29
|
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
30
|
-
}):
|
|
30
|
+
}): namedTypes.Identifier;
|
|
31
31
|
}
|
|
32
32
|
export interface BlockStatementBuilder {
|
|
33
|
-
(body: K.StatementKind[]):
|
|
33
|
+
(body: K.StatementKind[]): namedTypes.BlockStatement;
|
|
34
34
|
from(params: {
|
|
35
35
|
body: K.StatementKind[];
|
|
36
36
|
comments?: K.CommentKind[] | null;
|
|
37
37
|
directives?: K.DirectiveKind[];
|
|
38
38
|
loc?: K.SourceLocationKind | null;
|
|
39
|
-
}):
|
|
39
|
+
}): namedTypes.BlockStatement;
|
|
40
40
|
}
|
|
41
41
|
export interface EmptyStatementBuilder {
|
|
42
|
-
():
|
|
42
|
+
(): namedTypes.EmptyStatement;
|
|
43
43
|
from(params: {
|
|
44
44
|
comments?: K.CommentKind[] | null;
|
|
45
45
|
loc?: K.SourceLocationKind | null;
|
|
46
|
-
}):
|
|
46
|
+
}): namedTypes.EmptyStatement;
|
|
47
47
|
}
|
|
48
48
|
export interface ExpressionStatementBuilder {
|
|
49
|
-
(expression: K.ExpressionKind):
|
|
49
|
+
(expression: K.ExpressionKind): namedTypes.ExpressionStatement;
|
|
50
50
|
from(params: {
|
|
51
51
|
comments?: K.CommentKind[] | null;
|
|
52
52
|
expression: K.ExpressionKind;
|
|
53
53
|
loc?: K.SourceLocationKind | null;
|
|
54
|
-
}):
|
|
54
|
+
}): namedTypes.ExpressionStatement;
|
|
55
55
|
}
|
|
56
56
|
export interface IfStatementBuilder {
|
|
57
|
-
(test: K.ExpressionKind, consequent: K.StatementKind, alternate?: K.StatementKind | null):
|
|
57
|
+
(test: K.ExpressionKind, consequent: K.StatementKind, alternate?: K.StatementKind | null): namedTypes.IfStatement;
|
|
58
58
|
from(params: {
|
|
59
59
|
alternate?: K.StatementKind | null;
|
|
60
60
|
comments?: K.CommentKind[] | null;
|
|
61
61
|
consequent: K.StatementKind;
|
|
62
62
|
loc?: K.SourceLocationKind | null;
|
|
63
63
|
test: K.ExpressionKind;
|
|
64
|
-
}):
|
|
64
|
+
}): namedTypes.IfStatement;
|
|
65
65
|
}
|
|
66
66
|
export interface LabeledStatementBuilder {
|
|
67
|
-
(label: K.IdentifierKind, body: K.StatementKind):
|
|
67
|
+
(label: K.IdentifierKind, body: K.StatementKind): namedTypes.LabeledStatement;
|
|
68
68
|
from(params: {
|
|
69
69
|
body: K.StatementKind;
|
|
70
70
|
comments?: K.CommentKind[] | null;
|
|
71
71
|
label: K.IdentifierKind;
|
|
72
72
|
loc?: K.SourceLocationKind | null;
|
|
73
|
-
}):
|
|
73
|
+
}): namedTypes.LabeledStatement;
|
|
74
74
|
}
|
|
75
75
|
export interface BreakStatementBuilder {
|
|
76
|
-
(label?: K.IdentifierKind | null):
|
|
76
|
+
(label?: K.IdentifierKind | null): namedTypes.BreakStatement;
|
|
77
77
|
from(params: {
|
|
78
78
|
comments?: K.CommentKind[] | null;
|
|
79
79
|
label?: K.IdentifierKind | null;
|
|
80
80
|
loc?: K.SourceLocationKind | null;
|
|
81
|
-
}):
|
|
81
|
+
}): namedTypes.BreakStatement;
|
|
82
82
|
}
|
|
83
83
|
export interface ContinueStatementBuilder {
|
|
84
|
-
(label?: K.IdentifierKind | null):
|
|
84
|
+
(label?: K.IdentifierKind | null): namedTypes.ContinueStatement;
|
|
85
85
|
from(params: {
|
|
86
86
|
comments?: K.CommentKind[] | null;
|
|
87
87
|
label?: K.IdentifierKind | null;
|
|
88
88
|
loc?: K.SourceLocationKind | null;
|
|
89
|
-
}):
|
|
89
|
+
}): namedTypes.ContinueStatement;
|
|
90
90
|
}
|
|
91
91
|
export interface WithStatementBuilder {
|
|
92
|
-
(object: K.ExpressionKind, body: K.StatementKind):
|
|
92
|
+
(object: K.ExpressionKind, body: K.StatementKind): namedTypes.WithStatement;
|
|
93
93
|
from(params: {
|
|
94
94
|
body: K.StatementKind;
|
|
95
95
|
comments?: K.CommentKind[] | null;
|
|
96
96
|
loc?: K.SourceLocationKind | null;
|
|
97
97
|
object: K.ExpressionKind;
|
|
98
|
-
}):
|
|
98
|
+
}): namedTypes.WithStatement;
|
|
99
99
|
}
|
|
100
100
|
export interface SwitchStatementBuilder {
|
|
101
|
-
(discriminant: K.ExpressionKind, cases: K.SwitchCaseKind[], lexical?: boolean):
|
|
101
|
+
(discriminant: K.ExpressionKind, cases: K.SwitchCaseKind[], lexical?: boolean): namedTypes.SwitchStatement;
|
|
102
102
|
from(params: {
|
|
103
103
|
cases: K.SwitchCaseKind[];
|
|
104
104
|
comments?: K.CommentKind[] | null;
|
|
105
105
|
discriminant: K.ExpressionKind;
|
|
106
106
|
lexical?: boolean;
|
|
107
107
|
loc?: K.SourceLocationKind | null;
|
|
108
|
-
}):
|
|
108
|
+
}): namedTypes.SwitchStatement;
|
|
109
109
|
}
|
|
110
110
|
export interface SwitchCaseBuilder {
|
|
111
|
-
(test: K.ExpressionKind | null, consequent: K.StatementKind[]):
|
|
111
|
+
(test: K.ExpressionKind | null, consequent: K.StatementKind[]): namedTypes.SwitchCase;
|
|
112
112
|
from(params: {
|
|
113
113
|
comments?: K.CommentKind[] | null;
|
|
114
114
|
consequent: K.StatementKind[];
|
|
115
115
|
loc?: K.SourceLocationKind | null;
|
|
116
116
|
test: K.ExpressionKind | null;
|
|
117
|
-
}):
|
|
117
|
+
}): namedTypes.SwitchCase;
|
|
118
118
|
}
|
|
119
119
|
export interface ReturnStatementBuilder {
|
|
120
|
-
(argument: K.ExpressionKind | null):
|
|
120
|
+
(argument: K.ExpressionKind | null): namedTypes.ReturnStatement;
|
|
121
121
|
from(params: {
|
|
122
122
|
argument: K.ExpressionKind | null;
|
|
123
123
|
comments?: K.CommentKind[] | null;
|
|
124
124
|
loc?: K.SourceLocationKind | null;
|
|
125
|
-
}):
|
|
125
|
+
}): namedTypes.ReturnStatement;
|
|
126
126
|
}
|
|
127
127
|
export interface ThrowStatementBuilder {
|
|
128
|
-
(argument: K.ExpressionKind):
|
|
128
|
+
(argument: K.ExpressionKind): namedTypes.ThrowStatement;
|
|
129
129
|
from(params: {
|
|
130
130
|
argument: K.ExpressionKind;
|
|
131
131
|
comments?: K.CommentKind[] | null;
|
|
132
132
|
loc?: K.SourceLocationKind | null;
|
|
133
|
-
}):
|
|
133
|
+
}): namedTypes.ThrowStatement;
|
|
134
134
|
}
|
|
135
135
|
export interface TryStatementBuilder {
|
|
136
|
-
(block: K.BlockStatementKind, handler?: K.CatchClauseKind | null, finalizer?: K.BlockStatementKind | null):
|
|
136
|
+
(block: K.BlockStatementKind, handler?: K.CatchClauseKind | null, finalizer?: K.BlockStatementKind | null): namedTypes.TryStatement;
|
|
137
137
|
from(params: {
|
|
138
138
|
block: K.BlockStatementKind;
|
|
139
139
|
comments?: K.CommentKind[] | null;
|
|
@@ -142,38 +142,38 @@ export interface TryStatementBuilder {
|
|
|
142
142
|
handler?: K.CatchClauseKind | null;
|
|
143
143
|
handlers?: K.CatchClauseKind[];
|
|
144
144
|
loc?: K.SourceLocationKind | null;
|
|
145
|
-
}):
|
|
145
|
+
}): namedTypes.TryStatement;
|
|
146
146
|
}
|
|
147
147
|
export interface CatchClauseBuilder {
|
|
148
|
-
(param: K.PatternKind | null | undefined, guard: K.ExpressionKind | null | undefined, body: K.BlockStatementKind):
|
|
148
|
+
(param: K.PatternKind | null | undefined, guard: K.ExpressionKind | null | undefined, body: K.BlockStatementKind): namedTypes.CatchClause;
|
|
149
149
|
from(params: {
|
|
150
150
|
body: K.BlockStatementKind;
|
|
151
151
|
comments?: K.CommentKind[] | null;
|
|
152
152
|
guard?: K.ExpressionKind | null;
|
|
153
153
|
loc?: K.SourceLocationKind | null;
|
|
154
154
|
param?: K.PatternKind | null;
|
|
155
|
-
}):
|
|
155
|
+
}): namedTypes.CatchClause;
|
|
156
156
|
}
|
|
157
157
|
export interface WhileStatementBuilder {
|
|
158
|
-
(test: K.ExpressionKind, body: K.StatementKind):
|
|
158
|
+
(test: K.ExpressionKind, body: K.StatementKind): namedTypes.WhileStatement;
|
|
159
159
|
from(params: {
|
|
160
160
|
body: K.StatementKind;
|
|
161
161
|
comments?: K.CommentKind[] | null;
|
|
162
162
|
loc?: K.SourceLocationKind | null;
|
|
163
163
|
test: K.ExpressionKind;
|
|
164
|
-
}):
|
|
164
|
+
}): namedTypes.WhileStatement;
|
|
165
165
|
}
|
|
166
166
|
export interface DoWhileStatementBuilder {
|
|
167
|
-
(body: K.StatementKind, test: K.ExpressionKind):
|
|
167
|
+
(body: K.StatementKind, test: K.ExpressionKind): namedTypes.DoWhileStatement;
|
|
168
168
|
from(params: {
|
|
169
169
|
body: K.StatementKind;
|
|
170
170
|
comments?: K.CommentKind[] | null;
|
|
171
171
|
loc?: K.SourceLocationKind | null;
|
|
172
172
|
test: K.ExpressionKind;
|
|
173
|
-
}):
|
|
173
|
+
}): namedTypes.DoWhileStatement;
|
|
174
174
|
}
|
|
175
175
|
export interface ForStatementBuilder {
|
|
176
|
-
(init: K.VariableDeclarationKind | K.ExpressionKind | null, test: K.ExpressionKind | null, update: K.ExpressionKind | null, body: K.StatementKind):
|
|
176
|
+
(init: K.VariableDeclarationKind | K.ExpressionKind | null, test: K.ExpressionKind | null, update: K.ExpressionKind | null, body: K.StatementKind): namedTypes.ForStatement;
|
|
177
177
|
from(params: {
|
|
178
178
|
body: K.StatementKind;
|
|
179
179
|
comments?: K.CommentKind[] | null;
|
|
@@ -181,36 +181,36 @@ export interface ForStatementBuilder {
|
|
|
181
181
|
loc?: K.SourceLocationKind | null;
|
|
182
182
|
test: K.ExpressionKind | null;
|
|
183
183
|
update: K.ExpressionKind | null;
|
|
184
|
-
}):
|
|
184
|
+
}): namedTypes.ForStatement;
|
|
185
185
|
}
|
|
186
186
|
export interface VariableDeclarationBuilder {
|
|
187
|
-
(kind: "var" | "let" | "const", declarations: (K.VariableDeclaratorKind | K.IdentifierKind)[]):
|
|
187
|
+
(kind: "var" | "let" | "const", declarations: (K.VariableDeclaratorKind | K.IdentifierKind)[]): namedTypes.VariableDeclaration;
|
|
188
188
|
from(params: {
|
|
189
189
|
comments?: K.CommentKind[] | null;
|
|
190
190
|
declarations: (K.VariableDeclaratorKind | K.IdentifierKind)[];
|
|
191
191
|
kind: "var" | "let" | "const";
|
|
192
192
|
loc?: K.SourceLocationKind | null;
|
|
193
|
-
}):
|
|
193
|
+
}): namedTypes.VariableDeclaration;
|
|
194
194
|
}
|
|
195
195
|
export interface ForInStatementBuilder {
|
|
196
|
-
(left: K.VariableDeclarationKind | K.ExpressionKind, right: K.ExpressionKind, body: K.StatementKind):
|
|
196
|
+
(left: K.VariableDeclarationKind | K.ExpressionKind, right: K.ExpressionKind, body: K.StatementKind): namedTypes.ForInStatement;
|
|
197
197
|
from(params: {
|
|
198
198
|
body: K.StatementKind;
|
|
199
199
|
comments?: K.CommentKind[] | null;
|
|
200
200
|
left: K.VariableDeclarationKind | K.ExpressionKind;
|
|
201
201
|
loc?: K.SourceLocationKind | null;
|
|
202
202
|
right: K.ExpressionKind;
|
|
203
|
-
}):
|
|
203
|
+
}): namedTypes.ForInStatement;
|
|
204
204
|
}
|
|
205
205
|
export interface DebuggerStatementBuilder {
|
|
206
|
-
():
|
|
206
|
+
(): namedTypes.DebuggerStatement;
|
|
207
207
|
from(params: {
|
|
208
208
|
comments?: K.CommentKind[] | null;
|
|
209
209
|
loc?: K.SourceLocationKind | null;
|
|
210
|
-
}):
|
|
210
|
+
}): namedTypes.DebuggerStatement;
|
|
211
211
|
}
|
|
212
212
|
export interface FunctionDeclarationBuilder {
|
|
213
|
-
(id: K.IdentifierKind, params: K.PatternKind[], body: K.BlockStatementKind, generator?: boolean, expression?: boolean):
|
|
213
|
+
(id: K.IdentifierKind, params: K.PatternKind[], body: K.BlockStatementKind, generator?: boolean, expression?: boolean): namedTypes.FunctionDeclaration;
|
|
214
214
|
from(params: {
|
|
215
215
|
async?: boolean;
|
|
216
216
|
body: K.BlockStatementKind;
|
|
@@ -224,10 +224,10 @@ export interface FunctionDeclarationBuilder {
|
|
|
224
224
|
rest?: K.IdentifierKind | null;
|
|
225
225
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
226
226
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
227
|
-
}):
|
|
227
|
+
}): namedTypes.FunctionDeclaration;
|
|
228
228
|
}
|
|
229
229
|
export interface FunctionExpressionBuilder {
|
|
230
|
-
(id: K.IdentifierKind | null | undefined, params: K.PatternKind[], body: K.BlockStatementKind, generator?: boolean, expression?: boolean):
|
|
230
|
+
(id: K.IdentifierKind | null | undefined, params: K.PatternKind[], body: K.BlockStatementKind, generator?: boolean, expression?: boolean): namedTypes.FunctionExpression;
|
|
231
231
|
from(params: {
|
|
232
232
|
async?: boolean;
|
|
233
233
|
body: K.BlockStatementKind;
|
|
@@ -241,42 +241,42 @@ export interface FunctionExpressionBuilder {
|
|
|
241
241
|
rest?: K.IdentifierKind | null;
|
|
242
242
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
243
243
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
244
|
-
}):
|
|
244
|
+
}): namedTypes.FunctionExpression;
|
|
245
245
|
}
|
|
246
246
|
export interface VariableDeclaratorBuilder {
|
|
247
|
-
(id: K.PatternKind, init?: K.ExpressionKind | null):
|
|
247
|
+
(id: K.PatternKind, init?: K.ExpressionKind | null): namedTypes.VariableDeclarator;
|
|
248
248
|
from(params: {
|
|
249
249
|
comments?: K.CommentKind[] | null;
|
|
250
250
|
id: K.PatternKind;
|
|
251
251
|
init?: K.ExpressionKind | null;
|
|
252
252
|
loc?: K.SourceLocationKind | null;
|
|
253
|
-
}):
|
|
253
|
+
}): namedTypes.VariableDeclarator;
|
|
254
254
|
}
|
|
255
255
|
export interface ThisExpressionBuilder {
|
|
256
|
-
():
|
|
256
|
+
(): namedTypes.ThisExpression;
|
|
257
257
|
from(params: {
|
|
258
258
|
comments?: K.CommentKind[] | null;
|
|
259
259
|
loc?: K.SourceLocationKind | null;
|
|
260
|
-
}):
|
|
260
|
+
}): namedTypes.ThisExpression;
|
|
261
261
|
}
|
|
262
262
|
export interface ArrayExpressionBuilder {
|
|
263
|
-
(elements: (K.ExpressionKind | K.SpreadElementKind | K.RestElementKind | null)[]):
|
|
263
|
+
(elements: (K.ExpressionKind | K.SpreadElementKind | K.RestElementKind | null)[]): namedTypes.ArrayExpression;
|
|
264
264
|
from(params: {
|
|
265
265
|
comments?: K.CommentKind[] | null;
|
|
266
266
|
elements: (K.ExpressionKind | K.SpreadElementKind | K.RestElementKind | null)[];
|
|
267
267
|
loc?: K.SourceLocationKind | null;
|
|
268
|
-
}):
|
|
268
|
+
}): namedTypes.ArrayExpression;
|
|
269
269
|
}
|
|
270
270
|
export interface ObjectExpressionBuilder {
|
|
271
|
-
(properties: (K.PropertyKind | K.ObjectMethodKind | K.ObjectPropertyKind | K.SpreadPropertyKind | K.SpreadElementKind)[]):
|
|
271
|
+
(properties: (K.PropertyKind | K.ObjectMethodKind | K.ObjectPropertyKind | K.SpreadPropertyKind | K.SpreadElementKind)[]): namedTypes.ObjectExpression;
|
|
272
272
|
from(params: {
|
|
273
273
|
comments?: K.CommentKind[] | null;
|
|
274
274
|
loc?: K.SourceLocationKind | null;
|
|
275
275
|
properties: (K.PropertyKind | K.ObjectMethodKind | K.ObjectPropertyKind | K.SpreadPropertyKind | K.SpreadElementKind)[];
|
|
276
|
-
}):
|
|
276
|
+
}): namedTypes.ObjectExpression;
|
|
277
277
|
}
|
|
278
278
|
export interface PropertyBuilder {
|
|
279
|
-
(kind: "init" | "get" | "set", key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, value: K.ExpressionKind | K.PatternKind):
|
|
279
|
+
(kind: "init" | "get" | "set", key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, value: K.ExpressionKind | K.PatternKind): namedTypes.Property;
|
|
280
280
|
from(params: {
|
|
281
281
|
comments?: K.CommentKind[] | null;
|
|
282
282
|
computed?: boolean;
|
|
@@ -287,10 +287,10 @@ export interface PropertyBuilder {
|
|
|
287
287
|
method?: boolean;
|
|
288
288
|
shorthand?: boolean;
|
|
289
289
|
value: K.ExpressionKind | K.PatternKind;
|
|
290
|
-
}):
|
|
290
|
+
}): namedTypes.Property;
|
|
291
291
|
}
|
|
292
292
|
export interface LiteralBuilder {
|
|
293
|
-
(value: string | boolean | null | number | RegExp):
|
|
293
|
+
(value: string | boolean | null | number | RegExp): namedTypes.Literal;
|
|
294
294
|
from(params: {
|
|
295
295
|
comments?: K.CommentKind[] | null;
|
|
296
296
|
loc?: K.SourceLocationKind | null;
|
|
@@ -299,139 +299,139 @@ export interface LiteralBuilder {
|
|
|
299
299
|
flags: string;
|
|
300
300
|
} | null;
|
|
301
301
|
value: string | boolean | null | number | RegExp;
|
|
302
|
-
}):
|
|
302
|
+
}): namedTypes.Literal;
|
|
303
303
|
}
|
|
304
304
|
export interface SequenceExpressionBuilder {
|
|
305
|
-
(expressions: K.ExpressionKind[]):
|
|
305
|
+
(expressions: K.ExpressionKind[]): namedTypes.SequenceExpression;
|
|
306
306
|
from(params: {
|
|
307
307
|
comments?: K.CommentKind[] | null;
|
|
308
308
|
expressions: K.ExpressionKind[];
|
|
309
309
|
loc?: K.SourceLocationKind | null;
|
|
310
|
-
}):
|
|
310
|
+
}): namedTypes.SequenceExpression;
|
|
311
311
|
}
|
|
312
312
|
export interface UnaryExpressionBuilder {
|
|
313
|
-
(operator: "-" | "+" | "!" | "~" | "typeof" | "void" | "delete", argument: K.ExpressionKind, prefix?: boolean):
|
|
313
|
+
(operator: "-" | "+" | "!" | "~" | "typeof" | "void" | "delete", argument: K.ExpressionKind, prefix?: boolean): namedTypes.UnaryExpression;
|
|
314
314
|
from(params: {
|
|
315
315
|
argument: K.ExpressionKind;
|
|
316
316
|
comments?: K.CommentKind[] | null;
|
|
317
317
|
loc?: K.SourceLocationKind | null;
|
|
318
318
|
operator: "-" | "+" | "!" | "~" | "typeof" | "void" | "delete";
|
|
319
319
|
prefix?: boolean;
|
|
320
|
-
}):
|
|
320
|
+
}): namedTypes.UnaryExpression;
|
|
321
321
|
}
|
|
322
322
|
export interface BinaryExpressionBuilder {
|
|
323
|
-
(operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "in" | "instanceof", left: K.ExpressionKind, right: K.ExpressionKind):
|
|
323
|
+
(operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "in" | "instanceof", left: K.ExpressionKind, right: K.ExpressionKind): namedTypes.BinaryExpression;
|
|
324
324
|
from(params: {
|
|
325
325
|
comments?: K.CommentKind[] | null;
|
|
326
326
|
left: K.ExpressionKind;
|
|
327
327
|
loc?: K.SourceLocationKind | null;
|
|
328
328
|
operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "in" | "instanceof";
|
|
329
329
|
right: K.ExpressionKind;
|
|
330
|
-
}):
|
|
330
|
+
}): namedTypes.BinaryExpression;
|
|
331
331
|
}
|
|
332
332
|
export interface AssignmentExpressionBuilder {
|
|
333
|
-
(operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=", left: K.PatternKind, right: K.ExpressionKind):
|
|
333
|
+
(operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=", left: K.PatternKind | K.MemberExpressionKind, right: K.ExpressionKind): namedTypes.AssignmentExpression;
|
|
334
334
|
from(params: {
|
|
335
335
|
comments?: K.CommentKind[] | null;
|
|
336
|
-
left: K.PatternKind;
|
|
336
|
+
left: K.PatternKind | K.MemberExpressionKind;
|
|
337
337
|
loc?: K.SourceLocationKind | null;
|
|
338
338
|
operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=";
|
|
339
339
|
right: K.ExpressionKind;
|
|
340
|
-
}):
|
|
340
|
+
}): namedTypes.AssignmentExpression;
|
|
341
|
+
}
|
|
342
|
+
export interface MemberExpressionBuilder {
|
|
343
|
+
(object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean): namedTypes.MemberExpression;
|
|
344
|
+
from(params: {
|
|
345
|
+
comments?: K.CommentKind[] | null;
|
|
346
|
+
computed?: boolean;
|
|
347
|
+
loc?: K.SourceLocationKind | null;
|
|
348
|
+
object: K.ExpressionKind;
|
|
349
|
+
property: K.IdentifierKind | K.ExpressionKind;
|
|
350
|
+
}): namedTypes.MemberExpression;
|
|
341
351
|
}
|
|
342
352
|
export interface UpdateExpressionBuilder {
|
|
343
|
-
(operator: "++" | "--", argument: K.ExpressionKind, prefix: boolean):
|
|
353
|
+
(operator: "++" | "--", argument: K.ExpressionKind, prefix: boolean): namedTypes.UpdateExpression;
|
|
344
354
|
from(params: {
|
|
345
355
|
argument: K.ExpressionKind;
|
|
346
356
|
comments?: K.CommentKind[] | null;
|
|
347
357
|
loc?: K.SourceLocationKind | null;
|
|
348
358
|
operator: "++" | "--";
|
|
349
359
|
prefix: boolean;
|
|
350
|
-
}):
|
|
360
|
+
}): namedTypes.UpdateExpression;
|
|
351
361
|
}
|
|
352
362
|
export interface LogicalExpressionBuilder {
|
|
353
|
-
(operator: "||" | "&&" | "??", left: K.ExpressionKind, right: K.ExpressionKind):
|
|
363
|
+
(operator: "||" | "&&" | "??", left: K.ExpressionKind, right: K.ExpressionKind): namedTypes.LogicalExpression;
|
|
354
364
|
from(params: {
|
|
355
365
|
comments?: K.CommentKind[] | null;
|
|
356
366
|
left: K.ExpressionKind;
|
|
357
367
|
loc?: K.SourceLocationKind | null;
|
|
358
368
|
operator: "||" | "&&" | "??";
|
|
359
369
|
right: K.ExpressionKind;
|
|
360
|
-
}):
|
|
370
|
+
}): namedTypes.LogicalExpression;
|
|
361
371
|
}
|
|
362
372
|
export interface ConditionalExpressionBuilder {
|
|
363
|
-
(test: K.ExpressionKind, consequent: K.ExpressionKind, alternate: K.ExpressionKind):
|
|
373
|
+
(test: K.ExpressionKind, consequent: K.ExpressionKind, alternate: K.ExpressionKind): namedTypes.ConditionalExpression;
|
|
364
374
|
from(params: {
|
|
365
375
|
alternate: K.ExpressionKind;
|
|
366
376
|
comments?: K.CommentKind[] | null;
|
|
367
377
|
consequent: K.ExpressionKind;
|
|
368
378
|
loc?: K.SourceLocationKind | null;
|
|
369
379
|
test: K.ExpressionKind;
|
|
370
|
-
}):
|
|
380
|
+
}): namedTypes.ConditionalExpression;
|
|
371
381
|
}
|
|
372
382
|
export interface NewExpressionBuilder {
|
|
373
|
-
(callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[]):
|
|
383
|
+
(callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[]): namedTypes.NewExpression;
|
|
374
384
|
from(params: {
|
|
375
385
|
arguments: (K.ExpressionKind | K.SpreadElementKind)[];
|
|
376
386
|
callee: K.ExpressionKind;
|
|
377
387
|
comments?: K.CommentKind[] | null;
|
|
378
388
|
loc?: K.SourceLocationKind | null;
|
|
379
|
-
}):
|
|
389
|
+
}): namedTypes.NewExpression;
|
|
380
390
|
}
|
|
381
391
|
export interface CallExpressionBuilder {
|
|
382
|
-
(callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[]):
|
|
392
|
+
(callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[]): namedTypes.CallExpression;
|
|
383
393
|
from(params: {
|
|
384
394
|
arguments: (K.ExpressionKind | K.SpreadElementKind)[];
|
|
385
395
|
callee: K.ExpressionKind;
|
|
386
396
|
comments?: K.CommentKind[] | null;
|
|
387
397
|
loc?: K.SourceLocationKind | null;
|
|
388
|
-
}):
|
|
389
|
-
}
|
|
390
|
-
export interface MemberExpressionBuilder {
|
|
391
|
-
(object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean): N.MemberExpression;
|
|
392
|
-
from(params: {
|
|
393
|
-
comments?: K.CommentKind[] | null;
|
|
394
|
-
computed?: boolean;
|
|
395
|
-
loc?: K.SourceLocationKind | null;
|
|
396
|
-
object: K.ExpressionKind;
|
|
397
|
-
property: K.IdentifierKind | K.ExpressionKind;
|
|
398
|
-
}): N.MemberExpression;
|
|
398
|
+
}): namedTypes.CallExpression;
|
|
399
399
|
}
|
|
400
400
|
export interface RestElementBuilder {
|
|
401
|
-
(argument: K.PatternKind):
|
|
401
|
+
(argument: K.PatternKind): namedTypes.RestElement;
|
|
402
402
|
from(params: {
|
|
403
403
|
argument: K.PatternKind;
|
|
404
404
|
comments?: K.CommentKind[] | null;
|
|
405
405
|
loc?: K.SourceLocationKind | null;
|
|
406
406
|
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
407
|
-
}):
|
|
407
|
+
}): namedTypes.RestElement;
|
|
408
408
|
}
|
|
409
409
|
export interface TypeAnnotationBuilder {
|
|
410
|
-
(typeAnnotation: K.FlowTypeKind):
|
|
410
|
+
(typeAnnotation: K.FlowTypeKind): namedTypes.TypeAnnotation;
|
|
411
411
|
from(params: {
|
|
412
412
|
comments?: K.CommentKind[] | null;
|
|
413
413
|
loc?: K.SourceLocationKind | null;
|
|
414
414
|
typeAnnotation: K.FlowTypeKind;
|
|
415
|
-
}):
|
|
415
|
+
}): namedTypes.TypeAnnotation;
|
|
416
416
|
}
|
|
417
417
|
export interface TSTypeAnnotationBuilder {
|
|
418
|
-
(typeAnnotation: K.TSTypeKind | K.TSTypeAnnotationKind):
|
|
418
|
+
(typeAnnotation: K.TSTypeKind | K.TSTypeAnnotationKind): namedTypes.TSTypeAnnotation;
|
|
419
419
|
from(params: {
|
|
420
420
|
comments?: K.CommentKind[] | null;
|
|
421
421
|
loc?: K.SourceLocationKind | null;
|
|
422
422
|
typeAnnotation: K.TSTypeKind | K.TSTypeAnnotationKind;
|
|
423
|
-
}):
|
|
423
|
+
}): namedTypes.TSTypeAnnotation;
|
|
424
424
|
}
|
|
425
425
|
export interface SpreadElementPatternBuilder {
|
|
426
|
-
(argument: K.PatternKind):
|
|
426
|
+
(argument: K.PatternKind): namedTypes.SpreadElementPattern;
|
|
427
427
|
from(params: {
|
|
428
428
|
argument: K.PatternKind;
|
|
429
429
|
comments?: K.CommentKind[] | null;
|
|
430
430
|
loc?: K.SourceLocationKind | null;
|
|
431
|
-
}):
|
|
431
|
+
}): namedTypes.SpreadElementPattern;
|
|
432
432
|
}
|
|
433
433
|
export interface ArrowFunctionExpressionBuilder {
|
|
434
|
-
(params: K.PatternKind[], body: K.BlockStatementKind | K.ExpressionKind, expression?: boolean):
|
|
434
|
+
(params: K.PatternKind[], body: K.BlockStatementKind | K.ExpressionKind, expression?: boolean): namedTypes.ArrowFunctionExpression;
|
|
435
435
|
from(params: {
|
|
436
436
|
async?: boolean;
|
|
437
437
|
body: K.BlockStatementKind | K.ExpressionKind;
|
|
@@ -445,59 +445,59 @@ export interface ArrowFunctionExpressionBuilder {
|
|
|
445
445
|
rest?: K.IdentifierKind | null;
|
|
446
446
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
447
447
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
448
|
-
}):
|
|
448
|
+
}): namedTypes.ArrowFunctionExpression;
|
|
449
449
|
}
|
|
450
450
|
export interface ForOfStatementBuilder {
|
|
451
|
-
(left: K.VariableDeclarationKind | K.PatternKind, right: K.ExpressionKind, body: K.StatementKind):
|
|
451
|
+
(left: K.VariableDeclarationKind | K.PatternKind, right: K.ExpressionKind, body: K.StatementKind): namedTypes.ForOfStatement;
|
|
452
452
|
from(params: {
|
|
453
453
|
body: K.StatementKind;
|
|
454
454
|
comments?: K.CommentKind[] | null;
|
|
455
455
|
left: K.VariableDeclarationKind | K.PatternKind;
|
|
456
456
|
loc?: K.SourceLocationKind | null;
|
|
457
457
|
right: K.ExpressionKind;
|
|
458
|
-
}):
|
|
458
|
+
}): namedTypes.ForOfStatement;
|
|
459
459
|
}
|
|
460
460
|
export interface YieldExpressionBuilder {
|
|
461
|
-
(argument: K.ExpressionKind | null, delegate?: boolean):
|
|
461
|
+
(argument: K.ExpressionKind | null, delegate?: boolean): namedTypes.YieldExpression;
|
|
462
462
|
from(params: {
|
|
463
463
|
argument: K.ExpressionKind | null;
|
|
464
464
|
comments?: K.CommentKind[] | null;
|
|
465
465
|
delegate?: boolean;
|
|
466
466
|
loc?: K.SourceLocationKind | null;
|
|
467
|
-
}):
|
|
467
|
+
}): namedTypes.YieldExpression;
|
|
468
468
|
}
|
|
469
469
|
export interface GeneratorExpressionBuilder {
|
|
470
|
-
(body: K.ExpressionKind, blocks: K.ComprehensionBlockKind[], filter: K.ExpressionKind | null):
|
|
470
|
+
(body: K.ExpressionKind, blocks: K.ComprehensionBlockKind[], filter: K.ExpressionKind | null): namedTypes.GeneratorExpression;
|
|
471
471
|
from(params: {
|
|
472
472
|
blocks: K.ComprehensionBlockKind[];
|
|
473
473
|
body: K.ExpressionKind;
|
|
474
474
|
comments?: K.CommentKind[] | null;
|
|
475
475
|
filter: K.ExpressionKind | null;
|
|
476
476
|
loc?: K.SourceLocationKind | null;
|
|
477
|
-
}):
|
|
477
|
+
}): namedTypes.GeneratorExpression;
|
|
478
478
|
}
|
|
479
479
|
export interface ComprehensionBlockBuilder {
|
|
480
|
-
(left: K.PatternKind, right: K.ExpressionKind, each: boolean):
|
|
480
|
+
(left: K.PatternKind, right: K.ExpressionKind, each: boolean): namedTypes.ComprehensionBlock;
|
|
481
481
|
from(params: {
|
|
482
482
|
comments?: K.CommentKind[] | null;
|
|
483
483
|
each: boolean;
|
|
484
484
|
left: K.PatternKind;
|
|
485
485
|
loc?: K.SourceLocationKind | null;
|
|
486
486
|
right: K.ExpressionKind;
|
|
487
|
-
}):
|
|
487
|
+
}): namedTypes.ComprehensionBlock;
|
|
488
488
|
}
|
|
489
489
|
export interface ComprehensionExpressionBuilder {
|
|
490
|
-
(body: K.ExpressionKind, blocks: K.ComprehensionBlockKind[], filter: K.ExpressionKind | null):
|
|
490
|
+
(body: K.ExpressionKind, blocks: K.ComprehensionBlockKind[], filter: K.ExpressionKind | null): namedTypes.ComprehensionExpression;
|
|
491
491
|
from(params: {
|
|
492
492
|
blocks: K.ComprehensionBlockKind[];
|
|
493
493
|
body: K.ExpressionKind;
|
|
494
494
|
comments?: K.CommentKind[] | null;
|
|
495
495
|
filter: K.ExpressionKind | null;
|
|
496
496
|
loc?: K.SourceLocationKind | null;
|
|
497
|
-
}):
|
|
497
|
+
}): namedTypes.ComprehensionExpression;
|
|
498
498
|
}
|
|
499
499
|
export interface ObjectPropertyBuilder {
|
|
500
|
-
(key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, value: K.ExpressionKind | K.PatternKind):
|
|
500
|
+
(key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, value: K.ExpressionKind | K.PatternKind): namedTypes.ObjectProperty;
|
|
501
501
|
from(params: {
|
|
502
502
|
accessibility?: K.LiteralKind | null;
|
|
503
503
|
comments?: K.CommentKind[] | null;
|
|
@@ -506,38 +506,38 @@ export interface ObjectPropertyBuilder {
|
|
|
506
506
|
loc?: K.SourceLocationKind | null;
|
|
507
507
|
shorthand?: boolean;
|
|
508
508
|
value: K.ExpressionKind | K.PatternKind;
|
|
509
|
-
}):
|
|
509
|
+
}): namedTypes.ObjectProperty;
|
|
510
510
|
}
|
|
511
511
|
export interface PropertyPatternBuilder {
|
|
512
|
-
(key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, pattern: K.PatternKind):
|
|
512
|
+
(key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, pattern: K.PatternKind): namedTypes.PropertyPattern;
|
|
513
513
|
from(params: {
|
|
514
514
|
comments?: K.CommentKind[] | null;
|
|
515
515
|
computed?: boolean;
|
|
516
516
|
key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind;
|
|
517
517
|
loc?: K.SourceLocationKind | null;
|
|
518
518
|
pattern: K.PatternKind;
|
|
519
|
-
}):
|
|
519
|
+
}): namedTypes.PropertyPattern;
|
|
520
520
|
}
|
|
521
521
|
export interface ObjectPatternBuilder {
|
|
522
|
-
(properties: (K.PropertyKind | K.PropertyPatternKind | K.SpreadPropertyPatternKind | K.SpreadPropertyKind | K.ObjectPropertyKind | K.RestPropertyKind)[]):
|
|
522
|
+
(properties: (K.PropertyKind | K.PropertyPatternKind | K.SpreadPropertyPatternKind | K.SpreadPropertyKind | K.ObjectPropertyKind | K.RestPropertyKind)[]): namedTypes.ObjectPattern;
|
|
523
523
|
from(params: {
|
|
524
524
|
comments?: K.CommentKind[] | null;
|
|
525
525
|
decorators?: K.DecoratorKind[] | null;
|
|
526
526
|
loc?: K.SourceLocationKind | null;
|
|
527
527
|
properties: (K.PropertyKind | K.PropertyPatternKind | K.SpreadPropertyPatternKind | K.SpreadPropertyKind | K.ObjectPropertyKind | K.RestPropertyKind)[];
|
|
528
528
|
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
529
|
-
}):
|
|
529
|
+
}): namedTypes.ObjectPattern;
|
|
530
530
|
}
|
|
531
531
|
export interface ArrayPatternBuilder {
|
|
532
|
-
(elements: (K.PatternKind | K.SpreadElementKind | null)[]):
|
|
532
|
+
(elements: (K.PatternKind | K.SpreadElementKind | null)[]): namedTypes.ArrayPattern;
|
|
533
533
|
from(params: {
|
|
534
534
|
comments?: K.CommentKind[] | null;
|
|
535
535
|
elements: (K.PatternKind | K.SpreadElementKind | null)[];
|
|
536
536
|
loc?: K.SourceLocationKind | null;
|
|
537
|
-
}):
|
|
537
|
+
}): namedTypes.ArrayPattern;
|
|
538
538
|
}
|
|
539
539
|
export interface MethodDefinitionBuilder {
|
|
540
|
-
(kind: "constructor" | "method" | "get" | "set", key: K.ExpressionKind, value: K.FunctionKind, staticParam?: boolean):
|
|
540
|
+
(kind: "constructor" | "method" | "get" | "set", key: K.ExpressionKind, value: K.FunctionKind, staticParam?: boolean): namedTypes.MethodDefinition;
|
|
541
541
|
from(params: {
|
|
542
542
|
comments?: K.CommentKind[] | null;
|
|
543
543
|
computed?: boolean;
|
|
@@ -547,36 +547,37 @@ export interface MethodDefinitionBuilder {
|
|
|
547
547
|
loc?: K.SourceLocationKind | null;
|
|
548
548
|
static?: boolean;
|
|
549
549
|
value: K.FunctionKind;
|
|
550
|
-
}):
|
|
550
|
+
}): namedTypes.MethodDefinition;
|
|
551
551
|
}
|
|
552
552
|
export interface SpreadElementBuilder {
|
|
553
|
-
(argument: K.ExpressionKind):
|
|
553
|
+
(argument: K.ExpressionKind): namedTypes.SpreadElement;
|
|
554
554
|
from(params: {
|
|
555
555
|
argument: K.ExpressionKind;
|
|
556
556
|
comments?: K.CommentKind[] | null;
|
|
557
557
|
loc?: K.SourceLocationKind | null;
|
|
558
|
-
}):
|
|
558
|
+
}): namedTypes.SpreadElement;
|
|
559
559
|
}
|
|
560
560
|
export interface AssignmentPatternBuilder {
|
|
561
|
-
(left: K.PatternKind, right: K.ExpressionKind):
|
|
561
|
+
(left: K.PatternKind, right: K.ExpressionKind): namedTypes.AssignmentPattern;
|
|
562
562
|
from(params: {
|
|
563
563
|
comments?: K.CommentKind[] | null;
|
|
564
564
|
left: K.PatternKind;
|
|
565
565
|
loc?: K.SourceLocationKind | null;
|
|
566
566
|
right: K.ExpressionKind;
|
|
567
|
-
}):
|
|
567
|
+
}): namedTypes.AssignmentPattern;
|
|
568
568
|
}
|
|
569
569
|
export interface ClassPropertyDefinitionBuilder {
|
|
570
|
-
(definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind):
|
|
570
|
+
(definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind): namedTypes.ClassPropertyDefinition;
|
|
571
571
|
from(params: {
|
|
572
572
|
comments?: K.CommentKind[] | null;
|
|
573
573
|
definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind;
|
|
574
574
|
loc?: K.SourceLocationKind | null;
|
|
575
|
-
}):
|
|
575
|
+
}): namedTypes.ClassPropertyDefinition;
|
|
576
576
|
}
|
|
577
577
|
export interface ClassPropertyBuilder {
|
|
578
|
-
(key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, value: K.ExpressionKind | null, typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null, staticParam?: boolean):
|
|
578
|
+
(key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, value: K.ExpressionKind | null, typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null, staticParam?: boolean): namedTypes.ClassProperty;
|
|
579
579
|
from(params: {
|
|
580
|
+
access?: "public" | "private" | "protected" | undefined;
|
|
580
581
|
comments?: K.CommentKind[] | null;
|
|
581
582
|
computed?: boolean;
|
|
582
583
|
key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind;
|
|
@@ -585,18 +586,18 @@ export interface ClassPropertyBuilder {
|
|
|
585
586
|
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
586
587
|
value: K.ExpressionKind | null;
|
|
587
588
|
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
588
|
-
}):
|
|
589
|
+
}): namedTypes.ClassProperty;
|
|
589
590
|
}
|
|
590
591
|
export interface ClassBodyBuilder {
|
|
591
|
-
(body: (K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.ClassPrivatePropertyKind | K.ClassMethodKind | K.ClassPrivateMethodKind | K.TSDeclareMethodKind | K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]):
|
|
592
|
+
(body: (K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.ClassPrivatePropertyKind | K.ClassMethodKind | K.ClassPrivateMethodKind | K.TSDeclareMethodKind | K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]): namedTypes.ClassBody;
|
|
592
593
|
from(params: {
|
|
593
594
|
body: (K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.ClassPrivatePropertyKind | K.ClassMethodKind | K.ClassPrivateMethodKind | K.TSDeclareMethodKind | K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[];
|
|
594
595
|
comments?: K.CommentKind[] | null;
|
|
595
596
|
loc?: K.SourceLocationKind | null;
|
|
596
|
-
}):
|
|
597
|
+
}): namedTypes.ClassBody;
|
|
597
598
|
}
|
|
598
599
|
export interface ClassDeclarationBuilder {
|
|
599
|
-
(id: K.IdentifierKind | null, body: K.ClassBodyKind, superClass?: K.ExpressionKind | null):
|
|
600
|
+
(id: K.IdentifierKind | null, body: K.ClassBodyKind, superClass?: K.ExpressionKind | null): namedTypes.ClassDeclaration;
|
|
600
601
|
from(params: {
|
|
601
602
|
body: K.ClassBodyKind;
|
|
602
603
|
comments?: K.CommentKind[] | null;
|
|
@@ -606,10 +607,10 @@ export interface ClassDeclarationBuilder {
|
|
|
606
607
|
superClass?: K.ExpressionKind | null;
|
|
607
608
|
superTypeParameters?: K.TypeParameterInstantiationKind | K.TSTypeParameterInstantiationKind | null;
|
|
608
609
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
609
|
-
}):
|
|
610
|
+
}): namedTypes.ClassDeclaration;
|
|
610
611
|
}
|
|
611
612
|
export interface ClassExpressionBuilder {
|
|
612
|
-
(id: K.IdentifierKind | null | undefined, body: K.ClassBodyKind, superClass?: K.ExpressionKind | null):
|
|
613
|
+
(id: K.IdentifierKind | null | undefined, body: K.ClassBodyKind, superClass?: K.ExpressionKind | null): namedTypes.ClassExpression;
|
|
613
614
|
from(params: {
|
|
614
615
|
body: K.ClassBodyKind;
|
|
615
616
|
comments?: K.CommentKind[] | null;
|
|
@@ -619,10 +620,10 @@ export interface ClassExpressionBuilder {
|
|
|
619
620
|
superClass?: K.ExpressionKind | null;
|
|
620
621
|
superTypeParameters?: K.TypeParameterInstantiationKind | K.TSTypeParameterInstantiationKind | null;
|
|
621
622
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
622
|
-
}):
|
|
623
|
+
}): namedTypes.ClassExpression;
|
|
623
624
|
}
|
|
624
625
|
export interface ImportSpecifierBuilder {
|
|
625
|
-
(imported: K.IdentifierKind, local?: K.IdentifierKind | null):
|
|
626
|
+
(imported: K.IdentifierKind, local?: K.IdentifierKind | null): namedTypes.ImportSpecifier;
|
|
626
627
|
from(params: {
|
|
627
628
|
comments?: K.CommentKind[] | null;
|
|
628
629
|
id?: K.IdentifierKind | null;
|
|
@@ -630,61 +631,61 @@ export interface ImportSpecifierBuilder {
|
|
|
630
631
|
loc?: K.SourceLocationKind | null;
|
|
631
632
|
local?: K.IdentifierKind | null;
|
|
632
633
|
name?: K.IdentifierKind | null;
|
|
633
|
-
}):
|
|
634
|
+
}): namedTypes.ImportSpecifier;
|
|
634
635
|
}
|
|
635
636
|
export interface ImportNamespaceSpecifierBuilder {
|
|
636
|
-
(local?: K.IdentifierKind | null):
|
|
637
|
+
(local?: K.IdentifierKind | null): namedTypes.ImportNamespaceSpecifier;
|
|
637
638
|
from(params: {
|
|
638
639
|
comments?: K.CommentKind[] | null;
|
|
639
640
|
id?: K.IdentifierKind | null;
|
|
640
641
|
loc?: K.SourceLocationKind | null;
|
|
641
642
|
local?: K.IdentifierKind | null;
|
|
642
643
|
name?: K.IdentifierKind | null;
|
|
643
|
-
}):
|
|
644
|
+
}): namedTypes.ImportNamespaceSpecifier;
|
|
644
645
|
}
|
|
645
646
|
export interface ImportDefaultSpecifierBuilder {
|
|
646
|
-
(local?: K.IdentifierKind | null):
|
|
647
|
+
(local?: K.IdentifierKind | null): namedTypes.ImportDefaultSpecifier;
|
|
647
648
|
from(params: {
|
|
648
649
|
comments?: K.CommentKind[] | null;
|
|
649
650
|
id?: K.IdentifierKind | null;
|
|
650
651
|
loc?: K.SourceLocationKind | null;
|
|
651
652
|
local?: K.IdentifierKind | null;
|
|
652
653
|
name?: K.IdentifierKind | null;
|
|
653
|
-
}):
|
|
654
|
+
}): namedTypes.ImportDefaultSpecifier;
|
|
654
655
|
}
|
|
655
656
|
export interface ImportDeclarationBuilder {
|
|
656
|
-
(specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | undefined, source: K.LiteralKind, importKind?: "value" | "type"):
|
|
657
|
+
(specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | undefined, source: K.LiteralKind, importKind?: "value" | "type"): namedTypes.ImportDeclaration;
|
|
657
658
|
from(params: {
|
|
658
659
|
comments?: K.CommentKind[] | null;
|
|
659
660
|
importKind?: "value" | "type";
|
|
660
661
|
loc?: K.SourceLocationKind | null;
|
|
661
662
|
source: K.LiteralKind;
|
|
662
663
|
specifiers?: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[];
|
|
663
|
-
}):
|
|
664
|
+
}): namedTypes.ImportDeclaration;
|
|
664
665
|
}
|
|
665
666
|
export interface TaggedTemplateExpressionBuilder {
|
|
666
|
-
(tag: K.ExpressionKind, quasi: K.TemplateLiteralKind):
|
|
667
|
+
(tag: K.ExpressionKind, quasi: K.TemplateLiteralKind): namedTypes.TaggedTemplateExpression;
|
|
667
668
|
from(params: {
|
|
668
669
|
comments?: K.CommentKind[] | null;
|
|
669
670
|
loc?: K.SourceLocationKind | null;
|
|
670
671
|
quasi: K.TemplateLiteralKind;
|
|
671
672
|
tag: K.ExpressionKind;
|
|
672
|
-
}):
|
|
673
|
+
}): namedTypes.TaggedTemplateExpression;
|
|
673
674
|
}
|
|
674
675
|
export interface TemplateLiteralBuilder {
|
|
675
|
-
(quasis: K.TemplateElementKind[], expressions: K.ExpressionKind[]):
|
|
676
|
+
(quasis: K.TemplateElementKind[], expressions: K.ExpressionKind[]): namedTypes.TemplateLiteral;
|
|
676
677
|
from(params: {
|
|
677
678
|
comments?: K.CommentKind[] | null;
|
|
678
679
|
expressions: K.ExpressionKind[];
|
|
679
680
|
loc?: K.SourceLocationKind | null;
|
|
680
681
|
quasis: K.TemplateElementKind[];
|
|
681
|
-
}):
|
|
682
|
+
}): namedTypes.TemplateLiteral;
|
|
682
683
|
}
|
|
683
684
|
export interface TemplateElementBuilder {
|
|
684
685
|
(value: {
|
|
685
686
|
cooked: string;
|
|
686
687
|
raw: string;
|
|
687
|
-
}, tail: boolean):
|
|
688
|
+
}, tail: boolean): namedTypes.TemplateElement;
|
|
688
689
|
from(params: {
|
|
689
690
|
comments?: K.CommentKind[] | null;
|
|
690
691
|
loc?: K.SourceLocationKind | null;
|
|
@@ -693,89 +694,89 @@ export interface TemplateElementBuilder {
|
|
|
693
694
|
cooked: string;
|
|
694
695
|
raw: string;
|
|
695
696
|
};
|
|
696
|
-
}):
|
|
697
|
+
}): namedTypes.TemplateElement;
|
|
697
698
|
}
|
|
698
699
|
export interface SpreadPropertyBuilder {
|
|
699
|
-
(argument: K.ExpressionKind):
|
|
700
|
+
(argument: K.ExpressionKind): namedTypes.SpreadProperty;
|
|
700
701
|
from(params: {
|
|
701
702
|
argument: K.ExpressionKind;
|
|
702
703
|
comments?: K.CommentKind[] | null;
|
|
703
704
|
loc?: K.SourceLocationKind | null;
|
|
704
|
-
}):
|
|
705
|
+
}): namedTypes.SpreadProperty;
|
|
705
706
|
}
|
|
706
707
|
export interface SpreadPropertyPatternBuilder {
|
|
707
|
-
(argument: K.PatternKind):
|
|
708
|
+
(argument: K.PatternKind): namedTypes.SpreadPropertyPattern;
|
|
708
709
|
from(params: {
|
|
709
710
|
argument: K.PatternKind;
|
|
710
711
|
comments?: K.CommentKind[] | null;
|
|
711
712
|
loc?: K.SourceLocationKind | null;
|
|
712
|
-
}):
|
|
713
|
+
}): namedTypes.SpreadPropertyPattern;
|
|
713
714
|
}
|
|
714
715
|
export interface AwaitExpressionBuilder {
|
|
715
|
-
(argument: K.ExpressionKind | null, all?: boolean):
|
|
716
|
+
(argument: K.ExpressionKind | null, all?: boolean): namedTypes.AwaitExpression;
|
|
716
717
|
from(params: {
|
|
717
718
|
all?: boolean;
|
|
718
719
|
argument: K.ExpressionKind | null;
|
|
719
720
|
comments?: K.CommentKind[] | null;
|
|
720
721
|
loc?: K.SourceLocationKind | null;
|
|
721
|
-
}):
|
|
722
|
+
}): namedTypes.AwaitExpression;
|
|
722
723
|
}
|
|
723
724
|
export interface JSXAttributeBuilder {
|
|
724
|
-
(name: K.JSXIdentifierKind | K.JSXNamespacedNameKind, value?: K.LiteralKind | K.JSXExpressionContainerKind | null):
|
|
725
|
+
(name: K.JSXIdentifierKind | K.JSXNamespacedNameKind, value?: K.LiteralKind | K.JSXExpressionContainerKind | null): namedTypes.JSXAttribute;
|
|
725
726
|
from(params: {
|
|
726
727
|
comments?: K.CommentKind[] | null;
|
|
727
728
|
loc?: K.SourceLocationKind | null;
|
|
728
729
|
name: K.JSXIdentifierKind | K.JSXNamespacedNameKind;
|
|
729
730
|
value?: K.LiteralKind | K.JSXExpressionContainerKind | null;
|
|
730
|
-
}):
|
|
731
|
+
}): namedTypes.JSXAttribute;
|
|
731
732
|
}
|
|
732
733
|
export interface JSXIdentifierBuilder {
|
|
733
|
-
(name: string):
|
|
734
|
+
(name: string): namedTypes.JSXIdentifier;
|
|
734
735
|
from(params: {
|
|
735
736
|
comments?: K.CommentKind[] | null;
|
|
736
737
|
loc?: K.SourceLocationKind | null;
|
|
737
738
|
name: string;
|
|
738
739
|
optional?: boolean;
|
|
739
740
|
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
740
|
-
}):
|
|
741
|
+
}): namedTypes.JSXIdentifier;
|
|
741
742
|
}
|
|
742
743
|
export interface JSXNamespacedNameBuilder {
|
|
743
|
-
(namespace: K.JSXIdentifierKind, name: K.JSXIdentifierKind):
|
|
744
|
+
(namespace: K.JSXIdentifierKind, name: K.JSXIdentifierKind): namedTypes.JSXNamespacedName;
|
|
744
745
|
from(params: {
|
|
745
746
|
comments?: K.CommentKind[] | null;
|
|
746
747
|
loc?: K.SourceLocationKind | null;
|
|
747
748
|
name: K.JSXIdentifierKind;
|
|
748
749
|
namespace: K.JSXIdentifierKind;
|
|
749
|
-
}):
|
|
750
|
+
}): namedTypes.JSXNamespacedName;
|
|
750
751
|
}
|
|
751
752
|
export interface JSXExpressionContainerBuilder {
|
|
752
|
-
(expression: K.ExpressionKind):
|
|
753
|
+
(expression: K.ExpressionKind): namedTypes.JSXExpressionContainer;
|
|
753
754
|
from(params: {
|
|
754
755
|
comments?: K.CommentKind[] | null;
|
|
755
756
|
expression: K.ExpressionKind;
|
|
756
757
|
loc?: K.SourceLocationKind | null;
|
|
757
|
-
}):
|
|
758
|
+
}): namedTypes.JSXExpressionContainer;
|
|
758
759
|
}
|
|
759
760
|
export interface JSXMemberExpressionBuilder {
|
|
760
|
-
(object: K.JSXIdentifierKind | K.JSXMemberExpressionKind, property: K.JSXIdentifierKind):
|
|
761
|
+
(object: K.JSXIdentifierKind | K.JSXMemberExpressionKind, property: K.JSXIdentifierKind): namedTypes.JSXMemberExpression;
|
|
761
762
|
from(params: {
|
|
762
763
|
comments?: K.CommentKind[] | null;
|
|
763
764
|
computed?: boolean;
|
|
764
765
|
loc?: K.SourceLocationKind | null;
|
|
765
766
|
object: K.JSXIdentifierKind | K.JSXMemberExpressionKind;
|
|
766
767
|
property: K.JSXIdentifierKind;
|
|
767
|
-
}):
|
|
768
|
+
}): namedTypes.JSXMemberExpression;
|
|
768
769
|
}
|
|
769
770
|
export interface JSXSpreadAttributeBuilder {
|
|
770
|
-
(argument: K.ExpressionKind):
|
|
771
|
+
(argument: K.ExpressionKind): namedTypes.JSXSpreadAttribute;
|
|
771
772
|
from(params: {
|
|
772
773
|
argument: K.ExpressionKind;
|
|
773
774
|
comments?: K.CommentKind[] | null;
|
|
774
775
|
loc?: K.SourceLocationKind | null;
|
|
775
|
-
}):
|
|
776
|
+
}): namedTypes.JSXSpreadAttribute;
|
|
776
777
|
}
|
|
777
778
|
export interface JSXElementBuilder {
|
|
778
|
-
(openingElement: K.JSXOpeningElementKind, closingElement?: K.JSXClosingElementKind | null, children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]):
|
|
779
|
+
(openingElement: K.JSXOpeningElementKind, closingElement?: K.JSXClosingElementKind | null, children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]): namedTypes.JSXElement;
|
|
779
780
|
from(params: {
|
|
780
781
|
attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[];
|
|
781
782
|
children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[];
|
|
@@ -785,38 +786,38 @@ export interface JSXElementBuilder {
|
|
|
785
786
|
name?: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind;
|
|
786
787
|
openingElement: K.JSXOpeningElementKind;
|
|
787
788
|
selfClosing?: boolean;
|
|
788
|
-
}):
|
|
789
|
+
}): namedTypes.JSXElement;
|
|
789
790
|
}
|
|
790
791
|
export interface JSXOpeningElementBuilder {
|
|
791
|
-
(name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind, attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[], selfClosing?: boolean):
|
|
792
|
+
(name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind, attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[], selfClosing?: boolean): namedTypes.JSXOpeningElement;
|
|
792
793
|
from(params: {
|
|
793
794
|
attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[];
|
|
794
795
|
comments?: K.CommentKind[] | null;
|
|
795
796
|
loc?: K.SourceLocationKind | null;
|
|
796
797
|
name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind;
|
|
797
798
|
selfClosing?: boolean;
|
|
798
|
-
}):
|
|
799
|
+
}): namedTypes.JSXOpeningElement;
|
|
799
800
|
}
|
|
800
801
|
export interface JSXClosingElementBuilder {
|
|
801
|
-
(name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind):
|
|
802
|
+
(name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind): namedTypes.JSXClosingElement;
|
|
802
803
|
from(params: {
|
|
803
804
|
comments?: K.CommentKind[] | null;
|
|
804
805
|
loc?: K.SourceLocationKind | null;
|
|
805
806
|
name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind;
|
|
806
|
-
}):
|
|
807
|
+
}): namedTypes.JSXClosingElement;
|
|
807
808
|
}
|
|
808
809
|
export interface JSXFragmentBuilder {
|
|
809
|
-
(openingElement: K.JSXOpeningFragmentKind, closingElement: K.JSXClosingFragmentKind, children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]):
|
|
810
|
+
(openingElement: K.JSXOpeningFragmentKind, closingElement: K.JSXClosingFragmentKind, children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]): namedTypes.JSXFragment;
|
|
810
811
|
from(params: {
|
|
811
812
|
children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[];
|
|
812
813
|
closingElement: K.JSXClosingFragmentKind;
|
|
813
814
|
comments?: K.CommentKind[] | null;
|
|
814
815
|
loc?: K.SourceLocationKind | null;
|
|
815
816
|
openingElement: K.JSXOpeningFragmentKind;
|
|
816
|
-
}):
|
|
817
|
+
}): namedTypes.JSXFragment;
|
|
817
818
|
}
|
|
818
819
|
export interface JSXTextBuilder {
|
|
819
|
-
(value: string):
|
|
820
|
+
(value: string): namedTypes.JSXText;
|
|
820
821
|
from(params: {
|
|
821
822
|
comments?: K.CommentKind[] | null;
|
|
822
823
|
loc?: K.SourceLocationKind | null;
|
|
@@ -825,218 +826,218 @@ export interface JSXTextBuilder {
|
|
|
825
826
|
flags: string;
|
|
826
827
|
} | null;
|
|
827
828
|
value: string;
|
|
828
|
-
}):
|
|
829
|
+
}): namedTypes.JSXText;
|
|
829
830
|
}
|
|
830
831
|
export interface JSXOpeningFragmentBuilder {
|
|
831
|
-
():
|
|
832
|
+
(): namedTypes.JSXOpeningFragment;
|
|
832
833
|
from(params: {
|
|
833
834
|
comments?: K.CommentKind[] | null;
|
|
834
835
|
loc?: K.SourceLocationKind | null;
|
|
835
|
-
}):
|
|
836
|
+
}): namedTypes.JSXOpeningFragment;
|
|
836
837
|
}
|
|
837
838
|
export interface JSXClosingFragmentBuilder {
|
|
838
|
-
():
|
|
839
|
+
(): namedTypes.JSXClosingFragment;
|
|
839
840
|
from(params: {
|
|
840
841
|
comments?: K.CommentKind[] | null;
|
|
841
842
|
loc?: K.SourceLocationKind | null;
|
|
842
|
-
}):
|
|
843
|
+
}): namedTypes.JSXClosingFragment;
|
|
843
844
|
}
|
|
844
845
|
export interface JSXEmptyExpressionBuilder {
|
|
845
|
-
():
|
|
846
|
+
(): namedTypes.JSXEmptyExpression;
|
|
846
847
|
from(params: {
|
|
847
848
|
comments?: K.CommentKind[] | null;
|
|
848
849
|
loc?: K.SourceLocationKind | null;
|
|
849
|
-
}):
|
|
850
|
+
}): namedTypes.JSXEmptyExpression;
|
|
850
851
|
}
|
|
851
852
|
export interface JSXSpreadChildBuilder {
|
|
852
|
-
(expression: K.ExpressionKind):
|
|
853
|
+
(expression: K.ExpressionKind): namedTypes.JSXSpreadChild;
|
|
853
854
|
from(params: {
|
|
854
855
|
comments?: K.CommentKind[] | null;
|
|
855
856
|
expression: K.ExpressionKind;
|
|
856
857
|
loc?: K.SourceLocationKind | null;
|
|
857
|
-
}):
|
|
858
|
+
}): namedTypes.JSXSpreadChild;
|
|
858
859
|
}
|
|
859
860
|
export interface TypeParameterDeclarationBuilder {
|
|
860
|
-
(params: K.TypeParameterKind[]):
|
|
861
|
+
(params: K.TypeParameterKind[]): namedTypes.TypeParameterDeclaration;
|
|
861
862
|
from(params: {
|
|
862
863
|
comments?: K.CommentKind[] | null;
|
|
863
864
|
loc?: K.SourceLocationKind | null;
|
|
864
865
|
params: K.TypeParameterKind[];
|
|
865
|
-
}):
|
|
866
|
+
}): namedTypes.TypeParameterDeclaration;
|
|
866
867
|
}
|
|
867
868
|
export interface TSTypeParameterDeclarationBuilder {
|
|
868
|
-
(params: K.TSTypeParameterKind[]):
|
|
869
|
+
(params: K.TSTypeParameterKind[]): namedTypes.TSTypeParameterDeclaration;
|
|
869
870
|
from(params: {
|
|
870
871
|
comments?: K.CommentKind[] | null;
|
|
871
872
|
loc?: K.SourceLocationKind | null;
|
|
872
873
|
params: K.TSTypeParameterKind[];
|
|
873
|
-
}):
|
|
874
|
+
}): namedTypes.TSTypeParameterDeclaration;
|
|
874
875
|
}
|
|
875
876
|
export interface TypeParameterInstantiationBuilder {
|
|
876
|
-
(params: K.FlowTypeKind[]):
|
|
877
|
+
(params: K.FlowTypeKind[]): namedTypes.TypeParameterInstantiation;
|
|
877
878
|
from(params: {
|
|
878
879
|
comments?: K.CommentKind[] | null;
|
|
879
880
|
loc?: K.SourceLocationKind | null;
|
|
880
881
|
params: K.FlowTypeKind[];
|
|
881
|
-
}):
|
|
882
|
+
}): namedTypes.TypeParameterInstantiation;
|
|
882
883
|
}
|
|
883
884
|
export interface TSTypeParameterInstantiationBuilder {
|
|
884
|
-
(params: K.TSTypeKind[]):
|
|
885
|
+
(params: K.TSTypeKind[]): namedTypes.TSTypeParameterInstantiation;
|
|
885
886
|
from(params: {
|
|
886
887
|
comments?: K.CommentKind[] | null;
|
|
887
888
|
loc?: K.SourceLocationKind | null;
|
|
888
889
|
params: K.TSTypeKind[];
|
|
889
|
-
}):
|
|
890
|
+
}): namedTypes.TSTypeParameterInstantiation;
|
|
890
891
|
}
|
|
891
892
|
export interface ClassImplementsBuilder {
|
|
892
|
-
(id: K.IdentifierKind):
|
|
893
|
+
(id: K.IdentifierKind): namedTypes.ClassImplements;
|
|
893
894
|
from(params: {
|
|
894
895
|
comments?: K.CommentKind[] | null;
|
|
895
896
|
id: K.IdentifierKind;
|
|
896
897
|
loc?: K.SourceLocationKind | null;
|
|
897
898
|
superClass?: K.ExpressionKind | null;
|
|
898
899
|
typeParameters?: K.TypeParameterInstantiationKind | null;
|
|
899
|
-
}):
|
|
900
|
+
}): namedTypes.ClassImplements;
|
|
900
901
|
}
|
|
901
902
|
export interface TSExpressionWithTypeArgumentsBuilder {
|
|
902
|
-
(expression: K.IdentifierKind | K.TSQualifiedNameKind, typeParameters?: K.TSTypeParameterInstantiationKind | null):
|
|
903
|
+
(expression: K.IdentifierKind | K.TSQualifiedNameKind, typeParameters?: K.TSTypeParameterInstantiationKind | null): namedTypes.TSExpressionWithTypeArguments;
|
|
903
904
|
from(params: {
|
|
904
905
|
comments?: K.CommentKind[] | null;
|
|
905
906
|
expression: K.IdentifierKind | K.TSQualifiedNameKind;
|
|
906
907
|
loc?: K.SourceLocationKind | null;
|
|
907
908
|
typeParameters?: K.TSTypeParameterInstantiationKind | null;
|
|
908
|
-
}):
|
|
909
|
+
}): namedTypes.TSExpressionWithTypeArguments;
|
|
909
910
|
}
|
|
910
911
|
export interface AnyTypeAnnotationBuilder {
|
|
911
|
-
():
|
|
912
|
+
(): namedTypes.AnyTypeAnnotation;
|
|
912
913
|
from(params: {
|
|
913
914
|
comments?: K.CommentKind[] | null;
|
|
914
915
|
loc?: K.SourceLocationKind | null;
|
|
915
|
-
}):
|
|
916
|
+
}): namedTypes.AnyTypeAnnotation;
|
|
916
917
|
}
|
|
917
918
|
export interface EmptyTypeAnnotationBuilder {
|
|
918
|
-
():
|
|
919
|
+
(): namedTypes.EmptyTypeAnnotation;
|
|
919
920
|
from(params: {
|
|
920
921
|
comments?: K.CommentKind[] | null;
|
|
921
922
|
loc?: K.SourceLocationKind | null;
|
|
922
|
-
}):
|
|
923
|
+
}): namedTypes.EmptyTypeAnnotation;
|
|
923
924
|
}
|
|
924
925
|
export interface MixedTypeAnnotationBuilder {
|
|
925
|
-
():
|
|
926
|
+
(): namedTypes.MixedTypeAnnotation;
|
|
926
927
|
from(params: {
|
|
927
928
|
comments?: K.CommentKind[] | null;
|
|
928
929
|
loc?: K.SourceLocationKind | null;
|
|
929
|
-
}):
|
|
930
|
+
}): namedTypes.MixedTypeAnnotation;
|
|
930
931
|
}
|
|
931
932
|
export interface VoidTypeAnnotationBuilder {
|
|
932
|
-
():
|
|
933
|
+
(): namedTypes.VoidTypeAnnotation;
|
|
933
934
|
from(params: {
|
|
934
935
|
comments?: K.CommentKind[] | null;
|
|
935
936
|
loc?: K.SourceLocationKind | null;
|
|
936
|
-
}):
|
|
937
|
+
}): namedTypes.VoidTypeAnnotation;
|
|
937
938
|
}
|
|
938
939
|
export interface NumberTypeAnnotationBuilder {
|
|
939
|
-
():
|
|
940
|
+
(): namedTypes.NumberTypeAnnotation;
|
|
940
941
|
from(params: {
|
|
941
942
|
comments?: K.CommentKind[] | null;
|
|
942
943
|
loc?: K.SourceLocationKind | null;
|
|
943
|
-
}):
|
|
944
|
+
}): namedTypes.NumberTypeAnnotation;
|
|
944
945
|
}
|
|
945
946
|
export interface NumberLiteralTypeAnnotationBuilder {
|
|
946
|
-
(value: number, raw: string):
|
|
947
|
+
(value: number, raw: string): namedTypes.NumberLiteralTypeAnnotation;
|
|
947
948
|
from(params: {
|
|
948
949
|
comments?: K.CommentKind[] | null;
|
|
949
950
|
loc?: K.SourceLocationKind | null;
|
|
950
951
|
raw: string;
|
|
951
952
|
value: number;
|
|
952
|
-
}):
|
|
953
|
+
}): namedTypes.NumberLiteralTypeAnnotation;
|
|
953
954
|
}
|
|
954
955
|
export interface NumericLiteralTypeAnnotationBuilder {
|
|
955
|
-
(value: number, raw: string):
|
|
956
|
+
(value: number, raw: string): namedTypes.NumericLiteralTypeAnnotation;
|
|
956
957
|
from(params: {
|
|
957
958
|
comments?: K.CommentKind[] | null;
|
|
958
959
|
loc?: K.SourceLocationKind | null;
|
|
959
960
|
raw: string;
|
|
960
961
|
value: number;
|
|
961
|
-
}):
|
|
962
|
+
}): namedTypes.NumericLiteralTypeAnnotation;
|
|
962
963
|
}
|
|
963
964
|
export interface StringTypeAnnotationBuilder {
|
|
964
|
-
():
|
|
965
|
+
(): namedTypes.StringTypeAnnotation;
|
|
965
966
|
from(params: {
|
|
966
967
|
comments?: K.CommentKind[] | null;
|
|
967
968
|
loc?: K.SourceLocationKind | null;
|
|
968
|
-
}):
|
|
969
|
+
}): namedTypes.StringTypeAnnotation;
|
|
969
970
|
}
|
|
970
971
|
export interface StringLiteralTypeAnnotationBuilder {
|
|
971
|
-
(value: string, raw: string):
|
|
972
|
+
(value: string, raw: string): namedTypes.StringLiteralTypeAnnotation;
|
|
972
973
|
from(params: {
|
|
973
974
|
comments?: K.CommentKind[] | null;
|
|
974
975
|
loc?: K.SourceLocationKind | null;
|
|
975
976
|
raw: string;
|
|
976
977
|
value: string;
|
|
977
|
-
}):
|
|
978
|
+
}): namedTypes.StringLiteralTypeAnnotation;
|
|
978
979
|
}
|
|
979
980
|
export interface BooleanTypeAnnotationBuilder {
|
|
980
|
-
():
|
|
981
|
+
(): namedTypes.BooleanTypeAnnotation;
|
|
981
982
|
from(params: {
|
|
982
983
|
comments?: K.CommentKind[] | null;
|
|
983
984
|
loc?: K.SourceLocationKind | null;
|
|
984
|
-
}):
|
|
985
|
+
}): namedTypes.BooleanTypeAnnotation;
|
|
985
986
|
}
|
|
986
987
|
export interface BooleanLiteralTypeAnnotationBuilder {
|
|
987
|
-
(value: boolean, raw: string):
|
|
988
|
+
(value: boolean, raw: string): namedTypes.BooleanLiteralTypeAnnotation;
|
|
988
989
|
from(params: {
|
|
989
990
|
comments?: K.CommentKind[] | null;
|
|
990
991
|
loc?: K.SourceLocationKind | null;
|
|
991
992
|
raw: string;
|
|
992
993
|
value: boolean;
|
|
993
|
-
}):
|
|
994
|
+
}): namedTypes.BooleanLiteralTypeAnnotation;
|
|
994
995
|
}
|
|
995
996
|
export interface NullableTypeAnnotationBuilder {
|
|
996
|
-
(typeAnnotation: K.FlowTypeKind):
|
|
997
|
+
(typeAnnotation: K.FlowTypeKind): namedTypes.NullableTypeAnnotation;
|
|
997
998
|
from(params: {
|
|
998
999
|
comments?: K.CommentKind[] | null;
|
|
999
1000
|
loc?: K.SourceLocationKind | null;
|
|
1000
1001
|
typeAnnotation: K.FlowTypeKind;
|
|
1001
|
-
}):
|
|
1002
|
+
}): namedTypes.NullableTypeAnnotation;
|
|
1002
1003
|
}
|
|
1003
1004
|
export interface NullLiteralTypeAnnotationBuilder {
|
|
1004
|
-
():
|
|
1005
|
+
(): namedTypes.NullLiteralTypeAnnotation;
|
|
1005
1006
|
from(params: {
|
|
1006
1007
|
comments?: K.CommentKind[] | null;
|
|
1007
1008
|
loc?: K.SourceLocationKind | null;
|
|
1008
|
-
}):
|
|
1009
|
+
}): namedTypes.NullLiteralTypeAnnotation;
|
|
1009
1010
|
}
|
|
1010
1011
|
export interface NullTypeAnnotationBuilder {
|
|
1011
|
-
():
|
|
1012
|
+
(): namedTypes.NullTypeAnnotation;
|
|
1012
1013
|
from(params: {
|
|
1013
1014
|
comments?: K.CommentKind[] | null;
|
|
1014
1015
|
loc?: K.SourceLocationKind | null;
|
|
1015
|
-
}):
|
|
1016
|
+
}): namedTypes.NullTypeAnnotation;
|
|
1016
1017
|
}
|
|
1017
1018
|
export interface ThisTypeAnnotationBuilder {
|
|
1018
|
-
():
|
|
1019
|
+
(): namedTypes.ThisTypeAnnotation;
|
|
1019
1020
|
from(params: {
|
|
1020
1021
|
comments?: K.CommentKind[] | null;
|
|
1021
1022
|
loc?: K.SourceLocationKind | null;
|
|
1022
|
-
}):
|
|
1023
|
+
}): namedTypes.ThisTypeAnnotation;
|
|
1023
1024
|
}
|
|
1024
1025
|
export interface ExistsTypeAnnotationBuilder {
|
|
1025
|
-
():
|
|
1026
|
+
(): namedTypes.ExistsTypeAnnotation;
|
|
1026
1027
|
from(params: {
|
|
1027
1028
|
comments?: K.CommentKind[] | null;
|
|
1028
1029
|
loc?: K.SourceLocationKind | null;
|
|
1029
|
-
}):
|
|
1030
|
+
}): namedTypes.ExistsTypeAnnotation;
|
|
1030
1031
|
}
|
|
1031
1032
|
export interface ExistentialTypeParamBuilder {
|
|
1032
|
-
():
|
|
1033
|
+
(): namedTypes.ExistentialTypeParam;
|
|
1033
1034
|
from(params: {
|
|
1034
1035
|
comments?: K.CommentKind[] | null;
|
|
1035
1036
|
loc?: K.SourceLocationKind | null;
|
|
1036
|
-
}):
|
|
1037
|
+
}): namedTypes.ExistentialTypeParam;
|
|
1037
1038
|
}
|
|
1038
1039
|
export interface FunctionTypeAnnotationBuilder {
|
|
1039
|
-
(params: K.FunctionTypeParamKind[], returnType: K.FlowTypeKind, rest: K.FunctionTypeParamKind | null, typeParameters: K.TypeParameterDeclarationKind | null):
|
|
1040
|
+
(params: K.FunctionTypeParamKind[], returnType: K.FlowTypeKind, rest: K.FunctionTypeParamKind | null, typeParameters: K.TypeParameterDeclarationKind | null): namedTypes.FunctionTypeAnnotation;
|
|
1040
1041
|
from(params: {
|
|
1041
1042
|
comments?: K.CommentKind[] | null;
|
|
1042
1043
|
loc?: K.SourceLocationKind | null;
|
|
@@ -1044,28 +1045,28 @@ export interface FunctionTypeAnnotationBuilder {
|
|
|
1044
1045
|
rest: K.FunctionTypeParamKind | null;
|
|
1045
1046
|
returnType: K.FlowTypeKind;
|
|
1046
1047
|
typeParameters: K.TypeParameterDeclarationKind | null;
|
|
1047
|
-
}):
|
|
1048
|
+
}): namedTypes.FunctionTypeAnnotation;
|
|
1048
1049
|
}
|
|
1049
1050
|
export interface FunctionTypeParamBuilder {
|
|
1050
|
-
(name: K.IdentifierKind, typeAnnotation: K.FlowTypeKind, optional: boolean):
|
|
1051
|
+
(name: K.IdentifierKind, typeAnnotation: K.FlowTypeKind, optional: boolean): namedTypes.FunctionTypeParam;
|
|
1051
1052
|
from(params: {
|
|
1052
1053
|
comments?: K.CommentKind[] | null;
|
|
1053
1054
|
loc?: K.SourceLocationKind | null;
|
|
1054
1055
|
name: K.IdentifierKind;
|
|
1055
1056
|
optional: boolean;
|
|
1056
1057
|
typeAnnotation: K.FlowTypeKind;
|
|
1057
|
-
}):
|
|
1058
|
+
}): namedTypes.FunctionTypeParam;
|
|
1058
1059
|
}
|
|
1059
1060
|
export interface ArrayTypeAnnotationBuilder {
|
|
1060
|
-
(elementType: K.FlowTypeKind):
|
|
1061
|
+
(elementType: K.FlowTypeKind): namedTypes.ArrayTypeAnnotation;
|
|
1061
1062
|
from(params: {
|
|
1062
1063
|
comments?: K.CommentKind[] | null;
|
|
1063
1064
|
elementType: K.FlowTypeKind;
|
|
1064
1065
|
loc?: K.SourceLocationKind | null;
|
|
1065
|
-
}):
|
|
1066
|
+
}): namedTypes.ArrayTypeAnnotation;
|
|
1066
1067
|
}
|
|
1067
1068
|
export interface ObjectTypeAnnotationBuilder {
|
|
1068
|
-
(properties: (K.ObjectTypePropertyKind | K.ObjectTypeSpreadPropertyKind)[], indexers?: K.ObjectTypeIndexerKind[], callProperties?: K.ObjectTypeCallPropertyKind[]):
|
|
1069
|
+
(properties: (K.ObjectTypePropertyKind | K.ObjectTypeSpreadPropertyKind)[], indexers?: K.ObjectTypeIndexerKind[], callProperties?: K.ObjectTypeCallPropertyKind[]): namedTypes.ObjectTypeAnnotation;
|
|
1069
1070
|
from(params: {
|
|
1070
1071
|
callProperties?: K.ObjectTypeCallPropertyKind[];
|
|
1071
1072
|
comments?: K.CommentKind[] | null;
|
|
@@ -1075,10 +1076,10 @@ export interface ObjectTypeAnnotationBuilder {
|
|
|
1075
1076
|
internalSlots?: K.ObjectTypeInternalSlotKind[];
|
|
1076
1077
|
loc?: K.SourceLocationKind | null;
|
|
1077
1078
|
properties: (K.ObjectTypePropertyKind | K.ObjectTypeSpreadPropertyKind)[];
|
|
1078
|
-
}):
|
|
1079
|
+
}): namedTypes.ObjectTypeAnnotation;
|
|
1079
1080
|
}
|
|
1080
1081
|
export interface ObjectTypePropertyBuilder {
|
|
1081
|
-
(key: K.LiteralKind | K.IdentifierKind, value: K.FlowTypeKind, optional: boolean):
|
|
1082
|
+
(key: K.LiteralKind | K.IdentifierKind, value: K.FlowTypeKind, optional: boolean): namedTypes.ObjectTypeProperty;
|
|
1082
1083
|
from(params: {
|
|
1083
1084
|
comments?: K.CommentKind[] | null;
|
|
1084
1085
|
key: K.LiteralKind | K.IdentifierKind;
|
|
@@ -1086,18 +1087,18 @@ export interface ObjectTypePropertyBuilder {
|
|
|
1086
1087
|
optional: boolean;
|
|
1087
1088
|
value: K.FlowTypeKind;
|
|
1088
1089
|
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
1089
|
-
}):
|
|
1090
|
+
}): namedTypes.ObjectTypeProperty;
|
|
1090
1091
|
}
|
|
1091
1092
|
export interface ObjectTypeSpreadPropertyBuilder {
|
|
1092
|
-
(argument: K.FlowTypeKind):
|
|
1093
|
+
(argument: K.FlowTypeKind): namedTypes.ObjectTypeSpreadProperty;
|
|
1093
1094
|
from(params: {
|
|
1094
1095
|
argument: K.FlowTypeKind;
|
|
1095
1096
|
comments?: K.CommentKind[] | null;
|
|
1096
1097
|
loc?: K.SourceLocationKind | null;
|
|
1097
|
-
}):
|
|
1098
|
+
}): namedTypes.ObjectTypeSpreadProperty;
|
|
1098
1099
|
}
|
|
1099
1100
|
export interface ObjectTypeIndexerBuilder {
|
|
1100
|
-
(id: K.IdentifierKind, key: K.FlowTypeKind, value: K.FlowTypeKind):
|
|
1101
|
+
(id: K.IdentifierKind, key: K.FlowTypeKind, value: K.FlowTypeKind): namedTypes.ObjectTypeIndexer;
|
|
1101
1102
|
from(params: {
|
|
1102
1103
|
comments?: K.CommentKind[] | null;
|
|
1103
1104
|
id: K.IdentifierKind;
|
|
@@ -1105,19 +1106,19 @@ export interface ObjectTypeIndexerBuilder {
|
|
|
1105
1106
|
loc?: K.SourceLocationKind | null;
|
|
1106
1107
|
value: K.FlowTypeKind;
|
|
1107
1108
|
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
1108
|
-
}):
|
|
1109
|
+
}): namedTypes.ObjectTypeIndexer;
|
|
1109
1110
|
}
|
|
1110
1111
|
export interface ObjectTypeCallPropertyBuilder {
|
|
1111
|
-
(value: K.FunctionTypeAnnotationKind):
|
|
1112
|
+
(value: K.FunctionTypeAnnotationKind): namedTypes.ObjectTypeCallProperty;
|
|
1112
1113
|
from(params: {
|
|
1113
1114
|
comments?: K.CommentKind[] | null;
|
|
1114
1115
|
loc?: K.SourceLocationKind | null;
|
|
1115
1116
|
static?: boolean;
|
|
1116
1117
|
value: K.FunctionTypeAnnotationKind;
|
|
1117
|
-
}):
|
|
1118
|
+
}): namedTypes.ObjectTypeCallProperty;
|
|
1118
1119
|
}
|
|
1119
1120
|
export interface ObjectTypeInternalSlotBuilder {
|
|
1120
|
-
(id: K.IdentifierKind, value: K.FlowTypeKind, optional: boolean, staticParam: boolean, method: boolean):
|
|
1121
|
+
(id: K.IdentifierKind, value: K.FlowTypeKind, optional: boolean, staticParam: boolean, method: boolean): namedTypes.ObjectTypeInternalSlot;
|
|
1121
1122
|
from(params: {
|
|
1122
1123
|
comments?: K.CommentKind[] | null;
|
|
1123
1124
|
id: K.IdentifierKind;
|
|
@@ -1126,97 +1127,97 @@ export interface ObjectTypeInternalSlotBuilder {
|
|
|
1126
1127
|
optional: boolean;
|
|
1127
1128
|
static: boolean;
|
|
1128
1129
|
value: K.FlowTypeKind;
|
|
1129
|
-
}):
|
|
1130
|
+
}): namedTypes.ObjectTypeInternalSlot;
|
|
1130
1131
|
}
|
|
1131
1132
|
export interface VarianceBuilder {
|
|
1132
|
-
(kind: "plus" | "minus"):
|
|
1133
|
+
(kind: "plus" | "minus"): namedTypes.Variance;
|
|
1133
1134
|
from(params: {
|
|
1134
1135
|
comments?: K.CommentKind[] | null;
|
|
1135
1136
|
kind: "plus" | "minus";
|
|
1136
1137
|
loc?: K.SourceLocationKind | null;
|
|
1137
|
-
}):
|
|
1138
|
+
}): namedTypes.Variance;
|
|
1138
1139
|
}
|
|
1139
1140
|
export interface QualifiedTypeIdentifierBuilder {
|
|
1140
|
-
(qualification: K.IdentifierKind | K.QualifiedTypeIdentifierKind, id: K.IdentifierKind):
|
|
1141
|
+
(qualification: K.IdentifierKind | K.QualifiedTypeIdentifierKind, id: K.IdentifierKind): namedTypes.QualifiedTypeIdentifier;
|
|
1141
1142
|
from(params: {
|
|
1142
1143
|
comments?: K.CommentKind[] | null;
|
|
1143
1144
|
id: K.IdentifierKind;
|
|
1144
1145
|
loc?: K.SourceLocationKind | null;
|
|
1145
1146
|
qualification: K.IdentifierKind | K.QualifiedTypeIdentifierKind;
|
|
1146
|
-
}):
|
|
1147
|
+
}): namedTypes.QualifiedTypeIdentifier;
|
|
1147
1148
|
}
|
|
1148
1149
|
export interface GenericTypeAnnotationBuilder {
|
|
1149
|
-
(id: K.IdentifierKind | K.QualifiedTypeIdentifierKind, typeParameters: K.TypeParameterInstantiationKind | null):
|
|
1150
|
+
(id: K.IdentifierKind | K.QualifiedTypeIdentifierKind, typeParameters: K.TypeParameterInstantiationKind | null): namedTypes.GenericTypeAnnotation;
|
|
1150
1151
|
from(params: {
|
|
1151
1152
|
comments?: K.CommentKind[] | null;
|
|
1152
1153
|
id: K.IdentifierKind | K.QualifiedTypeIdentifierKind;
|
|
1153
1154
|
loc?: K.SourceLocationKind | null;
|
|
1154
1155
|
typeParameters: K.TypeParameterInstantiationKind | null;
|
|
1155
|
-
}):
|
|
1156
|
+
}): namedTypes.GenericTypeAnnotation;
|
|
1156
1157
|
}
|
|
1157
1158
|
export interface MemberTypeAnnotationBuilder {
|
|
1158
|
-
(object: K.IdentifierKind, property: K.MemberTypeAnnotationKind | K.GenericTypeAnnotationKind):
|
|
1159
|
+
(object: K.IdentifierKind, property: K.MemberTypeAnnotationKind | K.GenericTypeAnnotationKind): namedTypes.MemberTypeAnnotation;
|
|
1159
1160
|
from(params: {
|
|
1160
1161
|
comments?: K.CommentKind[] | null;
|
|
1161
1162
|
loc?: K.SourceLocationKind | null;
|
|
1162
1163
|
object: K.IdentifierKind;
|
|
1163
1164
|
property: K.MemberTypeAnnotationKind | K.GenericTypeAnnotationKind;
|
|
1164
|
-
}):
|
|
1165
|
+
}): namedTypes.MemberTypeAnnotation;
|
|
1165
1166
|
}
|
|
1166
1167
|
export interface UnionTypeAnnotationBuilder {
|
|
1167
|
-
(types: K.FlowTypeKind[]):
|
|
1168
|
+
(types: K.FlowTypeKind[]): namedTypes.UnionTypeAnnotation;
|
|
1168
1169
|
from(params: {
|
|
1169
1170
|
comments?: K.CommentKind[] | null;
|
|
1170
1171
|
loc?: K.SourceLocationKind | null;
|
|
1171
1172
|
types: K.FlowTypeKind[];
|
|
1172
|
-
}):
|
|
1173
|
+
}): namedTypes.UnionTypeAnnotation;
|
|
1173
1174
|
}
|
|
1174
1175
|
export interface IntersectionTypeAnnotationBuilder {
|
|
1175
|
-
(types: K.FlowTypeKind[]):
|
|
1176
|
+
(types: K.FlowTypeKind[]): namedTypes.IntersectionTypeAnnotation;
|
|
1176
1177
|
from(params: {
|
|
1177
1178
|
comments?: K.CommentKind[] | null;
|
|
1178
1179
|
loc?: K.SourceLocationKind | null;
|
|
1179
1180
|
types: K.FlowTypeKind[];
|
|
1180
|
-
}):
|
|
1181
|
+
}): namedTypes.IntersectionTypeAnnotation;
|
|
1181
1182
|
}
|
|
1182
1183
|
export interface TypeofTypeAnnotationBuilder {
|
|
1183
|
-
(argument: K.FlowTypeKind):
|
|
1184
|
+
(argument: K.FlowTypeKind): namedTypes.TypeofTypeAnnotation;
|
|
1184
1185
|
from(params: {
|
|
1185
1186
|
argument: K.FlowTypeKind;
|
|
1186
1187
|
comments?: K.CommentKind[] | null;
|
|
1187
1188
|
loc?: K.SourceLocationKind | null;
|
|
1188
|
-
}):
|
|
1189
|
+
}): namedTypes.TypeofTypeAnnotation;
|
|
1189
1190
|
}
|
|
1190
1191
|
export interface TypeParameterBuilder {
|
|
1191
|
-
(name: string, variance?: K.VarianceKind | "plus" | "minus" | null, bound?: K.TypeAnnotationKind | null):
|
|
1192
|
+
(name: string, variance?: K.VarianceKind | "plus" | "minus" | null, bound?: K.TypeAnnotationKind | null): namedTypes.TypeParameter;
|
|
1192
1193
|
from(params: {
|
|
1193
1194
|
bound?: K.TypeAnnotationKind | null;
|
|
1194
1195
|
comments?: K.CommentKind[] | null;
|
|
1195
1196
|
loc?: K.SourceLocationKind | null;
|
|
1196
1197
|
name: string;
|
|
1197
1198
|
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
1198
|
-
}):
|
|
1199
|
+
}): namedTypes.TypeParameter;
|
|
1199
1200
|
}
|
|
1200
1201
|
export interface InterfaceTypeAnnotationBuilder {
|
|
1201
|
-
(body: K.ObjectTypeAnnotationKind, extendsParam?: K.InterfaceExtendsKind[] | null):
|
|
1202
|
+
(body: K.ObjectTypeAnnotationKind, extendsParam?: K.InterfaceExtendsKind[] | null): namedTypes.InterfaceTypeAnnotation;
|
|
1202
1203
|
from(params: {
|
|
1203
1204
|
body: K.ObjectTypeAnnotationKind;
|
|
1204
1205
|
comments?: K.CommentKind[] | null;
|
|
1205
1206
|
extends?: K.InterfaceExtendsKind[] | null;
|
|
1206
1207
|
loc?: K.SourceLocationKind | null;
|
|
1207
|
-
}):
|
|
1208
|
+
}): namedTypes.InterfaceTypeAnnotation;
|
|
1208
1209
|
}
|
|
1209
1210
|
export interface InterfaceExtendsBuilder {
|
|
1210
|
-
(id: K.IdentifierKind):
|
|
1211
|
+
(id: K.IdentifierKind): namedTypes.InterfaceExtends;
|
|
1211
1212
|
from(params: {
|
|
1212
1213
|
comments?: K.CommentKind[] | null;
|
|
1213
1214
|
id: K.IdentifierKind;
|
|
1214
1215
|
loc?: K.SourceLocationKind | null;
|
|
1215
1216
|
typeParameters?: K.TypeParameterInstantiationKind | null;
|
|
1216
|
-
}):
|
|
1217
|
+
}): namedTypes.InterfaceExtends;
|
|
1217
1218
|
}
|
|
1218
1219
|
export interface InterfaceDeclarationBuilder {
|
|
1219
|
-
(id: K.IdentifierKind, body: K.ObjectTypeAnnotationKind, extendsParam: K.InterfaceExtendsKind[]):
|
|
1220
|
+
(id: K.IdentifierKind, body: K.ObjectTypeAnnotationKind, extendsParam: K.InterfaceExtendsKind[]): namedTypes.InterfaceDeclaration;
|
|
1220
1221
|
from(params: {
|
|
1221
1222
|
body: K.ObjectTypeAnnotationKind;
|
|
1222
1223
|
comments?: K.CommentKind[] | null;
|
|
@@ -1224,10 +1225,10 @@ export interface InterfaceDeclarationBuilder {
|
|
|
1224
1225
|
id: K.IdentifierKind;
|
|
1225
1226
|
loc?: K.SourceLocationKind | null;
|
|
1226
1227
|
typeParameters?: K.TypeParameterDeclarationKind | null;
|
|
1227
|
-
}):
|
|
1228
|
+
}): namedTypes.InterfaceDeclaration;
|
|
1228
1229
|
}
|
|
1229
1230
|
export interface DeclareInterfaceBuilder {
|
|
1230
|
-
(id: K.IdentifierKind, body: K.ObjectTypeAnnotationKind, extendsParam: K.InterfaceExtendsKind[]):
|
|
1231
|
+
(id: K.IdentifierKind, body: K.ObjectTypeAnnotationKind, extendsParam: K.InterfaceExtendsKind[]): namedTypes.DeclareInterface;
|
|
1231
1232
|
from(params: {
|
|
1232
1233
|
body: K.ObjectTypeAnnotationKind;
|
|
1233
1234
|
comments?: K.CommentKind[] | null;
|
|
@@ -1235,20 +1236,20 @@ export interface DeclareInterfaceBuilder {
|
|
|
1235
1236
|
id: K.IdentifierKind;
|
|
1236
1237
|
loc?: K.SourceLocationKind | null;
|
|
1237
1238
|
typeParameters?: K.TypeParameterDeclarationKind | null;
|
|
1238
|
-
}):
|
|
1239
|
+
}): namedTypes.DeclareInterface;
|
|
1239
1240
|
}
|
|
1240
1241
|
export interface TypeAliasBuilder {
|
|
1241
|
-
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, right: K.FlowTypeKind):
|
|
1242
|
+
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, right: K.FlowTypeKind): namedTypes.TypeAlias;
|
|
1242
1243
|
from(params: {
|
|
1243
1244
|
comments?: K.CommentKind[] | null;
|
|
1244
1245
|
id: K.IdentifierKind;
|
|
1245
1246
|
loc?: K.SourceLocationKind | null;
|
|
1246
1247
|
right: K.FlowTypeKind;
|
|
1247
1248
|
typeParameters: K.TypeParameterDeclarationKind | null;
|
|
1248
|
-
}):
|
|
1249
|
+
}): namedTypes.TypeAlias;
|
|
1249
1250
|
}
|
|
1250
1251
|
export interface OpaqueTypeBuilder {
|
|
1251
|
-
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, impltype: K.FlowTypeKind, supertype: K.FlowTypeKind):
|
|
1252
|
+
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, impltype: K.FlowTypeKind, supertype: K.FlowTypeKind): namedTypes.OpaqueType;
|
|
1252
1253
|
from(params: {
|
|
1253
1254
|
comments?: K.CommentKind[] | null;
|
|
1254
1255
|
id: K.IdentifierKind;
|
|
@@ -1256,63 +1257,63 @@ export interface OpaqueTypeBuilder {
|
|
|
1256
1257
|
loc?: K.SourceLocationKind | null;
|
|
1257
1258
|
supertype: K.FlowTypeKind;
|
|
1258
1259
|
typeParameters: K.TypeParameterDeclarationKind | null;
|
|
1259
|
-
}):
|
|
1260
|
+
}): namedTypes.OpaqueType;
|
|
1260
1261
|
}
|
|
1261
1262
|
export interface DeclareTypeAliasBuilder {
|
|
1262
|
-
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, right: K.FlowTypeKind):
|
|
1263
|
+
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, right: K.FlowTypeKind): namedTypes.DeclareTypeAlias;
|
|
1263
1264
|
from(params: {
|
|
1264
1265
|
comments?: K.CommentKind[] | null;
|
|
1265
1266
|
id: K.IdentifierKind;
|
|
1266
1267
|
loc?: K.SourceLocationKind | null;
|
|
1267
1268
|
right: K.FlowTypeKind;
|
|
1268
1269
|
typeParameters: K.TypeParameterDeclarationKind | null;
|
|
1269
|
-
}):
|
|
1270
|
+
}): namedTypes.DeclareTypeAlias;
|
|
1270
1271
|
}
|
|
1271
1272
|
export interface DeclareOpaqueTypeBuilder {
|
|
1272
|
-
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null):
|
|
1273
|
+
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null): namedTypes.DeclareOpaqueType;
|
|
1273
1274
|
from(params: {
|
|
1274
1275
|
comments?: K.CommentKind[] | null;
|
|
1275
1276
|
id: K.IdentifierKind;
|
|
1276
1277
|
loc?: K.SourceLocationKind | null;
|
|
1277
1278
|
right: K.FlowTypeKind;
|
|
1278
1279
|
typeParameters: K.TypeParameterDeclarationKind | null;
|
|
1279
|
-
}):
|
|
1280
|
+
}): namedTypes.DeclareOpaqueType;
|
|
1280
1281
|
}
|
|
1281
1282
|
export interface TypeCastExpressionBuilder {
|
|
1282
|
-
(expression: K.ExpressionKind, typeAnnotation: K.TypeAnnotationKind):
|
|
1283
|
+
(expression: K.ExpressionKind, typeAnnotation: K.TypeAnnotationKind): namedTypes.TypeCastExpression;
|
|
1283
1284
|
from(params: {
|
|
1284
1285
|
comments?: K.CommentKind[] | null;
|
|
1285
1286
|
expression: K.ExpressionKind;
|
|
1286
1287
|
loc?: K.SourceLocationKind | null;
|
|
1287
1288
|
typeAnnotation: K.TypeAnnotationKind;
|
|
1288
|
-
}):
|
|
1289
|
+
}): namedTypes.TypeCastExpression;
|
|
1289
1290
|
}
|
|
1290
1291
|
export interface TupleTypeAnnotationBuilder {
|
|
1291
|
-
(types: K.FlowTypeKind[]):
|
|
1292
|
+
(types: K.FlowTypeKind[]): namedTypes.TupleTypeAnnotation;
|
|
1292
1293
|
from(params: {
|
|
1293
1294
|
comments?: K.CommentKind[] | null;
|
|
1294
1295
|
loc?: K.SourceLocationKind | null;
|
|
1295
1296
|
types: K.FlowTypeKind[];
|
|
1296
|
-
}):
|
|
1297
|
+
}): namedTypes.TupleTypeAnnotation;
|
|
1297
1298
|
}
|
|
1298
1299
|
export interface DeclareVariableBuilder {
|
|
1299
|
-
(id: K.IdentifierKind):
|
|
1300
|
+
(id: K.IdentifierKind): namedTypes.DeclareVariable;
|
|
1300
1301
|
from(params: {
|
|
1301
1302
|
comments?: K.CommentKind[] | null;
|
|
1302
1303
|
id: K.IdentifierKind;
|
|
1303
1304
|
loc?: K.SourceLocationKind | null;
|
|
1304
|
-
}):
|
|
1305
|
+
}): namedTypes.DeclareVariable;
|
|
1305
1306
|
}
|
|
1306
1307
|
export interface DeclareFunctionBuilder {
|
|
1307
|
-
(id: K.IdentifierKind):
|
|
1308
|
+
(id: K.IdentifierKind): namedTypes.DeclareFunction;
|
|
1308
1309
|
from(params: {
|
|
1309
1310
|
comments?: K.CommentKind[] | null;
|
|
1310
1311
|
id: K.IdentifierKind;
|
|
1311
1312
|
loc?: K.SourceLocationKind | null;
|
|
1312
|
-
}):
|
|
1313
|
+
}): namedTypes.DeclareFunction;
|
|
1313
1314
|
}
|
|
1314
1315
|
export interface DeclareClassBuilder {
|
|
1315
|
-
(id: K.IdentifierKind):
|
|
1316
|
+
(id: K.IdentifierKind): namedTypes.DeclareClass;
|
|
1316
1317
|
from(params: {
|
|
1317
1318
|
body: K.ObjectTypeAnnotationKind;
|
|
1318
1319
|
comments?: K.CommentKind[] | null;
|
|
@@ -1320,27 +1321,27 @@ export interface DeclareClassBuilder {
|
|
|
1320
1321
|
id: K.IdentifierKind;
|
|
1321
1322
|
loc?: K.SourceLocationKind | null;
|
|
1322
1323
|
typeParameters?: K.TypeParameterDeclarationKind | null;
|
|
1323
|
-
}):
|
|
1324
|
+
}): namedTypes.DeclareClass;
|
|
1324
1325
|
}
|
|
1325
1326
|
export interface DeclareModuleBuilder {
|
|
1326
|
-
(id: K.IdentifierKind | K.LiteralKind, body: K.BlockStatementKind):
|
|
1327
|
+
(id: K.IdentifierKind | K.LiteralKind, body: K.BlockStatementKind): namedTypes.DeclareModule;
|
|
1327
1328
|
from(params: {
|
|
1328
1329
|
body: K.BlockStatementKind;
|
|
1329
1330
|
comments?: K.CommentKind[] | null;
|
|
1330
1331
|
id: K.IdentifierKind | K.LiteralKind;
|
|
1331
1332
|
loc?: K.SourceLocationKind | null;
|
|
1332
|
-
}):
|
|
1333
|
+
}): namedTypes.DeclareModule;
|
|
1333
1334
|
}
|
|
1334
1335
|
export interface DeclareModuleExportsBuilder {
|
|
1335
|
-
(typeAnnotation: K.TypeAnnotationKind):
|
|
1336
|
+
(typeAnnotation: K.TypeAnnotationKind): namedTypes.DeclareModuleExports;
|
|
1336
1337
|
from(params: {
|
|
1337
1338
|
comments?: K.CommentKind[] | null;
|
|
1338
1339
|
loc?: K.SourceLocationKind | null;
|
|
1339
1340
|
typeAnnotation: K.TypeAnnotationKind;
|
|
1340
|
-
}):
|
|
1341
|
+
}): namedTypes.DeclareModuleExports;
|
|
1341
1342
|
}
|
|
1342
1343
|
export interface DeclareExportDeclarationBuilder {
|
|
1343
|
-
(defaultParam: boolean, declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null):
|
|
1344
|
+
(defaultParam: boolean, declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null): namedTypes.DeclareExportDeclaration;
|
|
1344
1345
|
from(params: {
|
|
1345
1346
|
comments?: K.CommentKind[] | null;
|
|
1346
1347
|
declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null;
|
|
@@ -1348,10 +1349,10 @@ export interface DeclareExportDeclarationBuilder {
|
|
|
1348
1349
|
loc?: K.SourceLocationKind | null;
|
|
1349
1350
|
source?: K.LiteralKind | null;
|
|
1350
1351
|
specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[];
|
|
1351
|
-
}):
|
|
1352
|
+
}): namedTypes.DeclareExportDeclaration;
|
|
1352
1353
|
}
|
|
1353
1354
|
export interface ExportSpecifierBuilder {
|
|
1354
|
-
(local: K.IdentifierKind | null | undefined, exported: K.IdentifierKind):
|
|
1355
|
+
(local: K.IdentifierKind | null | undefined, exported: K.IdentifierKind): namedTypes.ExportSpecifier;
|
|
1355
1356
|
from(params: {
|
|
1356
1357
|
comments?: K.CommentKind[] | null;
|
|
1357
1358
|
exported: K.IdentifierKind;
|
|
@@ -1359,40 +1360,40 @@ export interface ExportSpecifierBuilder {
|
|
|
1359
1360
|
loc?: K.SourceLocationKind | null;
|
|
1360
1361
|
local?: K.IdentifierKind | null;
|
|
1361
1362
|
name?: K.IdentifierKind | null;
|
|
1362
|
-
}):
|
|
1363
|
+
}): namedTypes.ExportSpecifier;
|
|
1363
1364
|
}
|
|
1364
1365
|
export interface ExportBatchSpecifierBuilder {
|
|
1365
|
-
():
|
|
1366
|
+
(): namedTypes.ExportBatchSpecifier;
|
|
1366
1367
|
from(params: {
|
|
1367
1368
|
comments?: K.CommentKind[] | null;
|
|
1368
1369
|
loc?: K.SourceLocationKind | null;
|
|
1369
|
-
}):
|
|
1370
|
+
}): namedTypes.ExportBatchSpecifier;
|
|
1370
1371
|
}
|
|
1371
1372
|
export interface DeclareExportAllDeclarationBuilder {
|
|
1372
|
-
(source?: K.LiteralKind | null):
|
|
1373
|
+
(source?: K.LiteralKind | null): namedTypes.DeclareExportAllDeclaration;
|
|
1373
1374
|
from(params: {
|
|
1374
1375
|
comments?: K.CommentKind[] | null;
|
|
1375
1376
|
loc?: K.SourceLocationKind | null;
|
|
1376
1377
|
source?: K.LiteralKind | null;
|
|
1377
|
-
}):
|
|
1378
|
+
}): namedTypes.DeclareExportAllDeclaration;
|
|
1378
1379
|
}
|
|
1379
1380
|
export interface InferredPredicateBuilder {
|
|
1380
|
-
():
|
|
1381
|
+
(): namedTypes.InferredPredicate;
|
|
1381
1382
|
from(params: {
|
|
1382
1383
|
comments?: K.CommentKind[] | null;
|
|
1383
1384
|
loc?: K.SourceLocationKind | null;
|
|
1384
|
-
}):
|
|
1385
|
+
}): namedTypes.InferredPredicate;
|
|
1385
1386
|
}
|
|
1386
1387
|
export interface DeclaredPredicateBuilder {
|
|
1387
|
-
(value: K.ExpressionKind):
|
|
1388
|
+
(value: K.ExpressionKind): namedTypes.DeclaredPredicate;
|
|
1388
1389
|
from(params: {
|
|
1389
1390
|
comments?: K.CommentKind[] | null;
|
|
1390
1391
|
loc?: K.SourceLocationKind | null;
|
|
1391
1392
|
value: K.ExpressionKind;
|
|
1392
|
-
}):
|
|
1393
|
+
}): namedTypes.DeclaredPredicate;
|
|
1393
1394
|
}
|
|
1394
1395
|
export interface ExportDeclarationBuilder {
|
|
1395
|
-
(defaultParam: boolean, declaration: K.DeclarationKind | K.ExpressionKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null):
|
|
1396
|
+
(defaultParam: boolean, declaration: K.DeclarationKind | K.ExpressionKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null): namedTypes.ExportDeclaration;
|
|
1396
1397
|
from(params: {
|
|
1397
1398
|
comments?: K.CommentKind[] | null;
|
|
1398
1399
|
declaration: K.DeclarationKind | K.ExpressionKind | null;
|
|
@@ -1400,169 +1401,169 @@ export interface ExportDeclarationBuilder {
|
|
|
1400
1401
|
loc?: K.SourceLocationKind | null;
|
|
1401
1402
|
source?: K.LiteralKind | null;
|
|
1402
1403
|
specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[];
|
|
1403
|
-
}):
|
|
1404
|
+
}): namedTypes.ExportDeclaration;
|
|
1404
1405
|
}
|
|
1405
1406
|
export interface BlockBuilder {
|
|
1406
|
-
(value: string, leading?: boolean, trailing?: boolean):
|
|
1407
|
+
(value: string, leading?: boolean, trailing?: boolean): namedTypes.Block;
|
|
1407
1408
|
from(params: {
|
|
1408
1409
|
leading?: boolean;
|
|
1409
1410
|
loc?: K.SourceLocationKind | null;
|
|
1410
1411
|
trailing?: boolean;
|
|
1411
1412
|
value: string;
|
|
1412
|
-
}):
|
|
1413
|
+
}): namedTypes.Block;
|
|
1413
1414
|
}
|
|
1414
1415
|
export interface LineBuilder {
|
|
1415
|
-
(value: string, leading?: boolean, trailing?: boolean):
|
|
1416
|
+
(value: string, leading?: boolean, trailing?: boolean): namedTypes.Line;
|
|
1416
1417
|
from(params: {
|
|
1417
1418
|
leading?: boolean;
|
|
1418
1419
|
loc?: K.SourceLocationKind | null;
|
|
1419
1420
|
trailing?: boolean;
|
|
1420
1421
|
value: string;
|
|
1421
|
-
}):
|
|
1422
|
+
}): namedTypes.Line;
|
|
1422
1423
|
}
|
|
1423
1424
|
export interface NoopBuilder {
|
|
1424
|
-
():
|
|
1425
|
+
(): namedTypes.Noop;
|
|
1425
1426
|
from(params: {
|
|
1426
1427
|
comments?: K.CommentKind[] | null;
|
|
1427
1428
|
loc?: K.SourceLocationKind | null;
|
|
1428
|
-
}):
|
|
1429
|
+
}): namedTypes.Noop;
|
|
1429
1430
|
}
|
|
1430
1431
|
export interface DoExpressionBuilder {
|
|
1431
|
-
(body: K.StatementKind[]):
|
|
1432
|
+
(body: K.StatementKind[]): namedTypes.DoExpression;
|
|
1432
1433
|
from(params: {
|
|
1433
1434
|
body: K.StatementKind[];
|
|
1434
1435
|
comments?: K.CommentKind[] | null;
|
|
1435
1436
|
loc?: K.SourceLocationKind | null;
|
|
1436
|
-
}):
|
|
1437
|
+
}): namedTypes.DoExpression;
|
|
1437
1438
|
}
|
|
1438
1439
|
export interface SuperBuilder {
|
|
1439
|
-
():
|
|
1440
|
+
(): namedTypes.Super;
|
|
1440
1441
|
from(params: {
|
|
1441
1442
|
comments?: K.CommentKind[] | null;
|
|
1442
1443
|
loc?: K.SourceLocationKind | null;
|
|
1443
|
-
}):
|
|
1444
|
+
}): namedTypes.Super;
|
|
1444
1445
|
}
|
|
1445
1446
|
export interface BindExpressionBuilder {
|
|
1446
|
-
(object: K.ExpressionKind | null, callee: K.ExpressionKind):
|
|
1447
|
+
(object: K.ExpressionKind | null, callee: K.ExpressionKind): namedTypes.BindExpression;
|
|
1447
1448
|
from(params: {
|
|
1448
1449
|
callee: K.ExpressionKind;
|
|
1449
1450
|
comments?: K.CommentKind[] | null;
|
|
1450
1451
|
loc?: K.SourceLocationKind | null;
|
|
1451
1452
|
object: K.ExpressionKind | null;
|
|
1452
|
-
}):
|
|
1453
|
+
}): namedTypes.BindExpression;
|
|
1453
1454
|
}
|
|
1454
1455
|
export interface DecoratorBuilder {
|
|
1455
|
-
(expression: K.ExpressionKind):
|
|
1456
|
+
(expression: K.ExpressionKind): namedTypes.Decorator;
|
|
1456
1457
|
from(params: {
|
|
1457
1458
|
comments?: K.CommentKind[] | null;
|
|
1458
1459
|
expression: K.ExpressionKind;
|
|
1459
1460
|
loc?: K.SourceLocationKind | null;
|
|
1460
|
-
}):
|
|
1461
|
+
}): namedTypes.Decorator;
|
|
1461
1462
|
}
|
|
1462
1463
|
export interface MetaPropertyBuilder {
|
|
1463
|
-
(meta: K.IdentifierKind, property: K.IdentifierKind):
|
|
1464
|
+
(meta: K.IdentifierKind, property: K.IdentifierKind): namedTypes.MetaProperty;
|
|
1464
1465
|
from(params: {
|
|
1465
1466
|
comments?: K.CommentKind[] | null;
|
|
1466
1467
|
loc?: K.SourceLocationKind | null;
|
|
1467
1468
|
meta: K.IdentifierKind;
|
|
1468
1469
|
property: K.IdentifierKind;
|
|
1469
|
-
}):
|
|
1470
|
+
}): namedTypes.MetaProperty;
|
|
1470
1471
|
}
|
|
1471
1472
|
export interface ParenthesizedExpressionBuilder {
|
|
1472
|
-
(expression: K.ExpressionKind):
|
|
1473
|
+
(expression: K.ExpressionKind): namedTypes.ParenthesizedExpression;
|
|
1473
1474
|
from(params: {
|
|
1474
1475
|
comments?: K.CommentKind[] | null;
|
|
1475
1476
|
expression: K.ExpressionKind;
|
|
1476
1477
|
loc?: K.SourceLocationKind | null;
|
|
1477
|
-
}):
|
|
1478
|
+
}): namedTypes.ParenthesizedExpression;
|
|
1478
1479
|
}
|
|
1479
1480
|
export interface ExportDefaultDeclarationBuilder {
|
|
1480
|
-
(declaration: K.DeclarationKind | K.ExpressionKind):
|
|
1481
|
+
(declaration: K.DeclarationKind | K.ExpressionKind): namedTypes.ExportDefaultDeclaration;
|
|
1481
1482
|
from(params: {
|
|
1482
1483
|
comments?: K.CommentKind[] | null;
|
|
1483
1484
|
declaration: K.DeclarationKind | K.ExpressionKind;
|
|
1484
1485
|
loc?: K.SourceLocationKind | null;
|
|
1485
|
-
}):
|
|
1486
|
+
}): namedTypes.ExportDefaultDeclaration;
|
|
1486
1487
|
}
|
|
1487
1488
|
export interface ExportNamedDeclarationBuilder {
|
|
1488
|
-
(declaration: K.DeclarationKind | null, specifiers?: K.ExportSpecifierKind[], source?: K.LiteralKind | null):
|
|
1489
|
+
(declaration: K.DeclarationKind | null, specifiers?: K.ExportSpecifierKind[], source?: K.LiteralKind | null): namedTypes.ExportNamedDeclaration;
|
|
1489
1490
|
from(params: {
|
|
1490
1491
|
comments?: K.CommentKind[] | null;
|
|
1491
1492
|
declaration: K.DeclarationKind | null;
|
|
1492
1493
|
loc?: K.SourceLocationKind | null;
|
|
1493
1494
|
source?: K.LiteralKind | null;
|
|
1494
1495
|
specifiers?: K.ExportSpecifierKind[];
|
|
1495
|
-
}):
|
|
1496
|
+
}): namedTypes.ExportNamedDeclaration;
|
|
1496
1497
|
}
|
|
1497
1498
|
export interface ExportNamespaceSpecifierBuilder {
|
|
1498
|
-
(exported: K.IdentifierKind):
|
|
1499
|
+
(exported: K.IdentifierKind): namedTypes.ExportNamespaceSpecifier;
|
|
1499
1500
|
from(params: {
|
|
1500
1501
|
comments?: K.CommentKind[] | null;
|
|
1501
1502
|
exported: K.IdentifierKind;
|
|
1502
1503
|
loc?: K.SourceLocationKind | null;
|
|
1503
|
-
}):
|
|
1504
|
+
}): namedTypes.ExportNamespaceSpecifier;
|
|
1504
1505
|
}
|
|
1505
1506
|
export interface ExportDefaultSpecifierBuilder {
|
|
1506
|
-
(exported: K.IdentifierKind):
|
|
1507
|
+
(exported: K.IdentifierKind): namedTypes.ExportDefaultSpecifier;
|
|
1507
1508
|
from(params: {
|
|
1508
1509
|
comments?: K.CommentKind[] | null;
|
|
1509
1510
|
exported: K.IdentifierKind;
|
|
1510
1511
|
loc?: K.SourceLocationKind | null;
|
|
1511
|
-
}):
|
|
1512
|
+
}): namedTypes.ExportDefaultSpecifier;
|
|
1512
1513
|
}
|
|
1513
1514
|
export interface ExportAllDeclarationBuilder {
|
|
1514
|
-
(exported: K.IdentifierKind | null, source: K.LiteralKind):
|
|
1515
|
+
(exported: K.IdentifierKind | null, source: K.LiteralKind): namedTypes.ExportAllDeclaration;
|
|
1515
1516
|
from(params: {
|
|
1516
1517
|
comments?: K.CommentKind[] | null;
|
|
1517
1518
|
exported: K.IdentifierKind | null;
|
|
1518
1519
|
loc?: K.SourceLocationKind | null;
|
|
1519
1520
|
source: K.LiteralKind;
|
|
1520
|
-
}):
|
|
1521
|
+
}): namedTypes.ExportAllDeclaration;
|
|
1521
1522
|
}
|
|
1522
1523
|
export interface CommentBlockBuilder {
|
|
1523
|
-
(value: string, leading?: boolean, trailing?: boolean):
|
|
1524
|
+
(value: string, leading?: boolean, trailing?: boolean): namedTypes.CommentBlock;
|
|
1524
1525
|
from(params: {
|
|
1525
1526
|
leading?: boolean;
|
|
1526
1527
|
loc?: K.SourceLocationKind | null;
|
|
1527
1528
|
trailing?: boolean;
|
|
1528
1529
|
value: string;
|
|
1529
|
-
}):
|
|
1530
|
+
}): namedTypes.CommentBlock;
|
|
1530
1531
|
}
|
|
1531
1532
|
export interface CommentLineBuilder {
|
|
1532
|
-
(value: string, leading?: boolean, trailing?: boolean):
|
|
1533
|
+
(value: string, leading?: boolean, trailing?: boolean): namedTypes.CommentLine;
|
|
1533
1534
|
from(params: {
|
|
1534
1535
|
leading?: boolean;
|
|
1535
1536
|
loc?: K.SourceLocationKind | null;
|
|
1536
1537
|
trailing?: boolean;
|
|
1537
1538
|
value: string;
|
|
1538
|
-
}):
|
|
1539
|
+
}): namedTypes.CommentLine;
|
|
1539
1540
|
}
|
|
1540
1541
|
export interface DirectiveBuilder {
|
|
1541
|
-
(value: K.DirectiveLiteralKind):
|
|
1542
|
+
(value: K.DirectiveLiteralKind): namedTypes.Directive;
|
|
1542
1543
|
from(params: {
|
|
1543
1544
|
comments?: K.CommentKind[] | null;
|
|
1544
1545
|
loc?: K.SourceLocationKind | null;
|
|
1545
1546
|
value: K.DirectiveLiteralKind;
|
|
1546
|
-
}):
|
|
1547
|
+
}): namedTypes.Directive;
|
|
1547
1548
|
}
|
|
1548
1549
|
export interface DirectiveLiteralBuilder {
|
|
1549
|
-
(value?: string):
|
|
1550
|
+
(value?: string): namedTypes.DirectiveLiteral;
|
|
1550
1551
|
from(params: {
|
|
1551
1552
|
comments?: K.CommentKind[] | null;
|
|
1552
1553
|
loc?: K.SourceLocationKind | null;
|
|
1553
1554
|
value?: string;
|
|
1554
|
-
}):
|
|
1555
|
+
}): namedTypes.DirectiveLiteral;
|
|
1555
1556
|
}
|
|
1556
1557
|
export interface InterpreterDirectiveBuilder {
|
|
1557
|
-
(value: string):
|
|
1558
|
+
(value: string): namedTypes.InterpreterDirective;
|
|
1558
1559
|
from(params: {
|
|
1559
1560
|
comments?: K.CommentKind[] | null;
|
|
1560
1561
|
loc?: K.SourceLocationKind | null;
|
|
1561
1562
|
value: string;
|
|
1562
|
-
}):
|
|
1563
|
+
}): namedTypes.InterpreterDirective;
|
|
1563
1564
|
}
|
|
1564
1565
|
export interface StringLiteralBuilder {
|
|
1565
|
-
(value: string):
|
|
1566
|
+
(value: string): namedTypes.StringLiteral;
|
|
1566
1567
|
from(params: {
|
|
1567
1568
|
comments?: K.CommentKind[] | null;
|
|
1568
1569
|
loc?: K.SourceLocationKind | null;
|
|
@@ -1571,10 +1572,10 @@ export interface StringLiteralBuilder {
|
|
|
1571
1572
|
flags: string;
|
|
1572
1573
|
} | null;
|
|
1573
1574
|
value: string;
|
|
1574
|
-
}):
|
|
1575
|
+
}): namedTypes.StringLiteral;
|
|
1575
1576
|
}
|
|
1576
1577
|
export interface NumericLiteralBuilder {
|
|
1577
|
-
(value: number):
|
|
1578
|
+
(value: number): namedTypes.NumericLiteral;
|
|
1578
1579
|
from(params: {
|
|
1579
1580
|
comments?: K.CommentKind[] | null;
|
|
1580
1581
|
extra?: {
|
|
@@ -1588,10 +1589,10 @@ export interface NumericLiteralBuilder {
|
|
|
1588
1589
|
flags: string;
|
|
1589
1590
|
} | null;
|
|
1590
1591
|
value: number;
|
|
1591
|
-
}):
|
|
1592
|
+
}): namedTypes.NumericLiteral;
|
|
1592
1593
|
}
|
|
1593
1594
|
export interface BigIntLiteralBuilder {
|
|
1594
|
-
(value: string | number):
|
|
1595
|
+
(value: string | number): namedTypes.BigIntLiteral;
|
|
1595
1596
|
from(params: {
|
|
1596
1597
|
comments?: K.CommentKind[] | null;
|
|
1597
1598
|
extra?: {
|
|
@@ -1604,10 +1605,10 @@ export interface BigIntLiteralBuilder {
|
|
|
1604
1605
|
flags: string;
|
|
1605
1606
|
} | null;
|
|
1606
1607
|
value: string | number;
|
|
1607
|
-
}):
|
|
1608
|
+
}): namedTypes.BigIntLiteral;
|
|
1608
1609
|
}
|
|
1609
1610
|
export interface NullLiteralBuilder {
|
|
1610
|
-
():
|
|
1611
|
+
(): namedTypes.NullLiteral;
|
|
1611
1612
|
from(params: {
|
|
1612
1613
|
comments?: K.CommentKind[] | null;
|
|
1613
1614
|
loc?: K.SourceLocationKind | null;
|
|
@@ -1616,10 +1617,10 @@ export interface NullLiteralBuilder {
|
|
|
1616
1617
|
flags: string;
|
|
1617
1618
|
} | null;
|
|
1618
1619
|
value?: null;
|
|
1619
|
-
}):
|
|
1620
|
+
}): namedTypes.NullLiteral;
|
|
1620
1621
|
}
|
|
1621
1622
|
export interface BooleanLiteralBuilder {
|
|
1622
|
-
(value: boolean):
|
|
1623
|
+
(value: boolean): namedTypes.BooleanLiteral;
|
|
1623
1624
|
from(params: {
|
|
1624
1625
|
comments?: K.CommentKind[] | null;
|
|
1625
1626
|
loc?: K.SourceLocationKind | null;
|
|
@@ -1628,10 +1629,10 @@ export interface BooleanLiteralBuilder {
|
|
|
1628
1629
|
flags: string;
|
|
1629
1630
|
} | null;
|
|
1630
1631
|
value: boolean;
|
|
1631
|
-
}):
|
|
1632
|
+
}): namedTypes.BooleanLiteral;
|
|
1632
1633
|
}
|
|
1633
1634
|
export interface RegExpLiteralBuilder {
|
|
1634
|
-
(pattern: string, flags: string):
|
|
1635
|
+
(pattern: string, flags: string): namedTypes.RegExpLiteral;
|
|
1635
1636
|
from(params: {
|
|
1636
1637
|
comments?: K.CommentKind[] | null;
|
|
1637
1638
|
flags: string;
|
|
@@ -1642,10 +1643,10 @@ export interface RegExpLiteralBuilder {
|
|
|
1642
1643
|
flags: string;
|
|
1643
1644
|
} | null;
|
|
1644
1645
|
value?: RegExp;
|
|
1645
|
-
}):
|
|
1646
|
+
}): namedTypes.RegExpLiteral;
|
|
1646
1647
|
}
|
|
1647
1648
|
export interface ObjectMethodBuilder {
|
|
1648
|
-
(kind: "method" | "get" | "set", key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean):
|
|
1649
|
+
(kind: "method" | "get" | "set", key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean): namedTypes.ObjectMethod;
|
|
1649
1650
|
from(params: {
|
|
1650
1651
|
accessibility?: K.LiteralKind | null;
|
|
1651
1652
|
async?: boolean;
|
|
@@ -1664,11 +1665,12 @@ export interface ObjectMethodBuilder {
|
|
|
1664
1665
|
rest?: K.IdentifierKind | null;
|
|
1665
1666
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
1666
1667
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
1667
|
-
}):
|
|
1668
|
+
}): namedTypes.ObjectMethod;
|
|
1668
1669
|
}
|
|
1669
1670
|
export interface ClassPrivatePropertyBuilder {
|
|
1670
|
-
(key: K.PrivateNameKind, value?: K.ExpressionKind | null):
|
|
1671
|
+
(key: K.PrivateNameKind, value?: K.ExpressionKind | null): namedTypes.ClassPrivateProperty;
|
|
1671
1672
|
from(params: {
|
|
1673
|
+
access?: "public" | "private" | "protected" | undefined;
|
|
1672
1674
|
comments?: K.CommentKind[] | null;
|
|
1673
1675
|
computed?: boolean;
|
|
1674
1676
|
key: K.PrivateNameKind;
|
|
@@ -1677,10 +1679,10 @@ export interface ClassPrivatePropertyBuilder {
|
|
|
1677
1679
|
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
1678
1680
|
value?: K.ExpressionKind | null;
|
|
1679
1681
|
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
1680
|
-
}):
|
|
1682
|
+
}): namedTypes.ClassPrivateProperty;
|
|
1681
1683
|
}
|
|
1682
1684
|
export interface ClassMethodBuilder {
|
|
1683
|
-
(kind: "get" | "set" | "method" | "constructor" | undefined, key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean, staticParam?: boolean | null):
|
|
1685
|
+
(kind: "get" | "set" | "method" | "constructor" | undefined, key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean, staticParam?: boolean | null): namedTypes.ClassMethod;
|
|
1684
1686
|
from(params: {
|
|
1685
1687
|
abstract?: boolean | null;
|
|
1686
1688
|
access?: "public" | "private" | "protected" | null;
|
|
@@ -1703,10 +1705,10 @@ export interface ClassMethodBuilder {
|
|
|
1703
1705
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
1704
1706
|
static?: boolean | null;
|
|
1705
1707
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
1706
|
-
}):
|
|
1708
|
+
}): namedTypes.ClassMethod;
|
|
1707
1709
|
}
|
|
1708
1710
|
export interface ClassPrivateMethodBuilder {
|
|
1709
|
-
(key: K.PrivateNameKind, params: K.PatternKind[], body: K.BlockStatementKind, kind?: "get" | "set" | "method" | "constructor", computed?: boolean, staticParam?: boolean | null):
|
|
1711
|
+
(key: K.PrivateNameKind, params: K.PatternKind[], body: K.BlockStatementKind, kind?: "get" | "set" | "method" | "constructor", computed?: boolean, staticParam?: boolean | null): namedTypes.ClassPrivateMethod;
|
|
1710
1712
|
from(params: {
|
|
1711
1713
|
abstract?: boolean | null;
|
|
1712
1714
|
access?: "public" | "private" | "protected" | null;
|
|
@@ -1729,61 +1731,61 @@ export interface ClassPrivateMethodBuilder {
|
|
|
1729
1731
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
1730
1732
|
static?: boolean | null;
|
|
1731
1733
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
1732
|
-
}):
|
|
1734
|
+
}): namedTypes.ClassPrivateMethod;
|
|
1733
1735
|
}
|
|
1734
1736
|
export interface PrivateNameBuilder {
|
|
1735
|
-
(id: K.IdentifierKind):
|
|
1737
|
+
(id: K.IdentifierKind): namedTypes.PrivateName;
|
|
1736
1738
|
from(params: {
|
|
1737
1739
|
comments?: K.CommentKind[] | null;
|
|
1738
1740
|
id: K.IdentifierKind;
|
|
1739
1741
|
loc?: K.SourceLocationKind | null;
|
|
1740
|
-
}):
|
|
1742
|
+
}): namedTypes.PrivateName;
|
|
1741
1743
|
}
|
|
1742
1744
|
export interface RestPropertyBuilder {
|
|
1743
|
-
(argument: K.ExpressionKind):
|
|
1745
|
+
(argument: K.ExpressionKind): namedTypes.RestProperty;
|
|
1744
1746
|
from(params: {
|
|
1745
1747
|
argument: K.ExpressionKind;
|
|
1746
1748
|
comments?: K.CommentKind[] | null;
|
|
1747
1749
|
loc?: K.SourceLocationKind | null;
|
|
1748
|
-
}):
|
|
1750
|
+
}): namedTypes.RestProperty;
|
|
1749
1751
|
}
|
|
1750
1752
|
export interface ForAwaitStatementBuilder {
|
|
1751
|
-
(left: K.VariableDeclarationKind | K.ExpressionKind, right: K.ExpressionKind, body: K.StatementKind):
|
|
1753
|
+
(left: K.VariableDeclarationKind | K.ExpressionKind, right: K.ExpressionKind, body: K.StatementKind): namedTypes.ForAwaitStatement;
|
|
1752
1754
|
from(params: {
|
|
1753
1755
|
body: K.StatementKind;
|
|
1754
1756
|
comments?: K.CommentKind[] | null;
|
|
1755
1757
|
left: K.VariableDeclarationKind | K.ExpressionKind;
|
|
1756
1758
|
loc?: K.SourceLocationKind | null;
|
|
1757
1759
|
right: K.ExpressionKind;
|
|
1758
|
-
}):
|
|
1760
|
+
}): namedTypes.ForAwaitStatement;
|
|
1759
1761
|
}
|
|
1760
1762
|
export interface ImportBuilder {
|
|
1761
|
-
():
|
|
1763
|
+
(): namedTypes.Import;
|
|
1762
1764
|
from(params: {
|
|
1763
1765
|
comments?: K.CommentKind[] | null;
|
|
1764
1766
|
loc?: K.SourceLocationKind | null;
|
|
1765
|
-
}):
|
|
1767
|
+
}): namedTypes.Import;
|
|
1766
1768
|
}
|
|
1767
1769
|
export interface TSQualifiedNameBuilder {
|
|
1768
|
-
(left: K.IdentifierKind | K.TSQualifiedNameKind, right: K.IdentifierKind | K.TSQualifiedNameKind):
|
|
1770
|
+
(left: K.IdentifierKind | K.TSQualifiedNameKind, right: K.IdentifierKind | K.TSQualifiedNameKind): namedTypes.TSQualifiedName;
|
|
1769
1771
|
from(params: {
|
|
1770
1772
|
comments?: K.CommentKind[] | null;
|
|
1771
1773
|
left: K.IdentifierKind | K.TSQualifiedNameKind;
|
|
1772
1774
|
loc?: K.SourceLocationKind | null;
|
|
1773
1775
|
right: K.IdentifierKind | K.TSQualifiedNameKind;
|
|
1774
|
-
}):
|
|
1776
|
+
}): namedTypes.TSQualifiedName;
|
|
1775
1777
|
}
|
|
1776
1778
|
export interface TSTypeReferenceBuilder {
|
|
1777
|
-
(typeName: K.IdentifierKind | K.TSQualifiedNameKind, typeParameters?: K.TSTypeParameterInstantiationKind | null):
|
|
1779
|
+
(typeName: K.IdentifierKind | K.TSQualifiedNameKind, typeParameters?: K.TSTypeParameterInstantiationKind | null): namedTypes.TSTypeReference;
|
|
1778
1780
|
from(params: {
|
|
1779
1781
|
comments?: K.CommentKind[] | null;
|
|
1780
1782
|
loc?: K.SourceLocationKind | null;
|
|
1781
1783
|
typeName: K.IdentifierKind | K.TSQualifiedNameKind;
|
|
1782
1784
|
typeParameters?: K.TSTypeParameterInstantiationKind | null;
|
|
1783
|
-
}):
|
|
1785
|
+
}): namedTypes.TSTypeReference;
|
|
1784
1786
|
}
|
|
1785
1787
|
export interface TSAsExpressionBuilder {
|
|
1786
|
-
(expression: K.ExpressionKind):
|
|
1788
|
+
(expression: K.ExpressionKind, typeAnnotation: K.TSTypeKind): namedTypes.TSAsExpression;
|
|
1787
1789
|
from(params: {
|
|
1788
1790
|
comments?: K.CommentKind[] | null;
|
|
1789
1791
|
expression: K.ExpressionKind;
|
|
@@ -1792,141 +1794,141 @@ export interface TSAsExpressionBuilder {
|
|
|
1792
1794
|
} | null;
|
|
1793
1795
|
loc?: K.SourceLocationKind | null;
|
|
1794
1796
|
typeAnnotation: K.TSTypeKind;
|
|
1795
|
-
}):
|
|
1797
|
+
}): namedTypes.TSAsExpression;
|
|
1796
1798
|
}
|
|
1797
1799
|
export interface TSNonNullExpressionBuilder {
|
|
1798
|
-
(expression: K.ExpressionKind):
|
|
1800
|
+
(expression: K.ExpressionKind): namedTypes.TSNonNullExpression;
|
|
1799
1801
|
from(params: {
|
|
1800
1802
|
comments?: K.CommentKind[] | null;
|
|
1801
1803
|
expression: K.ExpressionKind;
|
|
1802
1804
|
loc?: K.SourceLocationKind | null;
|
|
1803
|
-
}):
|
|
1805
|
+
}): namedTypes.TSNonNullExpression;
|
|
1804
1806
|
}
|
|
1805
1807
|
export interface TSAnyKeywordBuilder {
|
|
1806
|
-
():
|
|
1808
|
+
(): namedTypes.TSAnyKeyword;
|
|
1807
1809
|
from(params: {
|
|
1808
1810
|
comments?: K.CommentKind[] | null;
|
|
1809
1811
|
loc?: K.SourceLocationKind | null;
|
|
1810
|
-
}):
|
|
1812
|
+
}): namedTypes.TSAnyKeyword;
|
|
1811
1813
|
}
|
|
1812
1814
|
export interface TSBigIntKeywordBuilder {
|
|
1813
|
-
():
|
|
1815
|
+
(): namedTypes.TSBigIntKeyword;
|
|
1814
1816
|
from(params: {
|
|
1815
1817
|
comments?: K.CommentKind[] | null;
|
|
1816
1818
|
loc?: K.SourceLocationKind | null;
|
|
1817
|
-
}):
|
|
1819
|
+
}): namedTypes.TSBigIntKeyword;
|
|
1818
1820
|
}
|
|
1819
1821
|
export interface TSBooleanKeywordBuilder {
|
|
1820
|
-
():
|
|
1822
|
+
(): namedTypes.TSBooleanKeyword;
|
|
1821
1823
|
from(params: {
|
|
1822
1824
|
comments?: K.CommentKind[] | null;
|
|
1823
1825
|
loc?: K.SourceLocationKind | null;
|
|
1824
|
-
}):
|
|
1826
|
+
}): namedTypes.TSBooleanKeyword;
|
|
1825
1827
|
}
|
|
1826
1828
|
export interface TSNeverKeywordBuilder {
|
|
1827
|
-
():
|
|
1829
|
+
(): namedTypes.TSNeverKeyword;
|
|
1828
1830
|
from(params: {
|
|
1829
1831
|
comments?: K.CommentKind[] | null;
|
|
1830
1832
|
loc?: K.SourceLocationKind | null;
|
|
1831
|
-
}):
|
|
1833
|
+
}): namedTypes.TSNeverKeyword;
|
|
1832
1834
|
}
|
|
1833
1835
|
export interface TSNullKeywordBuilder {
|
|
1834
|
-
():
|
|
1836
|
+
(): namedTypes.TSNullKeyword;
|
|
1835
1837
|
from(params: {
|
|
1836
1838
|
comments?: K.CommentKind[] | null;
|
|
1837
1839
|
loc?: K.SourceLocationKind | null;
|
|
1838
|
-
}):
|
|
1840
|
+
}): namedTypes.TSNullKeyword;
|
|
1839
1841
|
}
|
|
1840
1842
|
export interface TSNumberKeywordBuilder {
|
|
1841
|
-
():
|
|
1843
|
+
(): namedTypes.TSNumberKeyword;
|
|
1842
1844
|
from(params: {
|
|
1843
1845
|
comments?: K.CommentKind[] | null;
|
|
1844
1846
|
loc?: K.SourceLocationKind | null;
|
|
1845
|
-
}):
|
|
1847
|
+
}): namedTypes.TSNumberKeyword;
|
|
1846
1848
|
}
|
|
1847
1849
|
export interface TSObjectKeywordBuilder {
|
|
1848
|
-
():
|
|
1850
|
+
(): namedTypes.TSObjectKeyword;
|
|
1849
1851
|
from(params: {
|
|
1850
1852
|
comments?: K.CommentKind[] | null;
|
|
1851
1853
|
loc?: K.SourceLocationKind | null;
|
|
1852
|
-
}):
|
|
1854
|
+
}): namedTypes.TSObjectKeyword;
|
|
1853
1855
|
}
|
|
1854
1856
|
export interface TSStringKeywordBuilder {
|
|
1855
|
-
():
|
|
1857
|
+
(): namedTypes.TSStringKeyword;
|
|
1856
1858
|
from(params: {
|
|
1857
1859
|
comments?: K.CommentKind[] | null;
|
|
1858
1860
|
loc?: K.SourceLocationKind | null;
|
|
1859
|
-
}):
|
|
1861
|
+
}): namedTypes.TSStringKeyword;
|
|
1860
1862
|
}
|
|
1861
1863
|
export interface TSSymbolKeywordBuilder {
|
|
1862
|
-
():
|
|
1864
|
+
(): namedTypes.TSSymbolKeyword;
|
|
1863
1865
|
from(params: {
|
|
1864
1866
|
comments?: K.CommentKind[] | null;
|
|
1865
1867
|
loc?: K.SourceLocationKind | null;
|
|
1866
|
-
}):
|
|
1868
|
+
}): namedTypes.TSSymbolKeyword;
|
|
1867
1869
|
}
|
|
1868
1870
|
export interface TSUndefinedKeywordBuilder {
|
|
1869
|
-
():
|
|
1871
|
+
(): namedTypes.TSUndefinedKeyword;
|
|
1870
1872
|
from(params: {
|
|
1871
1873
|
comments?: K.CommentKind[] | null;
|
|
1872
1874
|
loc?: K.SourceLocationKind | null;
|
|
1873
|
-
}):
|
|
1875
|
+
}): namedTypes.TSUndefinedKeyword;
|
|
1874
1876
|
}
|
|
1875
1877
|
export interface TSUnknownKeywordBuilder {
|
|
1876
|
-
():
|
|
1878
|
+
(): namedTypes.TSUnknownKeyword;
|
|
1877
1879
|
from(params: {
|
|
1878
1880
|
comments?: K.CommentKind[] | null;
|
|
1879
1881
|
loc?: K.SourceLocationKind | null;
|
|
1880
|
-
}):
|
|
1882
|
+
}): namedTypes.TSUnknownKeyword;
|
|
1881
1883
|
}
|
|
1882
1884
|
export interface TSVoidKeywordBuilder {
|
|
1883
|
-
():
|
|
1885
|
+
(): namedTypes.TSVoidKeyword;
|
|
1884
1886
|
from(params: {
|
|
1885
1887
|
comments?: K.CommentKind[] | null;
|
|
1886
1888
|
loc?: K.SourceLocationKind | null;
|
|
1887
|
-
}):
|
|
1889
|
+
}): namedTypes.TSVoidKeyword;
|
|
1888
1890
|
}
|
|
1889
1891
|
export interface TSThisTypeBuilder {
|
|
1890
|
-
():
|
|
1892
|
+
(): namedTypes.TSThisType;
|
|
1891
1893
|
from(params: {
|
|
1892
1894
|
comments?: K.CommentKind[] | null;
|
|
1893
1895
|
loc?: K.SourceLocationKind | null;
|
|
1894
|
-
}):
|
|
1896
|
+
}): namedTypes.TSThisType;
|
|
1895
1897
|
}
|
|
1896
1898
|
export interface TSArrayTypeBuilder {
|
|
1897
|
-
(elementType: K.TSTypeKind):
|
|
1899
|
+
(elementType: K.TSTypeKind): namedTypes.TSArrayType;
|
|
1898
1900
|
from(params: {
|
|
1899
1901
|
comments?: K.CommentKind[] | null;
|
|
1900
1902
|
elementType: K.TSTypeKind;
|
|
1901
1903
|
loc?: K.SourceLocationKind | null;
|
|
1902
|
-
}):
|
|
1904
|
+
}): namedTypes.TSArrayType;
|
|
1903
1905
|
}
|
|
1904
1906
|
export interface TSLiteralTypeBuilder {
|
|
1905
|
-
(literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind):
|
|
1907
|
+
(literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind | K.TemplateLiteralKind | K.UnaryExpressionKind): namedTypes.TSLiteralType;
|
|
1906
1908
|
from(params: {
|
|
1907
1909
|
comments?: K.CommentKind[] | null;
|
|
1908
|
-
literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind;
|
|
1910
|
+
literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind | K.TemplateLiteralKind | K.UnaryExpressionKind;
|
|
1909
1911
|
loc?: K.SourceLocationKind | null;
|
|
1910
|
-
}):
|
|
1912
|
+
}): namedTypes.TSLiteralType;
|
|
1911
1913
|
}
|
|
1912
1914
|
export interface TSUnionTypeBuilder {
|
|
1913
|
-
(types: K.TSTypeKind[]):
|
|
1915
|
+
(types: K.TSTypeKind[]): namedTypes.TSUnionType;
|
|
1914
1916
|
from(params: {
|
|
1915
1917
|
comments?: K.CommentKind[] | null;
|
|
1916
1918
|
loc?: K.SourceLocationKind | null;
|
|
1917
1919
|
types: K.TSTypeKind[];
|
|
1918
|
-
}):
|
|
1920
|
+
}): namedTypes.TSUnionType;
|
|
1919
1921
|
}
|
|
1920
1922
|
export interface TSIntersectionTypeBuilder {
|
|
1921
|
-
(types: K.TSTypeKind[]):
|
|
1923
|
+
(types: K.TSTypeKind[]): namedTypes.TSIntersectionType;
|
|
1922
1924
|
from(params: {
|
|
1923
1925
|
comments?: K.CommentKind[] | null;
|
|
1924
1926
|
loc?: K.SourceLocationKind | null;
|
|
1925
1927
|
types: K.TSTypeKind[];
|
|
1926
|
-
}):
|
|
1928
|
+
}): namedTypes.TSIntersectionType;
|
|
1927
1929
|
}
|
|
1928
1930
|
export interface TSConditionalTypeBuilder {
|
|
1929
|
-
(checkType: K.TSTypeKind, extendsType: K.TSTypeKind, trueType: K.TSTypeKind, falseType: K.TSTypeKind):
|
|
1931
|
+
(checkType: K.TSTypeKind, extendsType: K.TSTypeKind, trueType: K.TSTypeKind, falseType: K.TSTypeKind): namedTypes.TSConditionalType;
|
|
1930
1932
|
from(params: {
|
|
1931
1933
|
checkType: K.TSTypeKind;
|
|
1932
1934
|
comments?: K.CommentKind[] | null;
|
|
@@ -1934,18 +1936,18 @@ export interface TSConditionalTypeBuilder {
|
|
|
1934
1936
|
falseType: K.TSTypeKind;
|
|
1935
1937
|
loc?: K.SourceLocationKind | null;
|
|
1936
1938
|
trueType: K.TSTypeKind;
|
|
1937
|
-
}):
|
|
1939
|
+
}): namedTypes.TSConditionalType;
|
|
1938
1940
|
}
|
|
1939
1941
|
export interface TSInferTypeBuilder {
|
|
1940
|
-
(typeParameter: K.TSTypeParameterKind):
|
|
1942
|
+
(typeParameter: K.TSTypeParameterKind): namedTypes.TSInferType;
|
|
1941
1943
|
from(params: {
|
|
1942
1944
|
comments?: K.CommentKind[] | null;
|
|
1943
1945
|
loc?: K.SourceLocationKind | null;
|
|
1944
1946
|
typeParameter: K.TSTypeParameterKind;
|
|
1945
|
-
}):
|
|
1947
|
+
}): namedTypes.TSInferType;
|
|
1946
1948
|
}
|
|
1947
1949
|
export interface TSTypeParameterBuilder {
|
|
1948
|
-
(name: string, constraint?: K.TSTypeKind | undefined, defaultParam?: K.TSTypeKind | undefined):
|
|
1950
|
+
(name: string, constraint?: K.TSTypeKind | undefined, defaultParam?: K.TSTypeKind | undefined): namedTypes.TSTypeParameter;
|
|
1949
1951
|
from(params: {
|
|
1950
1952
|
comments?: K.CommentKind[] | null;
|
|
1951
1953
|
constraint?: K.TSTypeKind | undefined;
|
|
@@ -1954,38 +1956,38 @@ export interface TSTypeParameterBuilder {
|
|
|
1954
1956
|
name: string;
|
|
1955
1957
|
optional?: boolean;
|
|
1956
1958
|
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
1957
|
-
}):
|
|
1959
|
+
}): namedTypes.TSTypeParameter;
|
|
1958
1960
|
}
|
|
1959
1961
|
export interface TSParenthesizedTypeBuilder {
|
|
1960
|
-
(typeAnnotation: K.TSTypeKind):
|
|
1962
|
+
(typeAnnotation: K.TSTypeKind): namedTypes.TSParenthesizedType;
|
|
1961
1963
|
from(params: {
|
|
1962
1964
|
comments?: K.CommentKind[] | null;
|
|
1963
1965
|
loc?: K.SourceLocationKind | null;
|
|
1964
1966
|
typeAnnotation: K.TSTypeKind;
|
|
1965
|
-
}):
|
|
1967
|
+
}): namedTypes.TSParenthesizedType;
|
|
1966
1968
|
}
|
|
1967
1969
|
export interface TSFunctionTypeBuilder {
|
|
1968
|
-
(parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]):
|
|
1970
|
+
(parameters: (K.IdentifierKind | K.RestElementKind | K.ArrayPatternKind | K.ObjectPatternKind)[]): namedTypes.TSFunctionType;
|
|
1969
1971
|
from(params: {
|
|
1970
1972
|
comments?: K.CommentKind[] | null;
|
|
1971
1973
|
loc?: K.SourceLocationKind | null;
|
|
1972
|
-
parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[];
|
|
1974
|
+
parameters: (K.IdentifierKind | K.RestElementKind | K.ArrayPatternKind | K.ObjectPatternKind)[];
|
|
1973
1975
|
typeAnnotation?: K.TSTypeAnnotationKind | null;
|
|
1974
1976
|
typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined;
|
|
1975
|
-
}):
|
|
1977
|
+
}): namedTypes.TSFunctionType;
|
|
1976
1978
|
}
|
|
1977
1979
|
export interface TSConstructorTypeBuilder {
|
|
1978
|
-
(parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]):
|
|
1980
|
+
(parameters: (K.IdentifierKind | K.RestElementKind | K.ArrayPatternKind | K.ObjectPatternKind)[]): namedTypes.TSConstructorType;
|
|
1979
1981
|
from(params: {
|
|
1980
1982
|
comments?: K.CommentKind[] | null;
|
|
1981
1983
|
loc?: K.SourceLocationKind | null;
|
|
1982
|
-
parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[];
|
|
1984
|
+
parameters: (K.IdentifierKind | K.RestElementKind | K.ArrayPatternKind | K.ObjectPatternKind)[];
|
|
1983
1985
|
typeAnnotation?: K.TSTypeAnnotationKind | null;
|
|
1984
1986
|
typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined;
|
|
1985
|
-
}):
|
|
1987
|
+
}): namedTypes.TSConstructorType;
|
|
1986
1988
|
}
|
|
1987
1989
|
export interface TSDeclareFunctionBuilder {
|
|
1988
|
-
(id: K.IdentifierKind | null | undefined, params: K.PatternKind[], returnType?: K.TSTypeAnnotationKind | K.NoopKind | null):
|
|
1990
|
+
(id: K.IdentifierKind | null | undefined, params: K.PatternKind[], returnType?: K.TSTypeAnnotationKind | K.NoopKind | null): namedTypes.TSDeclareFunction;
|
|
1989
1991
|
from(params: {
|
|
1990
1992
|
async?: boolean;
|
|
1991
1993
|
comments?: K.CommentKind[] | null;
|
|
@@ -1996,10 +1998,10 @@ export interface TSDeclareFunctionBuilder {
|
|
|
1996
1998
|
params: K.PatternKind[];
|
|
1997
1999
|
returnType?: K.TSTypeAnnotationKind | K.NoopKind | null;
|
|
1998
2000
|
typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined;
|
|
1999
|
-
}):
|
|
2001
|
+
}): namedTypes.TSDeclareFunction;
|
|
2000
2002
|
}
|
|
2001
2003
|
export interface TSDeclareMethodBuilder {
|
|
2002
|
-
(key: K.IdentifierKind | K.StringLiteralKind | K.NumericLiteralKind | K.ExpressionKind, params: K.PatternKind[], returnType?: K.TSTypeAnnotationKind | K.NoopKind | null):
|
|
2004
|
+
(key: K.IdentifierKind | K.StringLiteralKind | K.NumericLiteralKind | K.ExpressionKind, params: K.PatternKind[], returnType?: K.TSTypeAnnotationKind | K.NoopKind | null): namedTypes.TSDeclareMethod;
|
|
2003
2005
|
from(params: {
|
|
2004
2006
|
abstract?: boolean;
|
|
2005
2007
|
access?: "public" | "private" | "protected" | undefined;
|
|
@@ -2017,10 +2019,10 @@ export interface TSDeclareMethodBuilder {
|
|
|
2017
2019
|
returnType?: K.TSTypeAnnotationKind | K.NoopKind | null;
|
|
2018
2020
|
static?: boolean;
|
|
2019
2021
|
typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined;
|
|
2020
|
-
}):
|
|
2022
|
+
}): namedTypes.TSDeclareMethod;
|
|
2021
2023
|
}
|
|
2022
2024
|
export interface TSMappedTypeBuilder {
|
|
2023
|
-
(typeParameter: K.TSTypeParameterKind, typeAnnotation?: K.TSTypeKind | null):
|
|
2025
|
+
(typeParameter: K.TSTypeParameterKind, typeAnnotation?: K.TSTypeKind | null): namedTypes.TSMappedType;
|
|
2024
2026
|
from(params: {
|
|
2025
2027
|
comments?: K.CommentKind[] | null;
|
|
2026
2028
|
loc?: K.SourceLocationKind | null;
|
|
@@ -2028,62 +2030,62 @@ export interface TSMappedTypeBuilder {
|
|
|
2028
2030
|
readonly?: boolean | "+" | "-";
|
|
2029
2031
|
typeAnnotation?: K.TSTypeKind | null;
|
|
2030
2032
|
typeParameter: K.TSTypeParameterKind;
|
|
2031
|
-
}):
|
|
2033
|
+
}): namedTypes.TSMappedType;
|
|
2032
2034
|
}
|
|
2033
2035
|
export interface TSTupleTypeBuilder {
|
|
2034
|
-
(elementTypes: K.TSTypeKind[]):
|
|
2036
|
+
(elementTypes: K.TSTypeKind[]): namedTypes.TSTupleType;
|
|
2035
2037
|
from(params: {
|
|
2036
2038
|
comments?: K.CommentKind[] | null;
|
|
2037
2039
|
elementTypes: K.TSTypeKind[];
|
|
2038
2040
|
loc?: K.SourceLocationKind | null;
|
|
2039
|
-
}):
|
|
2041
|
+
}): namedTypes.TSTupleType;
|
|
2040
2042
|
}
|
|
2041
2043
|
export interface TSRestTypeBuilder {
|
|
2042
|
-
(typeAnnotation: K.TSTypeKind):
|
|
2044
|
+
(typeAnnotation: K.TSTypeKind): namedTypes.TSRestType;
|
|
2043
2045
|
from(params: {
|
|
2044
2046
|
comments?: K.CommentKind[] | null;
|
|
2045
2047
|
loc?: K.SourceLocationKind | null;
|
|
2046
2048
|
typeAnnotation: K.TSTypeKind;
|
|
2047
|
-
}):
|
|
2049
|
+
}): namedTypes.TSRestType;
|
|
2048
2050
|
}
|
|
2049
2051
|
export interface TSOptionalTypeBuilder {
|
|
2050
|
-
(typeAnnotation: K.TSTypeKind):
|
|
2052
|
+
(typeAnnotation: K.TSTypeKind): namedTypes.TSOptionalType;
|
|
2051
2053
|
from(params: {
|
|
2052
2054
|
comments?: K.CommentKind[] | null;
|
|
2053
2055
|
loc?: K.SourceLocationKind | null;
|
|
2054
2056
|
typeAnnotation: K.TSTypeKind;
|
|
2055
|
-
}):
|
|
2057
|
+
}): namedTypes.TSOptionalType;
|
|
2056
2058
|
}
|
|
2057
2059
|
export interface TSIndexedAccessTypeBuilder {
|
|
2058
|
-
(objectType: K.TSTypeKind, indexType: K.TSTypeKind):
|
|
2060
|
+
(objectType: K.TSTypeKind, indexType: K.TSTypeKind): namedTypes.TSIndexedAccessType;
|
|
2059
2061
|
from(params: {
|
|
2060
2062
|
comments?: K.CommentKind[] | null;
|
|
2061
2063
|
indexType: K.TSTypeKind;
|
|
2062
2064
|
loc?: K.SourceLocationKind | null;
|
|
2063
2065
|
objectType: K.TSTypeKind;
|
|
2064
|
-
}):
|
|
2066
|
+
}): namedTypes.TSIndexedAccessType;
|
|
2065
2067
|
}
|
|
2066
2068
|
export interface TSTypeOperatorBuilder {
|
|
2067
|
-
(operator: string):
|
|
2069
|
+
(operator: string): namedTypes.TSTypeOperator;
|
|
2068
2070
|
from(params: {
|
|
2069
2071
|
comments?: K.CommentKind[] | null;
|
|
2070
2072
|
loc?: K.SourceLocationKind | null;
|
|
2071
2073
|
operator: string;
|
|
2072
2074
|
typeAnnotation: K.TSTypeKind;
|
|
2073
|
-
}):
|
|
2075
|
+
}): namedTypes.TSTypeOperator;
|
|
2074
2076
|
}
|
|
2075
2077
|
export interface TSIndexSignatureBuilder {
|
|
2076
|
-
(parameters: K.IdentifierKind[], typeAnnotation?: K.TSTypeAnnotationKind | null):
|
|
2078
|
+
(parameters: K.IdentifierKind[], typeAnnotation?: K.TSTypeAnnotationKind | null): namedTypes.TSIndexSignature;
|
|
2077
2079
|
from(params: {
|
|
2078
2080
|
comments?: K.CommentKind[] | null;
|
|
2079
2081
|
loc?: K.SourceLocationKind | null;
|
|
2080
2082
|
parameters: K.IdentifierKind[];
|
|
2081
2083
|
readonly?: boolean;
|
|
2082
2084
|
typeAnnotation?: K.TSTypeAnnotationKind | null;
|
|
2083
|
-
}):
|
|
2085
|
+
}): namedTypes.TSIndexSignature;
|
|
2084
2086
|
}
|
|
2085
2087
|
export interface TSPropertySignatureBuilder {
|
|
2086
|
-
(key: K.ExpressionKind, typeAnnotation?: K.TSTypeAnnotationKind | null, optional?: boolean):
|
|
2088
|
+
(key: K.ExpressionKind, typeAnnotation?: K.TSTypeAnnotationKind | null, optional?: boolean): namedTypes.TSPropertySignature;
|
|
2087
2089
|
from(params: {
|
|
2088
2090
|
comments?: K.CommentKind[] | null;
|
|
2089
2091
|
computed?: boolean;
|
|
@@ -2093,87 +2095,87 @@ export interface TSPropertySignatureBuilder {
|
|
|
2093
2095
|
optional?: boolean;
|
|
2094
2096
|
readonly?: boolean;
|
|
2095
2097
|
typeAnnotation?: K.TSTypeAnnotationKind | null;
|
|
2096
|
-
}):
|
|
2098
|
+
}): namedTypes.TSPropertySignature;
|
|
2097
2099
|
}
|
|
2098
2100
|
export interface TSMethodSignatureBuilder {
|
|
2099
|
-
(key: K.ExpressionKind, parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[], typeAnnotation?: K.TSTypeAnnotationKind | null):
|
|
2101
|
+
(key: K.ExpressionKind, parameters: (K.IdentifierKind | K.RestElementKind | K.ArrayPatternKind | K.ObjectPatternKind)[], typeAnnotation?: K.TSTypeAnnotationKind | null): namedTypes.TSMethodSignature;
|
|
2100
2102
|
from(params: {
|
|
2101
2103
|
comments?: K.CommentKind[] | null;
|
|
2102
2104
|
computed?: boolean;
|
|
2103
2105
|
key: K.ExpressionKind;
|
|
2104
2106
|
loc?: K.SourceLocationKind | null;
|
|
2105
2107
|
optional?: boolean;
|
|
2106
|
-
parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[];
|
|
2108
|
+
parameters: (K.IdentifierKind | K.RestElementKind | K.ArrayPatternKind | K.ObjectPatternKind)[];
|
|
2107
2109
|
typeAnnotation?: K.TSTypeAnnotationKind | null;
|
|
2108
2110
|
typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined;
|
|
2109
|
-
}):
|
|
2111
|
+
}): namedTypes.TSMethodSignature;
|
|
2110
2112
|
}
|
|
2111
2113
|
export interface TSTypePredicateBuilder {
|
|
2112
|
-
(parameterName: K.IdentifierKind | K.TSThisTypeKind, typeAnnotation: K.TSTypeAnnotationKind):
|
|
2114
|
+
(parameterName: K.IdentifierKind | K.TSThisTypeKind, typeAnnotation: K.TSTypeAnnotationKind): namedTypes.TSTypePredicate;
|
|
2113
2115
|
from(params: {
|
|
2114
2116
|
comments?: K.CommentKind[] | null;
|
|
2115
2117
|
loc?: K.SourceLocationKind | null;
|
|
2116
2118
|
parameterName: K.IdentifierKind | K.TSThisTypeKind;
|
|
2117
2119
|
typeAnnotation: K.TSTypeAnnotationKind;
|
|
2118
|
-
}):
|
|
2120
|
+
}): namedTypes.TSTypePredicate;
|
|
2119
2121
|
}
|
|
2120
2122
|
export interface TSCallSignatureDeclarationBuilder {
|
|
2121
|
-
(parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[], typeAnnotation?: K.TSTypeAnnotationKind | null):
|
|
2123
|
+
(parameters: (K.IdentifierKind | K.RestElementKind | K.ArrayPatternKind | K.ObjectPatternKind)[], typeAnnotation?: K.TSTypeAnnotationKind | null): namedTypes.TSCallSignatureDeclaration;
|
|
2122
2124
|
from(params: {
|
|
2123
2125
|
comments?: K.CommentKind[] | null;
|
|
2124
2126
|
loc?: K.SourceLocationKind | null;
|
|
2125
|
-
parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[];
|
|
2127
|
+
parameters: (K.IdentifierKind | K.RestElementKind | K.ArrayPatternKind | K.ObjectPatternKind)[];
|
|
2126
2128
|
typeAnnotation?: K.TSTypeAnnotationKind | null;
|
|
2127
2129
|
typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined;
|
|
2128
|
-
}):
|
|
2130
|
+
}): namedTypes.TSCallSignatureDeclaration;
|
|
2129
2131
|
}
|
|
2130
2132
|
export interface TSConstructSignatureDeclarationBuilder {
|
|
2131
|
-
(parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[], typeAnnotation?: K.TSTypeAnnotationKind | null):
|
|
2133
|
+
(parameters: (K.IdentifierKind | K.RestElementKind | K.ArrayPatternKind | K.ObjectPatternKind)[], typeAnnotation?: K.TSTypeAnnotationKind | null): namedTypes.TSConstructSignatureDeclaration;
|
|
2132
2134
|
from(params: {
|
|
2133
2135
|
comments?: K.CommentKind[] | null;
|
|
2134
2136
|
loc?: K.SourceLocationKind | null;
|
|
2135
|
-
parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[];
|
|
2137
|
+
parameters: (K.IdentifierKind | K.RestElementKind | K.ArrayPatternKind | K.ObjectPatternKind)[];
|
|
2136
2138
|
typeAnnotation?: K.TSTypeAnnotationKind | null;
|
|
2137
2139
|
typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined;
|
|
2138
|
-
}):
|
|
2140
|
+
}): namedTypes.TSConstructSignatureDeclaration;
|
|
2139
2141
|
}
|
|
2140
2142
|
export interface TSEnumMemberBuilder {
|
|
2141
|
-
(id: K.IdentifierKind | K.StringLiteralKind, initializer?: K.ExpressionKind | null):
|
|
2143
|
+
(id: K.IdentifierKind | K.StringLiteralKind, initializer?: K.ExpressionKind | null): namedTypes.TSEnumMember;
|
|
2142
2144
|
from(params: {
|
|
2143
2145
|
comments?: K.CommentKind[] | null;
|
|
2144
2146
|
id: K.IdentifierKind | K.StringLiteralKind;
|
|
2145
2147
|
initializer?: K.ExpressionKind | null;
|
|
2146
2148
|
loc?: K.SourceLocationKind | null;
|
|
2147
|
-
}):
|
|
2149
|
+
}): namedTypes.TSEnumMember;
|
|
2148
2150
|
}
|
|
2149
2151
|
export interface TSTypeQueryBuilder {
|
|
2150
|
-
(exprName: K.IdentifierKind | K.TSQualifiedNameKind | K.TSImportTypeKind):
|
|
2152
|
+
(exprName: K.IdentifierKind | K.TSQualifiedNameKind | K.TSImportTypeKind): namedTypes.TSTypeQuery;
|
|
2151
2153
|
from(params: {
|
|
2152
2154
|
comments?: K.CommentKind[] | null;
|
|
2153
2155
|
exprName: K.IdentifierKind | K.TSQualifiedNameKind | K.TSImportTypeKind;
|
|
2154
2156
|
loc?: K.SourceLocationKind | null;
|
|
2155
|
-
}):
|
|
2157
|
+
}): namedTypes.TSTypeQuery;
|
|
2156
2158
|
}
|
|
2157
2159
|
export interface TSImportTypeBuilder {
|
|
2158
|
-
(argument: K.StringLiteralKind, qualifier?: K.IdentifierKind | K.TSQualifiedNameKind | undefined, typeParameters?: K.TSTypeParameterInstantiationKind | null):
|
|
2160
|
+
(argument: K.StringLiteralKind, qualifier?: K.IdentifierKind | K.TSQualifiedNameKind | undefined, typeParameters?: K.TSTypeParameterInstantiationKind | null): namedTypes.TSImportType;
|
|
2159
2161
|
from(params: {
|
|
2160
2162
|
argument: K.StringLiteralKind;
|
|
2161
2163
|
comments?: K.CommentKind[] | null;
|
|
2162
2164
|
loc?: K.SourceLocationKind | null;
|
|
2163
2165
|
qualifier?: K.IdentifierKind | K.TSQualifiedNameKind | undefined;
|
|
2164
2166
|
typeParameters?: K.TSTypeParameterInstantiationKind | null;
|
|
2165
|
-
}):
|
|
2167
|
+
}): namedTypes.TSImportType;
|
|
2166
2168
|
}
|
|
2167
2169
|
export interface TSTypeLiteralBuilder {
|
|
2168
|
-
(members: (K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]):
|
|
2170
|
+
(members: (K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]): namedTypes.TSTypeLiteral;
|
|
2169
2171
|
from(params: {
|
|
2170
2172
|
comments?: K.CommentKind[] | null;
|
|
2171
2173
|
loc?: K.SourceLocationKind | null;
|
|
2172
2174
|
members: (K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[];
|
|
2173
|
-
}):
|
|
2175
|
+
}): namedTypes.TSTypeLiteral;
|
|
2174
2176
|
}
|
|
2175
2177
|
export interface TSTypeAssertionBuilder {
|
|
2176
|
-
(typeAnnotation: K.TSTypeKind, expression: K.ExpressionKind):
|
|
2178
|
+
(typeAnnotation: K.TSTypeKind, expression: K.ExpressionKind): namedTypes.TSTypeAssertion;
|
|
2177
2179
|
from(params: {
|
|
2178
2180
|
comments?: K.CommentKind[] | null;
|
|
2179
2181
|
expression: K.ExpressionKind;
|
|
@@ -2182,10 +2184,10 @@ export interface TSTypeAssertionBuilder {
|
|
|
2182
2184
|
} | null;
|
|
2183
2185
|
loc?: K.SourceLocationKind | null;
|
|
2184
2186
|
typeAnnotation: K.TSTypeKind;
|
|
2185
|
-
}):
|
|
2187
|
+
}): namedTypes.TSTypeAssertion;
|
|
2186
2188
|
}
|
|
2187
2189
|
export interface TSEnumDeclarationBuilder {
|
|
2188
|
-
(id: K.IdentifierKind, members: K.TSEnumMemberKind[]):
|
|
2190
|
+
(id: K.IdentifierKind, members: K.TSEnumMemberKind[]): namedTypes.TSEnumDeclaration;
|
|
2189
2191
|
from(params: {
|
|
2190
2192
|
comments?: K.CommentKind[] | null;
|
|
2191
2193
|
const?: boolean;
|
|
@@ -2194,10 +2196,10 @@ export interface TSEnumDeclarationBuilder {
|
|
|
2194
2196
|
initializer?: K.ExpressionKind | null;
|
|
2195
2197
|
loc?: K.SourceLocationKind | null;
|
|
2196
2198
|
members: K.TSEnumMemberKind[];
|
|
2197
|
-
}):
|
|
2199
|
+
}): namedTypes.TSEnumDeclaration;
|
|
2198
2200
|
}
|
|
2199
2201
|
export interface TSTypeAliasDeclarationBuilder {
|
|
2200
|
-
(id: K.IdentifierKind, typeAnnotation: K.TSTypeKind):
|
|
2202
|
+
(id: K.IdentifierKind, typeAnnotation: K.TSTypeKind): namedTypes.TSTypeAliasDeclaration;
|
|
2201
2203
|
from(params: {
|
|
2202
2204
|
comments?: K.CommentKind[] | null;
|
|
2203
2205
|
declare?: boolean;
|
|
@@ -2205,18 +2207,18 @@ export interface TSTypeAliasDeclarationBuilder {
|
|
|
2205
2207
|
loc?: K.SourceLocationKind | null;
|
|
2206
2208
|
typeAnnotation: K.TSTypeKind;
|
|
2207
2209
|
typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined;
|
|
2208
|
-
}):
|
|
2210
|
+
}): namedTypes.TSTypeAliasDeclaration;
|
|
2209
2211
|
}
|
|
2210
2212
|
export interface TSModuleBlockBuilder {
|
|
2211
|
-
(body: K.StatementKind[]):
|
|
2213
|
+
(body: K.StatementKind[]): namedTypes.TSModuleBlock;
|
|
2212
2214
|
from(params: {
|
|
2213
2215
|
body: K.StatementKind[];
|
|
2214
2216
|
comments?: K.CommentKind[] | null;
|
|
2215
2217
|
loc?: K.SourceLocationKind | null;
|
|
2216
|
-
}):
|
|
2218
|
+
}): namedTypes.TSModuleBlock;
|
|
2217
2219
|
}
|
|
2218
2220
|
export interface TSModuleDeclarationBuilder {
|
|
2219
|
-
(id: K.StringLiteralKind | K.IdentifierKind | K.TSQualifiedNameKind, body?: K.TSModuleBlockKind | K.TSModuleDeclarationKind | null):
|
|
2221
|
+
(id: K.StringLiteralKind | K.IdentifierKind | K.TSQualifiedNameKind, body?: K.TSModuleBlockKind | K.TSModuleDeclarationKind | null): namedTypes.TSModuleDeclaration;
|
|
2220
2222
|
from(params: {
|
|
2221
2223
|
body?: K.TSModuleBlockKind | K.TSModuleDeclarationKind | null;
|
|
2222
2224
|
comments?: K.CommentKind[] | null;
|
|
@@ -2224,52 +2226,52 @@ export interface TSModuleDeclarationBuilder {
|
|
|
2224
2226
|
global?: boolean;
|
|
2225
2227
|
id: K.StringLiteralKind | K.IdentifierKind | K.TSQualifiedNameKind;
|
|
2226
2228
|
loc?: K.SourceLocationKind | null;
|
|
2227
|
-
}):
|
|
2229
|
+
}): namedTypes.TSModuleDeclaration;
|
|
2228
2230
|
}
|
|
2229
2231
|
export interface TSImportEqualsDeclarationBuilder {
|
|
2230
|
-
(id: K.IdentifierKind, moduleReference: K.IdentifierKind | K.TSQualifiedNameKind | K.TSExternalModuleReferenceKind):
|
|
2232
|
+
(id: K.IdentifierKind, moduleReference: K.IdentifierKind | K.TSQualifiedNameKind | K.TSExternalModuleReferenceKind): namedTypes.TSImportEqualsDeclaration;
|
|
2231
2233
|
from(params: {
|
|
2232
2234
|
comments?: K.CommentKind[] | null;
|
|
2233
2235
|
id: K.IdentifierKind;
|
|
2234
2236
|
isExport?: boolean;
|
|
2235
2237
|
loc?: K.SourceLocationKind | null;
|
|
2236
2238
|
moduleReference: K.IdentifierKind | K.TSQualifiedNameKind | K.TSExternalModuleReferenceKind;
|
|
2237
|
-
}):
|
|
2239
|
+
}): namedTypes.TSImportEqualsDeclaration;
|
|
2238
2240
|
}
|
|
2239
2241
|
export interface TSExternalModuleReferenceBuilder {
|
|
2240
|
-
(expression: K.StringLiteralKind):
|
|
2242
|
+
(expression: K.StringLiteralKind): namedTypes.TSExternalModuleReference;
|
|
2241
2243
|
from(params: {
|
|
2242
2244
|
comments?: K.CommentKind[] | null;
|
|
2243
2245
|
expression: K.StringLiteralKind;
|
|
2244
2246
|
loc?: K.SourceLocationKind | null;
|
|
2245
|
-
}):
|
|
2247
|
+
}): namedTypes.TSExternalModuleReference;
|
|
2246
2248
|
}
|
|
2247
2249
|
export interface TSExportAssignmentBuilder {
|
|
2248
|
-
(expression: K.ExpressionKind):
|
|
2250
|
+
(expression: K.ExpressionKind): namedTypes.TSExportAssignment;
|
|
2249
2251
|
from(params: {
|
|
2250
2252
|
comments?: K.CommentKind[] | null;
|
|
2251
2253
|
expression: K.ExpressionKind;
|
|
2252
2254
|
loc?: K.SourceLocationKind | null;
|
|
2253
|
-
}):
|
|
2255
|
+
}): namedTypes.TSExportAssignment;
|
|
2254
2256
|
}
|
|
2255
2257
|
export interface TSNamespaceExportDeclarationBuilder {
|
|
2256
|
-
(id: K.IdentifierKind):
|
|
2258
|
+
(id: K.IdentifierKind): namedTypes.TSNamespaceExportDeclaration;
|
|
2257
2259
|
from(params: {
|
|
2258
2260
|
comments?: K.CommentKind[] | null;
|
|
2259
2261
|
id: K.IdentifierKind;
|
|
2260
2262
|
loc?: K.SourceLocationKind | null;
|
|
2261
|
-
}):
|
|
2263
|
+
}): namedTypes.TSNamespaceExportDeclaration;
|
|
2262
2264
|
}
|
|
2263
2265
|
export interface TSInterfaceBodyBuilder {
|
|
2264
|
-
(body: (K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]):
|
|
2266
|
+
(body: (K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]): namedTypes.TSInterfaceBody;
|
|
2265
2267
|
from(params: {
|
|
2266
2268
|
body: (K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[];
|
|
2267
2269
|
comments?: K.CommentKind[] | null;
|
|
2268
2270
|
loc?: K.SourceLocationKind | null;
|
|
2269
|
-
}):
|
|
2271
|
+
}): namedTypes.TSInterfaceBody;
|
|
2270
2272
|
}
|
|
2271
2273
|
export interface TSInterfaceDeclarationBuilder {
|
|
2272
|
-
(id: K.IdentifierKind | K.TSQualifiedNameKind, body: K.TSInterfaceBodyKind):
|
|
2274
|
+
(id: K.IdentifierKind | K.TSQualifiedNameKind, body: K.TSInterfaceBodyKind): namedTypes.TSInterfaceDeclaration;
|
|
2273
2275
|
from(params: {
|
|
2274
2276
|
body: K.TSInterfaceBodyKind;
|
|
2275
2277
|
comments?: K.CommentKind[] | null;
|
|
@@ -2278,20 +2280,20 @@ export interface TSInterfaceDeclarationBuilder {
|
|
|
2278
2280
|
id: K.IdentifierKind | K.TSQualifiedNameKind;
|
|
2279
2281
|
loc?: K.SourceLocationKind | null;
|
|
2280
2282
|
typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined;
|
|
2281
|
-
}):
|
|
2283
|
+
}): namedTypes.TSInterfaceDeclaration;
|
|
2282
2284
|
}
|
|
2283
2285
|
export interface TSParameterPropertyBuilder {
|
|
2284
|
-
(parameter: K.IdentifierKind | K.AssignmentPatternKind):
|
|
2286
|
+
(parameter: K.IdentifierKind | K.AssignmentPatternKind): namedTypes.TSParameterProperty;
|
|
2285
2287
|
from(params: {
|
|
2286
2288
|
accessibility?: "public" | "private" | "protected" | undefined;
|
|
2287
2289
|
comments?: K.CommentKind[] | null;
|
|
2288
2290
|
loc?: K.SourceLocationKind | null;
|
|
2289
2291
|
parameter: K.IdentifierKind | K.AssignmentPatternKind;
|
|
2290
2292
|
readonly?: boolean;
|
|
2291
|
-
}):
|
|
2293
|
+
}): namedTypes.TSParameterProperty;
|
|
2292
2294
|
}
|
|
2293
2295
|
export interface OptionalMemberExpressionBuilder {
|
|
2294
|
-
(object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean, optional?: boolean):
|
|
2296
|
+
(object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean, optional?: boolean): namedTypes.OptionalMemberExpression;
|
|
2295
2297
|
from(params: {
|
|
2296
2298
|
comments?: K.CommentKind[] | null;
|
|
2297
2299
|
computed?: boolean;
|
|
@@ -2299,19 +2301,19 @@ export interface OptionalMemberExpressionBuilder {
|
|
|
2299
2301
|
object: K.ExpressionKind;
|
|
2300
2302
|
optional?: boolean;
|
|
2301
2303
|
property: K.IdentifierKind | K.ExpressionKind;
|
|
2302
|
-
}):
|
|
2304
|
+
}): namedTypes.OptionalMemberExpression;
|
|
2303
2305
|
}
|
|
2304
2306
|
export interface OptionalCallExpressionBuilder {
|
|
2305
|
-
(callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[], optional?: boolean):
|
|
2307
|
+
(callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[], optional?: boolean): namedTypes.OptionalCallExpression;
|
|
2306
2308
|
from(params: {
|
|
2307
2309
|
arguments: (K.ExpressionKind | K.SpreadElementKind)[];
|
|
2308
2310
|
callee: K.ExpressionKind;
|
|
2309
2311
|
comments?: K.CommentKind[] | null;
|
|
2310
2312
|
loc?: K.SourceLocationKind | null;
|
|
2311
2313
|
optional?: boolean;
|
|
2312
|
-
}):
|
|
2314
|
+
}): namedTypes.OptionalCallExpression;
|
|
2313
2315
|
}
|
|
2314
|
-
export interface
|
|
2316
|
+
export interface builders {
|
|
2315
2317
|
file: FileBuilder;
|
|
2316
2318
|
program: ProgramBuilder;
|
|
2317
2319
|
identifier: IdentifierBuilder;
|
|
@@ -2347,12 +2349,12 @@ export interface Builders {
|
|
|
2347
2349
|
unaryExpression: UnaryExpressionBuilder;
|
|
2348
2350
|
binaryExpression: BinaryExpressionBuilder;
|
|
2349
2351
|
assignmentExpression: AssignmentExpressionBuilder;
|
|
2352
|
+
memberExpression: MemberExpressionBuilder;
|
|
2350
2353
|
updateExpression: UpdateExpressionBuilder;
|
|
2351
2354
|
logicalExpression: LogicalExpressionBuilder;
|
|
2352
2355
|
conditionalExpression: ConditionalExpressionBuilder;
|
|
2353
2356
|
newExpression: NewExpressionBuilder;
|
|
2354
2357
|
callExpression: CallExpressionBuilder;
|
|
2355
|
-
memberExpression: MemberExpressionBuilder;
|
|
2356
2358
|
restElement: RestElementBuilder;
|
|
2357
2359
|
typeAnnotation: TypeAnnotationBuilder;
|
|
2358
2360
|
tsTypeAnnotation: TSTypeAnnotationBuilder;
|