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