yuku-codegen 0.5.31 → 0.5.35
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/encode.js +167 -175
- package/index.d.ts +1 -1
- package/package.json +14 -14
package/encode.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// generated by tools/
|
|
1
|
+
// generated by tools/estree/encoder.zig, do not edit
|
|
2
2
|
const NULL = 0xFFFFFFFF;
|
|
3
3
|
const NODE_SIZE = 48;
|
|
4
4
|
const HEADER_SIZE = 44;
|
|
@@ -94,7 +94,7 @@ function encode(program, lineStarts) {
|
|
|
94
94
|
function encArr(arr, encEach) {
|
|
95
95
|
if (!arr || arr.length === 0) return { start: 0, len: 0 };
|
|
96
96
|
const len = arr.length;
|
|
97
|
-
const ids =
|
|
97
|
+
const ids = Array.from({ length: len });
|
|
98
98
|
for (let i = 0; i < len; i++) ids[i] = encEach(arr[i]);
|
|
99
99
|
const start = extraCount;
|
|
100
100
|
for (let i = 0; i < len; i++) pushExtra(ids[i]);
|
|
@@ -103,7 +103,7 @@ function encode(program, lineStarts) {
|
|
|
103
103
|
function encArrHoles(arr, encEach) {
|
|
104
104
|
if (!arr || arr.length === 0) return { start: 0, len: 0 };
|
|
105
105
|
const len = arr.length;
|
|
106
|
-
const ids =
|
|
106
|
+
const ids = Array.from({ length: len });
|
|
107
107
|
for (let i = 0; i < len; i++) {
|
|
108
108
|
const e = arr[i];
|
|
109
109
|
ids[i] = e == null ? NULL : encEach(e);
|
|
@@ -259,7 +259,7 @@ function encode(program, lineStarts) {
|
|
|
259
259
|
else if (p && p.type === "TSParameterProperty") items.push(encNode(p));
|
|
260
260
|
else if (p && p.type === "Identifier" && p.name === "this")
|
|
261
261
|
items.push(enc_ts_this_parameter(p));
|
|
262
|
-
else items.push(
|
|
262
|
+
else items.push(encBindingTarget(p));
|
|
263
263
|
}
|
|
264
264
|
const ids = items;
|
|
265
265
|
const start = extraCount;
|
|
@@ -272,19 +272,11 @@ function encode(program, lineStarts) {
|
|
|
272
272
|
spanAt(idx, 0, 0);
|
|
273
273
|
return idx;
|
|
274
274
|
}
|
|
275
|
-
function enc_formal_parameter(p) {
|
|
276
|
-
const pat = encBindingTarget(p);
|
|
277
|
-
const idx = alloc();
|
|
278
|
-
tagAt(idx, 7);
|
|
279
|
-
slotAt(idx, 0, pat);
|
|
280
|
-
spanAt(idx, asStart(p), asEnd(p));
|
|
281
|
-
return idx;
|
|
282
|
-
}
|
|
283
275
|
function enc_binary_expression(n) {
|
|
284
276
|
const c_left = n.left == null ? NULL : encNode(n.left);
|
|
285
277
|
const c_right = n.right == null ? NULL : encNode(n.right);
|
|
286
278
|
const idx = alloc();
|
|
287
|
-
tagAt(idx,
|
|
279
|
+
tagAt(idx, 7);
|
|
288
280
|
slotAt(idx, 0, c_left);
|
|
289
281
|
slotAt(idx, 1, c_right);
|
|
290
282
|
flagsAt(idx, 0 | (BINARY_OPS_INV[n.operator] | 0));
|
|
@@ -296,7 +288,7 @@ function encode(program, lineStarts) {
|
|
|
296
288
|
const c_left = n.left == null ? NULL : encNode(n.left);
|
|
297
289
|
const c_right = n.right == null ? NULL : encNode(n.right);
|
|
298
290
|
const idx = alloc();
|
|
299
|
-
tagAt(idx,
|
|
291
|
+
tagAt(idx, 8);
|
|
300
292
|
slotAt(idx, 0, c_left);
|
|
301
293
|
slotAt(idx, 1, c_right);
|
|
302
294
|
flagsAt(idx, 0 | (LOGICAL_OPS_INV[n.operator] | 0));
|
|
@@ -309,7 +301,7 @@ function encode(program, lineStarts) {
|
|
|
309
301
|
const c_consequent = n.consequent == null ? NULL : encNode(n.consequent);
|
|
310
302
|
const c_alternate = n.alternate == null ? NULL : encNode(n.alternate);
|
|
311
303
|
const idx = alloc();
|
|
312
|
-
tagAt(idx,
|
|
304
|
+
tagAt(idx, 9);
|
|
313
305
|
slotAt(idx, 0, c_test);
|
|
314
306
|
slotAt(idx, 1, c_consequent);
|
|
315
307
|
slotAt(idx, 2, c_alternate);
|
|
@@ -320,7 +312,7 @@ function encode(program, lineStarts) {
|
|
|
320
312
|
function enc_unary_expression(n) {
|
|
321
313
|
const a = n.argument == null ? NULL : encNode(n.argument);
|
|
322
314
|
const idx = alloc();
|
|
323
|
-
tagAt(idx,
|
|
315
|
+
tagAt(idx, 10);
|
|
324
316
|
slotAt(idx, 0, a);
|
|
325
317
|
flagsAt(idx, UNARY_OPS_INV[n.operator] | 0);
|
|
326
318
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -330,7 +322,7 @@ function encode(program, lineStarts) {
|
|
|
330
322
|
function enc_update_expression(n) {
|
|
331
323
|
const c_argument = n.argument == null ? NULL : encNode(n.argument);
|
|
332
324
|
const idx = alloc();
|
|
333
|
-
tagAt(idx,
|
|
325
|
+
tagAt(idx, 11);
|
|
334
326
|
slotAt(idx, 0, c_argument);
|
|
335
327
|
flagsAt(idx, 0 | (UPDATE_OPS_INV[n.operator] | 0) | (n.prefix ? 2 : 0));
|
|
336
328
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -341,7 +333,7 @@ function encode(program, lineStarts) {
|
|
|
341
333
|
const c_left = n.left == null ? NULL : encNode(n.left);
|
|
342
334
|
const c_right = n.right == null ? NULL : encNode(n.right);
|
|
343
335
|
const idx = alloc();
|
|
344
|
-
tagAt(idx,
|
|
336
|
+
tagAt(idx, 12);
|
|
345
337
|
slotAt(idx, 0, c_left);
|
|
346
338
|
slotAt(idx, 1, c_right);
|
|
347
339
|
flagsAt(idx, 0 | (ASSIGNMENT_OPS_INV[n.operator] | 0));
|
|
@@ -352,7 +344,7 @@ function encode(program, lineStarts) {
|
|
|
352
344
|
function enc_array_expression(n) {
|
|
353
345
|
const c_elements = encArrHoles(n.elements, encNode);
|
|
354
346
|
const idx = alloc();
|
|
355
|
-
tagAt(idx,
|
|
347
|
+
tagAt(idx, 13);
|
|
356
348
|
f0At(idx, c_elements.len);
|
|
357
349
|
slotAt(idx, 0, c_elements.start);
|
|
358
350
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -362,7 +354,7 @@ function encode(program, lineStarts) {
|
|
|
362
354
|
function enc_object_expression(n) {
|
|
363
355
|
const c_properties = encArr(n.properties, encNode);
|
|
364
356
|
const idx = alloc();
|
|
365
|
-
tagAt(idx,
|
|
357
|
+
tagAt(idx, 14);
|
|
366
358
|
f0At(idx, c_properties.len);
|
|
367
359
|
slotAt(idx, 0, c_properties.start);
|
|
368
360
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -372,7 +364,7 @@ function encode(program, lineStarts) {
|
|
|
372
364
|
function enc_spread_element(n) {
|
|
373
365
|
const c_argument = n.argument == null ? NULL : encNode(n.argument);
|
|
374
366
|
const idx = alloc();
|
|
375
|
-
tagAt(idx,
|
|
367
|
+
tagAt(idx, 15);
|
|
376
368
|
slotAt(idx, 0, c_argument);
|
|
377
369
|
spanAt(idx, asStart(n), asEnd(n));
|
|
378
370
|
recordComments(n, idx);
|
|
@@ -384,7 +376,7 @@ function encode(program, lineStarts) {
|
|
|
384
376
|
: (n.computed ? encNode(n.key) : encName(n.key));
|
|
385
377
|
const v = n.value == null ? NULL : encNode(n.value);
|
|
386
378
|
const idx = alloc();
|
|
387
|
-
tagAt(idx,
|
|
379
|
+
tagAt(idx, 16);
|
|
388
380
|
slotAt(idx, 0, k); slotAt(idx, 1, v);
|
|
389
381
|
flagsAt(idx,
|
|
390
382
|
((PROPERTY_KINDS_INV[n.kind] | 0) << 0)
|
|
@@ -401,7 +393,7 @@ function encode(program, lineStarts) {
|
|
|
401
393
|
? NULL
|
|
402
394
|
: (n.computed ? encNode(n.property) : encName(n.property));
|
|
403
395
|
const idx = alloc();
|
|
404
|
-
tagAt(idx,
|
|
396
|
+
tagAt(idx, 17);
|
|
405
397
|
slotAt(idx, 0, o); slotAt(idx, 1, p);
|
|
406
398
|
flagsAt(idx, (n.computed ? 1 : 0) | (n.optional ? 2 : 0));
|
|
407
399
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -413,7 +405,7 @@ function encode(program, lineStarts) {
|
|
|
413
405
|
const c_arguments = encArr(n.arguments, encNode);
|
|
414
406
|
const c_type_arguments = n.typeArguments == null ? NULL : encNode(n.typeArguments);
|
|
415
407
|
const idx = alloc();
|
|
416
|
-
tagAt(idx,
|
|
408
|
+
tagAt(idx, 18);
|
|
417
409
|
slotAt(idx, 0, c_callee);
|
|
418
410
|
f0At(idx, c_arguments.len);
|
|
419
411
|
slotAt(idx, 1, c_arguments.start);
|
|
@@ -426,7 +418,7 @@ function encode(program, lineStarts) {
|
|
|
426
418
|
function enc_chain_expression(n) {
|
|
427
419
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
428
420
|
const idx = alloc();
|
|
429
|
-
tagAt(idx,
|
|
421
|
+
tagAt(idx, 19);
|
|
430
422
|
slotAt(idx, 0, c_expression);
|
|
431
423
|
spanAt(idx, asStart(n), asEnd(n));
|
|
432
424
|
recordComments(n, idx);
|
|
@@ -437,7 +429,7 @@ function encode(program, lineStarts) {
|
|
|
437
429
|
const c_quasi = n.quasi == null ? NULL : encNode(n.quasi);
|
|
438
430
|
const c_type_arguments = n.typeArguments == null ? NULL : encNode(n.typeArguments);
|
|
439
431
|
const idx = alloc();
|
|
440
|
-
tagAt(idx,
|
|
432
|
+
tagAt(idx, 20);
|
|
441
433
|
slotAt(idx, 0, c_tag);
|
|
442
434
|
slotAt(idx, 1, c_quasi);
|
|
443
435
|
slotAt(idx, 2, c_type_arguments);
|
|
@@ -450,7 +442,7 @@ function encode(program, lineStarts) {
|
|
|
450
442
|
const c_arguments = encArr(n.arguments, encNode);
|
|
451
443
|
const c_type_arguments = n.typeArguments == null ? NULL : encNode(n.typeArguments);
|
|
452
444
|
const idx = alloc();
|
|
453
|
-
tagAt(idx,
|
|
445
|
+
tagAt(idx, 21);
|
|
454
446
|
slotAt(idx, 0, c_callee);
|
|
455
447
|
f0At(idx, c_arguments.len);
|
|
456
448
|
slotAt(idx, 1, c_arguments.start);
|
|
@@ -462,7 +454,7 @@ function encode(program, lineStarts) {
|
|
|
462
454
|
function enc_await_expression(n) {
|
|
463
455
|
const c_argument = n.argument == null ? NULL : encNode(n.argument);
|
|
464
456
|
const idx = alloc();
|
|
465
|
-
tagAt(idx,
|
|
457
|
+
tagAt(idx, 22);
|
|
466
458
|
slotAt(idx, 0, c_argument);
|
|
467
459
|
spanAt(idx, asStart(n), asEnd(n));
|
|
468
460
|
recordComments(n, idx);
|
|
@@ -471,7 +463,7 @@ function encode(program, lineStarts) {
|
|
|
471
463
|
function enc_yield_expression(n) {
|
|
472
464
|
const c_argument = n.argument == null ? NULL : encNode(n.argument);
|
|
473
465
|
const idx = alloc();
|
|
474
|
-
tagAt(idx,
|
|
466
|
+
tagAt(idx, 23);
|
|
475
467
|
slotAt(idx, 0, c_argument);
|
|
476
468
|
flagsAt(idx, 0 | (n.delegate ? 1 : 0));
|
|
477
469
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -482,7 +474,7 @@ function encode(program, lineStarts) {
|
|
|
482
474
|
const c_meta = n.meta == null ? NULL : encNode(n.meta);
|
|
483
475
|
const c_property = n.property == null ? NULL : encNode(n.property);
|
|
484
476
|
const idx = alloc();
|
|
485
|
-
tagAt(idx,
|
|
477
|
+
tagAt(idx, 24);
|
|
486
478
|
slotAt(idx, 0, c_meta);
|
|
487
479
|
slotAt(idx, 1, c_property);
|
|
488
480
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -492,7 +484,7 @@ function encode(program, lineStarts) {
|
|
|
492
484
|
function enc_decorator(n) {
|
|
493
485
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
494
486
|
const idx = alloc();
|
|
495
|
-
tagAt(idx,
|
|
487
|
+
tagAt(idx, 25);
|
|
496
488
|
slotAt(idx, 0, c_expression);
|
|
497
489
|
spanAt(idx, asStart(n), asEnd(n));
|
|
498
490
|
recordComments(n, idx);
|
|
@@ -507,7 +499,7 @@ function encode(program, lineStarts) {
|
|
|
507
499
|
const sta = n.superTypeArguments == null ? NULL : encNode(n.superTypeArguments);
|
|
508
500
|
const imps = encArr(n.implements, encNode);
|
|
509
501
|
const idx = alloc();
|
|
510
|
-
tagAt(idx,
|
|
502
|
+
tagAt(idx, 26);
|
|
511
503
|
f0At(idx, decs.len);
|
|
512
504
|
slotAt(idx, 0, decs.start);
|
|
513
505
|
slotAt(idx, 1, id);
|
|
@@ -525,7 +517,7 @@ function encode(program, lineStarts) {
|
|
|
525
517
|
function enc_class_body(n) {
|
|
526
518
|
const c_body = encArr(n.body, encNode);
|
|
527
519
|
const idx = alloc();
|
|
528
|
-
tagAt(idx,
|
|
520
|
+
tagAt(idx, 27);
|
|
529
521
|
f0At(idx, c_body.len);
|
|
530
522
|
slotAt(idx, 0, c_body.start);
|
|
531
523
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -537,7 +529,7 @@ function encode(program, lineStarts) {
|
|
|
537
529
|
const k = n.computed ? encNode(n.key) : encName(n.key);
|
|
538
530
|
const v = encNode(n.value);
|
|
539
531
|
const idx = alloc();
|
|
540
|
-
tagAt(idx,
|
|
532
|
+
tagAt(idx, 28);
|
|
541
533
|
f0At(idx, decs.len);
|
|
542
534
|
slotAt(idx, 0, decs.start);
|
|
543
535
|
slotAt(idx, 1, k);
|
|
@@ -560,7 +552,7 @@ function encode(program, lineStarts) {
|
|
|
560
552
|
const v = n.value == null ? NULL : encNode(n.value);
|
|
561
553
|
const ta = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
562
554
|
const idx = alloc();
|
|
563
|
-
tagAt(idx,
|
|
555
|
+
tagAt(idx, 29);
|
|
564
556
|
f0At(idx, decs.len);
|
|
565
557
|
slotAt(idx, 0, decs.start);
|
|
566
558
|
slotAt(idx, 1, k);
|
|
@@ -584,7 +576,7 @@ function encode(program, lineStarts) {
|
|
|
584
576
|
function enc_static_block(n) {
|
|
585
577
|
const c_body = encArr(n.body, encNode);
|
|
586
578
|
const idx = alloc();
|
|
587
|
-
tagAt(idx,
|
|
579
|
+
tagAt(idx, 30);
|
|
588
580
|
f0At(idx, c_body.len);
|
|
589
581
|
slotAt(idx, 0, c_body.start);
|
|
590
582
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -593,7 +585,7 @@ function encode(program, lineStarts) {
|
|
|
593
585
|
}
|
|
594
586
|
function enc_super(n) {
|
|
595
587
|
const idx = alloc();
|
|
596
|
-
tagAt(idx,
|
|
588
|
+
tagAt(idx, 31);
|
|
597
589
|
spanAt(idx, asStart(n), asEnd(n));
|
|
598
590
|
recordComments(n, idx);
|
|
599
591
|
return idx;
|
|
@@ -602,7 +594,7 @@ function encode(program, lineStarts) {
|
|
|
602
594
|
const s = encStr(typeof n.value === "string" ? n.value : "");
|
|
603
595
|
const r = encStr(typeof n.raw === "string" ? n.raw : "");
|
|
604
596
|
const idx = alloc();
|
|
605
|
-
tagAt(idx,
|
|
597
|
+
tagAt(idx, 32);
|
|
606
598
|
slotAt(idx, 0, s.start); slotAt(idx, 1, s.end);
|
|
607
599
|
slotAt(idx, 2, r.start); slotAt(idx, 3, r.end);
|
|
608
600
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -620,7 +612,7 @@ function encode(program, lineStarts) {
|
|
|
620
612
|
}
|
|
621
613
|
const r = encStr(raw);
|
|
622
614
|
const idx = alloc();
|
|
623
|
-
tagAt(idx,
|
|
615
|
+
tagAt(idx, 33);
|
|
624
616
|
flagsAt(idx, kind);
|
|
625
617
|
slotAt(idx, 0, r.start); slotAt(idx, 1, r.end);
|
|
626
618
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -631,7 +623,7 @@ function encode(program, lineStarts) {
|
|
|
631
623
|
const raw = typeof n.bigint === "string" ? n.bigint : String(n.value);
|
|
632
624
|
const r = encStr(raw);
|
|
633
625
|
const idx = alloc();
|
|
634
|
-
tagAt(idx,
|
|
626
|
+
tagAt(idx, 34);
|
|
635
627
|
slotAt(idx, 0, r.start); slotAt(idx, 1, r.end);
|
|
636
628
|
spanAt(idx, asStart(n), asEnd(n));
|
|
637
629
|
recordComments(n, idx);
|
|
@@ -639,7 +631,7 @@ function encode(program, lineStarts) {
|
|
|
639
631
|
}
|
|
640
632
|
function enc_boolean_literal(n) {
|
|
641
633
|
const idx = alloc();
|
|
642
|
-
tagAt(idx,
|
|
634
|
+
tagAt(idx, 35);
|
|
643
635
|
flagsAt(idx, n.value ? 1 : 0);
|
|
644
636
|
spanAt(idx, asStart(n), asEnd(n));
|
|
645
637
|
recordComments(n, idx);
|
|
@@ -647,14 +639,14 @@ function encode(program, lineStarts) {
|
|
|
647
639
|
}
|
|
648
640
|
function enc_null_literal(n) {
|
|
649
641
|
const idx = alloc();
|
|
650
|
-
tagAt(idx,
|
|
642
|
+
tagAt(idx, 36);
|
|
651
643
|
spanAt(idx, asStart(n), asEnd(n));
|
|
652
644
|
recordComments(n, idx);
|
|
653
645
|
return idx;
|
|
654
646
|
}
|
|
655
647
|
function enc_this_expression(n) {
|
|
656
648
|
const idx = alloc();
|
|
657
|
-
tagAt(idx,
|
|
649
|
+
tagAt(idx, 37);
|
|
658
650
|
spanAt(idx, asStart(n), asEnd(n));
|
|
659
651
|
recordComments(n, idx);
|
|
660
652
|
return idx;
|
|
@@ -663,7 +655,7 @@ function encode(program, lineStarts) {
|
|
|
663
655
|
const p = encStr(n.regex && n.regex.pattern || "");
|
|
664
656
|
const fl = encStr(n.regex && n.regex.flags || "");
|
|
665
657
|
const idx = alloc();
|
|
666
|
-
tagAt(idx,
|
|
658
|
+
tagAt(idx, 38);
|
|
667
659
|
slotAt(idx, 0, p.start); slotAt(idx, 1, p.end);
|
|
668
660
|
slotAt(idx, 2, fl.start); slotAt(idx, 3, fl.end);
|
|
669
661
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -674,7 +666,7 @@ function encode(program, lineStarts) {
|
|
|
674
666
|
const c_quasis = encArr(n.quasis, encNode);
|
|
675
667
|
const c_expressions = encArr(n.expressions, encNode);
|
|
676
668
|
const idx = alloc();
|
|
677
|
-
tagAt(idx,
|
|
669
|
+
tagAt(idx, 39);
|
|
678
670
|
f0At(idx, c_quasis.len);
|
|
679
671
|
slotAt(idx, 0, c_quasis.start);
|
|
680
672
|
slotAt(idx, 1, c_expressions.start);
|
|
@@ -689,7 +681,7 @@ function encode(program, lineStarts) {
|
|
|
689
681
|
const c = encStr(undef ? "" : v.cooked);
|
|
690
682
|
const r = encStr(v.raw);
|
|
691
683
|
const idx = alloc();
|
|
692
|
-
tagAt(idx,
|
|
684
|
+
tagAt(idx, 40);
|
|
693
685
|
flagsAt(idx, (n.tail ? 1 : 0) | (undef ? 2 : 0));
|
|
694
686
|
slotAt(idx, 0, c.start); slotAt(idx, 1, c.end);
|
|
695
687
|
slotAt(idx, 2, r.start); slotAt(idx, 3, r.end);
|
|
@@ -700,7 +692,7 @@ function encode(program, lineStarts) {
|
|
|
700
692
|
function enc_identifier_reference(n) {
|
|
701
693
|
const c_name = encStr(n.name);
|
|
702
694
|
const idx = alloc();
|
|
703
|
-
tagAt(idx,
|
|
695
|
+
tagAt(idx, 41);
|
|
704
696
|
slotAt(idx, 0, c_name.start);
|
|
705
697
|
slotAt(idx, 1, c_name.end);
|
|
706
698
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -710,7 +702,7 @@ function encode(program, lineStarts) {
|
|
|
710
702
|
function enc_private_identifier(n) {
|
|
711
703
|
const c_name = encStr(n.name);
|
|
712
704
|
const idx = alloc();
|
|
713
|
-
tagAt(idx,
|
|
705
|
+
tagAt(idx, 42);
|
|
714
706
|
slotAt(idx, 0, c_name.start);
|
|
715
707
|
slotAt(idx, 1, c_name.end);
|
|
716
708
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -722,7 +714,7 @@ function encode(program, lineStarts) {
|
|
|
722
714
|
const c_decorators = encArr(n.decorators, encNode);
|
|
723
715
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
724
716
|
const idx = alloc();
|
|
725
|
-
tagAt(idx,
|
|
717
|
+
tagAt(idx, 43);
|
|
726
718
|
slotAt(idx, 0, c_name.start);
|
|
727
719
|
slotAt(idx, 1, c_name.end);
|
|
728
720
|
f0At(idx, c_decorators.len);
|
|
@@ -736,7 +728,7 @@ function encode(program, lineStarts) {
|
|
|
736
728
|
function enc_identifier_name(n) {
|
|
737
729
|
const c_name = encStr(n.name);
|
|
738
730
|
const idx = alloc();
|
|
739
|
-
tagAt(idx,
|
|
731
|
+
tagAt(idx, 44);
|
|
740
732
|
slotAt(idx, 0, c_name.start);
|
|
741
733
|
slotAt(idx, 1, c_name.end);
|
|
742
734
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -746,7 +738,7 @@ function encode(program, lineStarts) {
|
|
|
746
738
|
function enc_label_identifier(n) {
|
|
747
739
|
const c_name = encStr(n.name);
|
|
748
740
|
const idx = alloc();
|
|
749
|
-
tagAt(idx,
|
|
741
|
+
tagAt(idx, 45);
|
|
750
742
|
slotAt(idx, 0, c_name.start);
|
|
751
743
|
slotAt(idx, 1, c_name.end);
|
|
752
744
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -756,7 +748,7 @@ function encode(program, lineStarts) {
|
|
|
756
748
|
function enc_expression_statement(n) {
|
|
757
749
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
758
750
|
const idx = alloc();
|
|
759
|
-
tagAt(idx,
|
|
751
|
+
tagAt(idx, 46);
|
|
760
752
|
slotAt(idx, 0, c_expression);
|
|
761
753
|
spanAt(idx, asStart(n), asEnd(n));
|
|
762
754
|
recordComments(n, idx);
|
|
@@ -767,7 +759,7 @@ function encode(program, lineStarts) {
|
|
|
767
759
|
const c_consequent = n.consequent == null ? NULL : encNode(n.consequent);
|
|
768
760
|
const c_alternate = n.alternate == null ? NULL : encNode(n.alternate);
|
|
769
761
|
const idx = alloc();
|
|
770
|
-
tagAt(idx,
|
|
762
|
+
tagAt(idx, 47);
|
|
771
763
|
slotAt(idx, 0, c_test);
|
|
772
764
|
slotAt(idx, 1, c_consequent);
|
|
773
765
|
slotAt(idx, 2, c_alternate);
|
|
@@ -779,7 +771,7 @@ function encode(program, lineStarts) {
|
|
|
779
771
|
const c_discriminant = n.discriminant == null ? NULL : encNode(n.discriminant);
|
|
780
772
|
const c_cases = encArr(n.cases, encNode);
|
|
781
773
|
const idx = alloc();
|
|
782
|
-
tagAt(idx,
|
|
774
|
+
tagAt(idx, 48);
|
|
783
775
|
slotAt(idx, 0, c_discriminant);
|
|
784
776
|
f0At(idx, c_cases.len);
|
|
785
777
|
slotAt(idx, 1, c_cases.start);
|
|
@@ -791,7 +783,7 @@ function encode(program, lineStarts) {
|
|
|
791
783
|
const c_test = n.test == null ? NULL : encNode(n.test);
|
|
792
784
|
const c_consequent = encArr(n.consequent, encNode);
|
|
793
785
|
const idx = alloc();
|
|
794
|
-
tagAt(idx,
|
|
786
|
+
tagAt(idx, 49);
|
|
795
787
|
slotAt(idx, 0, c_test);
|
|
796
788
|
f0At(idx, c_consequent.len);
|
|
797
789
|
slotAt(idx, 1, c_consequent.start);
|
|
@@ -805,7 +797,7 @@ function encode(program, lineStarts) {
|
|
|
805
797
|
const c_update = n.update == null ? NULL : encNode(n.update);
|
|
806
798
|
const c_body = n.body == null ? NULL : encNode(n.body);
|
|
807
799
|
const idx = alloc();
|
|
808
|
-
tagAt(idx,
|
|
800
|
+
tagAt(idx, 50);
|
|
809
801
|
slotAt(idx, 0, c_init);
|
|
810
802
|
slotAt(idx, 1, c_test);
|
|
811
803
|
slotAt(idx, 2, c_update);
|
|
@@ -819,7 +811,7 @@ function encode(program, lineStarts) {
|
|
|
819
811
|
const c_right = n.right == null ? NULL : encNode(n.right);
|
|
820
812
|
const c_body = n.body == null ? NULL : encNode(n.body);
|
|
821
813
|
const idx = alloc();
|
|
822
|
-
tagAt(idx,
|
|
814
|
+
tagAt(idx, 51);
|
|
823
815
|
slotAt(idx, 0, c_left);
|
|
824
816
|
slotAt(idx, 1, c_right);
|
|
825
817
|
slotAt(idx, 2, c_body);
|
|
@@ -832,7 +824,7 @@ function encode(program, lineStarts) {
|
|
|
832
824
|
const c_right = n.right == null ? NULL : encNode(n.right);
|
|
833
825
|
const c_body = n.body == null ? NULL : encNode(n.body);
|
|
834
826
|
const idx = alloc();
|
|
835
|
-
tagAt(idx,
|
|
827
|
+
tagAt(idx, 52);
|
|
836
828
|
slotAt(idx, 0, c_left);
|
|
837
829
|
slotAt(idx, 1, c_right);
|
|
838
830
|
slotAt(idx, 2, c_body);
|
|
@@ -845,7 +837,7 @@ function encode(program, lineStarts) {
|
|
|
845
837
|
const c_test = n.test == null ? NULL : encNode(n.test);
|
|
846
838
|
const c_body = n.body == null ? NULL : encNode(n.body);
|
|
847
839
|
const idx = alloc();
|
|
848
|
-
tagAt(idx,
|
|
840
|
+
tagAt(idx, 53);
|
|
849
841
|
slotAt(idx, 0, c_test);
|
|
850
842
|
slotAt(idx, 1, c_body);
|
|
851
843
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -856,7 +848,7 @@ function encode(program, lineStarts) {
|
|
|
856
848
|
const c_body = n.body == null ? NULL : encNode(n.body);
|
|
857
849
|
const c_test = n.test == null ? NULL : encNode(n.test);
|
|
858
850
|
const idx = alloc();
|
|
859
|
-
tagAt(idx,
|
|
851
|
+
tagAt(idx, 54);
|
|
860
852
|
slotAt(idx, 0, c_body);
|
|
861
853
|
slotAt(idx, 1, c_test);
|
|
862
854
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -866,7 +858,7 @@ function encode(program, lineStarts) {
|
|
|
866
858
|
function enc_break_statement(n) {
|
|
867
859
|
const c_label = n.label == null ? NULL : encLabel(n.label);
|
|
868
860
|
const idx = alloc();
|
|
869
|
-
tagAt(idx,
|
|
861
|
+
tagAt(idx, 55);
|
|
870
862
|
slotAt(idx, 0, c_label);
|
|
871
863
|
spanAt(idx, asStart(n), asEnd(n));
|
|
872
864
|
recordComments(n, idx);
|
|
@@ -875,7 +867,7 @@ function encode(program, lineStarts) {
|
|
|
875
867
|
function enc_continue_statement(n) {
|
|
876
868
|
const c_label = n.label == null ? NULL : encLabel(n.label);
|
|
877
869
|
const idx = alloc();
|
|
878
|
-
tagAt(idx,
|
|
870
|
+
tagAt(idx, 56);
|
|
879
871
|
slotAt(idx, 0, c_label);
|
|
880
872
|
spanAt(idx, asStart(n), asEnd(n));
|
|
881
873
|
recordComments(n, idx);
|
|
@@ -885,7 +877,7 @@ function encode(program, lineStarts) {
|
|
|
885
877
|
const c_label = n.label == null ? NULL : encLabel(n.label);
|
|
886
878
|
const c_body = n.body == null ? NULL : encNode(n.body);
|
|
887
879
|
const idx = alloc();
|
|
888
|
-
tagAt(idx,
|
|
880
|
+
tagAt(idx, 57);
|
|
889
881
|
slotAt(idx, 0, c_label);
|
|
890
882
|
slotAt(idx, 1, c_body);
|
|
891
883
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -896,7 +888,7 @@ function encode(program, lineStarts) {
|
|
|
896
888
|
const c_object = n.object == null ? NULL : encNode(n.object);
|
|
897
889
|
const c_body = n.body == null ? NULL : encNode(n.body);
|
|
898
890
|
const idx = alloc();
|
|
899
|
-
tagAt(idx,
|
|
891
|
+
tagAt(idx, 58);
|
|
900
892
|
slotAt(idx, 0, c_object);
|
|
901
893
|
slotAt(idx, 1, c_body);
|
|
902
894
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -906,7 +898,7 @@ function encode(program, lineStarts) {
|
|
|
906
898
|
function enc_return_statement(n) {
|
|
907
899
|
const c_argument = n.argument == null ? NULL : encNode(n.argument);
|
|
908
900
|
const idx = alloc();
|
|
909
|
-
tagAt(idx,
|
|
901
|
+
tagAt(idx, 59);
|
|
910
902
|
slotAt(idx, 0, c_argument);
|
|
911
903
|
spanAt(idx, asStart(n), asEnd(n));
|
|
912
904
|
recordComments(n, idx);
|
|
@@ -915,7 +907,7 @@ function encode(program, lineStarts) {
|
|
|
915
907
|
function enc_throw_statement(n) {
|
|
916
908
|
const c_argument = n.argument == null ? NULL : encNode(n.argument);
|
|
917
909
|
const idx = alloc();
|
|
918
|
-
tagAt(idx,
|
|
910
|
+
tagAt(idx, 60);
|
|
919
911
|
slotAt(idx, 0, c_argument);
|
|
920
912
|
spanAt(idx, asStart(n), asEnd(n));
|
|
921
913
|
recordComments(n, idx);
|
|
@@ -926,7 +918,7 @@ function encode(program, lineStarts) {
|
|
|
926
918
|
const c_handler = n.handler == null ? NULL : encNode(n.handler);
|
|
927
919
|
const c_finalizer = n.finalizer == null ? NULL : encNode(n.finalizer);
|
|
928
920
|
const idx = alloc();
|
|
929
|
-
tagAt(idx,
|
|
921
|
+
tagAt(idx, 61);
|
|
930
922
|
slotAt(idx, 0, c_block);
|
|
931
923
|
slotAt(idx, 1, c_handler);
|
|
932
924
|
slotAt(idx, 2, c_finalizer);
|
|
@@ -938,7 +930,7 @@ function encode(program, lineStarts) {
|
|
|
938
930
|
const c_param = n.param == null ? NULL : encBindingTarget(n.param);
|
|
939
931
|
const c_body = n.body == null ? NULL : encNode(n.body);
|
|
940
932
|
const idx = alloc();
|
|
941
|
-
tagAt(idx,
|
|
933
|
+
tagAt(idx, 62);
|
|
942
934
|
slotAt(idx, 0, c_param);
|
|
943
935
|
slotAt(idx, 1, c_body);
|
|
944
936
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -947,14 +939,14 @@ function encode(program, lineStarts) {
|
|
|
947
939
|
}
|
|
948
940
|
function enc_debugger_statement(n) {
|
|
949
941
|
const idx = alloc();
|
|
950
|
-
tagAt(idx,
|
|
942
|
+
tagAt(idx, 63);
|
|
951
943
|
spanAt(idx, asStart(n), asEnd(n));
|
|
952
944
|
recordComments(n, idx);
|
|
953
945
|
return idx;
|
|
954
946
|
}
|
|
955
947
|
function enc_empty_statement(n) {
|
|
956
948
|
const idx = alloc();
|
|
957
|
-
tagAt(idx,
|
|
949
|
+
tagAt(idx, 64);
|
|
958
950
|
spanAt(idx, asStart(n), asEnd(n));
|
|
959
951
|
recordComments(n, idx);
|
|
960
952
|
return idx;
|
|
@@ -962,7 +954,7 @@ function encode(program, lineStarts) {
|
|
|
962
954
|
function enc_variable_declaration(n) {
|
|
963
955
|
const c_declarators = encArr(n.declarations, encNode);
|
|
964
956
|
const idx = alloc();
|
|
965
|
-
tagAt(idx,
|
|
957
|
+
tagAt(idx, 65);
|
|
966
958
|
f0At(idx, c_declarators.len);
|
|
967
959
|
slotAt(idx, 0, c_declarators.start);
|
|
968
960
|
flagsAt(idx, 0 | (VAR_KINDS_INV[n.kind] | 0) | (n.declare ? 8 : 0));
|
|
@@ -974,7 +966,7 @@ function encode(program, lineStarts) {
|
|
|
974
966
|
const c_id = n.id == null ? NULL : encBindingTarget(n.id);
|
|
975
967
|
const c_init = n.init == null ? NULL : encNode(n.init);
|
|
976
968
|
const idx = alloc();
|
|
977
|
-
tagAt(idx,
|
|
969
|
+
tagAt(idx, 66);
|
|
978
970
|
slotAt(idx, 0, c_id);
|
|
979
971
|
slotAt(idx, 1, c_init);
|
|
980
972
|
flagsAt(idx, 0 | (n.definite ? 1 : 0));
|
|
@@ -986,7 +978,7 @@ function encode(program, lineStarts) {
|
|
|
986
978
|
const e = encNode(n.expression);
|
|
987
979
|
const dv = encStr(n.directive);
|
|
988
980
|
const idx = alloc();
|
|
989
|
-
tagAt(idx,
|
|
981
|
+
tagAt(idx, 67);
|
|
990
982
|
slotAt(idx, 0, e);
|
|
991
983
|
slotAt(idx, 1, dv.start); slotAt(idx, 2, dv.end);
|
|
992
984
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -999,7 +991,7 @@ function encode(program, lineStarts) {
|
|
|
999
991
|
const c_decorators = encArr(n.decorators, encNode);
|
|
1000
992
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1001
993
|
const idx = alloc();
|
|
1002
|
-
tagAt(idx,
|
|
994
|
+
tagAt(idx, 68);
|
|
1003
995
|
slotAt(idx, 0, c_left);
|
|
1004
996
|
slotAt(idx, 1, c_right);
|
|
1005
997
|
f0At(idx, c_decorators.len);
|
|
@@ -1015,7 +1007,7 @@ function encode(program, lineStarts) {
|
|
|
1015
1007
|
const c_decorators = encArr(n.decorators, encNode);
|
|
1016
1008
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1017
1009
|
const idx = alloc();
|
|
1018
|
-
tagAt(idx,
|
|
1010
|
+
tagAt(idx, 69);
|
|
1019
1011
|
slotAt(idx, 0, c_argument);
|
|
1020
1012
|
f0At(idx, c_decorators.len);
|
|
1021
1013
|
slotAt(idx, 1, c_decorators.start);
|
|
@@ -1039,7 +1031,7 @@ function encode(program, lineStarts) {
|
|
|
1039
1031
|
const decs = encArr(n.decorators, encNode);
|
|
1040
1032
|
const ta = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1041
1033
|
const idx = alloc();
|
|
1042
|
-
tagAt(idx,
|
|
1034
|
+
tagAt(idx, 70);
|
|
1043
1035
|
f0At(idx, r.len);
|
|
1044
1036
|
slotAt(idx, 0, r.start);
|
|
1045
1037
|
slotAt(idx, 1, rest);
|
|
@@ -1063,7 +1055,7 @@ function encode(program, lineStarts) {
|
|
|
1063
1055
|
const decs = encArr(n.decorators, encNode);
|
|
1064
1056
|
const ta = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1065
1057
|
const idx = alloc();
|
|
1066
|
-
tagAt(idx,
|
|
1058
|
+
tagAt(idx, 71);
|
|
1067
1059
|
f0At(idx, r.len);
|
|
1068
1060
|
slotAt(idx, 0, r.start);
|
|
1069
1061
|
slotAt(idx, 1, rest);
|
|
@@ -1080,7 +1072,7 @@ function encode(program, lineStarts) {
|
|
|
1080
1072
|
: (p.computed ? encNode(p.key) : encName(p.key));
|
|
1081
1073
|
const v = p.value == null ? NULL : encBindingTarget(p.value);
|
|
1082
1074
|
const idx = alloc();
|
|
1083
|
-
tagAt(idx,
|
|
1075
|
+
tagAt(idx, 72);
|
|
1084
1076
|
slotAt(idx, 0, k); slotAt(idx, 1, v);
|
|
1085
1077
|
flagsAt(idx, (p.shorthand ? 1 : 0) | (p.computed ? 2 : 0));
|
|
1086
1078
|
spanAt(idx, asStart(p), asEnd(p));
|
|
@@ -1092,7 +1084,7 @@ function encode(program, lineStarts) {
|
|
|
1092
1084
|
? encStr(n.hashbang.value)
|
|
1093
1085
|
: null;
|
|
1094
1086
|
const idx = alloc();
|
|
1095
|
-
tagAt(idx,
|
|
1087
|
+
tagAt(idx, 73);
|
|
1096
1088
|
f0At(idx, body.len);
|
|
1097
1089
|
slotAt(idx, 0, body.start);
|
|
1098
1090
|
if (hb) { slotAt(idx, 1, hb.start); slotAt(idx, 2, hb.end); }
|
|
@@ -1105,7 +1097,7 @@ function encode(program, lineStarts) {
|
|
|
1105
1097
|
const c_source = n.source == null ? NULL : encNode(n.source);
|
|
1106
1098
|
const c_options = n.options == null ? NULL : encNode(n.options);
|
|
1107
1099
|
const idx = alloc();
|
|
1108
|
-
tagAt(idx,
|
|
1100
|
+
tagAt(idx, 74);
|
|
1109
1101
|
slotAt(idx, 0, c_source);
|
|
1110
1102
|
slotAt(idx, 1, c_options);
|
|
1111
1103
|
flagsAt(idx, 0 | (n.phase != null ? 1 | ((IMPORT_PHASE_INV[n.phase] | 0) << 1) : 0));
|
|
@@ -1118,7 +1110,7 @@ function encode(program, lineStarts) {
|
|
|
1118
1110
|
const c_source = n.source == null ? NULL : encNode(n.source);
|
|
1119
1111
|
const c_attributes = encArr(n.attributes, encNode);
|
|
1120
1112
|
const idx = alloc();
|
|
1121
|
-
tagAt(idx,
|
|
1113
|
+
tagAt(idx, 75);
|
|
1122
1114
|
f0At(idx, c_specifiers.len);
|
|
1123
1115
|
slotAt(idx, 0, c_specifiers.start);
|
|
1124
1116
|
slotAt(idx, 1, c_source);
|
|
@@ -1133,7 +1125,7 @@ function encode(program, lineStarts) {
|
|
|
1133
1125
|
const c_imported = n.imported == null ? NULL : encName(n.imported);
|
|
1134
1126
|
const c_local = n.local == null ? NULL : encBindingTarget(n.local);
|
|
1135
1127
|
const idx = alloc();
|
|
1136
|
-
tagAt(idx,
|
|
1128
|
+
tagAt(idx, 76);
|
|
1137
1129
|
slotAt(idx, 0, c_imported);
|
|
1138
1130
|
slotAt(idx, 1, c_local);
|
|
1139
1131
|
flagsAt(idx, 0 | (IMPORT_EXPORT_KINDS_INV[n.importKind] | 0));
|
|
@@ -1144,7 +1136,7 @@ function encode(program, lineStarts) {
|
|
|
1144
1136
|
function enc_import_default_specifier(n) {
|
|
1145
1137
|
const c_local = n.local == null ? NULL : encBindingTarget(n.local);
|
|
1146
1138
|
const idx = alloc();
|
|
1147
|
-
tagAt(idx,
|
|
1139
|
+
tagAt(idx, 77);
|
|
1148
1140
|
slotAt(idx, 0, c_local);
|
|
1149
1141
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1150
1142
|
recordComments(n, idx);
|
|
@@ -1153,7 +1145,7 @@ function encode(program, lineStarts) {
|
|
|
1153
1145
|
function enc_import_namespace_specifier(n) {
|
|
1154
1146
|
const c_local = n.local == null ? NULL : encBindingTarget(n.local);
|
|
1155
1147
|
const idx = alloc();
|
|
1156
|
-
tagAt(idx,
|
|
1148
|
+
tagAt(idx, 78);
|
|
1157
1149
|
slotAt(idx, 0, c_local);
|
|
1158
1150
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1159
1151
|
recordComments(n, idx);
|
|
@@ -1163,7 +1155,7 @@ function encode(program, lineStarts) {
|
|
|
1163
1155
|
const c_key = n.key == null ? NULL : encName(n.key);
|
|
1164
1156
|
const c_value = n.value == null ? NULL : encNode(n.value);
|
|
1165
1157
|
const idx = alloc();
|
|
1166
|
-
tagAt(idx,
|
|
1158
|
+
tagAt(idx, 79);
|
|
1167
1159
|
slotAt(idx, 0, c_key);
|
|
1168
1160
|
slotAt(idx, 1, c_value);
|
|
1169
1161
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1176,7 +1168,7 @@ function encode(program, lineStarts) {
|
|
|
1176
1168
|
const c_source = n.source == null ? NULL : encNode(n.source);
|
|
1177
1169
|
const c_attributes = encArr(n.attributes, encNode);
|
|
1178
1170
|
const idx = alloc();
|
|
1179
|
-
tagAt(idx,
|
|
1171
|
+
tagAt(idx, 80);
|
|
1180
1172
|
slotAt(idx, 0, c_declaration);
|
|
1181
1173
|
f0At(idx, c_specifiers.len);
|
|
1182
1174
|
slotAt(idx, 1, c_specifiers.start);
|
|
@@ -1191,7 +1183,7 @@ function encode(program, lineStarts) {
|
|
|
1191
1183
|
function enc_export_default_declaration(n) {
|
|
1192
1184
|
const c_declaration = n.declaration == null ? NULL : encNode(n.declaration);
|
|
1193
1185
|
const idx = alloc();
|
|
1194
|
-
tagAt(idx,
|
|
1186
|
+
tagAt(idx, 81);
|
|
1195
1187
|
slotAt(idx, 0, c_declaration);
|
|
1196
1188
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1197
1189
|
recordComments(n, idx);
|
|
@@ -1202,7 +1194,7 @@ function encode(program, lineStarts) {
|
|
|
1202
1194
|
const c_source = n.source == null ? NULL : encNode(n.source);
|
|
1203
1195
|
const c_attributes = encArr(n.attributes, encNode);
|
|
1204
1196
|
const idx = alloc();
|
|
1205
|
-
tagAt(idx,
|
|
1197
|
+
tagAt(idx, 82);
|
|
1206
1198
|
slotAt(idx, 0, c_exported);
|
|
1207
1199
|
slotAt(idx, 1, c_source);
|
|
1208
1200
|
f0At(idx, c_attributes.len);
|
|
@@ -1216,7 +1208,7 @@ function encode(program, lineStarts) {
|
|
|
1216
1208
|
const c_local = n.local == null ? NULL : encNode(n.local);
|
|
1217
1209
|
const c_exported = n.exported == null ? NULL : encName(n.exported);
|
|
1218
1210
|
const idx = alloc();
|
|
1219
|
-
tagAt(idx,
|
|
1211
|
+
tagAt(idx, 83);
|
|
1220
1212
|
slotAt(idx, 0, c_local);
|
|
1221
1213
|
slotAt(idx, 1, c_exported);
|
|
1222
1214
|
flagsAt(idx, 0 | (IMPORT_EXPORT_KINDS_INV[n.exportKind] | 0));
|
|
@@ -1227,7 +1219,7 @@ function encode(program, lineStarts) {
|
|
|
1227
1219
|
function enc_ts_type_annotation(n) {
|
|
1228
1220
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1229
1221
|
const idx = alloc();
|
|
1230
|
-
tagAt(idx,
|
|
1222
|
+
tagAt(idx, 84);
|
|
1231
1223
|
slotAt(idx, 0, c_type_annotation);
|
|
1232
1224
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1233
1225
|
recordComments(n, idx);
|
|
@@ -1235,98 +1227,98 @@ function encode(program, lineStarts) {
|
|
|
1235
1227
|
}
|
|
1236
1228
|
function enc_ts_any_keyword(n) {
|
|
1237
1229
|
const idx = alloc();
|
|
1238
|
-
tagAt(idx,
|
|
1230
|
+
tagAt(idx, 85);
|
|
1239
1231
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1240
1232
|
recordComments(n, idx);
|
|
1241
1233
|
return idx;
|
|
1242
1234
|
}
|
|
1243
1235
|
function enc_ts_unknown_keyword(n) {
|
|
1244
1236
|
const idx = alloc();
|
|
1245
|
-
tagAt(idx,
|
|
1237
|
+
tagAt(idx, 86);
|
|
1246
1238
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1247
1239
|
recordComments(n, idx);
|
|
1248
1240
|
return idx;
|
|
1249
1241
|
}
|
|
1250
1242
|
function enc_ts_never_keyword(n) {
|
|
1251
1243
|
const idx = alloc();
|
|
1252
|
-
tagAt(idx,
|
|
1244
|
+
tagAt(idx, 87);
|
|
1253
1245
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1254
1246
|
recordComments(n, idx);
|
|
1255
1247
|
return idx;
|
|
1256
1248
|
}
|
|
1257
1249
|
function enc_ts_void_keyword(n) {
|
|
1258
1250
|
const idx = alloc();
|
|
1259
|
-
tagAt(idx,
|
|
1251
|
+
tagAt(idx, 88);
|
|
1260
1252
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1261
1253
|
recordComments(n, idx);
|
|
1262
1254
|
return idx;
|
|
1263
1255
|
}
|
|
1264
1256
|
function enc_ts_null_keyword(n) {
|
|
1265
1257
|
const idx = alloc();
|
|
1266
|
-
tagAt(idx,
|
|
1258
|
+
tagAt(idx, 89);
|
|
1267
1259
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1268
1260
|
recordComments(n, idx);
|
|
1269
1261
|
return idx;
|
|
1270
1262
|
}
|
|
1271
1263
|
function enc_ts_undefined_keyword(n) {
|
|
1272
1264
|
const idx = alloc();
|
|
1273
|
-
tagAt(idx,
|
|
1265
|
+
tagAt(idx, 90);
|
|
1274
1266
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1275
1267
|
recordComments(n, idx);
|
|
1276
1268
|
return idx;
|
|
1277
1269
|
}
|
|
1278
1270
|
function enc_ts_string_keyword(n) {
|
|
1279
1271
|
const idx = alloc();
|
|
1280
|
-
tagAt(idx,
|
|
1272
|
+
tagAt(idx, 91);
|
|
1281
1273
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1282
1274
|
recordComments(n, idx);
|
|
1283
1275
|
return idx;
|
|
1284
1276
|
}
|
|
1285
1277
|
function enc_ts_number_keyword(n) {
|
|
1286
1278
|
const idx = alloc();
|
|
1287
|
-
tagAt(idx,
|
|
1279
|
+
tagAt(idx, 92);
|
|
1288
1280
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1289
1281
|
recordComments(n, idx);
|
|
1290
1282
|
return idx;
|
|
1291
1283
|
}
|
|
1292
1284
|
function enc_ts_bigint_keyword(n) {
|
|
1293
1285
|
const idx = alloc();
|
|
1294
|
-
tagAt(idx,
|
|
1286
|
+
tagAt(idx, 93);
|
|
1295
1287
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1296
1288
|
recordComments(n, idx);
|
|
1297
1289
|
return idx;
|
|
1298
1290
|
}
|
|
1299
1291
|
function enc_ts_boolean_keyword(n) {
|
|
1300
1292
|
const idx = alloc();
|
|
1301
|
-
tagAt(idx,
|
|
1293
|
+
tagAt(idx, 94);
|
|
1302
1294
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1303
1295
|
recordComments(n, idx);
|
|
1304
1296
|
return idx;
|
|
1305
1297
|
}
|
|
1306
1298
|
function enc_ts_symbol_keyword(n) {
|
|
1307
1299
|
const idx = alloc();
|
|
1308
|
-
tagAt(idx,
|
|
1300
|
+
tagAt(idx, 95);
|
|
1309
1301
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1310
1302
|
recordComments(n, idx);
|
|
1311
1303
|
return idx;
|
|
1312
1304
|
}
|
|
1313
1305
|
function enc_ts_object_keyword(n) {
|
|
1314
1306
|
const idx = alloc();
|
|
1315
|
-
tagAt(idx,
|
|
1307
|
+
tagAt(idx, 96);
|
|
1316
1308
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1317
1309
|
recordComments(n, idx);
|
|
1318
1310
|
return idx;
|
|
1319
1311
|
}
|
|
1320
1312
|
function enc_ts_intrinsic_keyword(n) {
|
|
1321
1313
|
const idx = alloc();
|
|
1322
|
-
tagAt(idx,
|
|
1314
|
+
tagAt(idx, 97);
|
|
1323
1315
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1324
1316
|
recordComments(n, idx);
|
|
1325
1317
|
return idx;
|
|
1326
1318
|
}
|
|
1327
1319
|
function enc_ts_this_type(n) {
|
|
1328
1320
|
const idx = alloc();
|
|
1329
|
-
tagAt(idx,
|
|
1321
|
+
tagAt(idx, 98);
|
|
1330
1322
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1331
1323
|
recordComments(n, idx);
|
|
1332
1324
|
return idx;
|
|
@@ -1335,7 +1327,7 @@ function encode(program, lineStarts) {
|
|
|
1335
1327
|
const c_type_name = n.typeName == null ? NULL : encNode(n.typeName);
|
|
1336
1328
|
const c_type_arguments = n.typeArguments == null ? NULL : encNode(n.typeArguments);
|
|
1337
1329
|
const idx = alloc();
|
|
1338
|
-
tagAt(idx,
|
|
1330
|
+
tagAt(idx, 99);
|
|
1339
1331
|
slotAt(idx, 0, c_type_name);
|
|
1340
1332
|
slotAt(idx, 1, c_type_arguments);
|
|
1341
1333
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1346,7 +1338,7 @@ function encode(program, lineStarts) {
|
|
|
1346
1338
|
const c_left = n.left == null ? NULL : encNode(n.left);
|
|
1347
1339
|
const c_right = n.right == null ? NULL : encName(n.right);
|
|
1348
1340
|
const idx = alloc();
|
|
1349
|
-
tagAt(idx,
|
|
1341
|
+
tagAt(idx, 100);
|
|
1350
1342
|
slotAt(idx, 0, c_left);
|
|
1351
1343
|
slotAt(idx, 1, c_right);
|
|
1352
1344
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1357,7 +1349,7 @@ function encode(program, lineStarts) {
|
|
|
1357
1349
|
const c_expr_name = n.exprName == null ? NULL : encNode(n.exprName);
|
|
1358
1350
|
const c_type_arguments = n.typeArguments == null ? NULL : encNode(n.typeArguments);
|
|
1359
1351
|
const idx = alloc();
|
|
1360
|
-
tagAt(idx,
|
|
1352
|
+
tagAt(idx, 101);
|
|
1361
1353
|
slotAt(idx, 0, c_expr_name);
|
|
1362
1354
|
slotAt(idx, 1, c_type_arguments);
|
|
1363
1355
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1370,7 +1362,7 @@ function encode(program, lineStarts) {
|
|
|
1370
1362
|
const c_qualifier = n.qualifier == null ? NULL : encName(n.qualifier);
|
|
1371
1363
|
const c_type_arguments = n.typeArguments == null ? NULL : encNode(n.typeArguments);
|
|
1372
1364
|
const idx = alloc();
|
|
1373
|
-
tagAt(idx,
|
|
1365
|
+
tagAt(idx, 102);
|
|
1374
1366
|
slotAt(idx, 0, c_source);
|
|
1375
1367
|
slotAt(idx, 1, c_options);
|
|
1376
1368
|
slotAt(idx, 2, c_qualifier);
|
|
@@ -1384,7 +1376,7 @@ function encode(program, lineStarts) {
|
|
|
1384
1376
|
const c_constraint = n.constraint == null ? NULL : encNode(n.constraint);
|
|
1385
1377
|
const c_default = n.default == null ? NULL : encNode(n.default);
|
|
1386
1378
|
const idx = alloc();
|
|
1387
|
-
tagAt(idx,
|
|
1379
|
+
tagAt(idx, 103);
|
|
1388
1380
|
slotAt(idx, 0, c_name);
|
|
1389
1381
|
slotAt(idx, 1, c_constraint);
|
|
1390
1382
|
slotAt(idx, 2, c_default);
|
|
@@ -1396,7 +1388,7 @@ function encode(program, lineStarts) {
|
|
|
1396
1388
|
function enc_ts_type_parameter_declaration(n) {
|
|
1397
1389
|
const c_params = encArr(n.params, encNode);
|
|
1398
1390
|
const idx = alloc();
|
|
1399
|
-
tagAt(idx,
|
|
1391
|
+
tagAt(idx, 104);
|
|
1400
1392
|
f0At(idx, c_params.len);
|
|
1401
1393
|
slotAt(idx, 0, c_params.start);
|
|
1402
1394
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1406,7 +1398,7 @@ function encode(program, lineStarts) {
|
|
|
1406
1398
|
function enc_ts_type_parameter_instantiation(n) {
|
|
1407
1399
|
const c_params = encArr(n.params, encNode);
|
|
1408
1400
|
const idx = alloc();
|
|
1409
|
-
tagAt(idx,
|
|
1401
|
+
tagAt(idx, 105);
|
|
1410
1402
|
f0At(idx, c_params.len);
|
|
1411
1403
|
slotAt(idx, 0, c_params.start);
|
|
1412
1404
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1416,7 +1408,7 @@ function encode(program, lineStarts) {
|
|
|
1416
1408
|
function enc_ts_literal_type(n) {
|
|
1417
1409
|
const c_literal = n.literal == null ? NULL : encNode(n.literal);
|
|
1418
1410
|
const idx = alloc();
|
|
1419
|
-
tagAt(idx,
|
|
1411
|
+
tagAt(idx, 106);
|
|
1420
1412
|
slotAt(idx, 0, c_literal);
|
|
1421
1413
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1422
1414
|
recordComments(n, idx);
|
|
@@ -1426,7 +1418,7 @@ function encode(program, lineStarts) {
|
|
|
1426
1418
|
const c_quasis = encArr(n.quasis, encNode);
|
|
1427
1419
|
const c_types = encArr(n.types, encNode);
|
|
1428
1420
|
const idx = alloc();
|
|
1429
|
-
tagAt(idx,
|
|
1421
|
+
tagAt(idx, 107);
|
|
1430
1422
|
f0At(idx, c_quasis.len);
|
|
1431
1423
|
slotAt(idx, 0, c_quasis.start);
|
|
1432
1424
|
slotAt(idx, 1, c_types.start);
|
|
@@ -1438,7 +1430,7 @@ function encode(program, lineStarts) {
|
|
|
1438
1430
|
function enc_ts_array_type(n) {
|
|
1439
1431
|
const c_element_type = n.elementType == null ? NULL : encNode(n.elementType);
|
|
1440
1432
|
const idx = alloc();
|
|
1441
|
-
tagAt(idx,
|
|
1433
|
+
tagAt(idx, 108);
|
|
1442
1434
|
slotAt(idx, 0, c_element_type);
|
|
1443
1435
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1444
1436
|
recordComments(n, idx);
|
|
@@ -1448,7 +1440,7 @@ function encode(program, lineStarts) {
|
|
|
1448
1440
|
const c_object_type = n.objectType == null ? NULL : encNode(n.objectType);
|
|
1449
1441
|
const c_index_type = n.indexType == null ? NULL : encNode(n.indexType);
|
|
1450
1442
|
const idx = alloc();
|
|
1451
|
-
tagAt(idx,
|
|
1443
|
+
tagAt(idx, 109);
|
|
1452
1444
|
slotAt(idx, 0, c_object_type);
|
|
1453
1445
|
slotAt(idx, 1, c_index_type);
|
|
1454
1446
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1458,7 +1450,7 @@ function encode(program, lineStarts) {
|
|
|
1458
1450
|
function enc_ts_tuple_type(n) {
|
|
1459
1451
|
const c_element_types = encArr(n.elementTypes, encNode);
|
|
1460
1452
|
const idx = alloc();
|
|
1461
|
-
tagAt(idx,
|
|
1453
|
+
tagAt(idx, 110);
|
|
1462
1454
|
f0At(idx, c_element_types.len);
|
|
1463
1455
|
slotAt(idx, 0, c_element_types.start);
|
|
1464
1456
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1469,7 +1461,7 @@ function encode(program, lineStarts) {
|
|
|
1469
1461
|
const c_label = n.label == null ? NULL : encNode(n.label);
|
|
1470
1462
|
const c_element_type = n.elementType == null ? NULL : encNode(n.elementType);
|
|
1471
1463
|
const idx = alloc();
|
|
1472
|
-
tagAt(idx,
|
|
1464
|
+
tagAt(idx, 111);
|
|
1473
1465
|
slotAt(idx, 0, c_label);
|
|
1474
1466
|
slotAt(idx, 1, c_element_type);
|
|
1475
1467
|
flagsAt(idx, 0 | (n.optional ? 1 : 0));
|
|
@@ -1480,7 +1472,7 @@ function encode(program, lineStarts) {
|
|
|
1480
1472
|
function enc_ts_optional_type(n) {
|
|
1481
1473
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1482
1474
|
const idx = alloc();
|
|
1483
|
-
tagAt(idx,
|
|
1475
|
+
tagAt(idx, 112);
|
|
1484
1476
|
slotAt(idx, 0, c_type_annotation);
|
|
1485
1477
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1486
1478
|
recordComments(n, idx);
|
|
@@ -1489,7 +1481,7 @@ function encode(program, lineStarts) {
|
|
|
1489
1481
|
function enc_ts_rest_type(n) {
|
|
1490
1482
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1491
1483
|
const idx = alloc();
|
|
1492
|
-
tagAt(idx,
|
|
1484
|
+
tagAt(idx, 113);
|
|
1493
1485
|
slotAt(idx, 0, c_type_annotation);
|
|
1494
1486
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1495
1487
|
recordComments(n, idx);
|
|
@@ -1498,7 +1490,7 @@ function encode(program, lineStarts) {
|
|
|
1498
1490
|
function enc_ts_jsdoc_nullable_type(n) {
|
|
1499
1491
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1500
1492
|
const idx = alloc();
|
|
1501
|
-
tagAt(idx,
|
|
1493
|
+
tagAt(idx, 114);
|
|
1502
1494
|
slotAt(idx, 0, c_type_annotation);
|
|
1503
1495
|
flagsAt(idx, 0 | (n.postfix ? 1 : 0));
|
|
1504
1496
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1508,7 +1500,7 @@ function encode(program, lineStarts) {
|
|
|
1508
1500
|
function enc_ts_jsdoc_non_nullable_type(n) {
|
|
1509
1501
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1510
1502
|
const idx = alloc();
|
|
1511
|
-
tagAt(idx,
|
|
1503
|
+
tagAt(idx, 115);
|
|
1512
1504
|
slotAt(idx, 0, c_type_annotation);
|
|
1513
1505
|
flagsAt(idx, 0 | (n.postfix ? 1 : 0));
|
|
1514
1506
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1517,7 +1509,7 @@ function encode(program, lineStarts) {
|
|
|
1517
1509
|
}
|
|
1518
1510
|
function enc_ts_jsdoc_unknown_type(n) {
|
|
1519
1511
|
const idx = alloc();
|
|
1520
|
-
tagAt(idx,
|
|
1512
|
+
tagAt(idx, 116);
|
|
1521
1513
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1522
1514
|
recordComments(n, idx);
|
|
1523
1515
|
return idx;
|
|
@@ -1525,7 +1517,7 @@ function encode(program, lineStarts) {
|
|
|
1525
1517
|
function enc_ts_union_type(n) {
|
|
1526
1518
|
const c_types = encArr(n.types, encNode);
|
|
1527
1519
|
const idx = alloc();
|
|
1528
|
-
tagAt(idx,
|
|
1520
|
+
tagAt(idx, 117);
|
|
1529
1521
|
f0At(idx, c_types.len);
|
|
1530
1522
|
slotAt(idx, 0, c_types.start);
|
|
1531
1523
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1535,7 +1527,7 @@ function encode(program, lineStarts) {
|
|
|
1535
1527
|
function enc_ts_intersection_type(n) {
|
|
1536
1528
|
const c_types = encArr(n.types, encNode);
|
|
1537
1529
|
const idx = alloc();
|
|
1538
|
-
tagAt(idx,
|
|
1530
|
+
tagAt(idx, 118);
|
|
1539
1531
|
f0At(idx, c_types.len);
|
|
1540
1532
|
slotAt(idx, 0, c_types.start);
|
|
1541
1533
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1548,7 +1540,7 @@ function encode(program, lineStarts) {
|
|
|
1548
1540
|
const c_true_type = n.trueType == null ? NULL : encNode(n.trueType);
|
|
1549
1541
|
const c_false_type = n.falseType == null ? NULL : encNode(n.falseType);
|
|
1550
1542
|
const idx = alloc();
|
|
1551
|
-
tagAt(idx,
|
|
1543
|
+
tagAt(idx, 119);
|
|
1552
1544
|
slotAt(idx, 0, c_check_type);
|
|
1553
1545
|
slotAt(idx, 1, c_extends_type);
|
|
1554
1546
|
slotAt(idx, 2, c_true_type);
|
|
@@ -1560,7 +1552,7 @@ function encode(program, lineStarts) {
|
|
|
1560
1552
|
function enc_ts_infer_type(n) {
|
|
1561
1553
|
const c_type_parameter = n.typeParameter == null ? NULL : encNode(n.typeParameter);
|
|
1562
1554
|
const idx = alloc();
|
|
1563
|
-
tagAt(idx,
|
|
1555
|
+
tagAt(idx, 120);
|
|
1564
1556
|
slotAt(idx, 0, c_type_parameter);
|
|
1565
1557
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1566
1558
|
recordComments(n, idx);
|
|
@@ -1569,7 +1561,7 @@ function encode(program, lineStarts) {
|
|
|
1569
1561
|
function enc_ts_type_operator(n) {
|
|
1570
1562
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1571
1563
|
const idx = alloc();
|
|
1572
|
-
tagAt(idx,
|
|
1564
|
+
tagAt(idx, 121);
|
|
1573
1565
|
slotAt(idx, 0, c_type_annotation);
|
|
1574
1566
|
flagsAt(idx, 0 | (TS_TYPE_OPERATORS_INV[n.operator] | 0));
|
|
1575
1567
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1579,7 +1571,7 @@ function encode(program, lineStarts) {
|
|
|
1579
1571
|
function enc_ts_parenthesized_type(n) {
|
|
1580
1572
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1581
1573
|
const idx = alloc();
|
|
1582
|
-
tagAt(idx,
|
|
1574
|
+
tagAt(idx, 122);
|
|
1583
1575
|
slotAt(idx, 0, c_type_annotation);
|
|
1584
1576
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1585
1577
|
recordComments(n, idx);
|
|
@@ -1590,7 +1582,7 @@ function encode(program, lineStarts) {
|
|
|
1590
1582
|
const params = encFormalParameters(n.params);
|
|
1591
1583
|
const rt_ = n.returnType == null ? NULL : encNode(n.returnType);
|
|
1592
1584
|
const idx = alloc();
|
|
1593
|
-
tagAt(idx,
|
|
1585
|
+
tagAt(idx, 123);
|
|
1594
1586
|
slotAt(idx, 0, tp); slotAt(idx, 1, params); slotAt(idx, 2, rt_);
|
|
1595
1587
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1596
1588
|
recordComments(n, idx);
|
|
@@ -1601,7 +1593,7 @@ function encode(program, lineStarts) {
|
|
|
1601
1593
|
const params = encFormalParameters(n.params);
|
|
1602
1594
|
const rt_ = n.returnType == null ? NULL : encNode(n.returnType);
|
|
1603
1595
|
const idx = alloc();
|
|
1604
|
-
tagAt(idx,
|
|
1596
|
+
tagAt(idx, 124);
|
|
1605
1597
|
slotAt(idx, 0, tp); slotAt(idx, 1, params); slotAt(idx, 2, rt_);
|
|
1606
1598
|
flagsAt(idx, n.abstract ? 1 : 0);
|
|
1607
1599
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1612,7 +1604,7 @@ function encode(program, lineStarts) {
|
|
|
1612
1604
|
const c_parameter_name = n.parameterName == null ? NULL : encNode(n.parameterName);
|
|
1613
1605
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1614
1606
|
const idx = alloc();
|
|
1615
|
-
tagAt(idx,
|
|
1607
|
+
tagAt(idx, 125);
|
|
1616
1608
|
slotAt(idx, 0, c_parameter_name);
|
|
1617
1609
|
slotAt(idx, 1, c_type_annotation);
|
|
1618
1610
|
flagsAt(idx, 0 | (n.asserts ? 1 : 0));
|
|
@@ -1623,7 +1615,7 @@ function encode(program, lineStarts) {
|
|
|
1623
1615
|
function enc_ts_type_literal(n) {
|
|
1624
1616
|
const c_members = encArr(n.members, encNode);
|
|
1625
1617
|
const idx = alloc();
|
|
1626
|
-
tagAt(idx,
|
|
1618
|
+
tagAt(idx, 126);
|
|
1627
1619
|
f0At(idx, c_members.len);
|
|
1628
1620
|
slotAt(idx, 0, c_members.start);
|
|
1629
1621
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1636,7 +1628,7 @@ function encode(program, lineStarts) {
|
|
|
1636
1628
|
const nt = n.nameType == null ? NULL : encNode(n.nameType);
|
|
1637
1629
|
const ta = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1638
1630
|
const idx = alloc();
|
|
1639
|
-
tagAt(idx,
|
|
1631
|
+
tagAt(idx, 127);
|
|
1640
1632
|
slotAt(idx, 0, k); slotAt(idx, 1, c); slotAt(idx, 2, nt); slotAt(idx, 3, ta);
|
|
1641
1633
|
flagsAt(idx,
|
|
1642
1634
|
(TS_MAPPED_OPTIONAL_INV(n.optional) << 0)
|
|
@@ -1649,7 +1641,7 @@ function encode(program, lineStarts) {
|
|
|
1649
1641
|
const k = n.computed ? encNode(n.key) : encName(n.key);
|
|
1650
1642
|
const ta = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1651
1643
|
const idx = alloc();
|
|
1652
|
-
tagAt(idx,
|
|
1644
|
+
tagAt(idx, 128);
|
|
1653
1645
|
slotAt(idx, 0, k); slotAt(idx, 1, ta);
|
|
1654
1646
|
flagsAt(idx,
|
|
1655
1647
|
(n.computed ? 1 : 0)
|
|
@@ -1665,7 +1657,7 @@ function encode(program, lineStarts) {
|
|
|
1665
1657
|
const params = encFormalParameters(n.params);
|
|
1666
1658
|
const rt_ = n.returnType == null ? NULL : encNode(n.returnType);
|
|
1667
1659
|
const idx = alloc();
|
|
1668
|
-
tagAt(idx,
|
|
1660
|
+
tagAt(idx, 129);
|
|
1669
1661
|
slotAt(idx, 0, k);
|
|
1670
1662
|
slotAt(idx, 1, tp);
|
|
1671
1663
|
slotAt(idx, 2, params);
|
|
@@ -1683,7 +1675,7 @@ function encode(program, lineStarts) {
|
|
|
1683
1675
|
const params = encFormalParameters(n.params);
|
|
1684
1676
|
const rt_ = n.returnType == null ? NULL : encNode(n.returnType);
|
|
1685
1677
|
const idx = alloc();
|
|
1686
|
-
tagAt(idx,
|
|
1678
|
+
tagAt(idx, 130);
|
|
1687
1679
|
slotAt(idx, 0, tp); slotAt(idx, 1, params); slotAt(idx, 2, rt_);
|
|
1688
1680
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1689
1681
|
recordComments(n, idx);
|
|
@@ -1694,7 +1686,7 @@ function encode(program, lineStarts) {
|
|
|
1694
1686
|
const params = encFormalParameters(n.params);
|
|
1695
1687
|
const rt_ = n.returnType == null ? NULL : encNode(n.returnType);
|
|
1696
1688
|
const idx = alloc();
|
|
1697
|
-
tagAt(idx,
|
|
1689
|
+
tagAt(idx, 131);
|
|
1698
1690
|
slotAt(idx, 0, tp); slotAt(idx, 1, params); slotAt(idx, 2, rt_);
|
|
1699
1691
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1700
1692
|
recordComments(n, idx);
|
|
@@ -1704,7 +1696,7 @@ function encode(program, lineStarts) {
|
|
|
1704
1696
|
const ps = encArr(n.parameters, encBindingTarget);
|
|
1705
1697
|
const ta = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1706
1698
|
const idx = alloc();
|
|
1707
|
-
tagAt(idx,
|
|
1699
|
+
tagAt(idx, 132);
|
|
1708
1700
|
f0At(idx, ps.len);
|
|
1709
1701
|
slotAt(idx, 0, ps.start);
|
|
1710
1702
|
slotAt(idx, 1, ta);
|
|
@@ -1718,7 +1710,7 @@ function encode(program, lineStarts) {
|
|
|
1718
1710
|
const c_type_parameters = n.typeParameters == null ? NULL : encNode(n.typeParameters);
|
|
1719
1711
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1720
1712
|
const idx = alloc();
|
|
1721
|
-
tagAt(idx,
|
|
1713
|
+
tagAt(idx, 133);
|
|
1722
1714
|
slotAt(idx, 0, c_id);
|
|
1723
1715
|
slotAt(idx, 1, c_type_parameters);
|
|
1724
1716
|
slotAt(idx, 2, c_type_annotation);
|
|
@@ -1733,7 +1725,7 @@ function encode(program, lineStarts) {
|
|
|
1733
1725
|
const c_extends = encArr(n.extends, encNode);
|
|
1734
1726
|
const c_body = n.body == null ? NULL : encNode(n.body);
|
|
1735
1727
|
const idx = alloc();
|
|
1736
|
-
tagAt(idx,
|
|
1728
|
+
tagAt(idx, 134);
|
|
1737
1729
|
slotAt(idx, 0, c_id);
|
|
1738
1730
|
slotAt(idx, 1, c_type_parameters);
|
|
1739
1731
|
f0At(idx, c_extends.len);
|
|
@@ -1747,7 +1739,7 @@ function encode(program, lineStarts) {
|
|
|
1747
1739
|
function enc_ts_interface_body(n) {
|
|
1748
1740
|
const c_body = encArr(n.body, encNode);
|
|
1749
1741
|
const idx = alloc();
|
|
1750
|
-
tagAt(idx,
|
|
1742
|
+
tagAt(idx, 135);
|
|
1751
1743
|
f0At(idx, c_body.len);
|
|
1752
1744
|
slotAt(idx, 0, c_body.start);
|
|
1753
1745
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1758,7 +1750,7 @@ function encode(program, lineStarts) {
|
|
|
1758
1750
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
1759
1751
|
const c_type_arguments = n.typeArguments == null ? NULL : encNode(n.typeArguments);
|
|
1760
1752
|
const idx = alloc();
|
|
1761
|
-
tagAt(idx,
|
|
1753
|
+
tagAt(idx, 136);
|
|
1762
1754
|
slotAt(idx, 0, c_expression);
|
|
1763
1755
|
slotAt(idx, 1, c_type_arguments);
|
|
1764
1756
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1769,7 +1761,7 @@ function encode(program, lineStarts) {
|
|
|
1769
1761
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
1770
1762
|
const c_type_arguments = n.typeArguments == null ? NULL : encNode(n.typeArguments);
|
|
1771
1763
|
const idx = alloc();
|
|
1772
|
-
tagAt(idx,
|
|
1764
|
+
tagAt(idx, 137);
|
|
1773
1765
|
slotAt(idx, 0, c_expression);
|
|
1774
1766
|
slotAt(idx, 1, c_type_arguments);
|
|
1775
1767
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1780,7 +1772,7 @@ function encode(program, lineStarts) {
|
|
|
1780
1772
|
const c_id = n.id == null ? NULL : encBindingTarget(n.id);
|
|
1781
1773
|
const c_body = n.body == null ? NULL : encNode(n.body);
|
|
1782
1774
|
const idx = alloc();
|
|
1783
|
-
tagAt(idx,
|
|
1775
|
+
tagAt(idx, 138);
|
|
1784
1776
|
slotAt(idx, 0, c_id);
|
|
1785
1777
|
slotAt(idx, 1, c_body);
|
|
1786
1778
|
flagsAt(idx, 0 | (n.const ? 1 : 0) | (n.declare ? 2 : 0));
|
|
@@ -1791,7 +1783,7 @@ function encode(program, lineStarts) {
|
|
|
1791
1783
|
function enc_ts_enum_body(n) {
|
|
1792
1784
|
const c_members = encArr(n.members, encNode);
|
|
1793
1785
|
const idx = alloc();
|
|
1794
|
-
tagAt(idx,
|
|
1786
|
+
tagAt(idx, 139);
|
|
1795
1787
|
f0At(idx, c_members.len);
|
|
1796
1788
|
slotAt(idx, 0, c_members.start);
|
|
1797
1789
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1802,7 +1794,7 @@ function encode(program, lineStarts) {
|
|
|
1802
1794
|
const id = n.computed ? encNode(n.id) : encName(n.id);
|
|
1803
1795
|
const init = n.initializer == null ? NULL : encNode(n.initializer);
|
|
1804
1796
|
const idx = alloc();
|
|
1805
|
-
tagAt(idx,
|
|
1797
|
+
tagAt(idx, 140);
|
|
1806
1798
|
slotAt(idx, 0, id); slotAt(idx, 1, init);
|
|
1807
1799
|
flagsAt(idx, n.computed ? 1 : 0);
|
|
1808
1800
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1813,7 +1805,7 @@ function encode(program, lineStarts) {
|
|
|
1813
1805
|
const id = encNode(n.id);
|
|
1814
1806
|
const body = n.body == null ? NULL : encNode(n.body);
|
|
1815
1807
|
const idx = alloc();
|
|
1816
|
-
tagAt(idx,
|
|
1808
|
+
tagAt(idx, 141);
|
|
1817
1809
|
slotAt(idx, 0, id);
|
|
1818
1810
|
slotAt(idx, 1, body);
|
|
1819
1811
|
flagsAt(idx, ((TS_MODULE_KINDS_INV[n.kind] | 0) << 0) | (n.declare ? 2 : 0));
|
|
@@ -1824,7 +1816,7 @@ function encode(program, lineStarts) {
|
|
|
1824
1816
|
function enc_ts_module_block(n) {
|
|
1825
1817
|
const c_body = encArr(n.body, encNode);
|
|
1826
1818
|
const idx = alloc();
|
|
1827
|
-
tagAt(idx,
|
|
1819
|
+
tagAt(idx, 142);
|
|
1828
1820
|
f0At(idx, c_body.len);
|
|
1829
1821
|
slotAt(idx, 0, c_body.start);
|
|
1830
1822
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1835,7 +1827,7 @@ function encode(program, lineStarts) {
|
|
|
1835
1827
|
const id = encNode(n.id);
|
|
1836
1828
|
const body = encNode(n.body);
|
|
1837
1829
|
const idx = alloc();
|
|
1838
|
-
tagAt(idx,
|
|
1830
|
+
tagAt(idx, 143);
|
|
1839
1831
|
slotAt(idx, 0, id);
|
|
1840
1832
|
slotAt(idx, 1, body);
|
|
1841
1833
|
flagsAt(idx, n.declare ? 1 : 0);
|
|
@@ -1847,7 +1839,7 @@ function encode(program, lineStarts) {
|
|
|
1847
1839
|
const c_decorators = encArr(n.decorators, encNode);
|
|
1848
1840
|
const c_parameter = n.parameter == null ? NULL : encBindingTarget(n.parameter);
|
|
1849
1841
|
const idx = alloc();
|
|
1850
|
-
tagAt(idx,
|
|
1842
|
+
tagAt(idx, 144);
|
|
1851
1843
|
f0At(idx, c_decorators.len);
|
|
1852
1844
|
slotAt(idx, 0, c_decorators.start);
|
|
1853
1845
|
slotAt(idx, 1, c_parameter);
|
|
@@ -1859,7 +1851,7 @@ function encode(program, lineStarts) {
|
|
|
1859
1851
|
function enc_ts_this_parameter(n) {
|
|
1860
1852
|
const ta = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1861
1853
|
const idx = alloc();
|
|
1862
|
-
tagAt(idx,
|
|
1854
|
+
tagAt(idx, 145);
|
|
1863
1855
|
slotAt(idx, 0, ta);
|
|
1864
1856
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1865
1857
|
recordComments(n, idx);
|
|
@@ -1869,7 +1861,7 @@ function encode(program, lineStarts) {
|
|
|
1869
1861
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
1870
1862
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1871
1863
|
const idx = alloc();
|
|
1872
|
-
tagAt(idx,
|
|
1864
|
+
tagAt(idx, 146);
|
|
1873
1865
|
slotAt(idx, 0, c_expression);
|
|
1874
1866
|
slotAt(idx, 1, c_type_annotation);
|
|
1875
1867
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1880,7 +1872,7 @@ function encode(program, lineStarts) {
|
|
|
1880
1872
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
1881
1873
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1882
1874
|
const idx = alloc();
|
|
1883
|
-
tagAt(idx,
|
|
1875
|
+
tagAt(idx, 147);
|
|
1884
1876
|
slotAt(idx, 0, c_expression);
|
|
1885
1877
|
slotAt(idx, 1, c_type_annotation);
|
|
1886
1878
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1891,7 +1883,7 @@ function encode(program, lineStarts) {
|
|
|
1891
1883
|
const c_type_annotation = n.typeAnnotation == null ? NULL : encNode(n.typeAnnotation);
|
|
1892
1884
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
1893
1885
|
const idx = alloc();
|
|
1894
|
-
tagAt(idx,
|
|
1886
|
+
tagAt(idx, 148);
|
|
1895
1887
|
slotAt(idx, 0, c_type_annotation);
|
|
1896
1888
|
slotAt(idx, 1, c_expression);
|
|
1897
1889
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1901,7 +1893,7 @@ function encode(program, lineStarts) {
|
|
|
1901
1893
|
function enc_ts_non_null_expression(n) {
|
|
1902
1894
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
1903
1895
|
const idx = alloc();
|
|
1904
|
-
tagAt(idx,
|
|
1896
|
+
tagAt(idx, 149);
|
|
1905
1897
|
slotAt(idx, 0, c_expression);
|
|
1906
1898
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1907
1899
|
recordComments(n, idx);
|
|
@@ -1911,7 +1903,7 @@ function encode(program, lineStarts) {
|
|
|
1911
1903
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
1912
1904
|
const c_type_arguments = n.typeArguments == null ? NULL : encNode(n.typeArguments);
|
|
1913
1905
|
const idx = alloc();
|
|
1914
|
-
tagAt(idx,
|
|
1906
|
+
tagAt(idx, 150);
|
|
1915
1907
|
slotAt(idx, 0, c_expression);
|
|
1916
1908
|
slotAt(idx, 1, c_type_arguments);
|
|
1917
1909
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -1921,7 +1913,7 @@ function encode(program, lineStarts) {
|
|
|
1921
1913
|
function enc_ts_export_assignment(n) {
|
|
1922
1914
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
1923
1915
|
const idx = alloc();
|
|
1924
|
-
tagAt(idx,
|
|
1916
|
+
tagAt(idx, 151);
|
|
1925
1917
|
slotAt(idx, 0, c_expression);
|
|
1926
1918
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1927
1919
|
recordComments(n, idx);
|
|
@@ -1930,7 +1922,7 @@ function encode(program, lineStarts) {
|
|
|
1930
1922
|
function enc_ts_namespace_export_declaration(n) {
|
|
1931
1923
|
const c_id = n.id == null ? NULL : encNode(n.id);
|
|
1932
1924
|
const idx = alloc();
|
|
1933
|
-
tagAt(idx,
|
|
1925
|
+
tagAt(idx, 152);
|
|
1934
1926
|
slotAt(idx, 0, c_id);
|
|
1935
1927
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1936
1928
|
recordComments(n, idx);
|
|
@@ -1940,7 +1932,7 @@ function encode(program, lineStarts) {
|
|
|
1940
1932
|
const c_id = n.id == null ? NULL : encBindingTarget(n.id);
|
|
1941
1933
|
const c_module_reference = n.moduleReference == null ? NULL : encNode(n.moduleReference);
|
|
1942
1934
|
const idx = alloc();
|
|
1943
|
-
tagAt(idx,
|
|
1935
|
+
tagAt(idx, 153);
|
|
1944
1936
|
slotAt(idx, 0, c_id);
|
|
1945
1937
|
slotAt(idx, 1, c_module_reference);
|
|
1946
1938
|
flagsAt(idx, 0 | (IMPORT_EXPORT_KINDS_INV[n.importKind] | 0));
|
|
@@ -1951,7 +1943,7 @@ function encode(program, lineStarts) {
|
|
|
1951
1943
|
function enc_ts_external_module_reference(n) {
|
|
1952
1944
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
1953
1945
|
const idx = alloc();
|
|
1954
|
-
tagAt(idx,
|
|
1946
|
+
tagAt(idx, 154);
|
|
1955
1947
|
slotAt(idx, 0, c_expression);
|
|
1956
1948
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1957
1949
|
recordComments(n, idx);
|
|
@@ -1962,7 +1954,7 @@ function encode(program, lineStarts) {
|
|
|
1962
1954
|
const c_children = encArr(n.children, encNode);
|
|
1963
1955
|
const c_closing_element = n.closingElement == null ? NULL : encNode(n.closingElement);
|
|
1964
1956
|
const idx = alloc();
|
|
1965
|
-
tagAt(idx,
|
|
1957
|
+
tagAt(idx, 155);
|
|
1966
1958
|
slotAt(idx, 0, c_opening_element);
|
|
1967
1959
|
f0At(idx, c_children.len);
|
|
1968
1960
|
slotAt(idx, 1, c_children.start);
|
|
@@ -1976,7 +1968,7 @@ function encode(program, lineStarts) {
|
|
|
1976
1968
|
const c_attributes = encArr(n.attributes, encNode);
|
|
1977
1969
|
const c_type_arguments = n.typeArguments == null ? NULL : encNode(n.typeArguments);
|
|
1978
1970
|
const idx = alloc();
|
|
1979
|
-
tagAt(idx,
|
|
1971
|
+
tagAt(idx, 156);
|
|
1980
1972
|
slotAt(idx, 0, c_name);
|
|
1981
1973
|
f0At(idx, c_attributes.len);
|
|
1982
1974
|
slotAt(idx, 1, c_attributes.start);
|
|
@@ -1989,7 +1981,7 @@ function encode(program, lineStarts) {
|
|
|
1989
1981
|
function enc_jsx_closing_element(n) {
|
|
1990
1982
|
const c_name = n.name == null ? NULL : encNode(n.name);
|
|
1991
1983
|
const idx = alloc();
|
|
1992
|
-
tagAt(idx,
|
|
1984
|
+
tagAt(idx, 157);
|
|
1993
1985
|
slotAt(idx, 0, c_name);
|
|
1994
1986
|
spanAt(idx, asStart(n), asEnd(n));
|
|
1995
1987
|
recordComments(n, idx);
|
|
@@ -2000,7 +1992,7 @@ function encode(program, lineStarts) {
|
|
|
2000
1992
|
const c_children = encArr(n.children, encNode);
|
|
2001
1993
|
const c_closing_fragment = n.closingFragment == null ? NULL : encNode(n.closingFragment);
|
|
2002
1994
|
const idx = alloc();
|
|
2003
|
-
tagAt(idx,
|
|
1995
|
+
tagAt(idx, 158);
|
|
2004
1996
|
slotAt(idx, 0, c_opening_fragment);
|
|
2005
1997
|
f0At(idx, c_children.len);
|
|
2006
1998
|
slotAt(idx, 1, c_children.start);
|
|
@@ -2011,14 +2003,14 @@ function encode(program, lineStarts) {
|
|
|
2011
2003
|
}
|
|
2012
2004
|
function enc_jsx_opening_fragment(n) {
|
|
2013
2005
|
const idx = alloc();
|
|
2014
|
-
tagAt(idx,
|
|
2006
|
+
tagAt(idx, 159);
|
|
2015
2007
|
spanAt(idx, asStart(n), asEnd(n));
|
|
2016
2008
|
recordComments(n, idx);
|
|
2017
2009
|
return idx;
|
|
2018
2010
|
}
|
|
2019
2011
|
function enc_jsx_closing_fragment(n) {
|
|
2020
2012
|
const idx = alloc();
|
|
2021
|
-
tagAt(idx,
|
|
2013
|
+
tagAt(idx, 160);
|
|
2022
2014
|
spanAt(idx, asStart(n), asEnd(n));
|
|
2023
2015
|
recordComments(n, idx);
|
|
2024
2016
|
return idx;
|
|
@@ -2026,7 +2018,7 @@ function encode(program, lineStarts) {
|
|
|
2026
2018
|
function enc_jsx_identifier(n) {
|
|
2027
2019
|
const c_name = encStr(n.name);
|
|
2028
2020
|
const idx = alloc();
|
|
2029
|
-
tagAt(idx,
|
|
2021
|
+
tagAt(idx, 161);
|
|
2030
2022
|
slotAt(idx, 0, c_name.start);
|
|
2031
2023
|
slotAt(idx, 1, c_name.end);
|
|
2032
2024
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -2037,7 +2029,7 @@ function encode(program, lineStarts) {
|
|
|
2037
2029
|
const c_namespace = n.namespace == null ? NULL : encNode(n.namespace);
|
|
2038
2030
|
const c_name = n.name == null ? NULL : encNode(n.name);
|
|
2039
2031
|
const idx = alloc();
|
|
2040
|
-
tagAt(idx,
|
|
2032
|
+
tagAt(idx, 162);
|
|
2041
2033
|
slotAt(idx, 0, c_namespace);
|
|
2042
2034
|
slotAt(idx, 1, c_name);
|
|
2043
2035
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -2048,7 +2040,7 @@ function encode(program, lineStarts) {
|
|
|
2048
2040
|
const c_object = n.object == null ? NULL : encNode(n.object);
|
|
2049
2041
|
const c_property = n.property == null ? NULL : encNode(n.property);
|
|
2050
2042
|
const idx = alloc();
|
|
2051
|
-
tagAt(idx,
|
|
2043
|
+
tagAt(idx, 163);
|
|
2052
2044
|
slotAt(idx, 0, c_object);
|
|
2053
2045
|
slotAt(idx, 1, c_property);
|
|
2054
2046
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -2059,7 +2051,7 @@ function encode(program, lineStarts) {
|
|
|
2059
2051
|
const c_name = n.name == null ? NULL : encNode(n.name);
|
|
2060
2052
|
const c_value = n.value == null ? NULL : encNode(n.value);
|
|
2061
2053
|
const idx = alloc();
|
|
2062
|
-
tagAt(idx,
|
|
2054
|
+
tagAt(idx, 164);
|
|
2063
2055
|
slotAt(idx, 0, c_name);
|
|
2064
2056
|
slotAt(idx, 1, c_value);
|
|
2065
2057
|
spanAt(idx, asStart(n), asEnd(n));
|
|
@@ -2069,7 +2061,7 @@ function encode(program, lineStarts) {
|
|
|
2069
2061
|
function enc_jsx_spread_attribute(n) {
|
|
2070
2062
|
const c_argument = n.argument == null ? NULL : encNode(n.argument);
|
|
2071
2063
|
const idx = alloc();
|
|
2072
|
-
tagAt(idx,
|
|
2064
|
+
tagAt(idx, 165);
|
|
2073
2065
|
slotAt(idx, 0, c_argument);
|
|
2074
2066
|
spanAt(idx, asStart(n), asEnd(n));
|
|
2075
2067
|
recordComments(n, idx);
|
|
@@ -2078,7 +2070,7 @@ function encode(program, lineStarts) {
|
|
|
2078
2070
|
function enc_jsx_expression_container(n) {
|
|
2079
2071
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
2080
2072
|
const idx = alloc();
|
|
2081
|
-
tagAt(idx,
|
|
2073
|
+
tagAt(idx, 166);
|
|
2082
2074
|
slotAt(idx, 0, c_expression);
|
|
2083
2075
|
spanAt(idx, asStart(n), asEnd(n));
|
|
2084
2076
|
recordComments(n, idx);
|
|
@@ -2086,7 +2078,7 @@ function encode(program, lineStarts) {
|
|
|
2086
2078
|
}
|
|
2087
2079
|
function enc_jsx_empty_expression(n) {
|
|
2088
2080
|
const idx = alloc();
|
|
2089
|
-
tagAt(idx,
|
|
2081
|
+
tagAt(idx, 167);
|
|
2090
2082
|
spanAt(idx, asStart(n), asEnd(n));
|
|
2091
2083
|
recordComments(n, idx);
|
|
2092
2084
|
return idx;
|
|
@@ -2094,7 +2086,7 @@ function encode(program, lineStarts) {
|
|
|
2094
2086
|
function enc_jsx_text(n) {
|
|
2095
2087
|
const v = encStr(n.value || "");
|
|
2096
2088
|
const idx = alloc();
|
|
2097
|
-
tagAt(idx,
|
|
2089
|
+
tagAt(idx, 168);
|
|
2098
2090
|
slotAt(idx, 0, v.start); slotAt(idx, 1, v.end);
|
|
2099
2091
|
spanAt(idx, asStart(n), asEnd(n));
|
|
2100
2092
|
recordComments(n, idx);
|
|
@@ -2103,7 +2095,7 @@ function encode(program, lineStarts) {
|
|
|
2103
2095
|
function enc_jsx_spread_child(n) {
|
|
2104
2096
|
const c_expression = n.expression == null ? NULL : encNode(n.expression);
|
|
2105
2097
|
const idx = alloc();
|
|
2106
|
-
tagAt(idx,
|
|
2098
|
+
tagAt(idx, 169);
|
|
2107
2099
|
slotAt(idx, 0, c_expression);
|
|
2108
2100
|
spanAt(idx, asStart(n), asEnd(n));
|
|
2109
2101
|
recordComments(n, idx);
|