@rollup/wasm-node 4.64.9 → 5.0.0-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.
Files changed (52) hide show
  1. package/LICENSE.md +3 -304
  2. package/dist/ast-types.d.ts +896 -0
  3. package/dist/bin/rollup +21 -22
  4. package/dist/es/getLogFilter.js +2 -2
  5. package/dist/es/parseAst.js +3 -3
  6. package/dist/es/rollup.js +2 -2
  7. package/dist/es/shared/node-entry.js +1817 -1952
  8. package/dist/es/shared/parseAst.js +3567 -235
  9. package/dist/es/shared/watch.js +1765 -9600
  10. package/dist/getLogFilter.js +2 -2
  11. package/dist/loadConfigFile.js +3 -3
  12. package/dist/native.js +25 -7
  13. package/dist/parseAst.d.ts +13 -1
  14. package/dist/parseAst.js +8 -2
  15. package/dist/rollup.android-arm-eabi.node +0 -0
  16. package/dist/rollup.android-arm64.node +0 -0
  17. package/dist/rollup.d.ts +157 -105
  18. package/dist/rollup.darwin-arm64.node +0 -0
  19. package/dist/rollup.darwin-x64.node +0 -0
  20. package/dist/rollup.freebsd-arm64.node +0 -0
  21. package/dist/rollup.freebsd-x64.node +0 -0
  22. package/dist/rollup.js +2 -3
  23. package/dist/rollup.linux-arm-gnueabihf.node +0 -0
  24. package/dist/rollup.linux-arm-musleabihf.node +0 -0
  25. package/dist/rollup.linux-arm64-gnu.node +0 -0
  26. package/dist/rollup.linux-arm64-musl.node +0 -0
  27. package/dist/rollup.linux-loong64-gnu.node +0 -0
  28. package/dist/rollup.linux-loong64-musl.node +0 -0
  29. package/dist/rollup.linux-ppc64-gnu.node +0 -0
  30. package/dist/rollup.linux-ppc64-musl.node +0 -0
  31. package/dist/rollup.linux-riscv64-gnu.node +0 -0
  32. package/dist/rollup.linux-riscv64-musl.node +0 -0
  33. package/dist/rollup.linux-s390x-gnu.node +0 -0
  34. package/dist/rollup.linux-x64-gnu.node +0 -0
  35. package/dist/rollup.linux-x64-musl.node +0 -0
  36. package/dist/rollup.openbsd-x64.node +0 -0
  37. package/dist/rollup.openharmony-arm64.node +0 -0
  38. package/dist/rollup.win32-arm64-msvc.node +0 -0
  39. package/dist/rollup.win32-ia32-msvc.node +0 -0
  40. package/dist/rollup.win32-x64-gnu.node +0 -0
  41. package/dist/rollup.win32-x64-msvc.node +0 -0
  42. package/dist/shared/index.js +1775 -9597
  43. package/dist/shared/loadConfigFile.js +9 -9
  44. package/dist/shared/node-entry.js +2 -4
  45. package/dist/shared/parseAst.js +3595 -253
  46. package/dist/shared/rollup.js +1670 -1783
  47. package/dist/shared/watch-cli.js +10 -9
  48. package/dist/shared/watch.js +7 -11
  49. package/dist/wasm-node/bindings_wasm.js +31 -3
  50. package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
  51. package/package.json +19 -22
  52. package/dist/shared/fsevents-importer.js +0 -37
@@ -0,0 +1,896 @@
1
+ // This file is generated by scripts/generate-ast-types.ts.
2
+ // Do not edit this file directly.
3
+
4
+ export interface BaseNode {
5
+ end: number;
6
+ start: number;
7
+ }
8
+
9
+ export type AnnotationType = 'pure' | 'noSideEffects';
10
+
11
+ interface Annotation extends BaseNode {
12
+ type: AnnotationType;
13
+ }
14
+
15
+ export interface PanicError extends BaseNode {
16
+ type: 'PanicError';
17
+ message: string;
18
+ }
19
+
20
+ export interface ParseError extends BaseNode {
21
+ type: 'ParseError';
22
+ message: string;
23
+ }
24
+
25
+ export interface ArrayExpression extends BaseNode {
26
+ type: 'ArrayExpression';
27
+ elements: readonly (Expression | SpreadElement | null)[];
28
+ }
29
+
30
+ export interface ArrayPattern extends BaseNode {
31
+ type: 'ArrayPattern';
32
+ elements: readonly (DestructuringPattern | null)[];
33
+ }
34
+
35
+ export interface ArrowFunctionExpression extends BaseNode {
36
+ type: 'ArrowFunctionExpression';
37
+ annotations?: readonly Annotation[];
38
+ params: readonly Parameter[];
39
+ body: BlockStatement | Expression;
40
+ id: null;
41
+ async: boolean;
42
+ expression: boolean;
43
+ generator: boolean;
44
+ }
45
+
46
+ export interface AssignmentExpression extends BaseNode {
47
+ type: 'AssignmentExpression';
48
+ operator:
49
+ | '='
50
+ | '+='
51
+ | '-='
52
+ | '*='
53
+ | '/='
54
+ | '%='
55
+ | '**='
56
+ | '<<='
57
+ | '>>='
58
+ | '>>>='
59
+ | '|='
60
+ | '^='
61
+ | '&='
62
+ | '||='
63
+ | '&&='
64
+ | '??=';
65
+ left: DestructuringPattern;
66
+ right: Expression;
67
+ }
68
+
69
+ export interface AssignmentPattern extends BaseNode {
70
+ type: 'AssignmentPattern';
71
+ left: BindingPattern;
72
+ right: Expression;
73
+ }
74
+
75
+ export interface AwaitExpression extends BaseNode {
76
+ type: 'AwaitExpression';
77
+ argument: Expression;
78
+ }
79
+
80
+ export interface BinaryExpression extends BaseNode {
81
+ type: 'BinaryExpression';
82
+ operator:
83
+ | '=='
84
+ | '!='
85
+ | '==='
86
+ | '!=='
87
+ | '<'
88
+ | '<='
89
+ | '>'
90
+ | '>='
91
+ | '<<'
92
+ | '>>'
93
+ | '>>>'
94
+ | '+'
95
+ | '-'
96
+ | '*'
97
+ | '/'
98
+ | '%'
99
+ | '**'
100
+ | '^'
101
+ | '&'
102
+ | '|'
103
+ | 'in'
104
+ | 'instanceof';
105
+ left: Expression | PrivateIdentifier;
106
+ right: Expression;
107
+ }
108
+
109
+ export interface BlockStatement extends BaseNode {
110
+ type: 'BlockStatement';
111
+ body: readonly Statement[];
112
+ }
113
+
114
+ export interface BreakStatement extends BaseNode {
115
+ type: 'BreakStatement';
116
+ label: Identifier | null;
117
+ }
118
+
119
+ export interface CallExpression extends BaseNode {
120
+ type: 'CallExpression';
121
+ annotations?: readonly Annotation[];
122
+ callee: Expression | Super;
123
+ arguments: readonly (Expression | SpreadElement)[];
124
+ optional: boolean;
125
+ }
126
+
127
+ export interface CatchClause extends BaseNode {
128
+ type: 'CatchClause';
129
+ param: BindingPattern | null;
130
+ body: BlockStatement;
131
+ }
132
+
133
+ export interface ChainExpression extends BaseNode {
134
+ type: 'ChainExpression';
135
+ expression: CallExpression | MemberExpression;
136
+ }
137
+
138
+ export interface ClassBody extends BaseNode {
139
+ type: 'ClassBody';
140
+ body: readonly (MethodDefinition | PropertyDefinition | StaticBlock)[];
141
+ }
142
+
143
+ export interface ClassDeclaration extends BaseNode {
144
+ type: 'ClassDeclaration';
145
+ decorators: readonly Decorator[];
146
+ id: Identifier | null;
147
+ superClass: Expression | null;
148
+ body: ClassBody;
149
+ }
150
+
151
+ export interface ClassExpression extends BaseNode {
152
+ type: 'ClassExpression';
153
+ decorators: readonly Decorator[];
154
+ id: Identifier | null;
155
+ superClass: Expression | null;
156
+ body: ClassBody;
157
+ }
158
+
159
+ export interface ConditionalExpression extends BaseNode {
160
+ type: 'ConditionalExpression';
161
+ test: Expression;
162
+ consequent: Expression;
163
+ alternate: Expression;
164
+ }
165
+
166
+ export interface ContinueStatement extends BaseNode {
167
+ type: 'ContinueStatement';
168
+ label: Identifier | null;
169
+ }
170
+
171
+ export interface DebuggerStatement extends BaseNode {
172
+ type: 'DebuggerStatement';
173
+ }
174
+
175
+ export interface Decorator extends BaseNode {
176
+ type: 'Decorator';
177
+ expression: Expression;
178
+ }
179
+
180
+ export interface Directive extends BaseNode {
181
+ type: 'ExpressionStatement';
182
+ directive: string;
183
+ expression: LiteralString;
184
+ }
185
+
186
+ export interface DoWhileStatement extends BaseNode {
187
+ type: 'DoWhileStatement';
188
+ body: Statement;
189
+ test: Expression;
190
+ }
191
+
192
+ export interface EmptyStatement extends BaseNode {
193
+ type: 'EmptyStatement';
194
+ }
195
+
196
+ export interface ExportAllDeclaration extends BaseNode {
197
+ type: 'ExportAllDeclaration';
198
+ exported: Identifier | null;
199
+ source: LiteralString;
200
+ attributes: readonly ImportAttribute[];
201
+ }
202
+
203
+ export interface ExportDefaultDeclaration extends BaseNode {
204
+ type: 'ExportDefaultDeclaration';
205
+ declaration: FunctionDeclaration | ClassDeclaration | Expression;
206
+ }
207
+
208
+ export interface ExportNamedDeclaration extends BaseNode {
209
+ type: 'ExportNamedDeclaration';
210
+ specifiers: readonly ExportSpecifier[];
211
+ source: Literal | null;
212
+ attributes: readonly ImportAttribute[];
213
+ declaration: FunctionDeclaration | VariableDeclaration | ClassDeclaration | null;
214
+ }
215
+
216
+ export interface ExportSpecifier extends BaseNode {
217
+ type: 'ExportSpecifier';
218
+ local: Identifier | LiteralString;
219
+ exported: Identifier | LiteralString;
220
+ }
221
+
222
+ export interface ExpressionStatement extends BaseNode {
223
+ type: 'ExpressionStatement';
224
+ expression: Expression;
225
+ }
226
+
227
+ export interface ForInStatement extends BaseNode {
228
+ type: 'ForInStatement';
229
+ left: VariableDeclaration | DestructuringPattern;
230
+ right: Expression;
231
+ body: Statement;
232
+ }
233
+
234
+ export interface ForOfStatement extends BaseNode {
235
+ type: 'ForOfStatement';
236
+ left: VariableDeclaration | DestructuringPattern;
237
+ right: Expression;
238
+ body: Statement;
239
+ await: boolean;
240
+ }
241
+
242
+ export interface ForStatement extends BaseNode {
243
+ type: 'ForStatement';
244
+ init: Expression | VariableDeclaration | null;
245
+ test: Expression | null;
246
+ update: Expression | null;
247
+ body: Statement;
248
+ }
249
+
250
+ export interface FunctionDeclaration extends BaseNode {
251
+ type: 'FunctionDeclaration';
252
+ annotations?: readonly Annotation[];
253
+ id: Identifier | null;
254
+ params: readonly Parameter[];
255
+ body: BlockStatement;
256
+ expression: false;
257
+ async: boolean;
258
+ generator: boolean;
259
+ }
260
+
261
+ export interface FunctionExpression extends BaseNode {
262
+ type: 'FunctionExpression';
263
+ annotations?: readonly Annotation[];
264
+ id: Identifier | null;
265
+ params: readonly Parameter[];
266
+ body: BlockStatement;
267
+ expression: false;
268
+ async: boolean;
269
+ generator: boolean;
270
+ }
271
+
272
+ export interface Identifier extends BaseNode {
273
+ type: 'Identifier';
274
+ name: string;
275
+ }
276
+
277
+ export interface IfStatement extends BaseNode {
278
+ type: 'IfStatement';
279
+ test: Expression;
280
+ consequent: Statement;
281
+ alternate: Statement | null;
282
+ }
283
+
284
+ export interface ImportAttribute extends BaseNode {
285
+ type: 'ImportAttribute';
286
+ key: Identifier | Literal;
287
+ value: Literal;
288
+ }
289
+
290
+ export interface ImportDeclaration extends BaseNode {
291
+ type: 'ImportDeclaration';
292
+ specifiers: readonly (ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier)[];
293
+ source: LiteralString;
294
+ attributes: readonly ImportAttribute[];
295
+ phase?: 'source' | 'defer';
296
+ }
297
+
298
+ export interface ImportDefaultSpecifier extends BaseNode {
299
+ type: 'ImportDefaultSpecifier';
300
+ local: Identifier;
301
+ }
302
+
303
+ export interface ImportExpression extends BaseNode {
304
+ type: 'ImportExpression';
305
+ source: Expression;
306
+ options: Expression | null;
307
+ phase?: 'source' | 'defer';
308
+ }
309
+
310
+ export interface ImportNamespaceSpecifier extends BaseNode {
311
+ type: 'ImportNamespaceSpecifier';
312
+ local: Identifier;
313
+ }
314
+
315
+ export interface ImportSpecifier extends BaseNode {
316
+ type: 'ImportSpecifier';
317
+ imported: Identifier | Literal;
318
+ local: Identifier;
319
+ }
320
+
321
+ export interface JSXAttribute extends BaseNode {
322
+ type: 'JSXAttribute';
323
+ name: JSXIdentifier | JSXNamespacedName;
324
+ value: JSXElement | JSXExpressionContainer | JSXSpreadChild | Literal | null;
325
+ }
326
+
327
+ export interface JSXClosingElement extends BaseNode {
328
+ type: 'JSXClosingElement';
329
+ name: JSXTagNameExpression;
330
+ }
331
+
332
+ export interface JSXClosingFragment extends BaseNode {
333
+ type: 'JSXClosingFragment';
334
+ }
335
+
336
+ export interface JSXElement extends BaseNode {
337
+ type: 'JSXElement';
338
+ openingElement: JSXOpeningElement;
339
+ children: readonly JSXChild[];
340
+ closingElement: JSXClosingElement | null;
341
+ }
342
+
343
+ export interface JSXEmptyExpression extends BaseNode {
344
+ type: 'JSXEmptyExpression';
345
+ }
346
+
347
+ export interface JSXExpressionContainer extends BaseNode {
348
+ type: 'JSXExpressionContainer';
349
+ expression: Expression | JSXEmptyExpression;
350
+ }
351
+
352
+ export interface JSXFragment extends BaseNode {
353
+ type: 'JSXFragment';
354
+ openingFragment: JSXOpeningFragment;
355
+ children: readonly JSXChild[];
356
+ closingFragment: JSXClosingFragment;
357
+ }
358
+
359
+ export interface JSXIdentifier extends BaseNode {
360
+ type: 'JSXIdentifier';
361
+ name: string;
362
+ }
363
+
364
+ export interface JSXMemberExpression extends BaseNode {
365
+ type: 'JSXMemberExpression';
366
+ object: JSXTagNameExpression;
367
+ property: JSXIdentifier;
368
+ }
369
+
370
+ export interface JSXNamespacedName extends BaseNode {
371
+ type: 'JSXNamespacedName';
372
+ namespace: JSXIdentifier;
373
+ name: JSXIdentifier;
374
+ }
375
+
376
+ export interface JSXOpeningElement extends BaseNode {
377
+ type: 'JSXOpeningElement';
378
+ name: JSXTagNameExpression;
379
+ attributes: readonly (JSXAttribute | JSXSpreadAttribute)[];
380
+ selfClosing: boolean;
381
+ }
382
+
383
+ export interface JSXOpeningFragment extends BaseNode {
384
+ type: 'JSXOpeningFragment';
385
+ attributes: never[];
386
+ selfClosing: false;
387
+ }
388
+
389
+ export interface JSXSpreadAttribute extends BaseNode {
390
+ type: 'JSXSpreadAttribute';
391
+ argument: Expression;
392
+ }
393
+
394
+ export interface JSXSpreadChild extends BaseNode {
395
+ type: 'JSXSpreadChild';
396
+ expression: Expression | JSXEmptyExpression;
397
+ }
398
+
399
+ export interface JSXText extends BaseNode {
400
+ type: 'JSXText';
401
+ value: string;
402
+ raw: string;
403
+ }
404
+
405
+ export interface LabeledStatement extends BaseNode {
406
+ type: 'LabeledStatement';
407
+ label: Identifier;
408
+ body: Statement;
409
+ }
410
+
411
+ export interface LiteralBigInt extends BaseNode {
412
+ type: 'Literal';
413
+ bigint: string;
414
+ raw: string;
415
+ value: bigint;
416
+ }
417
+
418
+ export interface LiteralBoolean extends BaseNode {
419
+ type: 'Literal';
420
+ raw: string;
421
+ value: boolean;
422
+ }
423
+
424
+ export interface LiteralNull extends BaseNode {
425
+ type: 'Literal';
426
+ value: null;
427
+ raw: 'null';
428
+ }
429
+
430
+ export interface LiteralNumber extends BaseNode {
431
+ type: 'Literal';
432
+ raw?: string;
433
+ value: number;
434
+ }
435
+
436
+ export interface LiteralRegExp extends BaseNode {
437
+ type: 'Literal';
438
+ raw: string;
439
+ regex: { flags: string; pattern: string };
440
+ value: RegExp;
441
+ }
442
+
443
+ export interface LiteralString extends BaseNode {
444
+ type: 'Literal';
445
+ value: string;
446
+ raw?: string;
447
+ }
448
+
449
+ export interface LogicalExpression extends BaseNode {
450
+ type: 'LogicalExpression';
451
+ operator: '||' | '&&' | '??';
452
+ left: Expression | PrivateIdentifier;
453
+ right: Expression;
454
+ }
455
+
456
+ export interface MemberExpression extends BaseNode {
457
+ type: 'MemberExpression';
458
+ object: Expression | Super;
459
+ property: Expression | PrivateIdentifier;
460
+ computed: boolean;
461
+ optional: boolean;
462
+ }
463
+
464
+ export interface MetaProperty extends BaseNode {
465
+ type: 'MetaProperty';
466
+ meta: Identifier;
467
+ property: Identifier;
468
+ }
469
+
470
+ export interface MethodDefinition extends BaseNode {
471
+ type: 'MethodDefinition';
472
+ decorators: readonly Decorator[];
473
+ key: Expression | PrivateIdentifier;
474
+ value: FunctionExpression;
475
+ kind: 'constructor' | 'method' | 'get' | 'set';
476
+ static: boolean;
477
+ computed: boolean;
478
+ }
479
+
480
+ export interface NewExpression extends BaseNode {
481
+ type: 'NewExpression';
482
+ annotations?: readonly Annotation[];
483
+ callee: Expression;
484
+ arguments: readonly (Expression | SpreadElement)[];
485
+ }
486
+
487
+ export interface ObjectExpression extends BaseNode {
488
+ type: 'ObjectExpression';
489
+ properties: readonly (Property | SpreadElement)[];
490
+ }
491
+
492
+ export interface ObjectPattern extends BaseNode {
493
+ type: 'ObjectPattern';
494
+ properties: readonly (Property | RestElement)[];
495
+ }
496
+
497
+ export interface PrivateIdentifier extends BaseNode {
498
+ type: 'PrivateIdentifier';
499
+ name: string;
500
+ }
501
+
502
+ export interface Program extends BaseNode {
503
+ type: 'Program';
504
+ body: readonly (Statement | Directive | ModuleDeclaration)[];
505
+ invalidAnnotations?: readonly Annotation[];
506
+ sourceType: 'module';
507
+ }
508
+
509
+ export interface Property extends BaseNode {
510
+ type: 'Property';
511
+ key: Expression;
512
+ value: Expression | DestructuringPattern;
513
+ kind: 'init' | 'get' | 'set';
514
+ method: boolean;
515
+ shorthand: boolean;
516
+ computed: boolean;
517
+ }
518
+
519
+ export interface PropertyDefinition extends BaseNode {
520
+ type: 'PropertyDefinition';
521
+ decorators: readonly Decorator[];
522
+ key: Expression | PrivateIdentifier;
523
+ value: Expression | null;
524
+ static: boolean;
525
+ computed: boolean;
526
+ }
527
+
528
+ export interface RestElement extends BaseNode {
529
+ type: 'RestElement';
530
+ argument: DestructuringPattern;
531
+ }
532
+
533
+ export interface ReturnStatement extends BaseNode {
534
+ type: 'ReturnStatement';
535
+ argument: Expression | null;
536
+ }
537
+
538
+ export interface SequenceExpression extends BaseNode {
539
+ type: 'SequenceExpression';
540
+ expressions: readonly Expression[];
541
+ }
542
+
543
+ export interface SpreadElement extends BaseNode {
544
+ type: 'SpreadElement';
545
+ argument: Expression;
546
+ }
547
+
548
+ export interface StaticBlock extends BaseNode {
549
+ type: 'StaticBlock';
550
+ body: readonly Statement[];
551
+ }
552
+
553
+ export interface Super extends BaseNode {
554
+ type: 'Super';
555
+ }
556
+
557
+ export interface SwitchCase extends BaseNode {
558
+ type: 'SwitchCase';
559
+ test: Expression | null;
560
+ consequent: readonly Statement[];
561
+ }
562
+
563
+ export interface SwitchStatement extends BaseNode {
564
+ type: 'SwitchStatement';
565
+ discriminant: Expression;
566
+ cases: readonly SwitchCase[];
567
+ }
568
+
569
+ export interface TaggedTemplateExpression extends BaseNode {
570
+ type: 'TaggedTemplateExpression';
571
+ tag: Expression;
572
+ quasi: TemplateLiteral;
573
+ }
574
+
575
+ export interface TemplateElement extends BaseNode {
576
+ type: 'TemplateElement';
577
+ value: { cooked?: string; raw: string };
578
+ tail: boolean;
579
+ }
580
+
581
+ export interface TemplateLiteral extends BaseNode {
582
+ type: 'TemplateLiteral';
583
+ quasis: readonly TemplateElement[];
584
+ expressions: readonly Expression[];
585
+ }
586
+
587
+ export interface ThisExpression extends BaseNode {
588
+ type: 'ThisExpression';
589
+ }
590
+
591
+ export interface ThrowStatement extends BaseNode {
592
+ type: 'ThrowStatement';
593
+ argument: Expression;
594
+ }
595
+
596
+ export interface TryStatement extends BaseNode {
597
+ type: 'TryStatement';
598
+ block: BlockStatement;
599
+ handler: CatchClause | null;
600
+ finalizer: BlockStatement | null;
601
+ }
602
+
603
+ export interface UnaryExpression extends BaseNode {
604
+ type: 'UnaryExpression';
605
+ operator: '-' | '+' | '!' | '~' | 'typeof' | 'void' | 'delete';
606
+ argument: Expression;
607
+ prefix: true;
608
+ }
609
+
610
+ export interface UpdateExpression extends BaseNode {
611
+ type: 'UpdateExpression';
612
+ operator: '++' | '--';
613
+ argument: Expression;
614
+ prefix: boolean;
615
+ }
616
+
617
+ export interface VariableDeclaration extends BaseNode {
618
+ type: 'VariableDeclaration';
619
+ kind: 'var' | 'let' | 'const' | 'using' | 'await using';
620
+ declarations: readonly VariableDeclarator[];
621
+ }
622
+
623
+ export interface VariableDeclarator extends BaseNode {
624
+ type: 'VariableDeclarator';
625
+ id: BindingPattern;
626
+ init: Expression | null;
627
+ }
628
+
629
+ export interface WhileStatement extends BaseNode {
630
+ type: 'WhileStatement';
631
+ test: Expression;
632
+ body: Statement;
633
+ }
634
+
635
+ export interface YieldExpression extends BaseNode {
636
+ type: 'YieldExpression';
637
+ argument: Expression | null;
638
+ delegate: boolean;
639
+ }
640
+
641
+ export type BindingPattern = Identifier | ArrayPattern | ObjectPattern;
642
+
643
+ export type DestructuringPattern =
644
+ AssignmentPattern | BindingPattern | MemberExpression | RestElement;
645
+
646
+ export type Expression =
647
+ | ArrayExpression
648
+ | ArrowFunctionExpression
649
+ | AssignmentExpression
650
+ | AwaitExpression
651
+ | BinaryExpression
652
+ | CallExpression
653
+ | ChainExpression
654
+ | ClassExpression
655
+ | ConditionalExpression
656
+ | FunctionExpression
657
+ | Identifier
658
+ | ImportExpression
659
+ | Literal
660
+ | LogicalExpression
661
+ | MemberExpression
662
+ | MetaProperty
663
+ | NewExpression
664
+ | ObjectExpression
665
+ | SequenceExpression
666
+ | TaggedTemplateExpression
667
+ | TemplateLiteral
668
+ | ThisExpression
669
+ | UnaryExpression
670
+ | UpdateExpression
671
+ | YieldExpression;
672
+
673
+ export type JSXChild = JSXElement | JSXExpressionContainer | JSXSpreadChild | JSXFragment | JSXText;
674
+
675
+ export type JSXTagNameExpression = JSXMemberExpression | JSXIdentifier | JSXNamespacedName;
676
+
677
+ export type Literal =
678
+ LiteralBigInt | LiteralBoolean | LiteralNull | LiteralNumber | LiteralRegExp | LiteralString;
679
+
680
+ export type ModuleDeclaration =
681
+ ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
682
+
683
+ export type Parameter = BindingPattern | AssignmentPattern | RestElement;
684
+
685
+ export type Statement =
686
+ | BlockStatement
687
+ | BreakStatement
688
+ | ClassDeclaration
689
+ | ContinueStatement
690
+ | DebuggerStatement
691
+ | DoWhileStatement
692
+ | EmptyStatement
693
+ | ExpressionStatement
694
+ | ForInStatement
695
+ | ForOfStatement
696
+ | ForStatement
697
+ | FunctionDeclaration
698
+ | IfStatement
699
+ | LabeledStatement
700
+ | ReturnStatement
701
+ | StaticBlock
702
+ | SwitchStatement
703
+ | ThrowStatement
704
+ | TryStatement
705
+ | VariableDeclaration
706
+ | WhileStatement;
707
+
708
+ export type AstNode =
709
+ | PanicError
710
+ | ParseError
711
+ | ArrayExpression
712
+ | ArrayPattern
713
+ | ArrowFunctionExpression
714
+ | AssignmentExpression
715
+ | AssignmentPattern
716
+ | AwaitExpression
717
+ | BinaryExpression
718
+ | BlockStatement
719
+ | BreakStatement
720
+ | CallExpression
721
+ | CatchClause
722
+ | ChainExpression
723
+ | ClassBody
724
+ | ClassDeclaration
725
+ | ClassExpression
726
+ | ConditionalExpression
727
+ | ContinueStatement
728
+ | DebuggerStatement
729
+ | Decorator
730
+ | Directive
731
+ | DoWhileStatement
732
+ | EmptyStatement
733
+ | ExportAllDeclaration
734
+ | ExportDefaultDeclaration
735
+ | ExportNamedDeclaration
736
+ | ExportSpecifier
737
+ | ExpressionStatement
738
+ | ForInStatement
739
+ | ForOfStatement
740
+ | ForStatement
741
+ | FunctionDeclaration
742
+ | FunctionExpression
743
+ | Identifier
744
+ | IfStatement
745
+ | ImportAttribute
746
+ | ImportDeclaration
747
+ | ImportDefaultSpecifier
748
+ | ImportExpression
749
+ | ImportNamespaceSpecifier
750
+ | ImportSpecifier
751
+ | JSXAttribute
752
+ | JSXClosingElement
753
+ | JSXClosingFragment
754
+ | JSXElement
755
+ | JSXEmptyExpression
756
+ | JSXExpressionContainer
757
+ | JSXFragment
758
+ | JSXIdentifier
759
+ | JSXMemberExpression
760
+ | JSXNamespacedName
761
+ | JSXOpeningElement
762
+ | JSXOpeningFragment
763
+ | JSXSpreadAttribute
764
+ | JSXSpreadChild
765
+ | JSXText
766
+ | LabeledStatement
767
+ | LiteralBigInt
768
+ | LiteralBoolean
769
+ | LiteralNull
770
+ | LiteralNumber
771
+ | LiteralRegExp
772
+ | LiteralString
773
+ | LogicalExpression
774
+ | MemberExpression
775
+ | MetaProperty
776
+ | MethodDefinition
777
+ | NewExpression
778
+ | ObjectExpression
779
+ | ObjectPattern
780
+ | PrivateIdentifier
781
+ | Program
782
+ | Property
783
+ | PropertyDefinition
784
+ | RestElement
785
+ | ReturnStatement
786
+ | SequenceExpression
787
+ | SpreadElement
788
+ | StaticBlock
789
+ | Super
790
+ | SwitchCase
791
+ | SwitchStatement
792
+ | TaggedTemplateExpression
793
+ | TemplateElement
794
+ | TemplateLiteral
795
+ | ThisExpression
796
+ | ThrowStatement
797
+ | TryStatement
798
+ | UnaryExpression
799
+ | UpdateExpression
800
+ | VariableDeclaration
801
+ | VariableDeclarator
802
+ | WhileStatement
803
+ | YieldExpression;
804
+
805
+ export interface AstNodeTypeMap {
806
+ PanicError: PanicError;
807
+ ParseError: ParseError;
808
+ ArrayExpression: ArrayExpression;
809
+ ArrayPattern: ArrayPattern;
810
+ ArrowFunctionExpression: ArrowFunctionExpression;
811
+ AssignmentExpression: AssignmentExpression;
812
+ AssignmentPattern: AssignmentPattern;
813
+ AwaitExpression: AwaitExpression;
814
+ BinaryExpression: BinaryExpression;
815
+ BlockStatement: BlockStatement;
816
+ BreakStatement: BreakStatement;
817
+ CallExpression: CallExpression;
818
+ CatchClause: CatchClause;
819
+ ChainExpression: ChainExpression;
820
+ ClassBody: ClassBody;
821
+ ClassDeclaration: ClassDeclaration;
822
+ ClassExpression: ClassExpression;
823
+ ConditionalExpression: ConditionalExpression;
824
+ ContinueStatement: ContinueStatement;
825
+ DebuggerStatement: DebuggerStatement;
826
+ Decorator: Decorator;
827
+ ExpressionStatement: Directive | ExpressionStatement;
828
+ DoWhileStatement: DoWhileStatement;
829
+ EmptyStatement: EmptyStatement;
830
+ ExportAllDeclaration: ExportAllDeclaration;
831
+ ExportDefaultDeclaration: ExportDefaultDeclaration;
832
+ ExportNamedDeclaration: ExportNamedDeclaration;
833
+ ExportSpecifier: ExportSpecifier;
834
+ ForInStatement: ForInStatement;
835
+ ForOfStatement: ForOfStatement;
836
+ ForStatement: ForStatement;
837
+ FunctionDeclaration: FunctionDeclaration;
838
+ FunctionExpression: FunctionExpression;
839
+ Identifier: Identifier;
840
+ IfStatement: IfStatement;
841
+ ImportAttribute: ImportAttribute;
842
+ ImportDeclaration: ImportDeclaration;
843
+ ImportDefaultSpecifier: ImportDefaultSpecifier;
844
+ ImportExpression: ImportExpression;
845
+ ImportNamespaceSpecifier: ImportNamespaceSpecifier;
846
+ ImportSpecifier: ImportSpecifier;
847
+ JSXAttribute: JSXAttribute;
848
+ JSXClosingElement: JSXClosingElement;
849
+ JSXClosingFragment: JSXClosingFragment;
850
+ JSXElement: JSXElement;
851
+ JSXEmptyExpression: JSXEmptyExpression;
852
+ JSXExpressionContainer: JSXExpressionContainer;
853
+ JSXFragment: JSXFragment;
854
+ JSXIdentifier: JSXIdentifier;
855
+ JSXMemberExpression: JSXMemberExpression;
856
+ JSXNamespacedName: JSXNamespacedName;
857
+ JSXOpeningElement: JSXOpeningElement;
858
+ JSXOpeningFragment: JSXOpeningFragment;
859
+ JSXSpreadAttribute: JSXSpreadAttribute;
860
+ JSXSpreadChild: JSXSpreadChild;
861
+ JSXText: JSXText;
862
+ LabeledStatement: LabeledStatement;
863
+ Literal:
864
+ LiteralBigInt | LiteralBoolean | LiteralNull | LiteralNumber | LiteralRegExp | LiteralString;
865
+ LogicalExpression: LogicalExpression;
866
+ MemberExpression: MemberExpression;
867
+ MetaProperty: MetaProperty;
868
+ MethodDefinition: MethodDefinition;
869
+ NewExpression: NewExpression;
870
+ ObjectExpression: ObjectExpression;
871
+ ObjectPattern: ObjectPattern;
872
+ PrivateIdentifier: PrivateIdentifier;
873
+ Program: Program;
874
+ Property: Property;
875
+ PropertyDefinition: PropertyDefinition;
876
+ RestElement: RestElement;
877
+ ReturnStatement: ReturnStatement;
878
+ SequenceExpression: SequenceExpression;
879
+ SpreadElement: SpreadElement;
880
+ StaticBlock: StaticBlock;
881
+ Super: Super;
882
+ SwitchCase: SwitchCase;
883
+ SwitchStatement: SwitchStatement;
884
+ TaggedTemplateExpression: TaggedTemplateExpression;
885
+ TemplateElement: TemplateElement;
886
+ TemplateLiteral: TemplateLiteral;
887
+ ThisExpression: ThisExpression;
888
+ ThrowStatement: ThrowStatement;
889
+ TryStatement: TryStatement;
890
+ UnaryExpression: UnaryExpression;
891
+ UpdateExpression: UpdateExpression;
892
+ VariableDeclaration: VariableDeclaration;
893
+ VariableDeclarator: VariableDeclarator;
894
+ WhileStatement: WhileStatement;
895
+ YieldExpression: YieldExpression;
896
+ }