hermes-parser 0.28.0 → 0.29.0
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/dist/HermesASTAdapter.js +1 -2
- package/dist/HermesASTAdapter.js.flow +2 -5
- package/dist/HermesParserNodeDeserializers.js +3 -2
- package/dist/HermesParserWASM.js +1 -1
- package/dist/HermesToESTreeAdapter.js +12 -0
- package/dist/HermesToESTreeAdapter.js.flow +10 -0
- package/dist/babel/TransformESTreeToBabel.js.flow +21 -19
- package/dist/estree/StripComponentSyntax.js.flow +6 -5
- package/dist/estree/TransformMatchSyntax.js +4 -15
- package/dist/estree/TransformMatchSyntax.js.flow +18 -19
- package/dist/generated/ESTreeVisitorKeys.js +1 -1
- package/dist/generated/ParserVisitorKeys.js +1 -1
- package/dist/index.js.flow +1 -1
- package/dist/src/HermesASTAdapter.js +192 -0
- package/dist/src/HermesParser.js +108 -0
- package/dist/src/HermesParserDecodeUTF8String.js +68 -0
- package/dist/src/HermesParserDeserializer.js +243 -0
- package/dist/src/HermesParserNodeDeserializers.js +2473 -0
- package/dist/src/HermesToESTreeAdapter.js +453 -0
- package/dist/src/ParserOptions.js +18 -0
- package/dist/src/babel/TransformESTreeToBabel.js +1104 -0
- package/dist/src/estree/StripComponentSyntax.js +788 -0
- package/dist/src/estree/StripFlowTypes.js +175 -0
- package/dist/src/estree/StripFlowTypesForBabel.js +215 -0
- package/dist/src/estree/TransformMatchSyntax.js +1005 -0
- package/dist/src/generated/ESTreeVisitorKeys.js +220 -0
- package/dist/src/generated/ParserVisitorKeys.js +790 -0
- package/dist/src/getModuleDocblock.js +112 -0
- package/dist/src/index.js +153 -0
- package/dist/src/transform/SimpleTransform.js +120 -0
- package/dist/src/transform/astArrayMutationHelpers.js +62 -0
- package/dist/src/transform/astNodeMutationHelpers.js +195 -0
- package/dist/src/traverse/SimpleTraverser.js +137 -0
- package/dist/src/traverse/getVisitorKeys.js +37 -0
- package/dist/src/utils/Builders.js +191 -0
- package/dist/src/utils/GenID.js +41 -0
- package/dist/src/utils/createSyntaxError.js +25 -0
- package/dist/src/utils/mutateESTreeASTForPrettier.js +127 -0
- package/dist/utils/Builders.js +17 -0
- package/dist/utils/Builders.js.flow +20 -0
- package/package.json +2 -2
|
@@ -0,0 +1,2473 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* @format
|
|
9
|
+
* @generated
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* !!! GENERATED FILE !!!
|
|
14
|
+
*
|
|
15
|
+
* Any manual changes to this file will be overwritten. To regenerate run `yarn build`.
|
|
16
|
+
*/
|
|
17
|
+
// lint directives to let us do some basic validation of generated files
|
|
18
|
+
|
|
19
|
+
/* eslint no-undef: 'error', no-unused-vars: ['error', {vars: "local"}], no-redeclare: 'error' */
|
|
20
|
+
|
|
21
|
+
/* global $NonMaybeType, Partial, $ReadOnly, $ReadOnlyArray, $FlowFixMe */
|
|
22
|
+
'use strict';
|
|
23
|
+
|
|
24
|
+
function deserializeEmpty() {
|
|
25
|
+
return {
|
|
26
|
+
type: 'Empty',
|
|
27
|
+
loc: this.addEmptyLoc()
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function deserializeMetadata() {
|
|
32
|
+
return {
|
|
33
|
+
type: 'Metadata',
|
|
34
|
+
loc: this.addEmptyLoc()
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function deserializeFunctionLikeFirst() {
|
|
39
|
+
throw new Error('FunctionLike' + ' should not appear in program buffer');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function deserializeProgram() {
|
|
43
|
+
return {
|
|
44
|
+
type: 'Program',
|
|
45
|
+
loc: this.addEmptyLoc(),
|
|
46
|
+
body: this.deserializeNodeList()
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function deserializeFunctionExpression() {
|
|
51
|
+
return {
|
|
52
|
+
type: 'FunctionExpression',
|
|
53
|
+
loc: this.addEmptyLoc(),
|
|
54
|
+
id: this.deserializeNode(),
|
|
55
|
+
params: this.deserializeNodeList(),
|
|
56
|
+
body: this.deserializeNode(),
|
|
57
|
+
typeParameters: this.deserializeNode(),
|
|
58
|
+
returnType: this.deserializeNode(),
|
|
59
|
+
predicate: this.deserializeNode(),
|
|
60
|
+
generator: this.deserializeBoolean(),
|
|
61
|
+
async: this.deserializeBoolean()
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function deserializeArrowFunctionExpression() {
|
|
66
|
+
return {
|
|
67
|
+
type: 'ArrowFunctionExpression',
|
|
68
|
+
loc: this.addEmptyLoc(),
|
|
69
|
+
id: this.deserializeNode(),
|
|
70
|
+
params: this.deserializeNodeList(),
|
|
71
|
+
body: this.deserializeNode(),
|
|
72
|
+
typeParameters: this.deserializeNode(),
|
|
73
|
+
returnType: this.deserializeNode(),
|
|
74
|
+
predicate: this.deserializeNode(),
|
|
75
|
+
expression: this.deserializeBoolean(),
|
|
76
|
+
async: this.deserializeBoolean()
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function deserializeFunctionDeclaration() {
|
|
81
|
+
return {
|
|
82
|
+
type: 'FunctionDeclaration',
|
|
83
|
+
loc: this.addEmptyLoc(),
|
|
84
|
+
id: this.deserializeNode(),
|
|
85
|
+
params: this.deserializeNodeList(),
|
|
86
|
+
body: this.deserializeNode(),
|
|
87
|
+
typeParameters: this.deserializeNode(),
|
|
88
|
+
returnType: this.deserializeNode(),
|
|
89
|
+
predicate: this.deserializeNode(),
|
|
90
|
+
generator: this.deserializeBoolean(),
|
|
91
|
+
async: this.deserializeBoolean()
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function deserializeComponentDeclaration() {
|
|
96
|
+
return {
|
|
97
|
+
type: 'ComponentDeclaration',
|
|
98
|
+
loc: this.addEmptyLoc(),
|
|
99
|
+
id: this.deserializeNode(),
|
|
100
|
+
params: this.deserializeNodeList(),
|
|
101
|
+
body: this.deserializeNode(),
|
|
102
|
+
typeParameters: this.deserializeNode(),
|
|
103
|
+
rendersType: this.deserializeNode()
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function deserializeHookDeclaration() {
|
|
108
|
+
return {
|
|
109
|
+
type: 'HookDeclaration',
|
|
110
|
+
loc: this.addEmptyLoc(),
|
|
111
|
+
id: this.deserializeNode(),
|
|
112
|
+
params: this.deserializeNodeList(),
|
|
113
|
+
body: this.deserializeNode(),
|
|
114
|
+
typeParameters: this.deserializeNode(),
|
|
115
|
+
returnType: this.deserializeNode()
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function deserializeFunctionLikeLast() {
|
|
120
|
+
throw new Error('FunctionLike' + ' should not appear in program buffer');
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function deserializeStatementFirst() {
|
|
124
|
+
throw new Error('Statement' + ' should not appear in program buffer');
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function deserializeMatchStatement() {
|
|
128
|
+
return {
|
|
129
|
+
type: 'MatchStatement',
|
|
130
|
+
loc: this.addEmptyLoc(),
|
|
131
|
+
argument: this.deserializeNode(),
|
|
132
|
+
cases: this.deserializeNodeList()
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function deserializeLoopStatementFirst() {
|
|
137
|
+
throw new Error('LoopStatement' + ' should not appear in program buffer');
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function deserializeWhileStatement() {
|
|
141
|
+
return {
|
|
142
|
+
type: 'WhileStatement',
|
|
143
|
+
loc: this.addEmptyLoc(),
|
|
144
|
+
body: this.deserializeNode(),
|
|
145
|
+
test: this.deserializeNode()
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function deserializeDoWhileStatement() {
|
|
150
|
+
return {
|
|
151
|
+
type: 'DoWhileStatement',
|
|
152
|
+
loc: this.addEmptyLoc(),
|
|
153
|
+
body: this.deserializeNode(),
|
|
154
|
+
test: this.deserializeNode()
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function deserializeForInStatement() {
|
|
159
|
+
return {
|
|
160
|
+
type: 'ForInStatement',
|
|
161
|
+
loc: this.addEmptyLoc(),
|
|
162
|
+
left: this.deserializeNode(),
|
|
163
|
+
right: this.deserializeNode(),
|
|
164
|
+
body: this.deserializeNode()
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function deserializeForOfStatement() {
|
|
169
|
+
return {
|
|
170
|
+
type: 'ForOfStatement',
|
|
171
|
+
loc: this.addEmptyLoc(),
|
|
172
|
+
left: this.deserializeNode(),
|
|
173
|
+
right: this.deserializeNode(),
|
|
174
|
+
body: this.deserializeNode(),
|
|
175
|
+
await: this.deserializeBoolean()
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deserializeForStatement() {
|
|
180
|
+
return {
|
|
181
|
+
type: 'ForStatement',
|
|
182
|
+
loc: this.addEmptyLoc(),
|
|
183
|
+
init: this.deserializeNode(),
|
|
184
|
+
test: this.deserializeNode(),
|
|
185
|
+
update: this.deserializeNode(),
|
|
186
|
+
body: this.deserializeNode()
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function deserializeLoopStatementLast() {
|
|
191
|
+
throw new Error('LoopStatement' + ' should not appear in program buffer');
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function deserializeDebuggerStatement() {
|
|
195
|
+
return {
|
|
196
|
+
type: 'DebuggerStatement',
|
|
197
|
+
loc: this.addEmptyLoc()
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function deserializeEmptyStatement() {
|
|
202
|
+
return {
|
|
203
|
+
type: 'EmptyStatement',
|
|
204
|
+
loc: this.addEmptyLoc()
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
function deserializeBlockStatement() {
|
|
209
|
+
return {
|
|
210
|
+
type: 'BlockStatement',
|
|
211
|
+
loc: this.addEmptyLoc(),
|
|
212
|
+
body: this.deserializeNodeList(),
|
|
213
|
+
implicit: this.deserializeBoolean()
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
function deserializeStaticBlock() {
|
|
218
|
+
return {
|
|
219
|
+
type: 'StaticBlock',
|
|
220
|
+
loc: this.addEmptyLoc(),
|
|
221
|
+
body: this.deserializeNodeList()
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function deserializeBreakStatement() {
|
|
226
|
+
return {
|
|
227
|
+
type: 'BreakStatement',
|
|
228
|
+
loc: this.addEmptyLoc(),
|
|
229
|
+
label: this.deserializeNode()
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function deserializeContinueStatement() {
|
|
234
|
+
return {
|
|
235
|
+
type: 'ContinueStatement',
|
|
236
|
+
loc: this.addEmptyLoc(),
|
|
237
|
+
label: this.deserializeNode()
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
function deserializeThrowStatement() {
|
|
242
|
+
return {
|
|
243
|
+
type: 'ThrowStatement',
|
|
244
|
+
loc: this.addEmptyLoc(),
|
|
245
|
+
argument: this.deserializeNode()
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function deserializeReturnStatement() {
|
|
250
|
+
return {
|
|
251
|
+
type: 'ReturnStatement',
|
|
252
|
+
loc: this.addEmptyLoc(),
|
|
253
|
+
argument: this.deserializeNode()
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
function deserializeWithStatement() {
|
|
258
|
+
return {
|
|
259
|
+
type: 'WithStatement',
|
|
260
|
+
loc: this.addEmptyLoc(),
|
|
261
|
+
object: this.deserializeNode(),
|
|
262
|
+
body: this.deserializeNode()
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
function deserializeSwitchStatement() {
|
|
267
|
+
return {
|
|
268
|
+
type: 'SwitchStatement',
|
|
269
|
+
loc: this.addEmptyLoc(),
|
|
270
|
+
discriminant: this.deserializeNode(),
|
|
271
|
+
cases: this.deserializeNodeList()
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
function deserializeLabeledStatement() {
|
|
276
|
+
return {
|
|
277
|
+
type: 'LabeledStatement',
|
|
278
|
+
loc: this.addEmptyLoc(),
|
|
279
|
+
label: this.deserializeNode(),
|
|
280
|
+
body: this.deserializeNode()
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function deserializeExpressionStatement() {
|
|
285
|
+
return {
|
|
286
|
+
type: 'ExpressionStatement',
|
|
287
|
+
loc: this.addEmptyLoc(),
|
|
288
|
+
expression: this.deserializeNode(),
|
|
289
|
+
directive: this.deserializeString()
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
function deserializeTryStatement() {
|
|
294
|
+
return {
|
|
295
|
+
type: 'TryStatement',
|
|
296
|
+
loc: this.addEmptyLoc(),
|
|
297
|
+
block: this.deserializeNode(),
|
|
298
|
+
handler: this.deserializeNode(),
|
|
299
|
+
finalizer: this.deserializeNode()
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
function deserializeIfStatement() {
|
|
304
|
+
return {
|
|
305
|
+
type: 'IfStatement',
|
|
306
|
+
loc: this.addEmptyLoc(),
|
|
307
|
+
test: this.deserializeNode(),
|
|
308
|
+
consequent: this.deserializeNode(),
|
|
309
|
+
alternate: this.deserializeNode()
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
function deserializeStatementLast() {
|
|
314
|
+
throw new Error('Statement' + ' should not appear in program buffer');
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
function deserializeNullLiteral() {
|
|
318
|
+
return {
|
|
319
|
+
type: 'NullLiteral',
|
|
320
|
+
loc: this.addEmptyLoc()
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
function deserializeBooleanLiteral() {
|
|
325
|
+
return {
|
|
326
|
+
type: 'BooleanLiteral',
|
|
327
|
+
loc: this.addEmptyLoc(),
|
|
328
|
+
value: this.deserializeBoolean()
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
function deserializeStringLiteral() {
|
|
333
|
+
return {
|
|
334
|
+
type: 'StringLiteral',
|
|
335
|
+
loc: this.addEmptyLoc(),
|
|
336
|
+
value: this.deserializeString()
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
function deserializeNumericLiteral() {
|
|
341
|
+
return {
|
|
342
|
+
type: 'NumericLiteral',
|
|
343
|
+
loc: this.addEmptyLoc(),
|
|
344
|
+
value: this.deserializeNumber()
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
function deserializeRegExpLiteral() {
|
|
349
|
+
return {
|
|
350
|
+
type: 'RegExpLiteral',
|
|
351
|
+
loc: this.addEmptyLoc(),
|
|
352
|
+
pattern: this.deserializeString(),
|
|
353
|
+
flags: this.deserializeString()
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
function deserializeBigIntLiteral() {
|
|
358
|
+
return {
|
|
359
|
+
type: 'BigIntLiteral',
|
|
360
|
+
loc: this.addEmptyLoc(),
|
|
361
|
+
bigint: this.deserializeString()
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
function deserializeThisExpression() {
|
|
366
|
+
return {
|
|
367
|
+
type: 'ThisExpression',
|
|
368
|
+
loc: this.addEmptyLoc()
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
function deserializeSuper() {
|
|
373
|
+
return {
|
|
374
|
+
type: 'Super',
|
|
375
|
+
loc: this.addEmptyLoc()
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
function deserializeSequenceExpression() {
|
|
380
|
+
return {
|
|
381
|
+
type: 'SequenceExpression',
|
|
382
|
+
loc: this.addEmptyLoc(),
|
|
383
|
+
expressions: this.deserializeNodeList()
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
function deserializeObjectExpression() {
|
|
388
|
+
return {
|
|
389
|
+
type: 'ObjectExpression',
|
|
390
|
+
loc: this.addEmptyLoc(),
|
|
391
|
+
properties: this.deserializeNodeList()
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
function deserializeArrayExpression() {
|
|
396
|
+
return {
|
|
397
|
+
type: 'ArrayExpression',
|
|
398
|
+
loc: this.addEmptyLoc(),
|
|
399
|
+
elements: this.deserializeNodeList(),
|
|
400
|
+
trailingComma: this.deserializeBoolean()
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
function deserializeSpreadElement() {
|
|
405
|
+
return {
|
|
406
|
+
type: 'SpreadElement',
|
|
407
|
+
loc: this.addEmptyLoc(),
|
|
408
|
+
argument: this.deserializeNode()
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
function deserializeNewExpression() {
|
|
413
|
+
return {
|
|
414
|
+
type: 'NewExpression',
|
|
415
|
+
loc: this.addEmptyLoc(),
|
|
416
|
+
callee: this.deserializeNode(),
|
|
417
|
+
typeArguments: this.deserializeNode(),
|
|
418
|
+
arguments: this.deserializeNodeList()
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
function deserializeYieldExpression() {
|
|
423
|
+
return {
|
|
424
|
+
type: 'YieldExpression',
|
|
425
|
+
loc: this.addEmptyLoc(),
|
|
426
|
+
argument: this.deserializeNode(),
|
|
427
|
+
delegate: this.deserializeBoolean()
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
function deserializeAwaitExpression() {
|
|
432
|
+
return {
|
|
433
|
+
type: 'AwaitExpression',
|
|
434
|
+
loc: this.addEmptyLoc(),
|
|
435
|
+
argument: this.deserializeNode()
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
function deserializeImportExpression() {
|
|
440
|
+
return {
|
|
441
|
+
type: 'ImportExpression',
|
|
442
|
+
loc: this.addEmptyLoc(),
|
|
443
|
+
source: this.deserializeNode(),
|
|
444
|
+
options: this.deserializeNode()
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
function deserializeCallExpressionLikeFirst() {
|
|
449
|
+
throw new Error('CallExpressionLike' + ' should not appear in program buffer');
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
function deserializeCallExpression() {
|
|
453
|
+
return {
|
|
454
|
+
type: 'CallExpression',
|
|
455
|
+
loc: this.addEmptyLoc(),
|
|
456
|
+
callee: this.deserializeNode(),
|
|
457
|
+
typeArguments: this.deserializeNode(),
|
|
458
|
+
arguments: this.deserializeNodeList()
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
function deserializeOptionalCallExpression() {
|
|
463
|
+
return {
|
|
464
|
+
type: 'OptionalCallExpression',
|
|
465
|
+
loc: this.addEmptyLoc(),
|
|
466
|
+
callee: this.deserializeNode(),
|
|
467
|
+
typeArguments: this.deserializeNode(),
|
|
468
|
+
arguments: this.deserializeNodeList(),
|
|
469
|
+
optional: this.deserializeBoolean()
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
function deserializeCallExpressionLikeLast() {
|
|
474
|
+
throw new Error('CallExpressionLike' + ' should not appear in program buffer');
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
function deserializeAssignmentExpression() {
|
|
478
|
+
return {
|
|
479
|
+
type: 'AssignmentExpression',
|
|
480
|
+
loc: this.addEmptyLoc(),
|
|
481
|
+
operator: this.deserializeString(),
|
|
482
|
+
left: this.deserializeNode(),
|
|
483
|
+
right: this.deserializeNode()
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
function deserializeUnaryExpression() {
|
|
488
|
+
return {
|
|
489
|
+
type: 'UnaryExpression',
|
|
490
|
+
loc: this.addEmptyLoc(),
|
|
491
|
+
operator: this.deserializeString(),
|
|
492
|
+
argument: this.deserializeNode(),
|
|
493
|
+
prefix: this.deserializeBoolean()
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
function deserializeUpdateExpression() {
|
|
498
|
+
return {
|
|
499
|
+
type: 'UpdateExpression',
|
|
500
|
+
loc: this.addEmptyLoc(),
|
|
501
|
+
operator: this.deserializeString(),
|
|
502
|
+
argument: this.deserializeNode(),
|
|
503
|
+
prefix: this.deserializeBoolean()
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
function deserializeMemberExpressionLikeFirst() {
|
|
508
|
+
throw new Error('MemberExpressionLike' + ' should not appear in program buffer');
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
function deserializeMemberExpression() {
|
|
512
|
+
return {
|
|
513
|
+
type: 'MemberExpression',
|
|
514
|
+
loc: this.addEmptyLoc(),
|
|
515
|
+
object: this.deserializeNode(),
|
|
516
|
+
property: this.deserializeNode(),
|
|
517
|
+
computed: this.deserializeBoolean()
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
function deserializeOptionalMemberExpression() {
|
|
522
|
+
return {
|
|
523
|
+
type: 'OptionalMemberExpression',
|
|
524
|
+
loc: this.addEmptyLoc(),
|
|
525
|
+
object: this.deserializeNode(),
|
|
526
|
+
property: this.deserializeNode(),
|
|
527
|
+
computed: this.deserializeBoolean(),
|
|
528
|
+
optional: this.deserializeBoolean()
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
function deserializeMemberExpressionLikeLast() {
|
|
533
|
+
throw new Error('MemberExpressionLike' + ' should not appear in program buffer');
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
function deserializeLogicalExpression() {
|
|
537
|
+
return {
|
|
538
|
+
type: 'LogicalExpression',
|
|
539
|
+
loc: this.addEmptyLoc(),
|
|
540
|
+
left: this.deserializeNode(),
|
|
541
|
+
right: this.deserializeNode(),
|
|
542
|
+
operator: this.deserializeString()
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
function deserializeConditionalExpression() {
|
|
547
|
+
return {
|
|
548
|
+
type: 'ConditionalExpression',
|
|
549
|
+
loc: this.addEmptyLoc(),
|
|
550
|
+
test: this.deserializeNode(),
|
|
551
|
+
alternate: this.deserializeNode(),
|
|
552
|
+
consequent: this.deserializeNode()
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
function deserializeBinaryExpression() {
|
|
557
|
+
return {
|
|
558
|
+
type: 'BinaryExpression',
|
|
559
|
+
loc: this.addEmptyLoc(),
|
|
560
|
+
left: this.deserializeNode(),
|
|
561
|
+
right: this.deserializeNode(),
|
|
562
|
+
operator: this.deserializeString()
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
function deserializeDirective() {
|
|
567
|
+
return {
|
|
568
|
+
type: 'Directive',
|
|
569
|
+
loc: this.addEmptyLoc(),
|
|
570
|
+
value: this.deserializeNode()
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
function deserializeDirectiveLiteral() {
|
|
575
|
+
return {
|
|
576
|
+
type: 'DirectiveLiteral',
|
|
577
|
+
loc: this.addEmptyLoc(),
|
|
578
|
+
value: this.deserializeString()
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
function deserializeIdentifier() {
|
|
583
|
+
return {
|
|
584
|
+
type: 'Identifier',
|
|
585
|
+
loc: this.addEmptyLoc(),
|
|
586
|
+
name: this.deserializeString(),
|
|
587
|
+
typeAnnotation: this.deserializeNode(),
|
|
588
|
+
optional: this.deserializeBoolean()
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
function deserializePrivateName() {
|
|
593
|
+
return {
|
|
594
|
+
type: 'PrivateName',
|
|
595
|
+
loc: this.addEmptyLoc(),
|
|
596
|
+
id: this.deserializeNode()
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
function deserializeMetaProperty() {
|
|
601
|
+
return {
|
|
602
|
+
type: 'MetaProperty',
|
|
603
|
+
loc: this.addEmptyLoc(),
|
|
604
|
+
meta: this.deserializeNode(),
|
|
605
|
+
property: this.deserializeNode()
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
function deserializeSwitchCase() {
|
|
610
|
+
return {
|
|
611
|
+
type: 'SwitchCase',
|
|
612
|
+
loc: this.addEmptyLoc(),
|
|
613
|
+
test: this.deserializeNode(),
|
|
614
|
+
consequent: this.deserializeNodeList()
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
function deserializeCatchClause() {
|
|
619
|
+
return {
|
|
620
|
+
type: 'CatchClause',
|
|
621
|
+
loc: this.addEmptyLoc(),
|
|
622
|
+
param: this.deserializeNode(),
|
|
623
|
+
body: this.deserializeNode()
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
function deserializeVariableDeclarator() {
|
|
628
|
+
return {
|
|
629
|
+
type: 'VariableDeclarator',
|
|
630
|
+
loc: this.addEmptyLoc(),
|
|
631
|
+
init: this.deserializeNode(),
|
|
632
|
+
id: this.deserializeNode()
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
function deserializeVariableDeclaration() {
|
|
637
|
+
return {
|
|
638
|
+
type: 'VariableDeclaration',
|
|
639
|
+
loc: this.addEmptyLoc(),
|
|
640
|
+
kind: this.deserializeString(),
|
|
641
|
+
declarations: this.deserializeNodeList()
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
function deserializeTemplateLiteral() {
|
|
646
|
+
return {
|
|
647
|
+
type: 'TemplateLiteral',
|
|
648
|
+
loc: this.addEmptyLoc(),
|
|
649
|
+
quasis: this.deserializeNodeList(),
|
|
650
|
+
expressions: this.deserializeNodeList()
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
function deserializeTaggedTemplateExpression() {
|
|
655
|
+
return {
|
|
656
|
+
type: 'TaggedTemplateExpression',
|
|
657
|
+
loc: this.addEmptyLoc(),
|
|
658
|
+
tag: this.deserializeNode(),
|
|
659
|
+
quasi: this.deserializeNode()
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
function deserializeTemplateElement() {
|
|
664
|
+
return {
|
|
665
|
+
type: 'TemplateElement',
|
|
666
|
+
loc: this.addEmptyLoc(),
|
|
667
|
+
tail: this.deserializeBoolean(),
|
|
668
|
+
cooked: this.deserializeString(),
|
|
669
|
+
raw: this.deserializeString()
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
function deserializeProperty() {
|
|
674
|
+
return {
|
|
675
|
+
type: 'Property',
|
|
676
|
+
loc: this.addEmptyLoc(),
|
|
677
|
+
key: this.deserializeNode(),
|
|
678
|
+
value: this.deserializeNode(),
|
|
679
|
+
kind: this.deserializeString(),
|
|
680
|
+
computed: this.deserializeBoolean(),
|
|
681
|
+
method: this.deserializeBoolean(),
|
|
682
|
+
shorthand: this.deserializeBoolean()
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
function deserializeClassLikeFirst() {
|
|
687
|
+
throw new Error('ClassLike' + ' should not appear in program buffer');
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
function deserializeClassDeclaration() {
|
|
691
|
+
return {
|
|
692
|
+
type: 'ClassDeclaration',
|
|
693
|
+
loc: this.addEmptyLoc(),
|
|
694
|
+
id: this.deserializeNode(),
|
|
695
|
+
typeParameters: this.deserializeNode(),
|
|
696
|
+
superClass: this.deserializeNode(),
|
|
697
|
+
superTypeParameters: this.deserializeNode(),
|
|
698
|
+
implements: this.deserializeNodeList(),
|
|
699
|
+
decorators: this.deserializeNodeList(),
|
|
700
|
+
body: this.deserializeNode()
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
function deserializeClassExpression() {
|
|
705
|
+
return {
|
|
706
|
+
type: 'ClassExpression',
|
|
707
|
+
loc: this.addEmptyLoc(),
|
|
708
|
+
id: this.deserializeNode(),
|
|
709
|
+
typeParameters: this.deserializeNode(),
|
|
710
|
+
superClass: this.deserializeNode(),
|
|
711
|
+
superTypeParameters: this.deserializeNode(),
|
|
712
|
+
implements: this.deserializeNodeList(),
|
|
713
|
+
decorators: this.deserializeNodeList(),
|
|
714
|
+
body: this.deserializeNode()
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
function deserializeClassLikeLast() {
|
|
719
|
+
throw new Error('ClassLike' + ' should not appear in program buffer');
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
function deserializeClassBody() {
|
|
723
|
+
return {
|
|
724
|
+
type: 'ClassBody',
|
|
725
|
+
loc: this.addEmptyLoc(),
|
|
726
|
+
body: this.deserializeNodeList()
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
function deserializeClassProperty() {
|
|
731
|
+
return {
|
|
732
|
+
type: 'ClassProperty',
|
|
733
|
+
loc: this.addEmptyLoc(),
|
|
734
|
+
key: this.deserializeNode(),
|
|
735
|
+
value: this.deserializeNode(),
|
|
736
|
+
computed: this.deserializeBoolean(),
|
|
737
|
+
static: this.deserializeBoolean(),
|
|
738
|
+
declare: this.deserializeBoolean(),
|
|
739
|
+
optional: this.deserializeBoolean(),
|
|
740
|
+
variance: this.deserializeNode(),
|
|
741
|
+
typeAnnotation: this.deserializeNode(),
|
|
742
|
+
tsModifiers: this.deserializeNode()
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
function deserializeClassPrivateProperty() {
|
|
747
|
+
return {
|
|
748
|
+
type: 'ClassPrivateProperty',
|
|
749
|
+
loc: this.addEmptyLoc(),
|
|
750
|
+
key: this.deserializeNode(),
|
|
751
|
+
value: this.deserializeNode(),
|
|
752
|
+
static: this.deserializeBoolean(),
|
|
753
|
+
declare: this.deserializeBoolean(),
|
|
754
|
+
optional: this.deserializeBoolean(),
|
|
755
|
+
variance: this.deserializeNode(),
|
|
756
|
+
typeAnnotation: this.deserializeNode(),
|
|
757
|
+
tsModifiers: this.deserializeNode()
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
function deserializeMethodDefinition() {
|
|
762
|
+
return {
|
|
763
|
+
type: 'MethodDefinition',
|
|
764
|
+
loc: this.addEmptyLoc(),
|
|
765
|
+
key: this.deserializeNode(),
|
|
766
|
+
value: this.deserializeNode(),
|
|
767
|
+
kind: this.deserializeString(),
|
|
768
|
+
computed: this.deserializeBoolean(),
|
|
769
|
+
static: this.deserializeBoolean()
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
function deserializeImportDeclaration() {
|
|
774
|
+
return {
|
|
775
|
+
type: 'ImportDeclaration',
|
|
776
|
+
loc: this.addEmptyLoc(),
|
|
777
|
+
specifiers: this.deserializeNodeList(),
|
|
778
|
+
source: this.deserializeNode(),
|
|
779
|
+
assertions: this.deserializeNodeList(),
|
|
780
|
+
importKind: this.deserializeString()
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
function deserializeImportSpecifier() {
|
|
785
|
+
return {
|
|
786
|
+
type: 'ImportSpecifier',
|
|
787
|
+
loc: this.addEmptyLoc(),
|
|
788
|
+
imported: this.deserializeNode(),
|
|
789
|
+
local: this.deserializeNode(),
|
|
790
|
+
importKind: this.deserializeString()
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
function deserializeImportDefaultSpecifier() {
|
|
795
|
+
return {
|
|
796
|
+
type: 'ImportDefaultSpecifier',
|
|
797
|
+
loc: this.addEmptyLoc(),
|
|
798
|
+
local: this.deserializeNode()
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
function deserializeImportNamespaceSpecifier() {
|
|
803
|
+
return {
|
|
804
|
+
type: 'ImportNamespaceSpecifier',
|
|
805
|
+
loc: this.addEmptyLoc(),
|
|
806
|
+
local: this.deserializeNode()
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
function deserializeImportAttribute() {
|
|
811
|
+
return {
|
|
812
|
+
type: 'ImportAttribute',
|
|
813
|
+
loc: this.addEmptyLoc(),
|
|
814
|
+
key: this.deserializeNode(),
|
|
815
|
+
value: this.deserializeNode()
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
function deserializeExportNamedDeclaration() {
|
|
820
|
+
return {
|
|
821
|
+
type: 'ExportNamedDeclaration',
|
|
822
|
+
loc: this.addEmptyLoc(),
|
|
823
|
+
declaration: this.deserializeNode(),
|
|
824
|
+
specifiers: this.deserializeNodeList(),
|
|
825
|
+
source: this.deserializeNode(),
|
|
826
|
+
exportKind: this.deserializeString()
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
function deserializeExportSpecifier() {
|
|
831
|
+
return {
|
|
832
|
+
type: 'ExportSpecifier',
|
|
833
|
+
loc: this.addEmptyLoc(),
|
|
834
|
+
exported: this.deserializeNode(),
|
|
835
|
+
local: this.deserializeNode()
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
function deserializeExportNamespaceSpecifier() {
|
|
840
|
+
return {
|
|
841
|
+
type: 'ExportNamespaceSpecifier',
|
|
842
|
+
loc: this.addEmptyLoc(),
|
|
843
|
+
exported: this.deserializeNode()
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
function deserializeExportDefaultDeclaration() {
|
|
848
|
+
return {
|
|
849
|
+
type: 'ExportDefaultDeclaration',
|
|
850
|
+
loc: this.addEmptyLoc(),
|
|
851
|
+
declaration: this.deserializeNode()
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
function deserializeExportAllDeclaration() {
|
|
856
|
+
return {
|
|
857
|
+
type: 'ExportAllDeclaration',
|
|
858
|
+
loc: this.addEmptyLoc(),
|
|
859
|
+
source: this.deserializeNode(),
|
|
860
|
+
exportKind: this.deserializeString()
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
function deserializePatternFirst() {
|
|
865
|
+
throw new Error('Pattern' + ' should not appear in program buffer');
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
function deserializeObjectPattern() {
|
|
869
|
+
return {
|
|
870
|
+
type: 'ObjectPattern',
|
|
871
|
+
loc: this.addEmptyLoc(),
|
|
872
|
+
properties: this.deserializeNodeList(),
|
|
873
|
+
typeAnnotation: this.deserializeNode()
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
function deserializeArrayPattern() {
|
|
878
|
+
return {
|
|
879
|
+
type: 'ArrayPattern',
|
|
880
|
+
loc: this.addEmptyLoc(),
|
|
881
|
+
elements: this.deserializeNodeList(),
|
|
882
|
+
typeAnnotation: this.deserializeNode()
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
function deserializeRestElement() {
|
|
887
|
+
return {
|
|
888
|
+
type: 'RestElement',
|
|
889
|
+
loc: this.addEmptyLoc(),
|
|
890
|
+
argument: this.deserializeNode()
|
|
891
|
+
};
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
function deserializeAssignmentPattern() {
|
|
895
|
+
return {
|
|
896
|
+
type: 'AssignmentPattern',
|
|
897
|
+
loc: this.addEmptyLoc(),
|
|
898
|
+
left: this.deserializeNode(),
|
|
899
|
+
right: this.deserializeNode()
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
function deserializePatternLast() {
|
|
904
|
+
throw new Error('Pattern' + ' should not appear in program buffer');
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
function deserializeMatchStatementCase() {
|
|
908
|
+
return {
|
|
909
|
+
type: 'MatchStatementCase',
|
|
910
|
+
loc: this.addEmptyLoc(),
|
|
911
|
+
pattern: this.deserializeNode(),
|
|
912
|
+
body: this.deserializeNode(),
|
|
913
|
+
guard: this.deserializeNode()
|
|
914
|
+
};
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
function deserializeMatchExpression() {
|
|
918
|
+
return {
|
|
919
|
+
type: 'MatchExpression',
|
|
920
|
+
loc: this.addEmptyLoc(),
|
|
921
|
+
argument: this.deserializeNode(),
|
|
922
|
+
cases: this.deserializeNodeList()
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
function deserializeMatchExpressionCase() {
|
|
927
|
+
return {
|
|
928
|
+
type: 'MatchExpressionCase',
|
|
929
|
+
loc: this.addEmptyLoc(),
|
|
930
|
+
pattern: this.deserializeNode(),
|
|
931
|
+
body: this.deserializeNode(),
|
|
932
|
+
guard: this.deserializeNode()
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
function deserializeMatchPatternFirst() {
|
|
937
|
+
throw new Error('MatchPattern' + ' should not appear in program buffer');
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
function deserializeMatchWildcardPattern() {
|
|
941
|
+
return {
|
|
942
|
+
type: 'MatchWildcardPattern',
|
|
943
|
+
loc: this.addEmptyLoc()
|
|
944
|
+
};
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
function deserializeMatchLiteralPattern() {
|
|
948
|
+
return {
|
|
949
|
+
type: 'MatchLiteralPattern',
|
|
950
|
+
loc: this.addEmptyLoc(),
|
|
951
|
+
literal: this.deserializeNode()
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
function deserializeMatchUnaryPattern() {
|
|
956
|
+
return {
|
|
957
|
+
type: 'MatchUnaryPattern',
|
|
958
|
+
loc: this.addEmptyLoc(),
|
|
959
|
+
argument: this.deserializeNode(),
|
|
960
|
+
operator: this.deserializeString()
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
function deserializeMatchIdentifierPattern() {
|
|
965
|
+
return {
|
|
966
|
+
type: 'MatchIdentifierPattern',
|
|
967
|
+
loc: this.addEmptyLoc(),
|
|
968
|
+
id: this.deserializeNode()
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
function deserializeMatchBindingPattern() {
|
|
973
|
+
return {
|
|
974
|
+
type: 'MatchBindingPattern',
|
|
975
|
+
loc: this.addEmptyLoc(),
|
|
976
|
+
id: this.deserializeNode(),
|
|
977
|
+
kind: this.deserializeString()
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
function deserializeMatchObjectPattern() {
|
|
982
|
+
return {
|
|
983
|
+
type: 'MatchObjectPattern',
|
|
984
|
+
loc: this.addEmptyLoc(),
|
|
985
|
+
properties: this.deserializeNodeList(),
|
|
986
|
+
rest: this.deserializeNode()
|
|
987
|
+
};
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
function deserializeMatchArrayPattern() {
|
|
991
|
+
return {
|
|
992
|
+
type: 'MatchArrayPattern',
|
|
993
|
+
loc: this.addEmptyLoc(),
|
|
994
|
+
elements: this.deserializeNodeList(),
|
|
995
|
+
rest: this.deserializeNode()
|
|
996
|
+
};
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
function deserializeMatchOrPattern() {
|
|
1000
|
+
return {
|
|
1001
|
+
type: 'MatchOrPattern',
|
|
1002
|
+
loc: this.addEmptyLoc(),
|
|
1003
|
+
patterns: this.deserializeNodeList()
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
function deserializeMatchAsPattern() {
|
|
1008
|
+
return {
|
|
1009
|
+
type: 'MatchAsPattern',
|
|
1010
|
+
loc: this.addEmptyLoc(),
|
|
1011
|
+
pattern: this.deserializeNode(),
|
|
1012
|
+
target: this.deserializeNode()
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
function deserializeMatchMemberPattern() {
|
|
1017
|
+
return {
|
|
1018
|
+
type: 'MatchMemberPattern',
|
|
1019
|
+
loc: this.addEmptyLoc(),
|
|
1020
|
+
base: this.deserializeNode(),
|
|
1021
|
+
property: this.deserializeNode()
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
function deserializeMatchPatternLast() {
|
|
1026
|
+
throw new Error('MatchPattern' + ' should not appear in program buffer');
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
function deserializeMatchObjectPatternProperty() {
|
|
1030
|
+
return {
|
|
1031
|
+
type: 'MatchObjectPatternProperty',
|
|
1032
|
+
loc: this.addEmptyLoc(),
|
|
1033
|
+
key: this.deserializeNode(),
|
|
1034
|
+
pattern: this.deserializeNode(),
|
|
1035
|
+
shorthand: this.deserializeBoolean()
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
function deserializeMatchRestPattern() {
|
|
1040
|
+
return {
|
|
1041
|
+
type: 'MatchRestPattern',
|
|
1042
|
+
loc: this.addEmptyLoc(),
|
|
1043
|
+
argument: this.deserializeNode()
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
function deserializeJSXFirst() {
|
|
1048
|
+
throw new Error('JSX' + ' should not appear in program buffer');
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
function deserializeJSXIdentifier() {
|
|
1052
|
+
return {
|
|
1053
|
+
type: 'JSXIdentifier',
|
|
1054
|
+
loc: this.addEmptyLoc(),
|
|
1055
|
+
name: this.deserializeString()
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
function deserializeJSXMemberExpression() {
|
|
1060
|
+
return {
|
|
1061
|
+
type: 'JSXMemberExpression',
|
|
1062
|
+
loc: this.addEmptyLoc(),
|
|
1063
|
+
object: this.deserializeNode(),
|
|
1064
|
+
property: this.deserializeNode()
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
function deserializeJSXNamespacedName() {
|
|
1069
|
+
return {
|
|
1070
|
+
type: 'JSXNamespacedName',
|
|
1071
|
+
loc: this.addEmptyLoc(),
|
|
1072
|
+
namespace: this.deserializeNode(),
|
|
1073
|
+
name: this.deserializeNode()
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
function deserializeJSXEmptyExpression() {
|
|
1078
|
+
return {
|
|
1079
|
+
type: 'JSXEmptyExpression',
|
|
1080
|
+
loc: this.addEmptyLoc()
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
function deserializeJSXExpressionContainer() {
|
|
1085
|
+
return {
|
|
1086
|
+
type: 'JSXExpressionContainer',
|
|
1087
|
+
loc: this.addEmptyLoc(),
|
|
1088
|
+
expression: this.deserializeNode()
|
|
1089
|
+
};
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
function deserializeJSXSpreadChild() {
|
|
1093
|
+
return {
|
|
1094
|
+
type: 'JSXSpreadChild',
|
|
1095
|
+
loc: this.addEmptyLoc(),
|
|
1096
|
+
expression: this.deserializeNode()
|
|
1097
|
+
};
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
function deserializeJSXOpeningElement() {
|
|
1101
|
+
return {
|
|
1102
|
+
type: 'JSXOpeningElement',
|
|
1103
|
+
loc: this.addEmptyLoc(),
|
|
1104
|
+
name: this.deserializeNode(),
|
|
1105
|
+
attributes: this.deserializeNodeList(),
|
|
1106
|
+
selfClosing: this.deserializeBoolean(),
|
|
1107
|
+
typeArguments: this.deserializeNode()
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
function deserializeJSXClosingElement() {
|
|
1112
|
+
return {
|
|
1113
|
+
type: 'JSXClosingElement',
|
|
1114
|
+
loc: this.addEmptyLoc(),
|
|
1115
|
+
name: this.deserializeNode()
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
function deserializeJSXAttribute() {
|
|
1120
|
+
return {
|
|
1121
|
+
type: 'JSXAttribute',
|
|
1122
|
+
loc: this.addEmptyLoc(),
|
|
1123
|
+
name: this.deserializeNode(),
|
|
1124
|
+
value: this.deserializeNode()
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
function deserializeJSXSpreadAttribute() {
|
|
1129
|
+
return {
|
|
1130
|
+
type: 'JSXSpreadAttribute',
|
|
1131
|
+
loc: this.addEmptyLoc(),
|
|
1132
|
+
argument: this.deserializeNode()
|
|
1133
|
+
};
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
function deserializeJSXStringLiteral() {
|
|
1137
|
+
return {
|
|
1138
|
+
type: 'JSXStringLiteral',
|
|
1139
|
+
loc: this.addEmptyLoc(),
|
|
1140
|
+
value: this.deserializeString(),
|
|
1141
|
+
raw: this.deserializeString()
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
function deserializeJSXText() {
|
|
1146
|
+
return {
|
|
1147
|
+
type: 'JSXText',
|
|
1148
|
+
loc: this.addEmptyLoc(),
|
|
1149
|
+
value: this.deserializeString(),
|
|
1150
|
+
raw: this.deserializeString()
|
|
1151
|
+
};
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
function deserializeJSXElement() {
|
|
1155
|
+
return {
|
|
1156
|
+
type: 'JSXElement',
|
|
1157
|
+
loc: this.addEmptyLoc(),
|
|
1158
|
+
openingElement: this.deserializeNode(),
|
|
1159
|
+
children: this.deserializeNodeList(),
|
|
1160
|
+
closingElement: this.deserializeNode()
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
function deserializeJSXFragment() {
|
|
1165
|
+
return {
|
|
1166
|
+
type: 'JSXFragment',
|
|
1167
|
+
loc: this.addEmptyLoc(),
|
|
1168
|
+
openingFragment: this.deserializeNode(),
|
|
1169
|
+
children: this.deserializeNodeList(),
|
|
1170
|
+
closingFragment: this.deserializeNode()
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
function deserializeJSXOpeningFragment() {
|
|
1175
|
+
return {
|
|
1176
|
+
type: 'JSXOpeningFragment',
|
|
1177
|
+
loc: this.addEmptyLoc()
|
|
1178
|
+
};
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
function deserializeJSXClosingFragment() {
|
|
1182
|
+
return {
|
|
1183
|
+
type: 'JSXClosingFragment',
|
|
1184
|
+
loc: this.addEmptyLoc()
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
function deserializeJSXLast() {
|
|
1189
|
+
throw new Error('JSX' + ' should not appear in program buffer');
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
function deserializeFlowFirst() {
|
|
1193
|
+
throw new Error('Flow' + ' should not appear in program buffer');
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
function deserializeExistsTypeAnnotation() {
|
|
1197
|
+
return {
|
|
1198
|
+
type: 'ExistsTypeAnnotation',
|
|
1199
|
+
loc: this.addEmptyLoc()
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
function deserializeEmptyTypeAnnotation() {
|
|
1204
|
+
return {
|
|
1205
|
+
type: 'EmptyTypeAnnotation',
|
|
1206
|
+
loc: this.addEmptyLoc()
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
function deserializeStringTypeAnnotation() {
|
|
1211
|
+
return {
|
|
1212
|
+
type: 'StringTypeAnnotation',
|
|
1213
|
+
loc: this.addEmptyLoc()
|
|
1214
|
+
};
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
function deserializeNumberTypeAnnotation() {
|
|
1218
|
+
return {
|
|
1219
|
+
type: 'NumberTypeAnnotation',
|
|
1220
|
+
loc: this.addEmptyLoc()
|
|
1221
|
+
};
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
function deserializeStringLiteralTypeAnnotation() {
|
|
1225
|
+
return {
|
|
1226
|
+
type: 'StringLiteralTypeAnnotation',
|
|
1227
|
+
loc: this.addEmptyLoc(),
|
|
1228
|
+
value: this.deserializeString(),
|
|
1229
|
+
raw: this.deserializeString()
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
function deserializeNumberLiteralTypeAnnotation() {
|
|
1234
|
+
return {
|
|
1235
|
+
type: 'NumberLiteralTypeAnnotation',
|
|
1236
|
+
loc: this.addEmptyLoc(),
|
|
1237
|
+
value: this.deserializeNumber(),
|
|
1238
|
+
raw: this.deserializeString()
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
function deserializeBigIntLiteralTypeAnnotation() {
|
|
1243
|
+
return {
|
|
1244
|
+
type: 'BigIntLiteralTypeAnnotation',
|
|
1245
|
+
loc: this.addEmptyLoc(),
|
|
1246
|
+
raw: this.deserializeString()
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
function deserializeBooleanTypeAnnotation() {
|
|
1251
|
+
return {
|
|
1252
|
+
type: 'BooleanTypeAnnotation',
|
|
1253
|
+
loc: this.addEmptyLoc()
|
|
1254
|
+
};
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
function deserializeBooleanLiteralTypeAnnotation() {
|
|
1258
|
+
return {
|
|
1259
|
+
type: 'BooleanLiteralTypeAnnotation',
|
|
1260
|
+
loc: this.addEmptyLoc(),
|
|
1261
|
+
value: this.deserializeBoolean(),
|
|
1262
|
+
raw: this.deserializeString()
|
|
1263
|
+
};
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
function deserializeNullLiteralTypeAnnotation() {
|
|
1267
|
+
return {
|
|
1268
|
+
type: 'NullLiteralTypeAnnotation',
|
|
1269
|
+
loc: this.addEmptyLoc()
|
|
1270
|
+
};
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
function deserializeSymbolTypeAnnotation() {
|
|
1274
|
+
return {
|
|
1275
|
+
type: 'SymbolTypeAnnotation',
|
|
1276
|
+
loc: this.addEmptyLoc()
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
function deserializeAnyTypeAnnotation() {
|
|
1281
|
+
return {
|
|
1282
|
+
type: 'AnyTypeAnnotation',
|
|
1283
|
+
loc: this.addEmptyLoc()
|
|
1284
|
+
};
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
function deserializeMixedTypeAnnotation() {
|
|
1288
|
+
return {
|
|
1289
|
+
type: 'MixedTypeAnnotation',
|
|
1290
|
+
loc: this.addEmptyLoc()
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
function deserializeBigIntTypeAnnotation() {
|
|
1295
|
+
return {
|
|
1296
|
+
type: 'BigIntTypeAnnotation',
|
|
1297
|
+
loc: this.addEmptyLoc()
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
function deserializeVoidTypeAnnotation() {
|
|
1302
|
+
return {
|
|
1303
|
+
type: 'VoidTypeAnnotation',
|
|
1304
|
+
loc: this.addEmptyLoc()
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
function deserializeFunctionTypeAnnotation() {
|
|
1309
|
+
return {
|
|
1310
|
+
type: 'FunctionTypeAnnotation',
|
|
1311
|
+
loc: this.addEmptyLoc(),
|
|
1312
|
+
params: this.deserializeNodeList(),
|
|
1313
|
+
this: this.deserializeNode(),
|
|
1314
|
+
returnType: this.deserializeNode(),
|
|
1315
|
+
rest: this.deserializeNode(),
|
|
1316
|
+
typeParameters: this.deserializeNode()
|
|
1317
|
+
};
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
function deserializeHookTypeAnnotation() {
|
|
1321
|
+
return {
|
|
1322
|
+
type: 'HookTypeAnnotation',
|
|
1323
|
+
loc: this.addEmptyLoc(),
|
|
1324
|
+
params: this.deserializeNodeList(),
|
|
1325
|
+
returnType: this.deserializeNode(),
|
|
1326
|
+
rest: this.deserializeNode(),
|
|
1327
|
+
typeParameters: this.deserializeNode()
|
|
1328
|
+
};
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
function deserializeFunctionTypeParam() {
|
|
1332
|
+
return {
|
|
1333
|
+
type: 'FunctionTypeParam',
|
|
1334
|
+
loc: this.addEmptyLoc(),
|
|
1335
|
+
name: this.deserializeNode(),
|
|
1336
|
+
typeAnnotation: this.deserializeNode(),
|
|
1337
|
+
optional: this.deserializeBoolean()
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
function deserializeComponentTypeAnnotation() {
|
|
1342
|
+
return {
|
|
1343
|
+
type: 'ComponentTypeAnnotation',
|
|
1344
|
+
loc: this.addEmptyLoc(),
|
|
1345
|
+
params: this.deserializeNodeList(),
|
|
1346
|
+
rest: this.deserializeNode(),
|
|
1347
|
+
typeParameters: this.deserializeNode(),
|
|
1348
|
+
rendersType: this.deserializeNode()
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
function deserializeComponentTypeParameter() {
|
|
1353
|
+
return {
|
|
1354
|
+
type: 'ComponentTypeParameter',
|
|
1355
|
+
loc: this.addEmptyLoc(),
|
|
1356
|
+
name: this.deserializeNode(),
|
|
1357
|
+
typeAnnotation: this.deserializeNode(),
|
|
1358
|
+
optional: this.deserializeBoolean()
|
|
1359
|
+
};
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
function deserializeNullableTypeAnnotation() {
|
|
1363
|
+
return {
|
|
1364
|
+
type: 'NullableTypeAnnotation',
|
|
1365
|
+
loc: this.addEmptyLoc(),
|
|
1366
|
+
typeAnnotation: this.deserializeNode()
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
function deserializeQualifiedTypeIdentifier() {
|
|
1371
|
+
return {
|
|
1372
|
+
type: 'QualifiedTypeIdentifier',
|
|
1373
|
+
loc: this.addEmptyLoc(),
|
|
1374
|
+
qualification: this.deserializeNode(),
|
|
1375
|
+
id: this.deserializeNode()
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
function deserializeTypeofTypeAnnotation() {
|
|
1380
|
+
return {
|
|
1381
|
+
type: 'TypeofTypeAnnotation',
|
|
1382
|
+
loc: this.addEmptyLoc(),
|
|
1383
|
+
argument: this.deserializeNode(),
|
|
1384
|
+
typeArguments: this.deserializeNode()
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
function deserializeKeyofTypeAnnotation() {
|
|
1389
|
+
return {
|
|
1390
|
+
type: 'KeyofTypeAnnotation',
|
|
1391
|
+
loc: this.addEmptyLoc(),
|
|
1392
|
+
argument: this.deserializeNode()
|
|
1393
|
+
};
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
function deserializeTypeOperator() {
|
|
1397
|
+
return {
|
|
1398
|
+
type: 'TypeOperator',
|
|
1399
|
+
loc: this.addEmptyLoc(),
|
|
1400
|
+
operator: this.deserializeString(),
|
|
1401
|
+
typeAnnotation: this.deserializeNode()
|
|
1402
|
+
};
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
function deserializeQualifiedTypeofIdentifier() {
|
|
1406
|
+
return {
|
|
1407
|
+
type: 'QualifiedTypeofIdentifier',
|
|
1408
|
+
loc: this.addEmptyLoc(),
|
|
1409
|
+
qualification: this.deserializeNode(),
|
|
1410
|
+
id: this.deserializeNode()
|
|
1411
|
+
};
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
function deserializeTupleTypeAnnotation() {
|
|
1415
|
+
return {
|
|
1416
|
+
type: 'TupleTypeAnnotation',
|
|
1417
|
+
loc: this.addEmptyLoc(),
|
|
1418
|
+
types: this.deserializeNodeList(),
|
|
1419
|
+
inexact: this.deserializeBoolean()
|
|
1420
|
+
};
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
function deserializeTupleTypeSpreadElement() {
|
|
1424
|
+
return {
|
|
1425
|
+
type: 'TupleTypeSpreadElement',
|
|
1426
|
+
loc: this.addEmptyLoc(),
|
|
1427
|
+
label: this.deserializeNode(),
|
|
1428
|
+
typeAnnotation: this.deserializeNode()
|
|
1429
|
+
};
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
function deserializeTupleTypeLabeledElement() {
|
|
1433
|
+
return {
|
|
1434
|
+
type: 'TupleTypeLabeledElement',
|
|
1435
|
+
loc: this.addEmptyLoc(),
|
|
1436
|
+
label: this.deserializeNode(),
|
|
1437
|
+
elementType: this.deserializeNode(),
|
|
1438
|
+
optional: this.deserializeBoolean(),
|
|
1439
|
+
variance: this.deserializeNode()
|
|
1440
|
+
};
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
function deserializeArrayTypeAnnotation() {
|
|
1444
|
+
return {
|
|
1445
|
+
type: 'ArrayTypeAnnotation',
|
|
1446
|
+
loc: this.addEmptyLoc(),
|
|
1447
|
+
elementType: this.deserializeNode()
|
|
1448
|
+
};
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
function deserializeInferTypeAnnotation() {
|
|
1452
|
+
return {
|
|
1453
|
+
type: 'InferTypeAnnotation',
|
|
1454
|
+
loc: this.addEmptyLoc(),
|
|
1455
|
+
typeParameter: this.deserializeNode()
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
function deserializeUnionTypeAnnotation() {
|
|
1460
|
+
return {
|
|
1461
|
+
type: 'UnionTypeAnnotation',
|
|
1462
|
+
loc: this.addEmptyLoc(),
|
|
1463
|
+
types: this.deserializeNodeList()
|
|
1464
|
+
};
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
function deserializeIntersectionTypeAnnotation() {
|
|
1468
|
+
return {
|
|
1469
|
+
type: 'IntersectionTypeAnnotation',
|
|
1470
|
+
loc: this.addEmptyLoc(),
|
|
1471
|
+
types: this.deserializeNodeList()
|
|
1472
|
+
};
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
function deserializeGenericTypeAnnotation() {
|
|
1476
|
+
return {
|
|
1477
|
+
type: 'GenericTypeAnnotation',
|
|
1478
|
+
loc: this.addEmptyLoc(),
|
|
1479
|
+
id: this.deserializeNode(),
|
|
1480
|
+
typeParameters: this.deserializeNode()
|
|
1481
|
+
};
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
function deserializeIndexedAccessType() {
|
|
1485
|
+
return {
|
|
1486
|
+
type: 'IndexedAccessType',
|
|
1487
|
+
loc: this.addEmptyLoc(),
|
|
1488
|
+
objectType: this.deserializeNode(),
|
|
1489
|
+
indexType: this.deserializeNode()
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
function deserializeOptionalIndexedAccessType() {
|
|
1494
|
+
return {
|
|
1495
|
+
type: 'OptionalIndexedAccessType',
|
|
1496
|
+
loc: this.addEmptyLoc(),
|
|
1497
|
+
objectType: this.deserializeNode(),
|
|
1498
|
+
indexType: this.deserializeNode(),
|
|
1499
|
+
optional: this.deserializeBoolean()
|
|
1500
|
+
};
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
function deserializeConditionalTypeAnnotation() {
|
|
1504
|
+
return {
|
|
1505
|
+
type: 'ConditionalTypeAnnotation',
|
|
1506
|
+
loc: this.addEmptyLoc(),
|
|
1507
|
+
checkType: this.deserializeNode(),
|
|
1508
|
+
extendsType: this.deserializeNode(),
|
|
1509
|
+
trueType: this.deserializeNode(),
|
|
1510
|
+
falseType: this.deserializeNode()
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
function deserializeTypePredicate() {
|
|
1515
|
+
return {
|
|
1516
|
+
type: 'TypePredicate',
|
|
1517
|
+
loc: this.addEmptyLoc(),
|
|
1518
|
+
parameterName: this.deserializeNode(),
|
|
1519
|
+
typeAnnotation: this.deserializeNode(),
|
|
1520
|
+
kind: this.deserializeString()
|
|
1521
|
+
};
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
function deserializeInterfaceTypeAnnotation() {
|
|
1525
|
+
return {
|
|
1526
|
+
type: 'InterfaceTypeAnnotation',
|
|
1527
|
+
loc: this.addEmptyLoc(),
|
|
1528
|
+
extends: this.deserializeNodeList(),
|
|
1529
|
+
body: this.deserializeNode()
|
|
1530
|
+
};
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
function deserializeTypeAlias() {
|
|
1534
|
+
return {
|
|
1535
|
+
type: 'TypeAlias',
|
|
1536
|
+
loc: this.addEmptyLoc(),
|
|
1537
|
+
id: this.deserializeNode(),
|
|
1538
|
+
typeParameters: this.deserializeNode(),
|
|
1539
|
+
right: this.deserializeNode()
|
|
1540
|
+
};
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
function deserializeOpaqueType() {
|
|
1544
|
+
return {
|
|
1545
|
+
type: 'OpaqueType',
|
|
1546
|
+
loc: this.addEmptyLoc(),
|
|
1547
|
+
id: this.deserializeNode(),
|
|
1548
|
+
typeParameters: this.deserializeNode(),
|
|
1549
|
+
impltype: this.deserializeNode(),
|
|
1550
|
+
supertype: this.deserializeNode()
|
|
1551
|
+
};
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
function deserializeInterfaceDeclaration() {
|
|
1555
|
+
return {
|
|
1556
|
+
type: 'InterfaceDeclaration',
|
|
1557
|
+
loc: this.addEmptyLoc(),
|
|
1558
|
+
id: this.deserializeNode(),
|
|
1559
|
+
typeParameters: this.deserializeNode(),
|
|
1560
|
+
extends: this.deserializeNodeList(),
|
|
1561
|
+
body: this.deserializeNode()
|
|
1562
|
+
};
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
function deserializeDeclareTypeAlias() {
|
|
1566
|
+
return {
|
|
1567
|
+
type: 'DeclareTypeAlias',
|
|
1568
|
+
loc: this.addEmptyLoc(),
|
|
1569
|
+
id: this.deserializeNode(),
|
|
1570
|
+
typeParameters: this.deserializeNode(),
|
|
1571
|
+
right: this.deserializeNode()
|
|
1572
|
+
};
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
function deserializeDeclareOpaqueType() {
|
|
1576
|
+
return {
|
|
1577
|
+
type: 'DeclareOpaqueType',
|
|
1578
|
+
loc: this.addEmptyLoc(),
|
|
1579
|
+
id: this.deserializeNode(),
|
|
1580
|
+
typeParameters: this.deserializeNode(),
|
|
1581
|
+
impltype: this.deserializeNode(),
|
|
1582
|
+
supertype: this.deserializeNode()
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
function deserializeDeclareInterface() {
|
|
1587
|
+
return {
|
|
1588
|
+
type: 'DeclareInterface',
|
|
1589
|
+
loc: this.addEmptyLoc(),
|
|
1590
|
+
id: this.deserializeNode(),
|
|
1591
|
+
typeParameters: this.deserializeNode(),
|
|
1592
|
+
extends: this.deserializeNodeList(),
|
|
1593
|
+
body: this.deserializeNode()
|
|
1594
|
+
};
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
function deserializeDeclareClass() {
|
|
1598
|
+
return {
|
|
1599
|
+
type: 'DeclareClass',
|
|
1600
|
+
loc: this.addEmptyLoc(),
|
|
1601
|
+
id: this.deserializeNode(),
|
|
1602
|
+
typeParameters: this.deserializeNode(),
|
|
1603
|
+
extends: this.deserializeNodeList(),
|
|
1604
|
+
implements: this.deserializeNodeList(),
|
|
1605
|
+
mixins: this.deserializeNodeList(),
|
|
1606
|
+
body: this.deserializeNode()
|
|
1607
|
+
};
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
function deserializeDeclareFunction() {
|
|
1611
|
+
return {
|
|
1612
|
+
type: 'DeclareFunction',
|
|
1613
|
+
loc: this.addEmptyLoc(),
|
|
1614
|
+
id: this.deserializeNode(),
|
|
1615
|
+
predicate: this.deserializeNode()
|
|
1616
|
+
};
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
function deserializeDeclareHook() {
|
|
1620
|
+
return {
|
|
1621
|
+
type: 'DeclareHook',
|
|
1622
|
+
loc: this.addEmptyLoc(),
|
|
1623
|
+
id: this.deserializeNode()
|
|
1624
|
+
};
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
function deserializeDeclareComponent() {
|
|
1628
|
+
return {
|
|
1629
|
+
type: 'DeclareComponent',
|
|
1630
|
+
loc: this.addEmptyLoc(),
|
|
1631
|
+
id: this.deserializeNode(),
|
|
1632
|
+
params: this.deserializeNodeList(),
|
|
1633
|
+
rest: this.deserializeNode(),
|
|
1634
|
+
typeParameters: this.deserializeNode(),
|
|
1635
|
+
rendersType: this.deserializeNode()
|
|
1636
|
+
};
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
function deserializeDeclareVariable() {
|
|
1640
|
+
return {
|
|
1641
|
+
type: 'DeclareVariable',
|
|
1642
|
+
loc: this.addEmptyLoc(),
|
|
1643
|
+
id: this.deserializeNode(),
|
|
1644
|
+
kind: this.deserializeString()
|
|
1645
|
+
};
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
function deserializeDeclareEnum() {
|
|
1649
|
+
return {
|
|
1650
|
+
type: 'DeclareEnum',
|
|
1651
|
+
loc: this.addEmptyLoc(),
|
|
1652
|
+
id: this.deserializeNode(),
|
|
1653
|
+
body: this.deserializeNode()
|
|
1654
|
+
};
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
function deserializeDeclareExportDeclaration() {
|
|
1658
|
+
return {
|
|
1659
|
+
type: 'DeclareExportDeclaration',
|
|
1660
|
+
loc: this.addEmptyLoc(),
|
|
1661
|
+
declaration: this.deserializeNode(),
|
|
1662
|
+
specifiers: this.deserializeNodeList(),
|
|
1663
|
+
source: this.deserializeNode(),
|
|
1664
|
+
default: this.deserializeBoolean()
|
|
1665
|
+
};
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
function deserializeDeclareExportAllDeclaration() {
|
|
1669
|
+
return {
|
|
1670
|
+
type: 'DeclareExportAllDeclaration',
|
|
1671
|
+
loc: this.addEmptyLoc(),
|
|
1672
|
+
source: this.deserializeNode()
|
|
1673
|
+
};
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
function deserializeDeclareModule() {
|
|
1677
|
+
return {
|
|
1678
|
+
type: 'DeclareModule',
|
|
1679
|
+
loc: this.addEmptyLoc(),
|
|
1680
|
+
id: this.deserializeNode(),
|
|
1681
|
+
body: this.deserializeNode()
|
|
1682
|
+
};
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
function deserializeDeclareNamespace() {
|
|
1686
|
+
return {
|
|
1687
|
+
type: 'DeclareNamespace',
|
|
1688
|
+
loc: this.addEmptyLoc(),
|
|
1689
|
+
id: this.deserializeNode(),
|
|
1690
|
+
body: this.deserializeNode()
|
|
1691
|
+
};
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
function deserializeDeclareModuleExports() {
|
|
1695
|
+
return {
|
|
1696
|
+
type: 'DeclareModuleExports',
|
|
1697
|
+
loc: this.addEmptyLoc(),
|
|
1698
|
+
typeAnnotation: this.deserializeNode()
|
|
1699
|
+
};
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
function deserializeInterfaceExtends() {
|
|
1703
|
+
return {
|
|
1704
|
+
type: 'InterfaceExtends',
|
|
1705
|
+
loc: this.addEmptyLoc(),
|
|
1706
|
+
id: this.deserializeNode(),
|
|
1707
|
+
typeParameters: this.deserializeNode()
|
|
1708
|
+
};
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
function deserializeClassImplements() {
|
|
1712
|
+
return {
|
|
1713
|
+
type: 'ClassImplements',
|
|
1714
|
+
loc: this.addEmptyLoc(),
|
|
1715
|
+
id: this.deserializeNode(),
|
|
1716
|
+
typeParameters: this.deserializeNode()
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
function deserializeTypeAnnotation() {
|
|
1721
|
+
return {
|
|
1722
|
+
type: 'TypeAnnotation',
|
|
1723
|
+
loc: this.addEmptyLoc(),
|
|
1724
|
+
typeAnnotation: this.deserializeNode()
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
function deserializeObjectTypeAnnotation() {
|
|
1729
|
+
return {
|
|
1730
|
+
type: 'ObjectTypeAnnotation',
|
|
1731
|
+
loc: this.addEmptyLoc(),
|
|
1732
|
+
properties: this.deserializeNodeList(),
|
|
1733
|
+
indexers: this.deserializeNodeList(),
|
|
1734
|
+
callProperties: this.deserializeNodeList(),
|
|
1735
|
+
internalSlots: this.deserializeNodeList(),
|
|
1736
|
+
inexact: this.deserializeBoolean(),
|
|
1737
|
+
exact: this.deserializeBoolean()
|
|
1738
|
+
};
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
function deserializeObjectTypeProperty() {
|
|
1742
|
+
return {
|
|
1743
|
+
type: 'ObjectTypeProperty',
|
|
1744
|
+
loc: this.addEmptyLoc(),
|
|
1745
|
+
key: this.deserializeNode(),
|
|
1746
|
+
value: this.deserializeNode(),
|
|
1747
|
+
method: this.deserializeBoolean(),
|
|
1748
|
+
optional: this.deserializeBoolean(),
|
|
1749
|
+
static: this.deserializeBoolean(),
|
|
1750
|
+
proto: this.deserializeBoolean(),
|
|
1751
|
+
variance: this.deserializeNode(),
|
|
1752
|
+
kind: this.deserializeString()
|
|
1753
|
+
};
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
function deserializeObjectTypeSpreadProperty() {
|
|
1757
|
+
return {
|
|
1758
|
+
type: 'ObjectTypeSpreadProperty',
|
|
1759
|
+
loc: this.addEmptyLoc(),
|
|
1760
|
+
argument: this.deserializeNode()
|
|
1761
|
+
};
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
function deserializeObjectTypeInternalSlot() {
|
|
1765
|
+
return {
|
|
1766
|
+
type: 'ObjectTypeInternalSlot',
|
|
1767
|
+
loc: this.addEmptyLoc(),
|
|
1768
|
+
id: this.deserializeNode(),
|
|
1769
|
+
value: this.deserializeNode(),
|
|
1770
|
+
optional: this.deserializeBoolean(),
|
|
1771
|
+
static: this.deserializeBoolean(),
|
|
1772
|
+
method: this.deserializeBoolean()
|
|
1773
|
+
};
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
function deserializeObjectTypeCallProperty() {
|
|
1777
|
+
return {
|
|
1778
|
+
type: 'ObjectTypeCallProperty',
|
|
1779
|
+
loc: this.addEmptyLoc(),
|
|
1780
|
+
value: this.deserializeNode(),
|
|
1781
|
+
static: this.deserializeBoolean()
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
function deserializeObjectTypeIndexer() {
|
|
1786
|
+
return {
|
|
1787
|
+
type: 'ObjectTypeIndexer',
|
|
1788
|
+
loc: this.addEmptyLoc(),
|
|
1789
|
+
id: this.deserializeNode(),
|
|
1790
|
+
key: this.deserializeNode(),
|
|
1791
|
+
value: this.deserializeNode(),
|
|
1792
|
+
static: this.deserializeBoolean(),
|
|
1793
|
+
variance: this.deserializeNode()
|
|
1794
|
+
};
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
function deserializeObjectTypeMappedTypeProperty() {
|
|
1798
|
+
return {
|
|
1799
|
+
type: 'ObjectTypeMappedTypeProperty',
|
|
1800
|
+
loc: this.addEmptyLoc(),
|
|
1801
|
+
keyTparam: this.deserializeNode(),
|
|
1802
|
+
propType: this.deserializeNode(),
|
|
1803
|
+
sourceType: this.deserializeNode(),
|
|
1804
|
+
variance: this.deserializeNode(),
|
|
1805
|
+
optional: this.deserializeString()
|
|
1806
|
+
};
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
function deserializeVariance() {
|
|
1810
|
+
return {
|
|
1811
|
+
type: 'Variance',
|
|
1812
|
+
loc: this.addEmptyLoc(),
|
|
1813
|
+
kind: this.deserializeString()
|
|
1814
|
+
};
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
function deserializeTypeParameterDeclaration() {
|
|
1818
|
+
return {
|
|
1819
|
+
type: 'TypeParameterDeclaration',
|
|
1820
|
+
loc: this.addEmptyLoc(),
|
|
1821
|
+
params: this.deserializeNodeList()
|
|
1822
|
+
};
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
function deserializeTypeParameter() {
|
|
1826
|
+
return {
|
|
1827
|
+
type: 'TypeParameter',
|
|
1828
|
+
loc: this.addEmptyLoc(),
|
|
1829
|
+
name: this.deserializeString(),
|
|
1830
|
+
const: this.deserializeBoolean(),
|
|
1831
|
+
bound: this.deserializeNode(),
|
|
1832
|
+
variance: this.deserializeNode(),
|
|
1833
|
+
default: this.deserializeNode(),
|
|
1834
|
+
usesExtendsBound: this.deserializeBoolean()
|
|
1835
|
+
};
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
function deserializeTypeParameterInstantiation() {
|
|
1839
|
+
return {
|
|
1840
|
+
type: 'TypeParameterInstantiation',
|
|
1841
|
+
loc: this.addEmptyLoc(),
|
|
1842
|
+
params: this.deserializeNodeList()
|
|
1843
|
+
};
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
function deserializeTypeCastExpression() {
|
|
1847
|
+
return {
|
|
1848
|
+
type: 'TypeCastExpression',
|
|
1849
|
+
loc: this.addEmptyLoc(),
|
|
1850
|
+
expression: this.deserializeNode(),
|
|
1851
|
+
typeAnnotation: this.deserializeNode()
|
|
1852
|
+
};
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
function deserializeAsExpression() {
|
|
1856
|
+
return {
|
|
1857
|
+
type: 'AsExpression',
|
|
1858
|
+
loc: this.addEmptyLoc(),
|
|
1859
|
+
expression: this.deserializeNode(),
|
|
1860
|
+
typeAnnotation: this.deserializeNode()
|
|
1861
|
+
};
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
function deserializeAsConstExpression() {
|
|
1865
|
+
return {
|
|
1866
|
+
type: 'AsConstExpression',
|
|
1867
|
+
loc: this.addEmptyLoc(),
|
|
1868
|
+
expression: this.deserializeNode()
|
|
1869
|
+
};
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
function deserializeInferredPredicate() {
|
|
1873
|
+
return {
|
|
1874
|
+
type: 'InferredPredicate',
|
|
1875
|
+
loc: this.addEmptyLoc()
|
|
1876
|
+
};
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
function deserializeDeclaredPredicate() {
|
|
1880
|
+
return {
|
|
1881
|
+
type: 'DeclaredPredicate',
|
|
1882
|
+
loc: this.addEmptyLoc(),
|
|
1883
|
+
value: this.deserializeNode()
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
function deserializeEnumDeclaration() {
|
|
1888
|
+
return {
|
|
1889
|
+
type: 'EnumDeclaration',
|
|
1890
|
+
loc: this.addEmptyLoc(),
|
|
1891
|
+
id: this.deserializeNode(),
|
|
1892
|
+
body: this.deserializeNode()
|
|
1893
|
+
};
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
function deserializeEnumStringBody() {
|
|
1897
|
+
return {
|
|
1898
|
+
type: 'EnumStringBody',
|
|
1899
|
+
loc: this.addEmptyLoc(),
|
|
1900
|
+
members: this.deserializeNodeList(),
|
|
1901
|
+
explicitType: this.deserializeBoolean(),
|
|
1902
|
+
hasUnknownMembers: this.deserializeBoolean()
|
|
1903
|
+
};
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
function deserializeEnumNumberBody() {
|
|
1907
|
+
return {
|
|
1908
|
+
type: 'EnumNumberBody',
|
|
1909
|
+
loc: this.addEmptyLoc(),
|
|
1910
|
+
members: this.deserializeNodeList(),
|
|
1911
|
+
explicitType: this.deserializeBoolean(),
|
|
1912
|
+
hasUnknownMembers: this.deserializeBoolean()
|
|
1913
|
+
};
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
function deserializeEnumBigIntBody() {
|
|
1917
|
+
return {
|
|
1918
|
+
type: 'EnumBigIntBody',
|
|
1919
|
+
loc: this.addEmptyLoc(),
|
|
1920
|
+
members: this.deserializeNodeList(),
|
|
1921
|
+
explicitType: this.deserializeBoolean(),
|
|
1922
|
+
hasUnknownMembers: this.deserializeBoolean()
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
function deserializeEnumBooleanBody() {
|
|
1927
|
+
return {
|
|
1928
|
+
type: 'EnumBooleanBody',
|
|
1929
|
+
loc: this.addEmptyLoc(),
|
|
1930
|
+
members: this.deserializeNodeList(),
|
|
1931
|
+
explicitType: this.deserializeBoolean(),
|
|
1932
|
+
hasUnknownMembers: this.deserializeBoolean()
|
|
1933
|
+
};
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
function deserializeEnumSymbolBody() {
|
|
1937
|
+
return {
|
|
1938
|
+
type: 'EnumSymbolBody',
|
|
1939
|
+
loc: this.addEmptyLoc(),
|
|
1940
|
+
members: this.deserializeNodeList(),
|
|
1941
|
+
hasUnknownMembers: this.deserializeBoolean()
|
|
1942
|
+
};
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
function deserializeEnumDefaultedMember() {
|
|
1946
|
+
return {
|
|
1947
|
+
type: 'EnumDefaultedMember',
|
|
1948
|
+
loc: this.addEmptyLoc(),
|
|
1949
|
+
id: this.deserializeNode()
|
|
1950
|
+
};
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
function deserializeEnumStringMember() {
|
|
1954
|
+
return {
|
|
1955
|
+
type: 'EnumStringMember',
|
|
1956
|
+
loc: this.addEmptyLoc(),
|
|
1957
|
+
id: this.deserializeNode(),
|
|
1958
|
+
init: this.deserializeNode()
|
|
1959
|
+
};
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
function deserializeEnumNumberMember() {
|
|
1963
|
+
return {
|
|
1964
|
+
type: 'EnumNumberMember',
|
|
1965
|
+
loc: this.addEmptyLoc(),
|
|
1966
|
+
id: this.deserializeNode(),
|
|
1967
|
+
init: this.deserializeNode()
|
|
1968
|
+
};
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
function deserializeEnumBigIntMember() {
|
|
1972
|
+
return {
|
|
1973
|
+
type: 'EnumBigIntMember',
|
|
1974
|
+
loc: this.addEmptyLoc(),
|
|
1975
|
+
id: this.deserializeNode(),
|
|
1976
|
+
init: this.deserializeNode()
|
|
1977
|
+
};
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
function deserializeEnumBooleanMember() {
|
|
1981
|
+
return {
|
|
1982
|
+
type: 'EnumBooleanMember',
|
|
1983
|
+
loc: this.addEmptyLoc(),
|
|
1984
|
+
id: this.deserializeNode(),
|
|
1985
|
+
init: this.deserializeNode()
|
|
1986
|
+
};
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
function deserializeComponentParameter() {
|
|
1990
|
+
return {
|
|
1991
|
+
type: 'ComponentParameter',
|
|
1992
|
+
loc: this.addEmptyLoc(),
|
|
1993
|
+
name: this.deserializeNode(),
|
|
1994
|
+
local: this.deserializeNode(),
|
|
1995
|
+
shorthand: this.deserializeBoolean()
|
|
1996
|
+
};
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
function deserializeFlowLast() {
|
|
2000
|
+
throw new Error('Flow' + ' should not appear in program buffer');
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
function deserializeTSFirst() {
|
|
2004
|
+
throw new Error('TS' + ' should not appear in program buffer');
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
function deserializeTSTypeAnnotation() {
|
|
2008
|
+
return {
|
|
2009
|
+
type: 'TSTypeAnnotation',
|
|
2010
|
+
loc: this.addEmptyLoc(),
|
|
2011
|
+
typeAnnotation: this.deserializeNode()
|
|
2012
|
+
};
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
function deserializeTSAnyKeyword() {
|
|
2016
|
+
return {
|
|
2017
|
+
type: 'TSAnyKeyword',
|
|
2018
|
+
loc: this.addEmptyLoc()
|
|
2019
|
+
};
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
function deserializeTSNumberKeyword() {
|
|
2023
|
+
return {
|
|
2024
|
+
type: 'TSNumberKeyword',
|
|
2025
|
+
loc: this.addEmptyLoc()
|
|
2026
|
+
};
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
function deserializeTSBooleanKeyword() {
|
|
2030
|
+
return {
|
|
2031
|
+
type: 'TSBooleanKeyword',
|
|
2032
|
+
loc: this.addEmptyLoc()
|
|
2033
|
+
};
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
function deserializeTSStringKeyword() {
|
|
2037
|
+
return {
|
|
2038
|
+
type: 'TSStringKeyword',
|
|
2039
|
+
loc: this.addEmptyLoc()
|
|
2040
|
+
};
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
function deserializeTSSymbolKeyword() {
|
|
2044
|
+
return {
|
|
2045
|
+
type: 'TSSymbolKeyword',
|
|
2046
|
+
loc: this.addEmptyLoc()
|
|
2047
|
+
};
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
function deserializeTSVoidKeyword() {
|
|
2051
|
+
return {
|
|
2052
|
+
type: 'TSVoidKeyword',
|
|
2053
|
+
loc: this.addEmptyLoc()
|
|
2054
|
+
};
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
function deserializeTSUndefinedKeyword() {
|
|
2058
|
+
return {
|
|
2059
|
+
type: 'TSUndefinedKeyword',
|
|
2060
|
+
loc: this.addEmptyLoc()
|
|
2061
|
+
};
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
function deserializeTSUnknownKeyword() {
|
|
2065
|
+
return {
|
|
2066
|
+
type: 'TSUnknownKeyword',
|
|
2067
|
+
loc: this.addEmptyLoc()
|
|
2068
|
+
};
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
function deserializeTSNeverKeyword() {
|
|
2072
|
+
return {
|
|
2073
|
+
type: 'TSNeverKeyword',
|
|
2074
|
+
loc: this.addEmptyLoc()
|
|
2075
|
+
};
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
function deserializeTSBigIntKeyword() {
|
|
2079
|
+
return {
|
|
2080
|
+
type: 'TSBigIntKeyword',
|
|
2081
|
+
loc: this.addEmptyLoc()
|
|
2082
|
+
};
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
function deserializeTSThisType() {
|
|
2086
|
+
return {
|
|
2087
|
+
type: 'TSThisType',
|
|
2088
|
+
loc: this.addEmptyLoc()
|
|
2089
|
+
};
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
function deserializeTSLiteralType() {
|
|
2093
|
+
return {
|
|
2094
|
+
type: 'TSLiteralType',
|
|
2095
|
+
loc: this.addEmptyLoc(),
|
|
2096
|
+
literal: this.deserializeNode()
|
|
2097
|
+
};
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
function deserializeTSIndexedAccessType() {
|
|
2101
|
+
return {
|
|
2102
|
+
type: 'TSIndexedAccessType',
|
|
2103
|
+
loc: this.addEmptyLoc(),
|
|
2104
|
+
objectType: this.deserializeNode(),
|
|
2105
|
+
indexType: this.deserializeNode()
|
|
2106
|
+
};
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
function deserializeTSArrayType() {
|
|
2110
|
+
return {
|
|
2111
|
+
type: 'TSArrayType',
|
|
2112
|
+
loc: this.addEmptyLoc(),
|
|
2113
|
+
elementType: this.deserializeNode()
|
|
2114
|
+
};
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
function deserializeTSTypeReference() {
|
|
2118
|
+
return {
|
|
2119
|
+
type: 'TSTypeReference',
|
|
2120
|
+
loc: this.addEmptyLoc(),
|
|
2121
|
+
typeName: this.deserializeNode(),
|
|
2122
|
+
typeParameters: this.deserializeNode()
|
|
2123
|
+
};
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
function deserializeTSQualifiedName() {
|
|
2127
|
+
return {
|
|
2128
|
+
type: 'TSQualifiedName',
|
|
2129
|
+
loc: this.addEmptyLoc(),
|
|
2130
|
+
left: this.deserializeNode(),
|
|
2131
|
+
right: this.deserializeNode()
|
|
2132
|
+
};
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
function deserializeTSFunctionType() {
|
|
2136
|
+
return {
|
|
2137
|
+
type: 'TSFunctionType',
|
|
2138
|
+
loc: this.addEmptyLoc(),
|
|
2139
|
+
params: this.deserializeNodeList(),
|
|
2140
|
+
returnType: this.deserializeNode(),
|
|
2141
|
+
typeParameters: this.deserializeNode()
|
|
2142
|
+
};
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
function deserializeTSConstructorType() {
|
|
2146
|
+
return {
|
|
2147
|
+
type: 'TSConstructorType',
|
|
2148
|
+
loc: this.addEmptyLoc(),
|
|
2149
|
+
params: this.deserializeNodeList(),
|
|
2150
|
+
returnType: this.deserializeNode(),
|
|
2151
|
+
typeParameters: this.deserializeNode()
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
function deserializeTSTypePredicate() {
|
|
2156
|
+
return {
|
|
2157
|
+
type: 'TSTypePredicate',
|
|
2158
|
+
loc: this.addEmptyLoc(),
|
|
2159
|
+
parameterName: this.deserializeNode(),
|
|
2160
|
+
typeAnnotation: this.deserializeNode()
|
|
2161
|
+
};
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
function deserializeTSTupleType() {
|
|
2165
|
+
return {
|
|
2166
|
+
type: 'TSTupleType',
|
|
2167
|
+
loc: this.addEmptyLoc(),
|
|
2168
|
+
elementTypes: this.deserializeNodeList()
|
|
2169
|
+
};
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
function deserializeTSTypeAssertion() {
|
|
2173
|
+
return {
|
|
2174
|
+
type: 'TSTypeAssertion',
|
|
2175
|
+
loc: this.addEmptyLoc(),
|
|
2176
|
+
typeAnnotation: this.deserializeNode(),
|
|
2177
|
+
expression: this.deserializeNode()
|
|
2178
|
+
};
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
function deserializeTSAsExpression() {
|
|
2182
|
+
return {
|
|
2183
|
+
type: 'TSAsExpression',
|
|
2184
|
+
loc: this.addEmptyLoc(),
|
|
2185
|
+
expression: this.deserializeNode(),
|
|
2186
|
+
typeAnnotation: this.deserializeNode()
|
|
2187
|
+
};
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
function deserializeTSParameterProperty() {
|
|
2191
|
+
return {
|
|
2192
|
+
type: 'TSParameterProperty',
|
|
2193
|
+
loc: this.addEmptyLoc(),
|
|
2194
|
+
parameter: this.deserializeNode(),
|
|
2195
|
+
accessibility: this.deserializeString(),
|
|
2196
|
+
readonly: this.deserializeBoolean(),
|
|
2197
|
+
static: this.deserializeBoolean(),
|
|
2198
|
+
export: this.deserializeBoolean()
|
|
2199
|
+
};
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
function deserializeTSTypeAliasDeclaration() {
|
|
2203
|
+
return {
|
|
2204
|
+
type: 'TSTypeAliasDeclaration',
|
|
2205
|
+
loc: this.addEmptyLoc(),
|
|
2206
|
+
id: this.deserializeNode(),
|
|
2207
|
+
typeParameters: this.deserializeNode(),
|
|
2208
|
+
typeAnnotation: this.deserializeNode()
|
|
2209
|
+
};
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
function deserializeTSInterfaceDeclaration() {
|
|
2213
|
+
return {
|
|
2214
|
+
type: 'TSInterfaceDeclaration',
|
|
2215
|
+
loc: this.addEmptyLoc(),
|
|
2216
|
+
id: this.deserializeNode(),
|
|
2217
|
+
body: this.deserializeNode(),
|
|
2218
|
+
extends: this.deserializeNodeList(),
|
|
2219
|
+
typeParameters: this.deserializeNode()
|
|
2220
|
+
};
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
function deserializeTSInterfaceHeritage() {
|
|
2224
|
+
return {
|
|
2225
|
+
type: 'TSInterfaceHeritage',
|
|
2226
|
+
loc: this.addEmptyLoc(),
|
|
2227
|
+
expression: this.deserializeNode(),
|
|
2228
|
+
typeParameters: this.deserializeNode()
|
|
2229
|
+
};
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
function deserializeTSInterfaceBody() {
|
|
2233
|
+
return {
|
|
2234
|
+
type: 'TSInterfaceBody',
|
|
2235
|
+
loc: this.addEmptyLoc(),
|
|
2236
|
+
body: this.deserializeNodeList()
|
|
2237
|
+
};
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
function deserializeTSEnumDeclaration() {
|
|
2241
|
+
return {
|
|
2242
|
+
type: 'TSEnumDeclaration',
|
|
2243
|
+
loc: this.addEmptyLoc(),
|
|
2244
|
+
id: this.deserializeNode(),
|
|
2245
|
+
members: this.deserializeNodeList()
|
|
2246
|
+
};
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
function deserializeTSEnumMember() {
|
|
2250
|
+
return {
|
|
2251
|
+
type: 'TSEnumMember',
|
|
2252
|
+
loc: this.addEmptyLoc(),
|
|
2253
|
+
id: this.deserializeNode(),
|
|
2254
|
+
initializer: this.deserializeNode()
|
|
2255
|
+
};
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
function deserializeTSModuleDeclaration() {
|
|
2259
|
+
return {
|
|
2260
|
+
type: 'TSModuleDeclaration',
|
|
2261
|
+
loc: this.addEmptyLoc(),
|
|
2262
|
+
id: this.deserializeNode(),
|
|
2263
|
+
body: this.deserializeNode()
|
|
2264
|
+
};
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
function deserializeTSModuleBlock() {
|
|
2268
|
+
return {
|
|
2269
|
+
type: 'TSModuleBlock',
|
|
2270
|
+
loc: this.addEmptyLoc(),
|
|
2271
|
+
body: this.deserializeNodeList()
|
|
2272
|
+
};
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
function deserializeTSModuleMember() {
|
|
2276
|
+
return {
|
|
2277
|
+
type: 'TSModuleMember',
|
|
2278
|
+
loc: this.addEmptyLoc(),
|
|
2279
|
+
id: this.deserializeNode(),
|
|
2280
|
+
initializer: this.deserializeNode()
|
|
2281
|
+
};
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
function deserializeTSTypeParameterDeclaration() {
|
|
2285
|
+
return {
|
|
2286
|
+
type: 'TSTypeParameterDeclaration',
|
|
2287
|
+
loc: this.addEmptyLoc(),
|
|
2288
|
+
params: this.deserializeNodeList()
|
|
2289
|
+
};
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
function deserializeTSTypeParameter() {
|
|
2293
|
+
return {
|
|
2294
|
+
type: 'TSTypeParameter',
|
|
2295
|
+
loc: this.addEmptyLoc(),
|
|
2296
|
+
name: this.deserializeNode(),
|
|
2297
|
+
constraint: this.deserializeNode(),
|
|
2298
|
+
default: this.deserializeNode()
|
|
2299
|
+
};
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
function deserializeTSTypeParameterInstantiation() {
|
|
2303
|
+
return {
|
|
2304
|
+
type: 'TSTypeParameterInstantiation',
|
|
2305
|
+
loc: this.addEmptyLoc(),
|
|
2306
|
+
params: this.deserializeNodeList()
|
|
2307
|
+
};
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
function deserializeTSUnionType() {
|
|
2311
|
+
return {
|
|
2312
|
+
type: 'TSUnionType',
|
|
2313
|
+
loc: this.addEmptyLoc(),
|
|
2314
|
+
types: this.deserializeNodeList()
|
|
2315
|
+
};
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
function deserializeTSIntersectionType() {
|
|
2319
|
+
return {
|
|
2320
|
+
type: 'TSIntersectionType',
|
|
2321
|
+
loc: this.addEmptyLoc(),
|
|
2322
|
+
types: this.deserializeNodeList()
|
|
2323
|
+
};
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
function deserializeTSTypeQuery() {
|
|
2327
|
+
return {
|
|
2328
|
+
type: 'TSTypeQuery',
|
|
2329
|
+
loc: this.addEmptyLoc(),
|
|
2330
|
+
exprName: this.deserializeNode()
|
|
2331
|
+
};
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
function deserializeTSConditionalType() {
|
|
2335
|
+
return {
|
|
2336
|
+
type: 'TSConditionalType',
|
|
2337
|
+
loc: this.addEmptyLoc(),
|
|
2338
|
+
checkType: this.deserializeNode(),
|
|
2339
|
+
extendsType: this.deserializeNode(),
|
|
2340
|
+
trueType: this.deserializeNode(),
|
|
2341
|
+
falseType: this.deserializeNode()
|
|
2342
|
+
};
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
function deserializeTSTypeLiteral() {
|
|
2346
|
+
return {
|
|
2347
|
+
type: 'TSTypeLiteral',
|
|
2348
|
+
loc: this.addEmptyLoc(),
|
|
2349
|
+
members: this.deserializeNodeList()
|
|
2350
|
+
};
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
function deserializeTSPropertySignature() {
|
|
2354
|
+
return {
|
|
2355
|
+
type: 'TSPropertySignature',
|
|
2356
|
+
loc: this.addEmptyLoc(),
|
|
2357
|
+
key: this.deserializeNode(),
|
|
2358
|
+
typeAnnotation: this.deserializeNode(),
|
|
2359
|
+
initializer: this.deserializeNode(),
|
|
2360
|
+
optional: this.deserializeBoolean(),
|
|
2361
|
+
computed: this.deserializeBoolean(),
|
|
2362
|
+
readonly: this.deserializeBoolean(),
|
|
2363
|
+
static: this.deserializeBoolean(),
|
|
2364
|
+
export: this.deserializeBoolean()
|
|
2365
|
+
};
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
function deserializeTSMethodSignature() {
|
|
2369
|
+
return {
|
|
2370
|
+
type: 'TSMethodSignature',
|
|
2371
|
+
loc: this.addEmptyLoc(),
|
|
2372
|
+
key: this.deserializeNode(),
|
|
2373
|
+
params: this.deserializeNodeList(),
|
|
2374
|
+
returnType: this.deserializeNode(),
|
|
2375
|
+
computed: this.deserializeBoolean()
|
|
2376
|
+
};
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
function deserializeTSIndexSignature() {
|
|
2380
|
+
return {
|
|
2381
|
+
type: 'TSIndexSignature',
|
|
2382
|
+
loc: this.addEmptyLoc(),
|
|
2383
|
+
parameters: this.deserializeNodeList(),
|
|
2384
|
+
typeAnnotation: this.deserializeNode()
|
|
2385
|
+
};
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2388
|
+
function deserializeTSCallSignatureDeclaration() {
|
|
2389
|
+
return {
|
|
2390
|
+
type: 'TSCallSignatureDeclaration',
|
|
2391
|
+
loc: this.addEmptyLoc(),
|
|
2392
|
+
params: this.deserializeNodeList(),
|
|
2393
|
+
returnType: this.deserializeNode()
|
|
2394
|
+
};
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
function deserializeTSModifiers() {
|
|
2398
|
+
return {
|
|
2399
|
+
type: 'TSModifiers',
|
|
2400
|
+
loc: this.addEmptyLoc(),
|
|
2401
|
+
accessibility: this.deserializeString(),
|
|
2402
|
+
readonly: this.deserializeBoolean()
|
|
2403
|
+
};
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
function deserializeTSLast() {
|
|
2407
|
+
throw new Error('TS' + ' should not appear in program buffer');
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
function deserializeCoverFirst() {
|
|
2411
|
+
throw new Error('Cover' + ' should not appear in program buffer');
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
function deserializeCoverEmptyArgs() {
|
|
2415
|
+
return {
|
|
2416
|
+
type: 'CoverEmptyArgs',
|
|
2417
|
+
loc: this.addEmptyLoc()
|
|
2418
|
+
};
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
function deserializeCoverTrailingComma() {
|
|
2422
|
+
return {
|
|
2423
|
+
type: 'CoverTrailingComma',
|
|
2424
|
+
loc: this.addEmptyLoc()
|
|
2425
|
+
};
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
function deserializeCoverInitializer() {
|
|
2429
|
+
return {
|
|
2430
|
+
type: 'CoverInitializer',
|
|
2431
|
+
loc: this.addEmptyLoc(),
|
|
2432
|
+
init: this.deserializeNode()
|
|
2433
|
+
};
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
function deserializeCoverRestElement() {
|
|
2437
|
+
return {
|
|
2438
|
+
type: 'CoverRestElement',
|
|
2439
|
+
loc: this.addEmptyLoc(),
|
|
2440
|
+
rest: this.deserializeNode()
|
|
2441
|
+
};
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
function deserializeCoverTypedIdentifier() {
|
|
2445
|
+
return {
|
|
2446
|
+
type: 'CoverTypedIdentifier',
|
|
2447
|
+
loc: this.addEmptyLoc(),
|
|
2448
|
+
left: this.deserializeNode(),
|
|
2449
|
+
right: this.deserializeNode(),
|
|
2450
|
+
optional: this.deserializeBoolean()
|
|
2451
|
+
};
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
function deserializeCoverLast() {
|
|
2455
|
+
throw new Error('Cover' + ' should not appear in program buffer');
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
function deserializeSHBuiltin() {
|
|
2459
|
+
return {
|
|
2460
|
+
type: 'SHBuiltin',
|
|
2461
|
+
loc: this.addEmptyLoc()
|
|
2462
|
+
};
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
function deserializeImplicitCheckedCast() {
|
|
2466
|
+
return {
|
|
2467
|
+
type: 'ImplicitCheckedCast',
|
|
2468
|
+
loc: this.addEmptyLoc(),
|
|
2469
|
+
argument: this.deserializeNode()
|
|
2470
|
+
};
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
module.exports = [deserializeEmpty, deserializeMetadata, deserializeFunctionLikeFirst, deserializeProgram, deserializeFunctionExpression, deserializeArrowFunctionExpression, deserializeFunctionDeclaration, deserializeComponentDeclaration, deserializeHookDeclaration, deserializeFunctionLikeLast, deserializeStatementFirst, deserializeMatchStatement, deserializeLoopStatementFirst, deserializeWhileStatement, deserializeDoWhileStatement, deserializeForInStatement, deserializeForOfStatement, deserializeForStatement, deserializeLoopStatementLast, deserializeDebuggerStatement, deserializeEmptyStatement, deserializeBlockStatement, deserializeStaticBlock, deserializeBreakStatement, deserializeContinueStatement, deserializeThrowStatement, deserializeReturnStatement, deserializeWithStatement, deserializeSwitchStatement, deserializeLabeledStatement, deserializeExpressionStatement, deserializeTryStatement, deserializeIfStatement, deserializeStatementLast, deserializeNullLiteral, deserializeBooleanLiteral, deserializeStringLiteral, deserializeNumericLiteral, deserializeRegExpLiteral, deserializeBigIntLiteral, deserializeThisExpression, deserializeSuper, deserializeSequenceExpression, deserializeObjectExpression, deserializeArrayExpression, deserializeSpreadElement, deserializeNewExpression, deserializeYieldExpression, deserializeAwaitExpression, deserializeImportExpression, deserializeCallExpressionLikeFirst, deserializeCallExpression, deserializeOptionalCallExpression, deserializeCallExpressionLikeLast, deserializeAssignmentExpression, deserializeUnaryExpression, deserializeUpdateExpression, deserializeMemberExpressionLikeFirst, deserializeMemberExpression, deserializeOptionalMemberExpression, deserializeMemberExpressionLikeLast, deserializeLogicalExpression, deserializeConditionalExpression, deserializeBinaryExpression, deserializeDirective, deserializeDirectiveLiteral, deserializeIdentifier, deserializePrivateName, deserializeMetaProperty, deserializeSwitchCase, deserializeCatchClause, deserializeVariableDeclarator, deserializeVariableDeclaration, deserializeTemplateLiteral, deserializeTaggedTemplateExpression, deserializeTemplateElement, deserializeProperty, deserializeClassLikeFirst, deserializeClassDeclaration, deserializeClassExpression, deserializeClassLikeLast, deserializeClassBody, deserializeClassProperty, deserializeClassPrivateProperty, deserializeMethodDefinition, deserializeImportDeclaration, deserializeImportSpecifier, deserializeImportDefaultSpecifier, deserializeImportNamespaceSpecifier, deserializeImportAttribute, deserializeExportNamedDeclaration, deserializeExportSpecifier, deserializeExportNamespaceSpecifier, deserializeExportDefaultDeclaration, deserializeExportAllDeclaration, deserializePatternFirst, deserializeObjectPattern, deserializeArrayPattern, deserializeRestElement, deserializeAssignmentPattern, deserializePatternLast, deserializeMatchStatementCase, deserializeMatchExpression, deserializeMatchExpressionCase, deserializeMatchPatternFirst, deserializeMatchWildcardPattern, deserializeMatchLiteralPattern, deserializeMatchUnaryPattern, deserializeMatchIdentifierPattern, deserializeMatchBindingPattern, deserializeMatchObjectPattern, deserializeMatchArrayPattern, deserializeMatchOrPattern, deserializeMatchAsPattern, deserializeMatchMemberPattern, deserializeMatchPatternLast, deserializeMatchObjectPatternProperty, deserializeMatchRestPattern, deserializeJSXFirst, deserializeJSXIdentifier, deserializeJSXMemberExpression, deserializeJSXNamespacedName, deserializeJSXEmptyExpression, deserializeJSXExpressionContainer, deserializeJSXSpreadChild, deserializeJSXOpeningElement, deserializeJSXClosingElement, deserializeJSXAttribute, deserializeJSXSpreadAttribute, deserializeJSXStringLiteral, deserializeJSXText, deserializeJSXElement, deserializeJSXFragment, deserializeJSXOpeningFragment, deserializeJSXClosingFragment, deserializeJSXLast, deserializeFlowFirst, deserializeExistsTypeAnnotation, deserializeEmptyTypeAnnotation, deserializeStringTypeAnnotation, deserializeNumberTypeAnnotation, deserializeStringLiteralTypeAnnotation, deserializeNumberLiteralTypeAnnotation, deserializeBigIntLiteralTypeAnnotation, deserializeBooleanTypeAnnotation, deserializeBooleanLiteralTypeAnnotation, deserializeNullLiteralTypeAnnotation, deserializeSymbolTypeAnnotation, deserializeAnyTypeAnnotation, deserializeMixedTypeAnnotation, deserializeBigIntTypeAnnotation, deserializeVoidTypeAnnotation, deserializeFunctionTypeAnnotation, deserializeHookTypeAnnotation, deserializeFunctionTypeParam, deserializeComponentTypeAnnotation, deserializeComponentTypeParameter, deserializeNullableTypeAnnotation, deserializeQualifiedTypeIdentifier, deserializeTypeofTypeAnnotation, deserializeKeyofTypeAnnotation, deserializeTypeOperator, deserializeQualifiedTypeofIdentifier, deserializeTupleTypeAnnotation, deserializeTupleTypeSpreadElement, deserializeTupleTypeLabeledElement, deserializeArrayTypeAnnotation, deserializeInferTypeAnnotation, deserializeUnionTypeAnnotation, deserializeIntersectionTypeAnnotation, deserializeGenericTypeAnnotation, deserializeIndexedAccessType, deserializeOptionalIndexedAccessType, deserializeConditionalTypeAnnotation, deserializeTypePredicate, deserializeInterfaceTypeAnnotation, deserializeTypeAlias, deserializeOpaqueType, deserializeInterfaceDeclaration, deserializeDeclareTypeAlias, deserializeDeclareOpaqueType, deserializeDeclareInterface, deserializeDeclareClass, deserializeDeclareFunction, deserializeDeclareHook, deserializeDeclareComponent, deserializeDeclareVariable, deserializeDeclareEnum, deserializeDeclareExportDeclaration, deserializeDeclareExportAllDeclaration, deserializeDeclareModule, deserializeDeclareNamespace, deserializeDeclareModuleExports, deserializeInterfaceExtends, deserializeClassImplements, deserializeTypeAnnotation, deserializeObjectTypeAnnotation, deserializeObjectTypeProperty, deserializeObjectTypeSpreadProperty, deserializeObjectTypeInternalSlot, deserializeObjectTypeCallProperty, deserializeObjectTypeIndexer, deserializeObjectTypeMappedTypeProperty, deserializeVariance, deserializeTypeParameterDeclaration, deserializeTypeParameter, deserializeTypeParameterInstantiation, deserializeTypeCastExpression, deserializeAsExpression, deserializeAsConstExpression, deserializeInferredPredicate, deserializeDeclaredPredicate, deserializeEnumDeclaration, deserializeEnumStringBody, deserializeEnumNumberBody, deserializeEnumBigIntBody, deserializeEnumBooleanBody, deserializeEnumSymbolBody, deserializeEnumDefaultedMember, deserializeEnumStringMember, deserializeEnumNumberMember, deserializeEnumBigIntMember, deserializeEnumBooleanMember, deserializeComponentParameter, deserializeFlowLast, deserializeTSFirst, deserializeTSTypeAnnotation, deserializeTSAnyKeyword, deserializeTSNumberKeyword, deserializeTSBooleanKeyword, deserializeTSStringKeyword, deserializeTSSymbolKeyword, deserializeTSVoidKeyword, deserializeTSUndefinedKeyword, deserializeTSUnknownKeyword, deserializeTSNeverKeyword, deserializeTSBigIntKeyword, deserializeTSThisType, deserializeTSLiteralType, deserializeTSIndexedAccessType, deserializeTSArrayType, deserializeTSTypeReference, deserializeTSQualifiedName, deserializeTSFunctionType, deserializeTSConstructorType, deserializeTSTypePredicate, deserializeTSTupleType, deserializeTSTypeAssertion, deserializeTSAsExpression, deserializeTSParameterProperty, deserializeTSTypeAliasDeclaration, deserializeTSInterfaceDeclaration, deserializeTSInterfaceHeritage, deserializeTSInterfaceBody, deserializeTSEnumDeclaration, deserializeTSEnumMember, deserializeTSModuleDeclaration, deserializeTSModuleBlock, deserializeTSModuleMember, deserializeTSTypeParameterDeclaration, deserializeTSTypeParameter, deserializeTSTypeParameterInstantiation, deserializeTSUnionType, deserializeTSIntersectionType, deserializeTSTypeQuery, deserializeTSConditionalType, deserializeTSTypeLiteral, deserializeTSPropertySignature, deserializeTSMethodSignature, deserializeTSIndexSignature, deserializeTSCallSignatureDeclaration, deserializeTSModifiers, deserializeTSLast, deserializeCoverFirst, deserializeCoverEmptyArgs, deserializeCoverTrailingComma, deserializeCoverInitializer, deserializeCoverRestElement, deserializeCoverTypedIdentifier, deserializeCoverLast, deserializeSHBuiltin, deserializeImplicitCheckedCast];
|