@danielx/civet 0.2.3 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -474,6 +474,7 @@ var require_parser = __commonJS({
474
474
  NestedElement,
475
475
  ArrayElementDelimiter,
476
476
  ElementList,
477
+ InlineElementList,
477
478
  ArrayElementExpression,
478
479
  Elision,
479
480
  ObjectLiteral,
@@ -575,6 +576,7 @@ var require_parser = __commonJS({
575
576
  _,
576
577
  __,
577
578
  StatementDelimiter,
579
+ NonIdContinue,
578
580
  JSXElement,
579
581
  JSXSelfClosingElement,
580
582
  JSXOpeningElement,
@@ -598,6 +600,7 @@ var require_parser = __commonJS({
598
600
  InterfaceProperty,
599
601
  InterfacePropertyDelimiter,
600
602
  TypeIndexSignature,
603
+ TypeIndex,
601
604
  TypeSuffix,
602
605
  ReturnTypeSuffix,
603
606
  TypePredicate,
@@ -764,46 +767,48 @@ var require_parser = __commonJS({
764
767
  var $L124 = $L("</");
765
768
  var $L125 = $L("<>");
766
769
  var $L126 = $L("</>");
767
- var $L127 = $L("asserts");
768
- var $L128 = $L("keyof");
769
- var $L129 = $L("infer");
770
- var $L130 = $L("[]");
771
- var $L131 = $L(" ");
772
- var $L132 = $L(" ");
773
- var $R0 = $R(new RegExp("(?!\\p{ID_Continue})", "suy"));
774
- var $R1 = $R(new RegExp("(of)(?!\\p{ID_Continue})", "suy"));
775
- var $R2 = $R(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
776
- var $R3 = $R(new RegExp("\\p{ID_Continue}", "suy"));
777
- var $R4 = $R(new RegExp("[!~+-]", "suy"));
778
- var $R5 = $R(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy"));
779
- var $R6 = $R(new RegExp("\\d+(?:\\.\\d*)?", "suy"));
780
- var $R7 = $R(new RegExp("0[bB][01](?:[01]|_[01])*", "suy"));
781
- var $R8 = $R(new RegExp("0[oO][0-7](?:[0-7]|_[0-7])*", "suy"));
782
- var $R9 = $R(new RegExp("0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*", "suy"));
783
- var $R10 = $R(new RegExp('[^"\\\\]+', "suy"));
784
- var $R11 = $R(new RegExp("[^'\\\\]+", "suy"));
785
- var $R12 = $R(new RegExp('(?:"(?!"")|\\\\.|[^"])+', "suy"));
786
- var $R13 = $R(new RegExp(".", "suy"));
787
- var $R14 = $R(new RegExp("[^*\\/\\r\\n]", "suy"));
788
- var $R15 = $R(new RegExp("[^\\/\\r\\n]+", "suy"));
789
- var $R16 = $R(new RegExp("(:?\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
790
- var $R17 = $R(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy"));
791
- var $R18 = $R(new RegExp("(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|new|null|or|return|super|switch|this|throw|true|try|typeof|unless|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
792
- var $R19 = $R(new RegExp("\\/\\/[^\\r\\n]*", "suy"));
793
- var $R20 = $R(new RegExp("#([^\\r\\n]*)", "suy"));
794
- var $R21 = $R(new RegExp("[^\\r\\n]", "suy"));
795
- var $R22 = $R(new RegExp("[\\t ]+", "suy"));
796
- var $R23 = $R(new RegExp("[\\s]+", "suy"));
797
- var $R24 = $R(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy"));
798
- var $R25 = $R(new RegExp('"[^"]*"', "suy"));
799
- var $R26 = $R(new RegExp("'[^']*'", "suy"));
800
- var $R27 = $R(new RegExp("[^{}<>]+", "suy"));
801
- var $R28 = $R(new RegExp("type(?!\\p{ID_Continue})", "suy"));
802
- var $R29 = $R(new RegExp("interface(?!\\p{ID_Continue})", "suy"));
803
- var $R30 = $R(new RegExp("#![^\\r\\n]*", "suy"));
804
- var $R31 = $R(new RegExp("[\\t ]*", "suy"));
805
- var $R32 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
806
- var $R33 = $R(new RegExp("$", "suy"));
770
+ var $L127 = $L("readonly");
771
+ var $L128 = $L("asserts");
772
+ var $L129 = $L("keyof");
773
+ var $L130 = $L("infer");
774
+ var $L131 = $L("[]");
775
+ var $L132 = $L(" ");
776
+ var $L133 = $L(" ");
777
+ var $R0 = $R(new RegExp("(of)(?!\\p{ID_Continue})", "suy"));
778
+ var $R1 = $R(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
779
+ var $R2 = $R(new RegExp("[!~+-]", "suy"));
780
+ var $R3 = $R(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy"));
781
+ var $R4 = $R(new RegExp("\\d+(?:\\.\\d*)?", "suy"));
782
+ var $R5 = $R(new RegExp("0[bB][01](?:[01]|_[01])*", "suy"));
783
+ var $R6 = $R(new RegExp("0[oO][0-7](?:[0-7]|_[0-7])*", "suy"));
784
+ var $R7 = $R(new RegExp("0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*", "suy"));
785
+ var $R8 = $R(new RegExp('[^"\\\\]+', "suy"));
786
+ var $R9 = $R(new RegExp("[^'\\\\]+", "suy"));
787
+ var $R10 = $R(new RegExp('(?:"(?!"")|\\\\.|[^"])+', "suy"));
788
+ var $R11 = $R(new RegExp(".", "suy"));
789
+ var $R12 = $R(new RegExp("[^*\\/\\r\\n]", "suy"));
790
+ var $R13 = $R(new RegExp("[^\\/\\r\\n]+", "suy"));
791
+ var $R14 = $R(new RegExp("(:?\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
792
+ var $R15 = $R(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy"));
793
+ var $R16 = $R(new RegExp("(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|new|null|or|return|super|switch|this|throw|true|try|typeof|unless|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
794
+ var $R17 = $R(new RegExp("\\/\\/[^\\r\\n]*", "suy"));
795
+ var $R18 = $R(new RegExp("#([^\\r\\n]*)", "suy"));
796
+ var $R19 = $R(new RegExp("[^\\r\\n]", "suy"));
797
+ var $R20 = $R(new RegExp("[\\t ]+", "suy"));
798
+ var $R21 = $R(new RegExp("[\\s]+", "suy"));
799
+ var $R22 = $R(new RegExp("(?!\\p{ID_Continue})", "suy"));
800
+ var $R23 = $R(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy"));
801
+ var $R24 = $R(new RegExp('"[^"]*"', "suy"));
802
+ var $R25 = $R(new RegExp("'[^']*'", "suy"));
803
+ var $R26 = $R(new RegExp("[^{}<>]+", "suy"));
804
+ var $R27 = $R(new RegExp("type(?!\\p{ID_Continue})", "suy"));
805
+ var $R28 = $R(new RegExp("interface(?!\\p{ID_Continue})", "suy"));
806
+ var $R29 = $R(new RegExp("[+-]?", "suy"));
807
+ var $R30 = $R(new RegExp("[+-]", "suy"));
808
+ var $R31 = $R(new RegExp("#![^\\r\\n]*", "suy"));
809
+ var $R32 = $R(new RegExp("[\\t ]*", "suy"));
810
+ var $R33 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
811
+ var $R34 = $R(new RegExp("$", "suy"));
807
812
  var Program$0 = $S(Init, __, $Q(TopLevelStatement), __);
808
813
  function Program(state) {
809
814
  if (state.verbose)
@@ -917,7 +922,7 @@ var require_parser = __commonJS({
917
922
  }
918
923
  }
919
924
  var UnaryPostfix$0 = $EXPECT($L3, fail, 'UnaryPostfix "?"');
920
- var UnaryPostfix$1 = $S(__, $EXPECT($L4, fail, 'UnaryPostfix "as"'), $R$0($EXPECT($R0, fail, "UnaryPostfix /(?!\\p{ID_Continue})/")), Type);
925
+ var UnaryPostfix$1 = $S(__, $EXPECT($L4, fail, 'UnaryPostfix "as"'), NonIdContinue, Type);
921
926
  function UnaryPostfix(state) {
922
927
  if (state.tokenize) {
923
928
  return $TOKEN("UnaryPostfix", state, UnaryPostfix$0(state) || UnaryPostfix$1(state));
@@ -965,7 +970,7 @@ var require_parser = __commonJS({
965
970
  }
966
971
  }
967
972
  var ArrowFunction$0 = ThinArrowFunction;
968
- var ArrowFunction$1 = $S($C(BindingIdentifier, Parameters), __, $EXPECT($L10, fail, 'ArrowFunction "=>"'), ConciseBody);
973
+ var ArrowFunction$1 = $S($C(BindingIdentifier, Parameters), $E(ReturnTypeSuffix), __, $EXPECT($L10, fail, 'ArrowFunction "=>"'), ConciseBody);
969
974
  function ArrowFunction(state) {
970
975
  if (state.tokenize) {
971
976
  return $TOKEN("ArrowFunction", state, ArrowFunction$0(state) || ArrowFunction$1(state));
@@ -1205,7 +1210,7 @@ var require_parser = __commonJS({
1205
1210
  return ApplicationStart$0(state);
1206
1211
  }
1207
1212
  }
1208
- var AdditionalReservedWords$0 = $R$0($EXPECT($R1, fail, "AdditionalReservedWords /(of)(?!\\p{ID_Continue})/"));
1213
+ var AdditionalReservedWords$0 = $R$0($EXPECT($R0, fail, "AdditionalReservedWords /(of)(?!\\p{ID_Continue})/"));
1209
1214
  function AdditionalReservedWords(state) {
1210
1215
  if (state.verbose)
1211
1216
  console.log("ENTER:", "AdditionalReservedWords");
@@ -1486,7 +1491,7 @@ var require_parser = __commonJS({
1486
1491
  return Identifier$0(state);
1487
1492
  }
1488
1493
  }
1489
- var IdentifierName$0 = $R$0($EXPECT($R2, fail, "IdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
1494
+ var IdentifierName$0 = $R$0($EXPECT($R1, fail, "IdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
1490
1495
  function IdentifierName(state) {
1491
1496
  if (state.verbose)
1492
1497
  console.log("ENTER:", "IdentifierName");
@@ -1530,7 +1535,7 @@ var require_parser = __commonJS({
1530
1535
  return NestedElementList$0(state);
1531
1536
  }
1532
1537
  }
1533
- var NestedElement$0 = $S(Nested, ArrayElementExpression, ArrayElementDelimiter);
1538
+ var NestedElement$0 = $S(Nested, InlineElementList, ArrayElementDelimiter);
1534
1539
  function NestedElement(state) {
1535
1540
  if (state.verbose)
1536
1541
  console.log("ENTER:", "NestedElement");
@@ -1565,6 +1570,16 @@ var require_parser = __commonJS({
1565
1570
  return ElementList$0(state);
1566
1571
  }
1567
1572
  }
1573
+ var InlineElementList$0 = $S(ArrayElementExpression, $Q($S($Q(_), $EXPECT($L0, fail, 'InlineElementList ","'), $Q(_), ArrayElementExpression)));
1574
+ function InlineElementList(state) {
1575
+ if (state.verbose)
1576
+ console.log("ENTER:", "InlineElementList");
1577
+ if (state.tokenize) {
1578
+ return $TOKEN("InlineElementList", state, InlineElementList$0(state));
1579
+ } else {
1580
+ return InlineElementList$0(state);
1581
+ }
1582
+ }
1568
1583
  var ArrayElementExpression$0 = $E($S($E($S($EXPECT($L31, fail, 'ArrayElementExpression "..."'), __)), AssignmentExpression));
1569
1584
  function ArrayElementExpression(state) {
1570
1585
  if (state.verbose)
@@ -1668,8 +1683,8 @@ var require_parser = __commonJS({
1668
1683
  return PropertyName$0(state) || PropertyName$1(state) || PropertyName$2(state) || PropertyName$3(state);
1669
1684
  }
1670
1685
  }
1671
- var MethodDefinition$0 = $S($EXPECT($L38, fail, 'MethodDefinition "get"'), $N($R$0($EXPECT($R3, fail, "MethodDefinition /\\p{ID_Continue}/"))), $Q(TrailingComment), ClassElementName, __, Parameters, BracedBlock);
1672
- var MethodDefinition$1 = $S($EXPECT($L39, fail, 'MethodDefinition "set"'), $N($R$0($EXPECT($R3, fail, "MethodDefinition /\\p{ID_Continue}/"))), $Q(TrailingComment), ClassElementName, __, Parameters, BracedBlock);
1686
+ var MethodDefinition$0 = $S($EXPECT($L38, fail, 'MethodDefinition "get"'), NonIdContinue, $Q(TrailingComment), ClassElementName, __, Parameters, BracedBlock);
1687
+ var MethodDefinition$1 = $S($EXPECT($L39, fail, 'MethodDefinition "set"'), NonIdContinue, $Q(TrailingComment), ClassElementName, __, Parameters, BracedBlock);
1673
1688
  var MethodDefinition$2 = AsyncGeneratorMethod;
1674
1689
  var MethodDefinition$3 = AsyncMethod;
1675
1690
  var MethodDefinition$4 = GeneratorMethod;
@@ -1802,7 +1817,7 @@ var require_parser = __commonJS({
1802
1817
  return "!==";
1803
1818
  return $1;
1804
1819
  });
1805
- var BinaryOp$15 = $T($EXPECT($L69, fail, 'BinaryOp "is"'), function(value) {
1820
+ var BinaryOp$15 = $T($S($EXPECT($L69, fail, 'BinaryOp "is"'), NonIdContinue), function(value) {
1806
1821
  return "===";
1807
1822
  });
1808
1823
  var BinaryOp$16 = $EXPECT($L70, fail, 'BinaryOp "==="');
@@ -1811,17 +1826,17 @@ var require_parser = __commonJS({
1811
1826
  return "===";
1812
1827
  return $1;
1813
1828
  });
1814
- var BinaryOp$18 = $T($EXPECT($L72, fail, 'BinaryOp "and"'), function(value) {
1829
+ var BinaryOp$18 = $T($S($EXPECT($L72, fail, 'BinaryOp "and"'), NonIdContinue), function(value) {
1815
1830
  return "&&";
1816
1831
  });
1817
1832
  var BinaryOp$19 = $EXPECT($L73, fail, 'BinaryOp "&&"');
1818
- var BinaryOp$20 = $T($EXPECT($L74, fail, 'BinaryOp "or"'), function(value) {
1833
+ var BinaryOp$20 = $T($S($EXPECT($L74, fail, 'BinaryOp "or"'), NonIdContinue), function(value) {
1819
1834
  return "||";
1820
1835
  });
1821
1836
  var BinaryOp$21 = $EXPECT($L75, fail, 'BinaryOp "||"');
1822
1837
  var BinaryOp$22 = $EXPECT($L76, fail, 'BinaryOp "??"');
1823
- var BinaryOp$23 = $EXPECT($L77, fail, 'BinaryOp "instanceof"');
1824
- var BinaryOp$24 = $EXPECT($L78, fail, 'BinaryOp "in"');
1838
+ var BinaryOp$23 = $S($EXPECT($L77, fail, 'BinaryOp "instanceof"'), NonIdContinue);
1839
+ var BinaryOp$24 = $S($EXPECT($L78, fail, 'BinaryOp "in"'), NonIdContinue);
1825
1840
  var BinaryOp$25 = $EXPECT($L79, fail, 'BinaryOp "&"');
1826
1841
  var BinaryOp$26 = $EXPECT($L80, fail, 'BinaryOp "^"');
1827
1842
  var BinaryOp$27 = $EXPECT($L81, fail, 'BinaryOp "|"');
@@ -1832,8 +1847,8 @@ var require_parser = __commonJS({
1832
1847
  return BinaryOp$0(state) || BinaryOp$1(state) || BinaryOp$2(state) || BinaryOp$3(state) || BinaryOp$4(state) || BinaryOp$5(state) || BinaryOp$6(state) || BinaryOp$7(state) || BinaryOp$8(state) || BinaryOp$9(state) || BinaryOp$10(state) || BinaryOp$11(state) || BinaryOp$12(state) || BinaryOp$13(state) || BinaryOp$14(state) || BinaryOp$15(state) || BinaryOp$16(state) || BinaryOp$17(state) || BinaryOp$18(state) || BinaryOp$19(state) || BinaryOp$20(state) || BinaryOp$21(state) || BinaryOp$22(state) || BinaryOp$23(state) || BinaryOp$24(state) || BinaryOp$25(state) || BinaryOp$26(state) || BinaryOp$27(state);
1833
1848
  }
1834
1849
  }
1835
- var UnaryOp$0 = $R$0($EXPECT($R4, fail, "UnaryOp /[!~+-]/"));
1836
- var UnaryOp$1 = $S($C($EXPECT($L82, fail, 'UnaryOp "delete"'), $EXPECT($L83, fail, 'UnaryOp "void"'), $EXPECT($L84, fail, 'UnaryOp "typeof"')), $P(_));
1850
+ var UnaryOp$0 = $R$0($EXPECT($R2, fail, "UnaryOp /[!~+-]/"));
1851
+ var UnaryOp$1 = $S($C($EXPECT($L82, fail, 'UnaryOp "delete"'), $EXPECT($L83, fail, 'UnaryOp "void"'), $EXPECT($L84, fail, 'UnaryOp "typeof"')), NonIdContinue, __);
1837
1852
  function UnaryOp(state) {
1838
1853
  if (state.tokenize) {
1839
1854
  return $TOKEN("UnaryOp", state, UnaryOp$0(state) || UnaryOp$1(state));
@@ -2381,7 +2396,7 @@ var require_parser = __commonJS({
2381
2396
  return NumericLiteral$0(state) || NumericLiteral$1(state) || NumericLiteral$2(state) || NumericLiteral$3(state) || NumericLiteral$4(state);
2382
2397
  }
2383
2398
  }
2384
- var DecimalBigIntegerLiteral$0 = $R$0($EXPECT($R5, fail, "DecimalBigIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)n/"));
2399
+ var DecimalBigIntegerLiteral$0 = $R$0($EXPECT($R3, fail, "DecimalBigIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)n/"));
2385
2400
  function DecimalBigIntegerLiteral(state) {
2386
2401
  if (state.verbose)
2387
2402
  console.log("ENTER:", "DecimalBigIntegerLiteral");
@@ -2391,7 +2406,7 @@ var require_parser = __commonJS({
2391
2406
  return DecimalBigIntegerLiteral$0(state);
2392
2407
  }
2393
2408
  }
2394
- var DecimalLiteral$0 = $R$0($EXPECT($R6, fail, "DecimalLiteral /\\d+(?:\\.\\d*)?/"));
2409
+ var DecimalLiteral$0 = $R$0($EXPECT($R4, fail, "DecimalLiteral /\\d+(?:\\.\\d*)?/"));
2395
2410
  function DecimalLiteral(state) {
2396
2411
  if (state.verbose)
2397
2412
  console.log("ENTER:", "DecimalLiteral");
@@ -2401,7 +2416,7 @@ var require_parser = __commonJS({
2401
2416
  return DecimalLiteral$0(state);
2402
2417
  }
2403
2418
  }
2404
- var BinaryIntegerLiteral$0 = $R$0($EXPECT($R7, fail, "BinaryIntegerLiteral /0[bB][01](?:[01]|_[01])*/"));
2419
+ var BinaryIntegerLiteral$0 = $R$0($EXPECT($R5, fail, "BinaryIntegerLiteral /0[bB][01](?:[01]|_[01])*/"));
2405
2420
  function BinaryIntegerLiteral(state) {
2406
2421
  if (state.verbose)
2407
2422
  console.log("ENTER:", "BinaryIntegerLiteral");
@@ -2411,7 +2426,7 @@ var require_parser = __commonJS({
2411
2426
  return BinaryIntegerLiteral$0(state);
2412
2427
  }
2413
2428
  }
2414
- var OctalIntegerLiteral$0 = $R$0($EXPECT($R8, fail, "OctalIntegerLiteral /0[oO][0-7](?:[0-7]|_[0-7])*/"));
2429
+ var OctalIntegerLiteral$0 = $R$0($EXPECT($R6, fail, "OctalIntegerLiteral /0[oO][0-7](?:[0-7]|_[0-7])*/"));
2415
2430
  function OctalIntegerLiteral(state) {
2416
2431
  if (state.verbose)
2417
2432
  console.log("ENTER:", "OctalIntegerLiteral");
@@ -2421,7 +2436,7 @@ var require_parser = __commonJS({
2421
2436
  return OctalIntegerLiteral$0(state);
2422
2437
  }
2423
2438
  }
2424
- var HexLiteral$0 = $R$0($EXPECT($R9, fail, "HexLiteral /0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*/"));
2439
+ var HexLiteral$0 = $R$0($EXPECT($R7, fail, "HexLiteral /0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*/"));
2425
2440
  function HexLiteral(state) {
2426
2441
  if (state.verbose)
2427
2442
  console.log("ENTER:", "HexLiteral");
@@ -2443,7 +2458,7 @@ var require_parser = __commonJS({
2443
2458
  return StringLiteral$0(state) || StringLiteral$1(state) || StringLiteral$2(state);
2444
2459
  }
2445
2460
  }
2446
- var DoubleStringCharacter$0 = $R$0($EXPECT($R10, fail, 'DoubleStringCharacter /[^"\\\\]+/'));
2461
+ var DoubleStringCharacter$0 = $R$0($EXPECT($R8, fail, 'DoubleStringCharacter /[^"\\\\]+/'));
2447
2462
  var DoubleStringCharacter$1 = EscapeSequence;
2448
2463
  function DoubleStringCharacter(state) {
2449
2464
  if (state.tokenize) {
@@ -2452,7 +2467,7 @@ var require_parser = __commonJS({
2452
2467
  return DoubleStringCharacter$0(state) || DoubleStringCharacter$1(state);
2453
2468
  }
2454
2469
  }
2455
- var SingleStringCharacter$0 = $R$0($EXPECT($R11, fail, "SingleStringCharacter /[^'\\\\]+/"));
2470
+ var SingleStringCharacter$0 = $R$0($EXPECT($R9, fail, "SingleStringCharacter /[^'\\\\]+/"));
2456
2471
  var SingleStringCharacter$1 = EscapeSequence;
2457
2472
  function SingleStringCharacter(state) {
2458
2473
  if (state.tokenize) {
@@ -2461,7 +2476,7 @@ var require_parser = __commonJS({
2461
2476
  return SingleStringCharacter$0(state) || SingleStringCharacter$1(state);
2462
2477
  }
2463
2478
  }
2464
- var TripleDoubleStringCharacter$0 = $R$0($EXPECT($R12, fail, 'TripleDoubleStringCharacter /(?:"(?!"")|\\\\.|[^"])+/'));
2479
+ var TripleDoubleStringCharacter$0 = $R$0($EXPECT($R10, fail, 'TripleDoubleStringCharacter /(?:"(?!"")|\\\\.|[^"])+/'));
2465
2480
  function TripleDoubleStringCharacter(state) {
2466
2481
  if (state.verbose)
2467
2482
  console.log("ENTER:", "TripleDoubleStringCharacter");
@@ -2471,7 +2486,7 @@ var require_parser = __commonJS({
2471
2486
  return TripleDoubleStringCharacter$0(state);
2472
2487
  }
2473
2488
  }
2474
- var EscapeSequence$0 = $TEXT($S($EXPECT($L117, fail, 'EscapeSequence "\\\\\\\\"'), $EXPECT($R13, fail, "EscapeSequence /./")));
2489
+ var EscapeSequence$0 = $TEXT($S($EXPECT($L117, fail, 'EscapeSequence "\\\\\\\\"'), $EXPECT($R11, fail, "EscapeSequence /./")));
2475
2490
  function EscapeSequence(state) {
2476
2491
  if (state.verbose)
2477
2492
  console.log("ENTER:", "EscapeSequence");
@@ -2491,7 +2506,7 @@ var require_parser = __commonJS({
2491
2506
  return RegularExpressionLiteral$0(state);
2492
2507
  }
2493
2508
  }
2494
- var RegularExpressionBody$0 = $S($R$0($EXPECT($R14, fail, "RegularExpressionBody /[^*\\/\\r\\n]/")), $Q(RegExpCharacter));
2509
+ var RegularExpressionBody$0 = $S($R$0($EXPECT($R12, fail, "RegularExpressionBody /[^*\\/\\r\\n]/")), $Q(RegExpCharacter));
2495
2510
  function RegularExpressionBody(state) {
2496
2511
  if (state.verbose)
2497
2512
  console.log("ENTER:", "RegularExpressionBody");
@@ -2501,7 +2516,7 @@ var require_parser = __commonJS({
2501
2516
  return RegularExpressionBody$0(state);
2502
2517
  }
2503
2518
  }
2504
- var RegExpCharacter$0 = $R$0($EXPECT($R15, fail, "RegExpCharacter /[^\\/\\r\\n]+/"));
2519
+ var RegExpCharacter$0 = $R$0($EXPECT($R13, fail, "RegExpCharacter /[^\\/\\r\\n]+/"));
2505
2520
  var RegExpCharacter$1 = EscapeSequence;
2506
2521
  function RegExpCharacter(state) {
2507
2522
  if (state.tokenize) {
@@ -2510,7 +2525,7 @@ var require_parser = __commonJS({
2510
2525
  return RegExpCharacter$0(state) || RegExpCharacter$1(state);
2511
2526
  }
2512
2527
  }
2513
- var RegularExpressionFlags$0 = $R$0($EXPECT($R16, fail, "RegularExpressionFlags /(:?\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
2528
+ var RegularExpressionFlags$0 = $R$0($EXPECT($R14, fail, "RegularExpressionFlags /(:?\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
2514
2529
  function RegularExpressionFlags(state) {
2515
2530
  if (state.verbose)
2516
2531
  console.log("ENTER:", "RegularExpressionFlags");
@@ -2540,7 +2555,7 @@ var require_parser = __commonJS({
2540
2555
  return TemplateSubstitution$0(state);
2541
2556
  }
2542
2557
  }
2543
- var TemplateCharacters$0 = $R$0($EXPECT($R17, fail, "TemplateCharacters /(?:\\$(?!\\{)|\\\\.|[^$`])+/"));
2558
+ var TemplateCharacters$0 = $R$0($EXPECT($R15, fail, "TemplateCharacters /(?:\\$(?!\\{)|\\\\.|[^$`])+/"));
2544
2559
  function TemplateCharacters(state) {
2545
2560
  if (state.verbose)
2546
2561
  console.log("ENTER:", "TemplateCharacters");
@@ -2550,7 +2565,7 @@ var require_parser = __commonJS({
2550
2565
  return TemplateCharacters$0(state);
2551
2566
  }
2552
2567
  }
2553
- var ReservedWord$0 = $R$0($EXPECT($R18, fail, "ReservedWord /(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|new|null|or|return|super|switch|this|throw|true|try|typeof|unless|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
2568
+ var ReservedWord$0 = $R$0($EXPECT($R16, fail, "ReservedWord /(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|new|null|or|return|super|switch|this|throw|true|try|typeof|unless|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
2554
2569
  function ReservedWord(state) {
2555
2570
  if (state.verbose)
2556
2571
  console.log("ENTER:", "ReservedWord");
@@ -2569,7 +2584,7 @@ var require_parser = __commonJS({
2569
2584
  return Comment$0(state) || Comment$1(state);
2570
2585
  }
2571
2586
  }
2572
- var SingleLineComment$0 = $R$0($EXPECT($R19, fail, "SingleLineComment /\\/\\/[^\\r\\n]*/"));
2587
+ var SingleLineComment$0 = $R$0($EXPECT($R17, fail, "SingleLineComment /\\/\\/[^\\r\\n]*/"));
2573
2588
  var SingleLineComment$1 = CoffeeSingleLineComment;
2574
2589
  function SingleLineComment(state) {
2575
2590
  if (state.tokenize) {
@@ -2587,7 +2602,7 @@ var require_parser = __commonJS({
2587
2602
  return MultiLineComment$0(state) || MultiLineComment$1(state);
2588
2603
  }
2589
2604
  }
2590
- var JSMultiLineComment$0 = $S($EXPECT($L120, fail, 'JSMultiLineComment "/*"'), $TEXT($Q($S($N($EXPECT($L121, fail, 'JSMultiLineComment "*/"')), $EXPECT($R13, fail, "JSMultiLineComment /./")))), $EXPECT($L121, fail, 'JSMultiLineComment "*/"'));
2605
+ var JSMultiLineComment$0 = $S($EXPECT($L120, fail, 'JSMultiLineComment "/*"'), $TEXT($Q($S($N($EXPECT($L121, fail, 'JSMultiLineComment "*/"')), $EXPECT($R11, fail, "JSMultiLineComment /./")))), $EXPECT($L121, fail, 'JSMultiLineComment "*/"'));
2591
2606
  function JSMultiLineComment(state) {
2592
2607
  if (state.verbose)
2593
2608
  console.log("ENTER:", "JSMultiLineComment");
@@ -2597,7 +2612,7 @@ var require_parser = __commonJS({
2597
2612
  return JSMultiLineComment$0(state);
2598
2613
  }
2599
2614
  }
2600
- var CoffeeSingleLineComment$0 = $TR($EXPECT($R20, fail, "CoffeeSingleLineComment /#([^\\r\\n]*)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
2615
+ var CoffeeSingleLineComment$0 = $TR($EXPECT($R18, fail, "CoffeeSingleLineComment /#([^\\r\\n]*)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
2601
2616
  if (!global.coffeeCompat)
2602
2617
  return $skip;
2603
2618
  return ["//", $1];
@@ -2611,7 +2626,7 @@ var require_parser = __commonJS({
2611
2626
  return CoffeeSingleLineComment$0(state);
2612
2627
  }
2613
2628
  }
2614
- var CoffeeMultiLineComment$0 = $T($S($EXPECT($L122, fail, 'CoffeeMultiLineComment "###"'), $TEXT($Q($S($N($EXPECT($L122, fail, 'CoffeeMultiLineComment "###"')), $EXPECT($R13, fail, "CoffeeMultiLineComment /./")))), $EXPECT($L122, fail, 'CoffeeMultiLineComment "###"')), function(value) {
2629
+ var CoffeeMultiLineComment$0 = $T($S($EXPECT($L122, fail, 'CoffeeMultiLineComment "###"'), $TEXT($Q($S($N($EXPECT($L122, fail, 'CoffeeMultiLineComment "###"')), $EXPECT($R11, fail, "CoffeeMultiLineComment /./")))), $EXPECT($L122, fail, 'CoffeeMultiLineComment "###"')), function(value) {
2615
2630
  return ["/*", value[1], "*/"];
2616
2631
  });
2617
2632
  function CoffeeMultiLineComment(state) {
@@ -2623,7 +2638,7 @@ var require_parser = __commonJS({
2623
2638
  return CoffeeMultiLineComment$0(state);
2624
2639
  }
2625
2640
  }
2626
- var InlineComment$0 = $S($EXPECT($L120, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L121, fail, 'InlineComment "*/"')), $EXPECT($R21, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L121, fail, 'InlineComment "*/"'));
2641
+ var InlineComment$0 = $S($EXPECT($L120, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L121, fail, 'InlineComment "*/"')), $EXPECT($R19, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L121, fail, 'InlineComment "*/"'));
2627
2642
  function InlineComment(state) {
2628
2643
  if (state.verbose)
2629
2644
  console.log("ENTER:", "InlineComment");
@@ -2643,7 +2658,7 @@ var require_parser = __commonJS({
2643
2658
  return RestOfLine$0(state);
2644
2659
  }
2645
2660
  }
2646
- var TrailingComment$0 = $R$0($EXPECT($R22, fail, "TrailingComment /[\\t ]+/"));
2661
+ var TrailingComment$0 = $R$0($EXPECT($R20, fail, "TrailingComment /[\\t ]+/"));
2647
2662
  var TrailingComment$1 = InlineComment;
2648
2663
  var TrailingComment$2 = SingleLineComment;
2649
2664
  function TrailingComment(state) {
@@ -2653,7 +2668,7 @@ var require_parser = __commonJS({
2653
2668
  return TrailingComment$0(state) || TrailingComment$1(state) || TrailingComment$2(state);
2654
2669
  }
2655
2670
  }
2656
- var _$0 = $P($C($R$0($EXPECT($R22, fail, "_ /[\\t ]+/")), Comment));
2671
+ var _$0 = $P($C($R$0($EXPECT($R20, fail, "_ /[\\t ]+/")), Comment));
2657
2672
  function _(state) {
2658
2673
  if (state.verbose)
2659
2674
  console.log("ENTER:", "_");
@@ -2663,7 +2678,7 @@ var require_parser = __commonJS({
2663
2678
  return _$0(state);
2664
2679
  }
2665
2680
  }
2666
- var __$0 = $Q($C($R$0($EXPECT($R23, fail, "__ /[\\s]+/")), Comment));
2681
+ var __$0 = $Q($C($R$0($EXPECT($R21, fail, "__ /[\\s]+/")), Comment));
2667
2682
  function __(state) {
2668
2683
  if (state.verbose)
2669
2684
  console.log("ENTER:", "__");
@@ -2684,6 +2699,16 @@ var require_parser = __commonJS({
2684
2699
  return StatementDelimiter$0(state) || StatementDelimiter$1(state);
2685
2700
  }
2686
2701
  }
2702
+ var NonIdContinue$0 = $R$0($EXPECT($R22, fail, "NonIdContinue /(?!\\p{ID_Continue})/"));
2703
+ function NonIdContinue(state) {
2704
+ if (state.verbose)
2705
+ console.log("ENTER:", "NonIdContinue");
2706
+ if (state.tokenize) {
2707
+ return $TOKEN("NonIdContinue", state, NonIdContinue$0(state));
2708
+ } else {
2709
+ return NonIdContinue$0(state);
2710
+ }
2711
+ }
2687
2712
  var JSXElement$0 = JSXSelfClosingElement;
2688
2713
  var JSXElement$1 = $TS($S(JSXOpeningElement, $Q(JSXChildren), __, JSXClosingElement), function($skip, $loc, $0, $1, $2, $3, $4) {
2689
2714
  if ($1[1] !== $4[2]) {
@@ -2748,7 +2773,7 @@ var require_parser = __commonJS({
2748
2773
  return JSXElementName$0(state);
2749
2774
  }
2750
2775
  }
2751
- var JSXIdentifierName$0 = $R$0($EXPECT($R24, fail, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
2776
+ var JSXIdentifierName$0 = $R$0($EXPECT($R23, fail, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
2752
2777
  function JSXIdentifierName(state) {
2753
2778
  if (state.verbose)
2754
2779
  console.log("ENTER:", "JSXIdentifierName");
@@ -2797,8 +2822,8 @@ var require_parser = __commonJS({
2797
2822
  return JSXAttributeInitializer$0(state);
2798
2823
  }
2799
2824
  }
2800
- var JSXAttributeValue$0 = $R$0($EXPECT($R25, fail, 'JSXAttributeValue /"[^"]*"/'));
2801
- var JSXAttributeValue$1 = $R$0($EXPECT($R26, fail, "JSXAttributeValue /'[^']*'/"));
2825
+ var JSXAttributeValue$0 = $R$0($EXPECT($R24, fail, 'JSXAttributeValue /"[^"]*"/'));
2826
+ var JSXAttributeValue$1 = $R$0($EXPECT($R25, fail, "JSXAttributeValue /'[^']*'/"));
2802
2827
  var JSXAttributeValue$2 = $S($EXPECT($L11, fail, 'JSXAttributeValue "{"'), __, AssignmentExpression, __, $EXPECT($L16, fail, 'JSXAttributeValue "}"'));
2803
2828
  var JSXAttributeValue$3 = JSXElement;
2804
2829
  var JSXAttributeValue$4 = JSXFragment;
@@ -2830,7 +2855,7 @@ var require_parser = __commonJS({
2830
2855
  return JSXChild$0(state) || JSXChild$1(state) || JSXChild$2(state) || JSXChild$3(state);
2831
2856
  }
2832
2857
  }
2833
- var JSXText$0 = $R$0($EXPECT($R27, fail, "JSXText /[^{}<>]+/"));
2858
+ var JSXText$0 = $R$0($EXPECT($R26, fail, "JSXText /[^{}<>]+/"));
2834
2859
  function JSXText(state) {
2835
2860
  if (state.verbose)
2836
2861
  console.log("ENTER:", "JSXText");
@@ -2850,10 +2875,10 @@ var require_parser = __commonJS({
2850
2875
  return JSXChildExpression$0(state);
2851
2876
  }
2852
2877
  }
2853
- var TypeDeclaration$0 = $T($S($EXPECT($R28, fail, "TypeDeclaration /type(?!\\p{ID_Continue})/"), $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, $EXPECT($L55, fail, 'TypeDeclaration "="'), __, Type), function(value) {
2878
+ var TypeDeclaration$0 = $T($S($EXPECT($R27, fail, "TypeDeclaration /type(?!\\p{ID_Continue})/"), $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, $EXPECT($L55, fail, 'TypeDeclaration "="'), __, Type), function(value) {
2854
2879
  return { "ts": true, "children": value };
2855
2880
  });
2856
- var TypeDeclaration$1 = $T($S($EXPECT($R29, fail, "TypeDeclaration /interface(?!\\p{ID_Continue})/"), $Q(TrailingComment), IdentifierName, InterfaceBlock), function(value) {
2881
+ var TypeDeclaration$1 = $T($S($EXPECT($R28, fail, "TypeDeclaration /interface(?!\\p{ID_Continue})/"), $Q(TrailingComment), IdentifierName, InterfaceBlock), function(value) {
2857
2882
  return { "ts": true, "children": value };
2858
2883
  });
2859
2884
  function TypeDeclaration(state) {
@@ -2923,13 +2948,23 @@ var require_parser = __commonJS({
2923
2948
  return InterfacePropertyDelimiter$0(state) || InterfacePropertyDelimiter$1(state) || InterfacePropertyDelimiter$2(state) || InterfacePropertyDelimiter$3(state);
2924
2949
  }
2925
2950
  }
2926
- var TypeIndexSignature$0 = $S($EXPECT($L24, fail, 'TypeIndexSignature "["'), __, Identifier, TypeSuffix, $EXPECT($L25, fail, 'TypeIndexSignature "]"'));
2927
- var TypeIndexSignature$1 = $S($EXPECT($L24, fail, 'TypeIndexSignature "["'), __, PropertyName, __, $EXPECT($L78, fail, 'TypeIndexSignature "in"'), Type, $EXPECT($L25, fail, 'TypeIndexSignature "]"'));
2951
+ var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R29, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L127, fail, 'TypeIndexSignature "readonly"'), __)), $EXPECT($L24, fail, 'TypeIndexSignature "["'), TypeIndex, $EXPECT($L25, fail, 'TypeIndexSignature "]"'), $E($S(__, $R$0($EXPECT($R30, fail, "TypeIndexSignature /[+-]/")), $EXPECT($L3, fail, 'TypeIndexSignature "?"'))));
2928
2952
  function TypeIndexSignature(state) {
2953
+ if (state.verbose)
2954
+ console.log("ENTER:", "TypeIndexSignature");
2955
+ if (state.tokenize) {
2956
+ return $TOKEN("TypeIndexSignature", state, TypeIndexSignature$0(state));
2957
+ } else {
2958
+ return TypeIndexSignature$0(state);
2959
+ }
2960
+ }
2961
+ var TypeIndex$0 = $S(__, Identifier, TypeSuffix);
2962
+ var TypeIndex$1 = $S(__, PropertyName, __, $EXPECT($L78, fail, 'TypeIndex "in"'), Type, $E($S(__, $EXPECT($L4, fail, 'TypeIndex "as"'), Type)));
2963
+ function TypeIndex(state) {
2929
2964
  if (state.tokenize) {
2930
- return $TOKEN("TypeIndexSignature", state, TypeIndexSignature$0(state) || TypeIndexSignature$1(state));
2965
+ return $TOKEN("TypeIndex", state, TypeIndex$0(state) || TypeIndex$1(state));
2931
2966
  } else {
2932
- return TypeIndexSignature$0(state) || TypeIndexSignature$1(state);
2967
+ return TypeIndex$0(state) || TypeIndex$1(state);
2933
2968
  }
2934
2969
  }
2935
2970
  var TypeSuffix$0 = $T($S($E($EXPECT($L3, fail, 'TypeSuffix "?"')), __, $EXPECT($L12, fail, 'TypeSuffix ":"'), Type), function(value) {
@@ -2944,7 +2979,7 @@ var require_parser = __commonJS({
2944
2979
  return TypeSuffix$0(state);
2945
2980
  }
2946
2981
  }
2947
- var ReturnTypeSuffix$0 = $T($S(__, $EXPECT($L12, fail, 'ReturnTypeSuffix ":"'), $E($S(__, $EXPECT($L127, fail, 'ReturnTypeSuffix "asserts"'), $EXPECT($R0, fail, "ReturnTypeSuffix /(?!\\p{ID_Continue})/"))), TypePredicate), function(value) {
2982
+ var ReturnTypeSuffix$0 = $T($S(__, $EXPECT($L12, fail, 'ReturnTypeSuffix ":"'), $E($S(__, $EXPECT($L128, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function(value) {
2948
2983
  return { "ts": true, "children": value };
2949
2984
  });
2950
2985
  function ReturnTypeSuffix(state) {
@@ -2956,7 +2991,7 @@ var require_parser = __commonJS({
2956
2991
  return ReturnTypeSuffix$0(state);
2957
2992
  }
2958
2993
  }
2959
- var TypePredicate$0 = $S(Type, $E($S(__, $EXPECT($L69, fail, 'TypePredicate "is"'), $R$0($EXPECT($R0, fail, "TypePredicate /(?!\\p{ID_Continue})/")), Type)));
2994
+ var TypePredicate$0 = $S(Type, $E($S(__, $EXPECT($L69, fail, 'TypePredicate "is"'), NonIdContinue, Type)));
2960
2995
  function TypePredicate(state) {
2961
2996
  if (state.verbose)
2962
2997
  console.log("ENTER:", "TypePredicate");
@@ -2986,7 +3021,7 @@ var require_parser = __commonJS({
2986
3021
  return TypeBinary$0(state);
2987
3022
  }
2988
3023
  }
2989
- var TypeUnary$0 = $S($Q($S(__, TypeUnaryOp, $R$0($EXPECT($R0, fail, "TypeUnary /(?!\\p{ID_Continue})/")))), TypePrimary, $Q(TypeUnarySuffix));
3024
+ var TypeUnary$0 = $S($Q($S(__, TypeUnaryOp, NonIdContinue)), TypePrimary, $Q(TypeUnarySuffix));
2990
3025
  function TypeUnary(state) {
2991
3026
  if (state.verbose)
2992
3027
  console.log("ENTER:", "TypeUnary");
@@ -3006,9 +3041,9 @@ var require_parser = __commonJS({
3006
3041
  return TypeUnarySuffix$0(state);
3007
3042
  }
3008
3043
  }
3009
- var TypeUnaryOp$0 = $EXPECT($L128, fail, 'TypeUnaryOp "keyof"');
3044
+ var TypeUnaryOp$0 = $EXPECT($L129, fail, 'TypeUnaryOp "keyof"');
3010
3045
  var TypeUnaryOp$1 = $EXPECT($L84, fail, 'TypeUnaryOp "typeof"');
3011
- var TypeUnaryOp$2 = $EXPECT($L129, fail, 'TypeUnaryOp "infer"');
3046
+ var TypeUnaryOp$2 = $EXPECT($L130, fail, 'TypeUnaryOp "infer"');
3012
3047
  function TypeUnaryOp(state) {
3013
3048
  if (state.tokenize) {
3014
3049
  return $TOKEN("TypeUnaryOp", state, TypeUnaryOp$0(state) || TypeUnaryOp$1(state) || TypeUnaryOp$2(state));
@@ -3038,7 +3073,7 @@ var require_parser = __commonJS({
3038
3073
  return TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state);
3039
3074
  }
3040
3075
  }
3041
- var TypeConditional$0 = $S(TypeBinary, $E($S(__, $EXPECT($L15, fail, 'TypeConditional "extends"'), Type, __, $EXPECT($L3, fail, 'TypeConditional "?"'), Type, __, $EXPECT($L12, fail, 'TypeConditional ":"'), Type)));
3076
+ var TypeConditional$0 = $S(TypeBinary, $E($S(__, $EXPECT($L15, fail, 'TypeConditional "extends"'), Type, $E($S(__, $EXPECT($L3, fail, 'TypeConditional "?"'), Type, __, $EXPECT($L12, fail, 'TypeConditional ":"'), Type)))));
3042
3077
  function TypeConditional(state) {
3043
3078
  if (state.verbose)
3044
3079
  console.log("ENTER:", "TypeConditional");
@@ -3050,7 +3085,7 @@ var require_parser = __commonJS({
3050
3085
  }
3051
3086
  var TypeLiteral$0 = Literal;
3052
3087
  var TypeLiteral$1 = $EXPECT($L83, fail, 'TypeLiteral "void"');
3053
- var TypeLiteral$2 = $EXPECT($L130, fail, 'TypeLiteral "[]"');
3088
+ var TypeLiteral$2 = $EXPECT($L131, fail, 'TypeLiteral "[]"');
3054
3089
  function TypeLiteral(state) {
3055
3090
  if (state.tokenize) {
3056
3091
  return $TOKEN("TypeLiteral", state, TypeLiteral$0(state) || TypeLiteral$1(state) || TypeLiteral$2(state));
@@ -3132,7 +3167,7 @@ var require_parser = __commonJS({
3132
3167
  return TypeParameterDelimiter$0(state) || TypeParameterDelimiter$1(state) || TypeParameterDelimiter$2(state) || TypeParameterDelimiter$3(state);
3133
3168
  }
3134
3169
  }
3135
- var Shebang$0 = $R$0($EXPECT($R30, fail, "Shebang /#![^\\r\\n]*/"));
3170
+ var Shebang$0 = $R$0($EXPECT($R31, fail, "Shebang /#![^\\r\\n]*/"));
3136
3171
  function Shebang(state) {
3137
3172
  if (state.verbose)
3138
3173
  console.log("ENTER:", "Shebang");
@@ -3142,7 +3177,7 @@ var require_parser = __commonJS({
3142
3177
  return Shebang$0(state);
3143
3178
  }
3144
3179
  }
3145
- var DirectivePrologue$0 = $TV($Q($S($TEXT($EXPECT($R31, fail, "DirectivePrologue /[\\t ]*/")), $TEXT(StringLiteral), $TEXT(StatementDelimiter), $TEXT(EOS))), function($skip, $loc, $0, $1) {
3180
+ var DirectivePrologue$0 = $TV($Q($S($TEXT($EXPECT($R32, fail, "DirectivePrologue /[\\t ]*/")), $TEXT(StringLiteral), $TEXT(StatementDelimiter), $TEXT(EOS))), function($skip, $loc, $0, $1) {
3146
3181
  return $0.map((p) => p.join(""));
3147
3182
  });
3148
3183
  function DirectivePrologue(state) {
@@ -3164,7 +3199,7 @@ var require_parser = __commonJS({
3164
3199
  return EOS$0(state);
3165
3200
  }
3166
3201
  }
3167
- var EOL$0 = $R$0($EXPECT($R32, fail, "EOL /\\r\\n|\\n|\\r|$/"));
3202
+ var EOL$0 = $R$0($EXPECT($R33, fail, "EOL /\\r\\n|\\n|\\r|$/"));
3168
3203
  function EOL(state) {
3169
3204
  if (state.verbose)
3170
3205
  console.log("ENTER:", "EOL");
@@ -3174,7 +3209,7 @@ var require_parser = __commonJS({
3174
3209
  return EOL$0(state);
3175
3210
  }
3176
3211
  }
3177
- var EOF$0 = $R$0($EXPECT($R33, fail, "EOF /$/"));
3212
+ var EOF$0 = $R$0($EXPECT($R34, fail, "EOF /$/"));
3178
3213
  function EOF(state) {
3179
3214
  if (state.verbose)
3180
3215
  console.log("ENTER:", "EOF");
@@ -3312,7 +3347,7 @@ var require_parser = __commonJS({
3312
3347
  return Init$0(state);
3313
3348
  }
3314
3349
  }
3315
- var Indent$0 = $TV($Q($C($EXPECT($L131, fail, 'Indent " "'), $EXPECT($L132, fail, 'Indent "\\\\t"'))), function($skip, $loc, $0, $1) {
3350
+ var Indent$0 = $TV($Q($C($EXPECT($L132, fail, 'Indent " "'), $EXPECT($L133, fail, 'Indent "\\\\t"'))), function($skip, $loc, $0, $1) {
3316
3351
  return $1.length;
3317
3352
  });
3318
3353
  function Indent(state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
- "version": "0.2.3",
3
+ "version": "0.2.6",
4
4
  "description": "CoffeeScript style syntax for TypeScript",
5
5
  "main": "dist/main.js",
6
6
  "bin": {
@@ -12,6 +12,7 @@
12
12
  "register.mjs"
13
13
  ],
14
14
  "scripts": {
15
+ "prepublishOnly": "yarn build && yarn test",
15
16
  "build": "bash ./build/build.sh",
16
17
  "test": "mocha"
17
18
  },