@danielx/civet 0.4.35 → 0.4.37

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
@@ -705,6 +705,7 @@ ${input.slice(result.pos)}
705
705
  HoistableDeclaration,
706
706
  LexicalDeclaration,
707
707
  ConstAssignment,
708
+ LetAssignment,
708
709
  LexicalBinding,
709
710
  Initializer,
710
711
  VariableStatement,
@@ -903,6 +904,7 @@ ${input.slice(result.pos)}
903
904
  InsertCloseBrace,
904
905
  InsertComma,
905
906
  InsertConst,
907
+ InsertLet,
906
908
  InsertReadonly,
907
909
  InsertNewline,
908
910
  InsertIndent,
@@ -1018,77 +1020,78 @@ ${input.slice(result.pos)}
1018
1020
  var $L84 = $L("import type");
1019
1021
  var $L85 = $L("default");
1020
1022
  var $L86 = $L(":=");
1021
- var $L87 = $L("/*");
1022
- var $L88 = $L("*/");
1023
- var $L89 = $L("\\");
1024
- var $L90 = $L("as");
1025
- var $L91 = $L("@");
1026
- var $L92 = $L("@@");
1027
- var $L93 = $L("async");
1028
- var $L94 = $L("await");
1029
- var $L95 = $L("`");
1030
- var $L96 = $L("by");
1031
- var $L97 = $L("case");
1032
- var $L98 = $L("catch");
1033
- var $L99 = $L("class");
1034
- var $L100 = $L("#{");
1035
- var $L101 = $L("delete");
1036
- var $L102 = $L("do");
1037
- var $L103 = $L("..");
1038
- var $L104 = $L("...");
1039
- var $L105 = $L("::");
1040
- var $L106 = $L('"');
1041
- var $L107 = $L("else");
1042
- var $L108 = $L("export");
1043
- var $L109 = $L("for");
1044
- var $L110 = $L("from");
1045
- var $L111 = $L("function");
1046
- var $L112 = $L("get");
1047
- var $L113 = $L("set");
1048
- var $L114 = $L("if");
1049
- var $L115 = $L("let");
1050
- var $L116 = $L("const");
1051
- var $L117 = $L("loop");
1052
- var $L118 = $L("new");
1053
- var $L119 = $L("{");
1054
- var $L120 = $L("[");
1055
- var $L121 = $L("(");
1056
- var $L122 = $L("return");
1057
- var $L123 = $L("'");
1058
- var $L124 = $L("static");
1059
- var $L125 = $L("${");
1060
- var $L126 = $L("switch");
1061
- var $L127 = $L("target");
1062
- var $L128 = $L("then");
1063
- var $L129 = $L("this");
1064
- var $L130 = $L("throw");
1065
- var $L131 = $L('"""');
1066
- var $L132 = $L("'''");
1067
- var $L133 = $L("///");
1068
- var $L134 = $L("```");
1069
- var $L135 = $L("try");
1070
- var $L136 = $L("typeof");
1071
- var $L137 = $L("unless");
1072
- var $L138 = $L("until");
1073
- var $L139 = $L("var");
1074
- var $L140 = $L("void");
1075
- var $L141 = $L("when");
1076
- var $L142 = $L("while");
1077
- var $L143 = $L("yield");
1078
- var $L144 = $L("/>");
1079
- var $L145 = $L("</");
1080
- var $L146 = $L("<>");
1081
- var $L147 = $L("</>");
1082
- var $L148 = $L("declare");
1083
- var $L149 = $L("type");
1084
- var $L150 = $L("interface");
1085
- var $L151 = $L("namespace");
1086
- var $L152 = $L("readonly");
1087
- var $L153 = $L("asserts");
1088
- var $L154 = $L("keyof");
1089
- var $L155 = $L("infer");
1090
- var $L156 = $L("[]");
1091
- var $L157 = $L("civet");
1023
+ var $L87 = $L("::=");
1024
+ var $L88 = $L("/*");
1025
+ var $L89 = $L("*/");
1026
+ var $L90 = $L("\\");
1027
+ var $L91 = $L("as");
1028
+ var $L92 = $L("@");
1029
+ var $L93 = $L("@@");
1030
+ var $L94 = $L("async");
1031
+ var $L95 = $L("await");
1032
+ var $L96 = $L("`");
1033
+ var $L97 = $L("by");
1034
+ var $L98 = $L("case");
1035
+ var $L99 = $L("catch");
1036
+ var $L100 = $L("class");
1037
+ var $L101 = $L("#{");
1038
+ var $L102 = $L("delete");
1039
+ var $L103 = $L("do");
1040
+ var $L104 = $L("..");
1041
+ var $L105 = $L("...");
1042
+ var $L106 = $L("::");
1043
+ var $L107 = $L('"');
1044
+ var $L108 = $L("else");
1045
+ var $L109 = $L("export");
1046
+ var $L110 = $L("for");
1047
+ var $L111 = $L("from");
1048
+ var $L112 = $L("function");
1049
+ var $L113 = $L("get");
1050
+ var $L114 = $L("set");
1051
+ var $L115 = $L("if");
1052
+ var $L116 = $L("let");
1053
+ var $L117 = $L("const");
1054
+ var $L118 = $L("loop");
1055
+ var $L119 = $L("new");
1056
+ var $L120 = $L("{");
1057
+ var $L121 = $L("[");
1058
+ var $L122 = $L("(");
1059
+ var $L123 = $L("return");
1060
+ var $L124 = $L("'");
1061
+ var $L125 = $L("static");
1062
+ var $L126 = $L("${");
1063
+ var $L127 = $L("switch");
1064
+ var $L128 = $L("target");
1065
+ var $L129 = $L("then");
1066
+ var $L130 = $L("this");
1067
+ var $L131 = $L("throw");
1068
+ var $L132 = $L('"""');
1069
+ var $L133 = $L("'''");
1070
+ var $L134 = $L("///");
1071
+ var $L135 = $L("```");
1072
+ var $L136 = $L("try");
1073
+ var $L137 = $L("typeof");
1074
+ var $L138 = $L("unless");
1075
+ var $L139 = $L("until");
1076
+ var $L140 = $L("var");
1077
+ var $L141 = $L("void");
1078
+ var $L142 = $L("when");
1079
+ var $L143 = $L("while");
1080
+ var $L144 = $L("yield");
1081
+ var $L145 = $L("/>");
1082
+ var $L146 = $L("</");
1083
+ var $L147 = $L("<>");
1084
+ var $L148 = $L("</>");
1085
+ var $L149 = $L("declare");
1086
+ var $L150 = $L("type");
1087
+ var $L151 = $L("interface");
1088
+ var $L152 = $L("namespace");
1089
+ var $L153 = $L("readonly");
1090
+ var $L154 = $L("asserts");
1091
+ var $L155 = $L("keyof");
1092
+ var $L156 = $L("infer");
1093
+ var $L157 = $L("[]");
1094
+ var $L158 = $L("civet");
1092
1095
  var $R0 = $R(new RegExp("(for|of|then|when)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
1093
1096
  var $R1 = $R(new RegExp("[&]", "suy"));
1094
1097
  var $R2 = $R(new RegExp("[!~+-]+", "suy"));
@@ -7742,6 +7745,30 @@ ${input.slice(result.pos)}
7742
7745
  children
7743
7746
  };
7744
7747
  });
7748
+ var LexicalDeclaration$2 = $TS($S(InsertLet, $C(BindingPattern, BindingIdentifier), $E(TypeSuffix), __, LetAssignment, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
7749
+ var l = $1;
7750
+ var id = $2;
7751
+ var suffix = $3;
7752
+ var ws = $4;
7753
+ var la = $5;
7754
+ var e = $6;
7755
+ l = {
7756
+ ...l,
7757
+ $loc: {
7758
+ pos: la.$loc.pos - 1,
7759
+ length: la.$loc.length + 1
7760
+ }
7761
+ };
7762
+ let [splices, thisAssignments] = module2.gatherBindingCode(id);
7763
+ splices = splices.map((s) => [", ", s]);
7764
+ thisAssignments = thisAssignments.map((a) => [";", a]);
7765
+ const children = [l, id, suffix, ...ws, la, e, ...splices, ...thisAssignments];
7766
+ return {
7767
+ type: "Declaration",
7768
+ names: id.names,
7769
+ children
7770
+ };
7771
+ });
7745
7772
  function LexicalDeclaration(state) {
7746
7773
  if (state.events) {
7747
7774
  const result = state.events.enter?.("LexicalDeclaration", state);
@@ -7749,12 +7776,12 @@ ${input.slice(result.pos)}
7749
7776
  return result.cache;
7750
7777
  }
7751
7778
  if (state.tokenize) {
7752
- const result = $TOKEN("LexicalDeclaration", state, LexicalDeclaration$0(state) || LexicalDeclaration$1(state));
7779
+ const result = $TOKEN("LexicalDeclaration", state, LexicalDeclaration$0(state) || LexicalDeclaration$1(state) || LexicalDeclaration$2(state));
7753
7780
  if (state.events)
7754
7781
  state.events.exit?.("LexicalDeclaration", state, result);
7755
7782
  return result;
7756
7783
  } else {
7757
- const result = LexicalDeclaration$0(state) || LexicalDeclaration$1(state);
7784
+ const result = LexicalDeclaration$0(state) || LexicalDeclaration$1(state) || LexicalDeclaration$2(state);
7758
7785
  if (state.events)
7759
7786
  state.events.exit?.("LexicalDeclaration", state, result);
7760
7787
  return result;
@@ -7781,6 +7808,27 @@ ${input.slice(result.pos)}
7781
7808
  return result;
7782
7809
  }
7783
7810
  }
7811
+ var LetAssignment$0 = $TV($EXPECT($L87, fail, 'LetAssignment "::="'), function($skip, $loc, $0, $1) {
7812
+ return { $loc, token: "=" };
7813
+ });
7814
+ function LetAssignment(state) {
7815
+ if (state.events) {
7816
+ const result = state.events.enter?.("LetAssignment", state);
7817
+ if (result)
7818
+ return result.cache;
7819
+ }
7820
+ if (state.tokenize) {
7821
+ const result = $TOKEN("LetAssignment", state, LetAssignment$0(state));
7822
+ if (state.events)
7823
+ state.events.exit?.("LetAssignment", state, result);
7824
+ return result;
7825
+ } else {
7826
+ const result = LetAssignment$0(state);
7827
+ if (state.events)
7828
+ state.events.exit?.("LetAssignment", state, result);
7829
+ return result;
7830
+ }
7831
+ }
7784
7832
  var LexicalBinding$0 = $TS($S(BindingPattern, $E(TypeSuffix), Initializer), function($skip, $loc, $0, $1, $2, $3) {
7785
7833
  const children = [...$1.children];
7786
7834
  if ($2)
@@ -8765,7 +8813,7 @@ ${input.slice(result.pos)}
8765
8813
  return result;
8766
8814
  }
8767
8815
  }
8768
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L87, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L88, fail, 'JSMultiLineComment "*/"')), $EXPECT($R38, fail, "JSMultiLineComment /./"))), $EXPECT($L88, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
8816
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L89, fail, 'JSMultiLineComment "*/"')), $EXPECT($R38, fail, "JSMultiLineComment /./"))), $EXPECT($L89, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
8769
8817
  return { $loc, token: $1 };
8770
8818
  });
8771
8819
  function JSMultiLineComment(state) {
@@ -8807,7 +8855,7 @@ ${input.slice(result.pos)}
8807
8855
  return result;
8808
8856
  }
8809
8857
  }
8810
- var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L88, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R38, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
8858
+ var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L89, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R38, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
8811
8859
  return { $loc, token: `/*${$2}*/` };
8812
8860
  });
8813
8861
  function CoffeeMultiLineComment(state) {
@@ -8847,7 +8895,7 @@ ${input.slice(result.pos)}
8847
8895
  return result;
8848
8896
  }
8849
8897
  }
8850
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L87, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L88, fail, 'InlineComment "*/"')), $EXPECT($R41, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L88, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
8898
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L89, fail, 'InlineComment "*/"')), $EXPECT($R41, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L89, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
8851
8899
  return { $loc, token: $1 };
8852
8900
  });
8853
8901
  function InlineComment(state) {
@@ -8930,7 +8978,7 @@ ${input.slice(result.pos)}
8930
8978
  var NonNewlineWhitespace$0 = $TR($EXPECT($R42, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
8931
8979
  return { $loc, token: $0 };
8932
8980
  });
8933
- var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L89, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
8981
+ var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L90, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
8934
8982
  return "";
8935
8983
  });
8936
8984
  function NonNewlineWhitespace(state) {
@@ -9096,7 +9144,7 @@ ${input.slice(result.pos)}
9096
9144
  return result;
9097
9145
  }
9098
9146
  }
9099
- var As$0 = $TS($S($EXPECT($L90, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9147
+ var As$0 = $TS($S($EXPECT($L91, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9100
9148
  return { $loc, token: $1 };
9101
9149
  });
9102
9150
  function As(state) {
@@ -9117,7 +9165,7 @@ ${input.slice(result.pos)}
9117
9165
  return result;
9118
9166
  }
9119
9167
  }
9120
- var At$0 = $TV($EXPECT($L91, fail, 'At "@"'), function($skip, $loc, $0, $1) {
9168
+ var At$0 = $TV($EXPECT($L92, fail, 'At "@"'), function($skip, $loc, $0, $1) {
9121
9169
  return { $loc, token: $1 };
9122
9170
  });
9123
9171
  function At(state) {
@@ -9138,7 +9186,7 @@ ${input.slice(result.pos)}
9138
9186
  return result;
9139
9187
  }
9140
9188
  }
9141
- var AtAt$0 = $TV($EXPECT($L92, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
9189
+ var AtAt$0 = $TV($EXPECT($L93, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
9142
9190
  return { $loc, token: "@" };
9143
9191
  });
9144
9192
  function AtAt(state) {
@@ -9159,7 +9207,7 @@ ${input.slice(result.pos)}
9159
9207
  return result;
9160
9208
  }
9161
9209
  }
9162
- var Async$0 = $TV($EXPECT($L93, fail, 'Async "async"'), function($skip, $loc, $0, $1) {
9210
+ var Async$0 = $TV($EXPECT($L94, fail, 'Async "async"'), function($skip, $loc, $0, $1) {
9163
9211
  return { $loc, token: $1, type: "Async" };
9164
9212
  });
9165
9213
  function Async(state) {
@@ -9180,7 +9228,7 @@ ${input.slice(result.pos)}
9180
9228
  return result;
9181
9229
  }
9182
9230
  }
9183
- var Await$0 = $TS($S($EXPECT($L94, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9231
+ var Await$0 = $TS($S($EXPECT($L95, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9184
9232
  return { $loc, token: $1 };
9185
9233
  });
9186
9234
  function Await(state) {
@@ -9201,7 +9249,7 @@ ${input.slice(result.pos)}
9201
9249
  return result;
9202
9250
  }
9203
9251
  }
9204
- var Backtick$0 = $TV($EXPECT($L95, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
9252
+ var Backtick$0 = $TV($EXPECT($L96, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
9205
9253
  return { $loc, token: $1 };
9206
9254
  });
9207
9255
  function Backtick(state) {
@@ -9222,7 +9270,7 @@ ${input.slice(result.pos)}
9222
9270
  return result;
9223
9271
  }
9224
9272
  }
9225
- var By$0 = $TS($S($EXPECT($L96, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9273
+ var By$0 = $TS($S($EXPECT($L97, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9226
9274
  return { $loc, token: $1 };
9227
9275
  });
9228
9276
  function By(state) {
@@ -9243,7 +9291,7 @@ ${input.slice(result.pos)}
9243
9291
  return result;
9244
9292
  }
9245
9293
  }
9246
- var Case$0 = $TS($S($EXPECT($L97, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9294
+ var Case$0 = $TS($S($EXPECT($L98, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9247
9295
  return { $loc, token: $1 };
9248
9296
  });
9249
9297
  function Case(state) {
@@ -9264,7 +9312,7 @@ ${input.slice(result.pos)}
9264
9312
  return result;
9265
9313
  }
9266
9314
  }
9267
- var Catch$0 = $TV($EXPECT($L98, fail, 'Catch "catch"'), function($skip, $loc, $0, $1) {
9315
+ var Catch$0 = $TV($EXPECT($L99, fail, 'Catch "catch"'), function($skip, $loc, $0, $1) {
9268
9316
  return { $loc, token: $1 };
9269
9317
  });
9270
9318
  function Catch(state) {
@@ -9285,7 +9333,7 @@ ${input.slice(result.pos)}
9285
9333
  return result;
9286
9334
  }
9287
9335
  }
9288
- var Class$0 = $TV($EXPECT($L99, fail, 'Class "class"'), function($skip, $loc, $0, $1) {
9336
+ var Class$0 = $TV($EXPECT($L100, fail, 'Class "class"'), function($skip, $loc, $0, $1) {
9289
9337
  return { $loc, token: $1 };
9290
9338
  });
9291
9339
  function Class(state) {
@@ -9369,7 +9417,7 @@ ${input.slice(result.pos)}
9369
9417
  return result;
9370
9418
  }
9371
9419
  }
9372
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L100, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
9420
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L101, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
9373
9421
  return { $loc, token: "${" };
9374
9422
  });
9375
9423
  function CoffeeSubstitutionStart(state) {
@@ -9411,7 +9459,7 @@ ${input.slice(result.pos)}
9411
9459
  return result;
9412
9460
  }
9413
9461
  }
9414
- var ConstructorShorthand$0 = $TV($EXPECT($L91, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
9462
+ var ConstructorShorthand$0 = $TV($EXPECT($L92, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
9415
9463
  return { $loc, token: "constructor" };
9416
9464
  });
9417
9465
  function ConstructorShorthand(state) {
@@ -9453,7 +9501,7 @@ ${input.slice(result.pos)}
9453
9501
  return result;
9454
9502
  }
9455
9503
  }
9456
- var Delete$0 = $TS($S($EXPECT($L101, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9504
+ var Delete$0 = $TS($S($EXPECT($L102, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9457
9505
  return { $loc, token: $1 };
9458
9506
  });
9459
9507
  function Delete(state) {
@@ -9474,7 +9522,7 @@ ${input.slice(result.pos)}
9474
9522
  return result;
9475
9523
  }
9476
9524
  }
9477
- var Do$0 = $TS($S($EXPECT($L102, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9525
+ var Do$0 = $TS($S($EXPECT($L103, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9478
9526
  return { $loc, token: $1 };
9479
9527
  });
9480
9528
  function Do(state) {
@@ -9516,7 +9564,7 @@ ${input.slice(result.pos)}
9516
9564
  return result;
9517
9565
  }
9518
9566
  }
9519
- var DotDot$0 = $TV($EXPECT($L103, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
9567
+ var DotDot$0 = $TV($EXPECT($L104, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
9520
9568
  return { $loc, token: $1 };
9521
9569
  });
9522
9570
  function DotDot(state) {
@@ -9537,7 +9585,7 @@ ${input.slice(result.pos)}
9537
9585
  return result;
9538
9586
  }
9539
9587
  }
9540
- var DotDotDot$0 = $TV($EXPECT($L104, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
9588
+ var DotDotDot$0 = $TV($EXPECT($L105, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
9541
9589
  return { $loc, token: $1 };
9542
9590
  });
9543
9591
  function DotDotDot(state) {
@@ -9558,7 +9606,7 @@ ${input.slice(result.pos)}
9558
9606
  return result;
9559
9607
  }
9560
9608
  }
9561
- var DoubleColon$0 = $TV($EXPECT($L105, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
9609
+ var DoubleColon$0 = $TV($EXPECT($L106, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
9562
9610
  return { $loc, token: $1 };
9563
9611
  });
9564
9612
  function DoubleColon(state) {
@@ -9579,7 +9627,7 @@ ${input.slice(result.pos)}
9579
9627
  return result;
9580
9628
  }
9581
9629
  }
9582
- var DoubleQuote$0 = $TV($EXPECT($L106, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
9630
+ var DoubleQuote$0 = $TV($EXPECT($L107, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
9583
9631
  return { $loc, token: $1 };
9584
9632
  });
9585
9633
  function DoubleQuote(state) {
@@ -9600,7 +9648,7 @@ ${input.slice(result.pos)}
9600
9648
  return result;
9601
9649
  }
9602
9650
  }
9603
- var Else$0 = $TV($EXPECT($L107, fail, 'Else "else"'), function($skip, $loc, $0, $1) {
9651
+ var Else$0 = $TV($EXPECT($L108, fail, 'Else "else"'), function($skip, $loc, $0, $1) {
9604
9652
  return { $loc, token: $1 };
9605
9653
  });
9606
9654
  function Else(state) {
@@ -9642,7 +9690,7 @@ ${input.slice(result.pos)}
9642
9690
  return result;
9643
9691
  }
9644
9692
  }
9645
- var Export$0 = $TS($S($EXPECT($L108, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9693
+ var Export$0 = $TS($S($EXPECT($L109, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9646
9694
  return { $loc, token: $1 };
9647
9695
  });
9648
9696
  function Export(state) {
@@ -9663,7 +9711,7 @@ ${input.slice(result.pos)}
9663
9711
  return result;
9664
9712
  }
9665
9713
  }
9666
- var For$0 = $TS($S($EXPECT($L109, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9714
+ var For$0 = $TS($S($EXPECT($L110, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9667
9715
  return { $loc, token: $1 };
9668
9716
  });
9669
9717
  function For(state) {
@@ -9684,7 +9732,7 @@ ${input.slice(result.pos)}
9684
9732
  return result;
9685
9733
  }
9686
9734
  }
9687
- var From$0 = $TS($S($EXPECT($L110, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9735
+ var From$0 = $TS($S($EXPECT($L111, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9688
9736
  return { $loc, token: $1 };
9689
9737
  });
9690
9738
  function From(state) {
@@ -9705,7 +9753,7 @@ ${input.slice(result.pos)}
9705
9753
  return result;
9706
9754
  }
9707
9755
  }
9708
- var Function$0 = $TV($EXPECT($L111, fail, 'Function "function"'), function($skip, $loc, $0, $1) {
9756
+ var Function$0 = $TV($EXPECT($L112, fail, 'Function "function"'), function($skip, $loc, $0, $1) {
9709
9757
  return { $loc, token: $1 };
9710
9758
  });
9711
9759
  function Function(state) {
@@ -9726,7 +9774,7 @@ ${input.slice(result.pos)}
9726
9774
  return result;
9727
9775
  }
9728
9776
  }
9729
- var GetOrSet$0 = $TS($S($C($EXPECT($L112, fail, 'GetOrSet "get"'), $EXPECT($L113, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9777
+ var GetOrSet$0 = $TS($S($C($EXPECT($L113, fail, 'GetOrSet "get"'), $EXPECT($L114, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9730
9778
  return { $loc, token: $1, type: "GetOrSet" };
9731
9779
  });
9732
9780
  function GetOrSet(state) {
@@ -9747,7 +9795,7 @@ ${input.slice(result.pos)}
9747
9795
  return result;
9748
9796
  }
9749
9797
  }
9750
- var If$0 = $TV($TEXT($S($EXPECT($L114, fail, 'If "if"'), $E($EXPECT($L4, fail, 'If " "')))), function($skip, $loc, $0, $1) {
9798
+ var If$0 = $TV($TEXT($S($EXPECT($L115, fail, 'If "if"'), $E($EXPECT($L4, fail, 'If " "')))), function($skip, $loc, $0, $1) {
9751
9799
  return { $loc, token: $1 };
9752
9800
  });
9753
9801
  function If(state) {
@@ -9810,7 +9858,7 @@ ${input.slice(result.pos)}
9810
9858
  return result;
9811
9859
  }
9812
9860
  }
9813
- var LetOrConst$0 = $TS($S($C($EXPECT($L115, fail, 'LetOrConst "let"'), $EXPECT($L116, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9861
+ var LetOrConst$0 = $TS($S($C($EXPECT($L116, fail, 'LetOrConst "let"'), $EXPECT($L117, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9814
9862
  return { $loc, token: $1 };
9815
9863
  });
9816
9864
  function LetOrConst(state) {
@@ -9831,7 +9879,7 @@ ${input.slice(result.pos)}
9831
9879
  return result;
9832
9880
  }
9833
9881
  }
9834
- var Loop$0 = $TS($S($EXPECT($L117, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9882
+ var Loop$0 = $TS($S($EXPECT($L118, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9835
9883
  return { $loc, token: "while(true)" };
9836
9884
  });
9837
9885
  function Loop(state) {
@@ -9852,7 +9900,7 @@ ${input.slice(result.pos)}
9852
9900
  return result;
9853
9901
  }
9854
9902
  }
9855
- var New$0 = $TS($S($EXPECT($L118, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9903
+ var New$0 = $TS($S($EXPECT($L119, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9856
9904
  return { $loc, token: $1 };
9857
9905
  });
9858
9906
  function New(state) {
@@ -9915,7 +9963,7 @@ ${input.slice(result.pos)}
9915
9963
  return result;
9916
9964
  }
9917
9965
  }
9918
- var OpenBrace$0 = $TV($EXPECT($L119, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
9966
+ var OpenBrace$0 = $TV($EXPECT($L120, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
9919
9967
  return { $loc, token: $1 };
9920
9968
  });
9921
9969
  function OpenBrace(state) {
@@ -9936,7 +9984,7 @@ ${input.slice(result.pos)}
9936
9984
  return result;
9937
9985
  }
9938
9986
  }
9939
- var OpenBracket$0 = $TV($EXPECT($L120, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
9987
+ var OpenBracket$0 = $TV($EXPECT($L121, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
9940
9988
  return { $loc, token: $1 };
9941
9989
  });
9942
9990
  function OpenBracket(state) {
@@ -9957,7 +10005,7 @@ ${input.slice(result.pos)}
9957
10005
  return result;
9958
10006
  }
9959
10007
  }
9960
- var OpenParen$0 = $TV($EXPECT($L121, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
10008
+ var OpenParen$0 = $TV($EXPECT($L122, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
9961
10009
  return { $loc, token: $1 };
9962
10010
  });
9963
10011
  function OpenParen(state) {
@@ -9999,7 +10047,7 @@ ${input.slice(result.pos)}
9999
10047
  return result;
10000
10048
  }
10001
10049
  }
10002
- var Return$0 = $TS($S($EXPECT($L122, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10050
+ var Return$0 = $TS($S($EXPECT($L123, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10003
10051
  return { $loc, token: $1 };
10004
10052
  });
10005
10053
  function Return(state) {
@@ -10041,7 +10089,7 @@ ${input.slice(result.pos)}
10041
10089
  return result;
10042
10090
  }
10043
10091
  }
10044
- var SingleQuote$0 = $TV($EXPECT($L123, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
10092
+ var SingleQuote$0 = $TV($EXPECT($L124, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
10045
10093
  return { $loc, token: $1 };
10046
10094
  });
10047
10095
  function SingleQuote(state) {
@@ -10083,10 +10131,10 @@ ${input.slice(result.pos)}
10083
10131
  return result;
10084
10132
  }
10085
10133
  }
10086
- var Static$0 = $TV($EXPECT($L124, fail, 'Static "static"'), function($skip, $loc, $0, $1) {
10134
+ var Static$0 = $TV($EXPECT($L125, fail, 'Static "static"'), function($skip, $loc, $0, $1) {
10087
10135
  return { $loc, token: $1 };
10088
10136
  });
10089
- var Static$1 = $TS($S($EXPECT($L91, fail, 'Static "@"'), $N($C($EXPECT($L121, fail, 'Static "("'), $EXPECT($L91, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
10137
+ var Static$1 = $TS($S($EXPECT($L92, fail, 'Static "@"'), $N($C($EXPECT($L122, fail, 'Static "("'), $EXPECT($L92, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
10090
10138
  return { $loc, token: "static " };
10091
10139
  });
10092
10140
  function Static(state) {
@@ -10107,7 +10155,7 @@ ${input.slice(result.pos)}
10107
10155
  return result;
10108
10156
  }
10109
10157
  }
10110
- var SubstitutionStart$0 = $TV($EXPECT($L125, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
10158
+ var SubstitutionStart$0 = $TV($EXPECT($L126, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
10111
10159
  return { $loc, token: $1 };
10112
10160
  });
10113
10161
  function SubstitutionStart(state) {
@@ -10128,7 +10176,7 @@ ${input.slice(result.pos)}
10128
10176
  return result;
10129
10177
  }
10130
10178
  }
10131
- var Switch$0 = $TS($S($EXPECT($L126, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10179
+ var Switch$0 = $TS($S($EXPECT($L127, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10132
10180
  return { $loc, token: $1 };
10133
10181
  });
10134
10182
  function Switch(state) {
@@ -10149,7 +10197,7 @@ ${input.slice(result.pos)}
10149
10197
  return result;
10150
10198
  }
10151
10199
  }
10152
- var Target$0 = $TS($S($EXPECT($L127, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10200
+ var Target$0 = $TS($S($EXPECT($L128, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10153
10201
  return { $loc, token: $1 };
10154
10202
  });
10155
10203
  function Target(state) {
@@ -10170,7 +10218,7 @@ ${input.slice(result.pos)}
10170
10218
  return result;
10171
10219
  }
10172
10220
  }
10173
- var Then$0 = $TS($S(__, $EXPECT($L128, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
10221
+ var Then$0 = $TS($S(__, $EXPECT($L129, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
10174
10222
  return { $loc, token: "" };
10175
10223
  });
10176
10224
  function Then(state) {
@@ -10191,7 +10239,7 @@ ${input.slice(result.pos)}
10191
10239
  return result;
10192
10240
  }
10193
10241
  }
10194
- var This$0 = $TS($S($EXPECT($L129, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10242
+ var This$0 = $TS($S($EXPECT($L130, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10195
10243
  return { $loc, token: $1 };
10196
10244
  });
10197
10245
  function This(state) {
@@ -10212,7 +10260,7 @@ ${input.slice(result.pos)}
10212
10260
  return result;
10213
10261
  }
10214
10262
  }
10215
- var Throw$0 = $TS($S($EXPECT($L130, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10263
+ var Throw$0 = $TS($S($EXPECT($L131, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10216
10264
  return { $loc, token: $1 };
10217
10265
  });
10218
10266
  function Throw(state) {
@@ -10233,7 +10281,7 @@ ${input.slice(result.pos)}
10233
10281
  return result;
10234
10282
  }
10235
10283
  }
10236
- var TripleDoubleQuote$0 = $TV($EXPECT($L131, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
10284
+ var TripleDoubleQuote$0 = $TV($EXPECT($L132, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
10237
10285
  return { $loc, token: "`" };
10238
10286
  });
10239
10287
  function TripleDoubleQuote(state) {
@@ -10254,7 +10302,7 @@ ${input.slice(result.pos)}
10254
10302
  return result;
10255
10303
  }
10256
10304
  }
10257
- var TripleSingleQuote$0 = $TV($EXPECT($L132, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
10305
+ var TripleSingleQuote$0 = $TV($EXPECT($L133, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
10258
10306
  return { $loc, token: "`" };
10259
10307
  });
10260
10308
  function TripleSingleQuote(state) {
@@ -10275,7 +10323,7 @@ ${input.slice(result.pos)}
10275
10323
  return result;
10276
10324
  }
10277
10325
  }
10278
- var TripleSlash$0 = $TV($EXPECT($L133, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
10326
+ var TripleSlash$0 = $TV($EXPECT($L134, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
10279
10327
  return { $loc, token: "/" };
10280
10328
  });
10281
10329
  function TripleSlash(state) {
@@ -10296,7 +10344,7 @@ ${input.slice(result.pos)}
10296
10344
  return result;
10297
10345
  }
10298
10346
  }
10299
- var TripleTick$0 = $TV($EXPECT($L134, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
10347
+ var TripleTick$0 = $TV($EXPECT($L135, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
10300
10348
  return { $loc, token: "`" };
10301
10349
  });
10302
10350
  function TripleTick(state) {
@@ -10317,7 +10365,7 @@ ${input.slice(result.pos)}
10317
10365
  return result;
10318
10366
  }
10319
10367
  }
10320
- var Try$0 = $TS($S($EXPECT($L135, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10368
+ var Try$0 = $TS($S($EXPECT($L136, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10321
10369
  return { $loc, token: $1 };
10322
10370
  });
10323
10371
  function Try(state) {
@@ -10338,7 +10386,7 @@ ${input.slice(result.pos)}
10338
10386
  return result;
10339
10387
  }
10340
10388
  }
10341
- var Typeof$0 = $TS($S($EXPECT($L136, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10389
+ var Typeof$0 = $TS($S($EXPECT($L137, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10342
10390
  return { $loc, token: $1 };
10343
10391
  });
10344
10392
  function Typeof(state) {
@@ -10359,7 +10407,7 @@ ${input.slice(result.pos)}
10359
10407
  return result;
10360
10408
  }
10361
10409
  }
10362
- var Unless$0 = $TS($S($EXPECT($L137, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10410
+ var Unless$0 = $TS($S($EXPECT($L138, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10363
10411
  return { $loc, token: $1 };
10364
10412
  });
10365
10413
  function Unless(state) {
@@ -10380,7 +10428,7 @@ ${input.slice(result.pos)}
10380
10428
  return result;
10381
10429
  }
10382
10430
  }
10383
- var Until$0 = $TS($S($EXPECT($L138, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10431
+ var Until$0 = $TS($S($EXPECT($L139, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10384
10432
  return { $loc, token: $1 };
10385
10433
  });
10386
10434
  function Until(state) {
@@ -10401,7 +10449,7 @@ ${input.slice(result.pos)}
10401
10449
  return result;
10402
10450
  }
10403
10451
  }
10404
- var Var$0 = $TS($S($EXPECT($L139, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10452
+ var Var$0 = $TS($S($EXPECT($L140, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10405
10453
  return { $loc, token: $1 };
10406
10454
  });
10407
10455
  function Var(state) {
@@ -10422,7 +10470,7 @@ ${input.slice(result.pos)}
10422
10470
  return result;
10423
10471
  }
10424
10472
  }
10425
- var Void$0 = $TS($S($EXPECT($L140, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10473
+ var Void$0 = $TS($S($EXPECT($L141, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10426
10474
  return { $loc, token: $1 };
10427
10475
  });
10428
10476
  function Void(state) {
@@ -10443,7 +10491,7 @@ ${input.slice(result.pos)}
10443
10491
  return result;
10444
10492
  }
10445
10493
  }
10446
- var When$0 = $TS($S($EXPECT($L141, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10494
+ var When$0 = $TS($S($EXPECT($L142, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10447
10495
  return { $loc, token: "case" };
10448
10496
  });
10449
10497
  function When(state) {
@@ -10464,7 +10512,7 @@ ${input.slice(result.pos)}
10464
10512
  return result;
10465
10513
  }
10466
10514
  }
10467
- var While$0 = $TS($S($EXPECT($L142, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10515
+ var While$0 = $TS($S($EXPECT($L143, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10468
10516
  return { $loc, token: $1 };
10469
10517
  });
10470
10518
  function While(state) {
@@ -10485,7 +10533,7 @@ ${input.slice(result.pos)}
10485
10533
  return result;
10486
10534
  }
10487
10535
  }
10488
- var Yield$0 = $TS($S($EXPECT($L143, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10536
+ var Yield$0 = $TS($S($EXPECT($L144, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10489
10537
  return { $loc, token: $1 };
10490
10538
  });
10491
10539
  function Yield(state) {
@@ -10542,7 +10590,7 @@ ${input.slice(result.pos)}
10542
10590
  return result;
10543
10591
  }
10544
10592
  }
10545
- var JSXSelfClosingElement$0 = $S($EXPECT($L5, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L144, fail, 'JSXSelfClosingElement "/>"'));
10593
+ var JSXSelfClosingElement$0 = $S($EXPECT($L5, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L145, fail, 'JSXSelfClosingElement "/>"'));
10546
10594
  function JSXSelfClosingElement(state) {
10547
10595
  if (state.events) {
10548
10596
  const result = state.events.enter?.("JSXSelfClosingElement", state);
@@ -10580,7 +10628,7 @@ ${input.slice(result.pos)}
10580
10628
  return result;
10581
10629
  }
10582
10630
  }
10583
- var JSXClosingElement$0 = $S($EXPECT($L145, fail, 'JSXClosingElement "</"'), __, $TEXT(JSXElementName), __, $EXPECT($L27, fail, 'JSXClosingElement ">"'));
10631
+ var JSXClosingElement$0 = $S($EXPECT($L146, fail, 'JSXClosingElement "</"'), __, $TEXT(JSXElementName), __, $EXPECT($L27, fail, 'JSXClosingElement ">"'));
10584
10632
  function JSXClosingElement(state) {
10585
10633
  if (state.events) {
10586
10634
  const result = state.events.enter?.("JSXClosingElement", state);
@@ -10599,8 +10647,8 @@ ${input.slice(result.pos)}
10599
10647
  return result;
10600
10648
  }
10601
10649
  }
10602
- var JSXFragment$0 = $S($EXPECT($L146, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L147, fail, 'JSXFragment "</>"'));
10603
- var JSXFragment$1 = $TS($S($EXPECT($L146, fail, 'JSXFragment "<>"'), JSXMixedChildren, InsertNewline, InsertIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
10650
+ var JSXFragment$0 = $S($EXPECT($L147, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L148, fail, 'JSXFragment "</>"'));
10651
+ var JSXFragment$1 = $TS($S($EXPECT($L147, fail, 'JSXFragment "<>"'), JSXMixedChildren, InsertNewline, InsertIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
10604
10652
  return [...$0, "</>"];
10605
10653
  });
10606
10654
  function JSXFragment(state) {
@@ -10991,7 +11039,7 @@ ${input.slice(result.pos)}
10991
11039
  return result;
10992
11040
  }
10993
11041
  }
10994
- var TypeDeclarationModifier$0 = $S($EXPECT($L148, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
11042
+ var TypeDeclarationModifier$0 = $S($EXPECT($L149, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
10995
11043
  var TypeDeclarationModifier$1 = Export;
10996
11044
  function TypeDeclarationModifier(state) {
10997
11045
  if (state.events) {
@@ -11033,7 +11081,7 @@ ${input.slice(result.pos)}
11033
11081
  return result;
11034
11082
  }
11035
11083
  }
11036
- var TypeKeyword$0 = $S($EXPECT($L149, fail, 'TypeKeyword "type"'), NonIdContinue);
11084
+ var TypeKeyword$0 = $S($EXPECT($L150, fail, 'TypeKeyword "type"'), NonIdContinue);
11037
11085
  function TypeKeyword(state) {
11038
11086
  if (state.events) {
11039
11087
  const result = state.events.enter?.("TypeKeyword", state);
@@ -11052,7 +11100,7 @@ ${input.slice(result.pos)}
11052
11100
  return result;
11053
11101
  }
11054
11102
  }
11055
- var Interface$0 = $S($EXPECT($L150, fail, 'Interface "interface"'), NonIdContinue);
11103
+ var Interface$0 = $S($EXPECT($L151, fail, 'Interface "interface"'), NonIdContinue);
11056
11104
  function Interface(state) {
11057
11105
  if (state.events) {
11058
11106
  const result = state.events.enter?.("Interface", state);
@@ -11071,7 +11119,7 @@ ${input.slice(result.pos)}
11071
11119
  return result;
11072
11120
  }
11073
11121
  }
11074
- var Namespace$0 = $S($EXPECT($L151, fail, 'Namespace "namespace"'), NonIdContinue);
11122
+ var Namespace$0 = $S($EXPECT($L152, fail, 'Namespace "namespace"'), NonIdContinue);
11075
11123
  function Namespace(state) {
11076
11124
  if (state.events) {
11077
11125
  const result = state.events.enter?.("Namespace", state);
@@ -11260,7 +11308,7 @@ ${input.slice(result.pos)}
11260
11308
  return result;
11261
11309
  }
11262
11310
  }
11263
- var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R49, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L152, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R4, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
11311
+ var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R49, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L153, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R4, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
11264
11312
  function TypeIndexSignature(state) {
11265
11313
  if (state.events) {
11266
11314
  const result = state.events.enter?.("TypeIndexSignature", state);
@@ -11320,7 +11368,7 @@ ${input.slice(result.pos)}
11320
11368
  return result;
11321
11369
  }
11322
11370
  }
11323
- var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L153, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
11371
+ var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L154, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
11324
11372
  const children = [...$1, $2];
11325
11373
  if ($3)
11326
11374
  children.push($3);
@@ -11455,10 +11503,10 @@ ${input.slice(result.pos)}
11455
11503
  return result;
11456
11504
  }
11457
11505
  }
11458
- var TypeUnaryOp$0 = $EXPECT($L154, fail, 'TypeUnaryOp "keyof"');
11459
- var TypeUnaryOp$1 = $EXPECT($L136, fail, 'TypeUnaryOp "typeof"');
11460
- var TypeUnaryOp$2 = $EXPECT($L155, fail, 'TypeUnaryOp "infer"');
11461
- var TypeUnaryOp$3 = $EXPECT($L152, fail, 'TypeUnaryOp "readonly"');
11506
+ var TypeUnaryOp$0 = $EXPECT($L155, fail, 'TypeUnaryOp "keyof"');
11507
+ var TypeUnaryOp$1 = $EXPECT($L137, fail, 'TypeUnaryOp "typeof"');
11508
+ var TypeUnaryOp$2 = $EXPECT($L156, fail, 'TypeUnaryOp "infer"');
11509
+ var TypeUnaryOp$3 = $EXPECT($L153, fail, 'TypeUnaryOp "readonly"');
11462
11510
  function TypeUnaryOp(state) {
11463
11511
  if (state.events) {
11464
11512
  const result = state.events.enter?.("TypeUnaryOp", state);
@@ -11627,10 +11675,10 @@ ${input.slice(result.pos)}
11627
11675
  }
11628
11676
  var TypeLiteral$0 = Literal;
11629
11677
  var TypeLiteral$1 = TemplateLiteral;
11630
- var TypeLiteral$2 = $TV($EXPECT($L140, fail, 'TypeLiteral "void"'), function($skip, $loc, $0, $1) {
11678
+ var TypeLiteral$2 = $TV($EXPECT($L141, fail, 'TypeLiteral "void"'), function($skip, $loc, $0, $1) {
11631
11679
  return { $loc, token: "void" };
11632
11680
  });
11633
- var TypeLiteral$3 = $TV($EXPECT($L156, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
11681
+ var TypeLiteral$3 = $TV($EXPECT($L157, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
11634
11682
  return { $loc, token: "[]" };
11635
11683
  });
11636
11684
  function TypeLiteral(state) {
@@ -11843,7 +11891,7 @@ ${input.slice(result.pos)}
11843
11891
  return result;
11844
11892
  }
11845
11893
  }
11846
- var CivetPrologueContent$0 = $TS($S($EXPECT($L157, fail, 'CivetPrologueContent "civet"'), $Q(CivetOption), $EXPECT($R52, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3) {
11894
+ var CivetPrologueContent$0 = $TS($S($EXPECT($L158, fail, 'CivetPrologueContent "civet"'), $Q(CivetOption), $EXPECT($R52, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3) {
11847
11895
  var options = $2;
11848
11896
  return {
11849
11897
  type: "CivetPrologue",
@@ -12148,6 +12196,27 @@ ${input.slice(result.pos)}
12148
12196
  return result;
12149
12197
  }
12150
12198
  }
12199
+ var InsertLet$0 = $TV($EXPECT($L0, fail, 'InsertLet ""'), function($skip, $loc, $0, $1) {
12200
+ return { $loc, token: "let " };
12201
+ });
12202
+ function InsertLet(state) {
12203
+ if (state.events) {
12204
+ const result = state.events.enter?.("InsertLet", state);
12205
+ if (result)
12206
+ return result.cache;
12207
+ }
12208
+ if (state.tokenize) {
12209
+ const result = $TOKEN("InsertLet", state, InsertLet$0(state));
12210
+ if (state.events)
12211
+ state.events.exit?.("InsertLet", state, result);
12212
+ return result;
12213
+ } else {
12214
+ const result = InsertLet$0(state);
12215
+ if (state.events)
12216
+ state.events.exit?.("InsertLet", state, result);
12217
+ return result;
12218
+ }
12219
+ }
12151
12220
  var InsertReadonly$0 = $TV($EXPECT($L0, fail, 'InsertReadonly ""'), function($skip, $loc, $0, $1) {
12152
12221
  return { ts: true, children: [{ $loc, token: "readonly " }] };
12153
12222
  });
@@ -14027,7 +14096,7 @@ module.exports = {
14027
14096
  compile: function(src, options = defaultOptions) {
14028
14097
  var ast, code, events, filename, sm, srcMapJSON;
14029
14098
  filename = options.filename || "unknown";
14030
- if (options.cache) {
14099
+ if (!options.noCache) {
14031
14100
  events = makeCache();
14032
14101
  }
14033
14102
  ast = prune(parse(src, { filename, events }));