@danielx/civet 0.6.20 → 0.6.21

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.mjs CHANGED
@@ -341,11 +341,7 @@ var require_lib = __commonJS({
341
341
  exp.children.splice(i, 1, ...wrapIIFE(exp.children, exp.async));
342
342
  return;
343
343
  }
344
- const resultsRef = {
345
- type: "Ref",
346
- base: "results",
347
- id: "results"
348
- };
344
+ const resultsRef = makeRef("results");
349
345
  insertPush(exp.block, resultsRef);
350
346
  exp.children.splice(
351
347
  i,
@@ -423,10 +419,7 @@ var require_lib = __commonJS({
423
419
  const parts = [];
424
420
  let hoistDec, refAssignment;
425
421
  if (prefix.length > 1) {
426
- const ref = {
427
- type: "Ref",
428
- base: "ref"
429
- };
422
+ const ref = makeRef();
430
423
  hoistDec = {
431
424
  type: "Declaration",
432
425
  children: ["let ", ref],
@@ -528,11 +521,7 @@ var require_lib = __commonJS({
528
521
  }
529
522
  return;
530
523
  }
531
- const resultsRef = {
532
- type: "Ref",
533
- base: "results",
534
- id: "results"
535
- };
524
+ const resultsRef = makeRef("results");
536
525
  const declaration = {
537
526
  type: "Declaration",
538
527
  children: ["const ", resultsRef, "=[];"]
@@ -1037,13 +1026,123 @@ var require_lib = __commonJS({
1037
1026
  if (target.token)
1038
1027
  return target.token.match(/^ ?/)[0];
1039
1028
  }
1029
+ function processForInOf($0) {
1030
+ let [awaits, each, open, declaration, declaration2, ws, inOf, exp, step, close] = $0;
1031
+ if (exp.type === "RangeExpression" && inOf.token === "of" && !declaration2) {
1032
+ return forRange(open, declaration, exp, step, close);
1033
+ } else if (step) {
1034
+ throw new Error("for..of/in cannot use 'by' except with range literals");
1035
+ }
1036
+ let eachError;
1037
+ let hoistDec, blockPrefix = [];
1038
+ if (each) {
1039
+ if (inOf.token === "of") {
1040
+ const counterRef = makeRef("i");
1041
+ const lenRef = makeRef("len");
1042
+ const expRef = maybeRef(exp);
1043
+ const increment = "++";
1044
+ let indexAssignment, assignmentNames = [...declaration.names];
1045
+ if (declaration2) {
1046
+ const [, , ws22, decl22] = declaration2;
1047
+ blockPrefix.push(["", [
1048
+ insertTrimmingSpace(ws22, ""),
1049
+ decl22,
1050
+ " = ",
1051
+ counterRef
1052
+ ], ";"]);
1053
+ assignmentNames.push(...decl22.names);
1054
+ }
1055
+ const expRefDec = expRef !== exp ? [insertTrimmingSpace(expRef, " "), " = ", insertTrimmingSpace(exp, ""), ", "] : [];
1056
+ blockPrefix.push(["", {
1057
+ type: "AssignmentExpression",
1058
+ children: [declaration, " = ", insertTrimmingSpace(expRef, ""), "[", counterRef, "]"],
1059
+ names: assignmentNames
1060
+ }, ";"]);
1061
+ declaration = {
1062
+ type: "Declaration",
1063
+ children: ["let ", ...expRefDec, counterRef, " = 0, ", lenRef, " = ", insertTrimmingSpace(expRef, ""), ".length"],
1064
+ names: []
1065
+ };
1066
+ const condition = [counterRef, " < ", lenRef, "; "];
1067
+ const children = [open, declaration, "; ", condition, counterRef, increment, close];
1068
+ return { declaration, children, blockPrefix };
1069
+ } else {
1070
+ eachError = {
1071
+ type: "Error",
1072
+ message: "'each' is only meaningful in for..of loops"
1073
+ };
1074
+ }
1075
+ }
1076
+ if (!declaration2) {
1077
+ return {
1078
+ declaration,
1079
+ children: [awaits, eachError, open, declaration, ws, inOf, exp, step, close]
1080
+ };
1081
+ }
1082
+ const [, , ws2, decl2] = declaration2;
1083
+ switch (inOf.token) {
1084
+ case "of": {
1085
+ const counterRef = makeRef("i");
1086
+ hoistDec = {
1087
+ type: "Declaration",
1088
+ children: ["let ", counterRef, " = 0"],
1089
+ names: []
1090
+ };
1091
+ blockPrefix.push(["", {
1092
+ type: "Declaration",
1093
+ children: [insertTrimmingSpace(ws2, ""), decl2, " = ", counterRef, "++"],
1094
+ names: decl2.names
1095
+ }, ";"]);
1096
+ break;
1097
+ }
1098
+ case "in": {
1099
+ const expRef = maybeRef(exp);
1100
+ if (expRef !== exp) {
1101
+ hoistDec = {
1102
+ type: "Declaration",
1103
+ children: ["let ", expRef],
1104
+ names: []
1105
+ };
1106
+ exp = {
1107
+ type: "AssignmentExpression",
1108
+ children: [" ", expRef, " =", exp]
1109
+ };
1110
+ }
1111
+ let { binding } = declaration;
1112
+ if (binding?.type !== "Identifier") {
1113
+ const keyRef = makeRef("key");
1114
+ blockPrefix.push(["", [
1115
+ declaration,
1116
+ " = ",
1117
+ keyRef
1118
+ ], ";"]);
1119
+ declaration = {
1120
+ type: "ForDeclaration",
1121
+ binding: binding = keyRef,
1122
+ children: ["const ", keyRef],
1123
+ names: []
1124
+ };
1125
+ }
1126
+ blockPrefix.push(["", {
1127
+ type: "Declaration",
1128
+ children: [insertTrimmingSpace(ws2, ""), decl2, " = ", insertTrimmingSpace(expRef, ""), "[", insertTrimmingSpace(binding, ""), "]"],
1129
+ names: decl2.names
1130
+ }, ";"]);
1131
+ break;
1132
+ }
1133
+ default:
1134
+ throw new Error(`for item, index must use 'of' or 'in' instead of '${inOf.token}'`);
1135
+ }
1136
+ return {
1137
+ declaration,
1138
+ children: [awaits, eachError, open, declaration, ws, inOf, exp, step, close],
1139
+ blockPrefix,
1140
+ hoistDec
1141
+ };
1142
+ }
1040
1143
  function forRange(open, forDeclaration, range, stepExp, close) {
1041
1144
  const { start, end, inclusive } = range;
1042
- const counterRef = {
1043
- type: "Ref",
1044
- base: "i",
1045
- id: "i"
1046
- };
1145
+ const counterRef = makeRef("i");
1047
1146
  let stepRef;
1048
1147
  if (stepExp) {
1049
1148
  stepExp = insertTrimmingSpace(stepExp, "");
@@ -1061,11 +1160,7 @@ var require_lib = __commonJS({
1061
1160
  } else if (start.type === "Literal" && end.type === "Literal") {
1062
1161
  asc = literalValue(start) <= literalValue(end);
1063
1162
  } else {
1064
- ascRef = {
1065
- type: "Ref",
1066
- base: "asc",
1067
- id: "asc"
1068
- };
1163
+ ascRef = makeRef("asc");
1069
1164
  ascDec = [", ", ascRef, " = ", startRef, " <= ", endRef];
1070
1165
  }
1071
1166
  let varAssign = [], varLetAssign = varAssign, varLet = varAssign, blockPrefix;
@@ -1205,15 +1300,6 @@ var require_lib = __commonJS({
1205
1300
  };
1206
1301
  }
1207
1302
  }
1208
- function maybeRef(exp, base = "ref") {
1209
- if (!needsRef(exp))
1210
- return exp;
1211
- return {
1212
- type: "Ref",
1213
- base,
1214
- id: base
1215
- };
1216
- }
1217
1303
  function modifyString(str) {
1218
1304
  return str.replace(/(^.?|[^\\]{2})(\\\\)*\n/g, "$1$2\\n");
1219
1305
  }
@@ -1309,13 +1395,20 @@ var require_lib = __commonJS({
1309
1395
  case "Identifier":
1310
1396
  case "Literal":
1311
1397
  return;
1312
- default:
1313
- return {
1314
- type: "Ref",
1315
- base,
1316
- id: base
1317
- };
1318
1398
  }
1399
+ return makeRef(base);
1400
+ }
1401
+ function makeRef(base = "ref") {
1402
+ return {
1403
+ type: "Ref",
1404
+ base,
1405
+ id: base
1406
+ };
1407
+ }
1408
+ function maybeRef(exp, base = "ref") {
1409
+ if (!needsRef(exp))
1410
+ return exp;
1411
+ return makeRef(base);
1319
1412
  }
1320
1413
  function processCoffeeInterpolation(s, parts, e, $loc) {
1321
1414
  if (parts.length === 0 || parts.length === 1 && parts[0].token != null) {
@@ -1808,11 +1901,7 @@ var require_lib = __commonJS({
1808
1901
  if (shared.length === 1)
1809
1902
  return;
1810
1903
  const refs = shared.map((p) => {
1811
- const ref = {
1812
- type: "Ref",
1813
- base: key,
1814
- id: key
1815
- };
1904
+ const ref = makeRef(key);
1816
1905
  aliasBinding(p, ref);
1817
1906
  return ref;
1818
1907
  });
@@ -1846,7 +1935,7 @@ var require_lib = __commonJS({
1846
1935
  if (expression.type === "ParenthesizedExpression") {
1847
1936
  expression = expression.expression;
1848
1937
  }
1849
- let hoistDec, refAssignment = [], ref = needsRef(expression, "m") || expression;
1938
+ let hoistDec, refAssignment = [], ref = maybeRef(expression, "m");
1850
1939
  if (ref !== expression) {
1851
1940
  hoistDec = {
1852
1941
  type: "Declaration",
@@ -1972,7 +2061,7 @@ var require_lib = __commonJS({
1972
2061
  arg.children.push(access);
1973
2062
  break outer;
1974
2063
  }
1975
- usingRef = needsRef({});
2064
+ usingRef = makeRef();
1976
2065
  initRef = {
1977
2066
  type: "AssignmentExpression",
1978
2067
  children: [usingRef, " = ", arg, ","]
@@ -2247,11 +2336,7 @@ var require_lib = __commonJS({
2247
2336
  );
2248
2337
  if (!values.length)
2249
2338
  return false;
2250
- const ref = {
2251
- type: "Ref",
2252
- base: "ret",
2253
- id: "ret"
2254
- };
2339
+ const ref = makeRef("ret");
2255
2340
  let declared;
2256
2341
  values.forEach((value) => {
2257
2342
  value.children = [ref];
@@ -2580,13 +2665,15 @@ var require_lib = __commonJS({
2580
2665
  makeAsConst,
2581
2666
  makeEmptyBlock,
2582
2667
  makeLeftHandSideExpression,
2668
+ makeRef,
2583
2669
  maybeRef,
2584
2670
  modifyString,
2585
2671
  needsRef,
2672
+ processAssignmentDeclaration,
2586
2673
  processBinaryOpExpression,
2587
2674
  processCallMemberExpression,
2588
2675
  processCoffeeInterpolation,
2589
- processAssignmentDeclaration,
2676
+ processForInOf,
2590
2677
  processParams,
2591
2678
  processProgram,
2592
2679
  processReturnValue,
@@ -3427,6 +3514,7 @@ ${input.slice(result.pos)}
3427
3514
  DotDotDot,
3428
3515
  DoubleColon,
3429
3516
  DoubleQuote,
3517
+ Each,
3430
3518
  Else,
3431
3519
  Equals,
3432
3520
  Export,
@@ -3793,75 +3881,76 @@ ${input.slice(result.pos)}
3793
3881
  var $L135 = $L("\u2026");
3794
3882
  var $L136 = $L("::");
3795
3883
  var $L137 = $L('"');
3796
- var $L138 = $L("else");
3797
- var $L139 = $L("export");
3798
- var $L140 = $L("extends");
3799
- var $L141 = $L("finally");
3800
- var $L142 = $L("for");
3801
- var $L143 = $L("from");
3802
- var $L144 = $L("function");
3803
- var $L145 = $L("get");
3804
- var $L146 = $L("set");
3805
- var $L147 = $L("if");
3806
- var $L148 = $L("in");
3807
- var $L149 = $L("let");
3808
- var $L150 = $L("const");
3809
- var $L151 = $L("is");
3810
- var $L152 = $L("loop");
3811
- var $L153 = $L("new");
3812
- var $L154 = $L("not");
3813
- var $L155 = $L("<");
3814
- var $L156 = $L("operator");
3815
- var $L157 = $L("public");
3816
- var $L158 = $L("private");
3817
- var $L159 = $L("protected");
3818
- var $L160 = $L("||>");
3819
- var $L161 = $L("|\u25B7");
3820
- var $L162 = $L("|>=");
3821
- var $L163 = $L("\u25B7=");
3822
- var $L164 = $L("|>");
3823
- var $L165 = $L("\u25B7");
3824
- var $L166 = $L("readonly");
3825
- var $L167 = $L("return");
3826
- var $L168 = $L("satisfies");
3827
- var $L169 = $L("'");
3828
- var $L170 = $L("static");
3829
- var $L171 = $L("${");
3830
- var $L172 = $L("switch");
3831
- var $L173 = $L("target");
3832
- var $L174 = $L("then");
3833
- var $L175 = $L("this");
3834
- var $L176 = $L("throw");
3835
- var $L177 = $L('"""');
3836
- var $L178 = $L("'''");
3837
- var $L179 = $L("///");
3838
- var $L180 = $L("```");
3839
- var $L181 = $L("try");
3840
- var $L182 = $L("typeof");
3841
- var $L183 = $L("unless");
3842
- var $L184 = $L("until");
3843
- var $L185 = $L("var");
3844
- var $L186 = $L("void");
3845
- var $L187 = $L("when");
3846
- var $L188 = $L("while");
3847
- var $L189 = $L("yield");
3848
- var $L190 = $L("/>");
3849
- var $L191 = $L("</");
3850
- var $L192 = $L("<>");
3851
- var $L193 = $L("</>");
3852
- var $L194 = $L("<!--");
3853
- var $L195 = $L("-->");
3854
- var $L196 = $L("type");
3855
- var $L197 = $L("enum");
3856
- var $L198 = $L("interface");
3857
- var $L199 = $L("global");
3858
- var $L200 = $L("module");
3859
- var $L201 = $L("namespace");
3860
- var $L202 = $L("asserts");
3861
- var $L203 = $L("keyof");
3862
- var $L204 = $L("infer");
3863
- var $L205 = $L("[]");
3864
- var $L206 = $L("civet");
3884
+ var $L138 = $L("each");
3885
+ var $L139 = $L("else");
3886
+ var $L140 = $L("export");
3887
+ var $L141 = $L("extends");
3888
+ var $L142 = $L("finally");
3889
+ var $L143 = $L("for");
3890
+ var $L144 = $L("from");
3891
+ var $L145 = $L("function");
3892
+ var $L146 = $L("get");
3893
+ var $L147 = $L("set");
3894
+ var $L148 = $L("if");
3895
+ var $L149 = $L("in");
3896
+ var $L150 = $L("let");
3897
+ var $L151 = $L("const");
3898
+ var $L152 = $L("is");
3899
+ var $L153 = $L("loop");
3900
+ var $L154 = $L("new");
3901
+ var $L155 = $L("not");
3902
+ var $L156 = $L("<");
3903
+ var $L157 = $L("operator");
3904
+ var $L158 = $L("public");
3905
+ var $L159 = $L("private");
3906
+ var $L160 = $L("protected");
3907
+ var $L161 = $L("||>");
3908
+ var $L162 = $L("|\u25B7");
3909
+ var $L163 = $L("|>=");
3910
+ var $L164 = $L("\u25B7=");
3911
+ var $L165 = $L("|>");
3912
+ var $L166 = $L("\u25B7");
3913
+ var $L167 = $L("readonly");
3914
+ var $L168 = $L("return");
3915
+ var $L169 = $L("satisfies");
3916
+ var $L170 = $L("'");
3917
+ var $L171 = $L("static");
3918
+ var $L172 = $L("${");
3919
+ var $L173 = $L("switch");
3920
+ var $L174 = $L("target");
3921
+ var $L175 = $L("then");
3922
+ var $L176 = $L("this");
3923
+ var $L177 = $L("throw");
3924
+ var $L178 = $L('"""');
3925
+ var $L179 = $L("'''");
3926
+ var $L180 = $L("///");
3927
+ var $L181 = $L("```");
3928
+ var $L182 = $L("try");
3929
+ var $L183 = $L("typeof");
3930
+ var $L184 = $L("unless");
3931
+ var $L185 = $L("until");
3932
+ var $L186 = $L("var");
3933
+ var $L187 = $L("void");
3934
+ var $L188 = $L("when");
3935
+ var $L189 = $L("while");
3936
+ var $L190 = $L("yield");
3937
+ var $L191 = $L("/>");
3938
+ var $L192 = $L("</");
3939
+ var $L193 = $L("<>");
3940
+ var $L194 = $L("</>");
3941
+ var $L195 = $L("<!--");
3942
+ var $L196 = $L("-->");
3943
+ var $L197 = $L("type");
3944
+ var $L198 = $L("enum");
3945
+ var $L199 = $L("interface");
3946
+ var $L200 = $L("global");
3947
+ var $L201 = $L("module");
3948
+ var $L202 = $L("namespace");
3949
+ var $L203 = $L("asserts");
3950
+ var $L204 = $L("keyof");
3951
+ var $L205 = $L("infer");
3952
+ var $L206 = $L("[]");
3953
+ var $L207 = $L("civet");
3865
3954
  var $R0 = $R(new RegExp("(as|of|satisfies|then|when|implements|xor|xnor)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
3866
3955
  var $R1 = $R(new RegExp("[0-9]", "suy"));
3867
3956
  var $R2 = $R(new RegExp("[)}]", "suy"));
@@ -3872,7 +3961,7 @@ ${input.slice(result.pos)}
3872
3961
  var $R7 = $R(new RegExp("<(?!\\p{ID_Start}|[_$])", "suy"));
3873
3962
  var $R8 = $R(new RegExp("!\\^\\^?", "suy"));
3874
3963
  var $R9 = $R(new RegExp("(?!\\+\\+|--)[!~+-](?!\\s|[!~+-]*[&.])", "suy"));
3875
- var $R10 = $R(new RegExp("(?=[\\s\\)])", "suy"));
3964
+ var $R10 = $R(new RegExp("(?=[\\s\\),])", "suy"));
3876
3965
  var $R11 = $R(new RegExp('[^;"\\s]+', "suy"));
3877
3966
  var $R12 = $R(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy"));
3878
3967
  var $R13 = $R(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))", "suy"));
@@ -5506,10 +5595,7 @@ ${input.slice(result.pos)}
5506
5595
  var head = $2;
5507
5596
  var body = $3;
5508
5597
  if (head.token === "&") {
5509
- const ref = {
5510
- type: "Ref",
5511
- base: "$"
5512
- };
5598
+ const ref = makeRef("$");
5513
5599
  const arrowBody = {
5514
5600
  type: "PipelineExpression",
5515
5601
  children: [ws, ref, body]
@@ -7280,11 +7366,7 @@ ${input.slice(result.pos)}
7280
7366
  });
7281
7367
  var AtIdentifierRef$1 = $TV(IdentifierName, function($skip, $loc, $0, $1) {
7282
7368
  var id = $0;
7283
- return {
7284
- type: "Ref",
7285
- base: id.name,
7286
- id: id.name
7287
- };
7369
+ return makeRef(id.name);
7288
7370
  });
7289
7371
  function AtIdentifierRef(state) {
7290
7372
  let eventData;
@@ -7906,11 +7988,7 @@ ${input.slice(result.pos)}
7906
7988
  }
7907
7989
  }
7908
7990
  var EmptyBindingPattern$0 = $TV($EXPECT($L0, fail, 'EmptyBindingPattern ""'), function($skip, $loc, $0, $1) {
7909
- const ref = {
7910
- type: "Ref",
7911
- base: "ref",
7912
- id: "ref"
7913
- };
7991
+ const ref = makeRef();
7914
7992
  return {
7915
7993
  type: "EmptyBinding",
7916
7994
  children: [ref],
@@ -8068,11 +8146,7 @@ ${input.slice(result.pos)}
8068
8146
  return $skip;
8069
8147
  let body, ref;
8070
8148
  if (!rhs) {
8071
- body = ref = {
8072
- type: "Ref",
8073
- base: "$",
8074
- id: "$"
8075
- };
8149
+ body = ref = makeRef("$");
8076
8150
  } else {
8077
8151
  let exp = rhs;
8078
8152
  while (!exp.ref && exp.expression) {
@@ -8252,11 +8326,7 @@ ${input.slice(result.pos)}
8252
8326
  var binopRHS = $3;
8253
8327
  if (!callExpRest && !binopRHS && !unaryPostfix)
8254
8328
  return $skip;
8255
- const ref = {
8256
- type: "Ref",
8257
- base: "$",
8258
- id: "$"
8259
- };
8329
+ const ref = makeRef("$");
8260
8330
  let exp = {
8261
8331
  type: "AmpersandRef",
8262
8332
  children: [ref],
@@ -9634,12 +9704,7 @@ ${input.slice(result.pos)}
9634
9704
  var ws = $2;
9635
9705
  var dots = $3;
9636
9706
  if (!exp) {
9637
- exp = {
9638
- type: "Ref",
9639
- base: "ref",
9640
- id: "ref",
9641
- names: []
9642
- };
9707
+ exp = { ...makeRef(), names: [] };
9643
9708
  }
9644
9709
  return {
9645
9710
  type: "SpreadElement",
@@ -12235,7 +12300,8 @@ ${input.slice(result.pos)}
12235
12300
  children: [$1, ...$2, ...children],
12236
12301
  declaration,
12237
12302
  block: null,
12238
- blockPrefix: c.blockPrefix
12303
+ blockPrefix: c.blockPrefix,
12304
+ hoistDec: c.hoistDec
12239
12305
  };
12240
12306
  });
12241
12307
  function ForClause(state) {
@@ -12343,7 +12409,7 @@ ${input.slice(result.pos)}
12343
12409
  if (step) {
12344
12410
  throw new Error("Can't use 'by' with 'from' in CoffeeScript for loops");
12345
12411
  }
12346
- kind.token = "of";
12412
+ kind = { ...kind, token: "of" };
12347
12413
  } else if (kind.token === "of") {
12348
12414
  if (step) {
12349
12415
  throw new Error("Can't use 'by' with 'of' in CoffeeScript for loops");
@@ -12361,30 +12427,12 @@ ${input.slice(result.pos)}
12361
12427
  }
12362
12428
  kind.token = "in";
12363
12429
  } else if (kind.token === "in") {
12364
- const counterRef = {
12365
- type: "Ref",
12366
- base: "i",
12367
- id: "i"
12368
- };
12369
- const lenRef = {
12370
- type: "Ref",
12371
- base: "len",
12372
- id: "len"
12373
- };
12374
- let expRef;
12375
- switch (exp.type) {
12376
- case "Identifier":
12377
- expRef = exp;
12378
- break;
12379
- case "RangeExpression":
12380
- return forRange(open, declaration, exp, step?.[2], close);
12381
- default:
12382
- expRef = {
12383
- type: "Ref",
12384
- base: "ref",
12385
- id: "ref"
12386
- };
12430
+ const counterRef = makeRef("i");
12431
+ const lenRef = makeRef("len");
12432
+ if (exp.type === "RangeExpression") {
12433
+ return forRange(open, declaration, exp, step?.[2], close);
12387
12434
  }
12435
+ const expRef = maybeRef(exp);
12388
12436
  const varRef = declaration;
12389
12437
  let increment = "++", indexAssignment, assignmentNames = [...varRef.names];
12390
12438
  if (index) {
@@ -12539,39 +12587,11 @@ ${input.slice(result.pos)}
12539
12587
  children: $0
12540
12588
  };
12541
12589
  });
12542
- var ForStatementParameters$2 = $TS($S($E($S(Await, __)), OpenParen, __, ForInOfDeclaration, __, $C(In, Of), ExpressionWithObjectApplicationForbidden, $E($S(__, By, ExpressionWithObjectApplicationForbidden)), __, CloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $10) {
12543
- var open = $2;
12544
- var declaration = $4;
12545
- var op = $6;
12546
- var exp = $7;
12547
- var step = $8;
12548
- var close = $10;
12549
- if (exp.type === "RangeExpression" && op.token === "of") {
12550
- return forRange(open, declaration, exp, step, close);
12551
- } else if (step) {
12552
- throw new Error("for..of/in cannot use 'by' except with range literals");
12553
- }
12554
- return {
12555
- declaration,
12556
- children: $0
12557
- };
12590
+ var ForStatementParameters$2 = $TS($S($E($S(Await, __)), $E($S(Each, __)), $S(OpenParen, __), ForInOfDeclaration, $E($S(__, Comma, __, ForInOfDeclaration)), __, $C(In, Of), ExpressionWithObjectApplicationForbidden, $E($S(__, By, ExpressionWithObjectApplicationForbidden)), $S(__, CloseParen)), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $10) {
12591
+ return processForInOf($0);
12558
12592
  });
12559
- var ForStatementParameters$3 = $TS($S($E($S(Await, __)), InsertOpenParen, ForInOfDeclaration, __, $C(In, Of), ExpressionWithObjectApplicationForbidden, $E($S(__, By, ExpressionWithObjectApplicationForbidden)), InsertCloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
12560
- var open = $2;
12561
- var declaration = $3;
12562
- var op = $5;
12563
- var exp = $6;
12564
- var step = $7;
12565
- var close = $8;
12566
- if (exp.type === "RangeExpression" && op.token === "of") {
12567
- return forRange(open, declaration, exp, step, close);
12568
- } else if (step) {
12569
- throw new Error("for..of/in cannot use 'by' except with range literals");
12570
- }
12571
- return {
12572
- declaration,
12573
- children: $0
12574
- };
12593
+ var ForStatementParameters$3 = $TS($S($E($S(Await, __)), $E($S(Each, __)), InsertOpenParen, ForInOfDeclaration, $E($S(__, Comma, __, ForInOfDeclaration)), __, $C(In, Of), ExpressionWithObjectApplicationForbidden, $E($S(__, By, ExpressionWithObjectApplicationForbidden)), InsertCloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $10) {
12594
+ return processForInOf($0);
12575
12595
  });
12576
12596
  var ForStatementParameters$4 = ForRangeParameters;
12577
12597
  function ForStatementParameters(state) {
@@ -12638,6 +12658,7 @@ ${input.slice(result.pos)}
12638
12658
  type: "ForDeclaration",
12639
12659
  children: $0,
12640
12660
  declare: $1,
12661
+ binding,
12641
12662
  names: binding.names
12642
12663
  };
12643
12664
  });
@@ -12672,16 +12693,18 @@ ${input.slice(result.pos)}
12672
12693
  type: "ForDeclaration",
12673
12694
  children: [c, binding],
12674
12695
  declare: c,
12696
+ binding,
12675
12697
  names: binding.names
12676
12698
  };
12677
12699
  });
12678
- var ForDeclaration$1 = $TS($S(InsertConst, ForBinding, $EXPECT($R10, fail, "ForDeclaration /(?=[\\s\\)])/")), function($skip, $loc, $0, $1, $2, $3) {
12700
+ var ForDeclaration$1 = $TS($S(InsertConst, ForBinding, $EXPECT($R10, fail, "ForDeclaration /(?=[\\s\\),])/")), function($skip, $loc, $0, $1, $2, $3) {
12679
12701
  var c = $1;
12680
12702
  var binding = $2;
12681
12703
  return {
12682
12704
  type: "ForDeclaration",
12683
12705
  children: [c, binding],
12684
12706
  declare: c,
12707
+ binding,
12685
12708
  names: binding.names
12686
12709
  };
12687
12710
  });
@@ -13416,10 +13439,7 @@ ${input.slice(result.pos)}
13416
13439
  }
13417
13440
  var DeclarationCondition$0 = $TV(LexicalDeclaration, function($skip, $loc, $0, $1) {
13418
13441
  var dec = $0;
13419
- const ref = {
13420
- type: "Ref",
13421
- base: "ref"
13422
- };
13442
+ const ref = makeRef();
13423
13443
  const { decl, bindings } = dec;
13424
13444
  const binding = bindings[0];
13425
13445
  const { pattern, suffix, initializer, splices, thisAssignments } = binding;
@@ -17475,7 +17495,32 @@ ${input.slice(result.pos)}
17475
17495
  return result;
17476
17496
  }
17477
17497
  }
17478
- var Else$0 = $TS($S($EXPECT($L138, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17498
+ var Each$0 = $TS($S($EXPECT($L138, fail, 'Each "each"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17499
+ return { $loc, token: $1 };
17500
+ });
17501
+ function Each(state) {
17502
+ let eventData;
17503
+ if (state.events) {
17504
+ const result = state.events.enter?.("Each", state);
17505
+ if (result) {
17506
+ if (result.cache)
17507
+ return result.cache;
17508
+ eventData = result.data;
17509
+ }
17510
+ }
17511
+ if (state.tokenize) {
17512
+ const result = $TOKEN("Each", state, Each$0(state));
17513
+ if (state.events)
17514
+ state.events.exit?.("Each", state, result, eventData);
17515
+ return result;
17516
+ } else {
17517
+ const result = Each$0(state);
17518
+ if (state.events)
17519
+ state.events.exit?.("Each", state, result, eventData);
17520
+ return result;
17521
+ }
17522
+ }
17523
+ var Else$0 = $TS($S($EXPECT($L139, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17479
17524
  return { $loc, token: $1 };
17480
17525
  });
17481
17526
  function Else(state) {
@@ -17525,7 +17570,7 @@ ${input.slice(result.pos)}
17525
17570
  return result;
17526
17571
  }
17527
17572
  }
17528
- var Export$0 = $TS($S($EXPECT($L139, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17573
+ var Export$0 = $TS($S($EXPECT($L140, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17529
17574
  return { $loc, token: $1 };
17530
17575
  });
17531
17576
  function Export(state) {
@@ -17550,7 +17595,7 @@ ${input.slice(result.pos)}
17550
17595
  return result;
17551
17596
  }
17552
17597
  }
17553
- var Extends$0 = $TS($S($EXPECT($L140, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17598
+ var Extends$0 = $TS($S($EXPECT($L141, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17554
17599
  return { $loc, token: $1 };
17555
17600
  });
17556
17601
  function Extends(state) {
@@ -17575,7 +17620,7 @@ ${input.slice(result.pos)}
17575
17620
  return result;
17576
17621
  }
17577
17622
  }
17578
- var Finally$0 = $TS($S($EXPECT($L141, fail, 'Finally "finally"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17623
+ var Finally$0 = $TS($S($EXPECT($L142, fail, 'Finally "finally"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17579
17624
  return { $loc, token: $1 };
17580
17625
  });
17581
17626
  function Finally(state) {
@@ -17600,7 +17645,7 @@ ${input.slice(result.pos)}
17600
17645
  return result;
17601
17646
  }
17602
17647
  }
17603
- var For$0 = $TS($S($EXPECT($L142, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17648
+ var For$0 = $TS($S($EXPECT($L143, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17604
17649
  return { $loc, token: $1 };
17605
17650
  });
17606
17651
  function For(state) {
@@ -17625,7 +17670,7 @@ ${input.slice(result.pos)}
17625
17670
  return result;
17626
17671
  }
17627
17672
  }
17628
- var From$0 = $TS($S($EXPECT($L143, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17673
+ var From$0 = $TS($S($EXPECT($L144, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17629
17674
  return { $loc, token: $1 };
17630
17675
  });
17631
17676
  function From(state) {
@@ -17650,7 +17695,7 @@ ${input.slice(result.pos)}
17650
17695
  return result;
17651
17696
  }
17652
17697
  }
17653
- var Function$0 = $TS($S($EXPECT($L144, fail, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17698
+ var Function$0 = $TS($S($EXPECT($L145, fail, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17654
17699
  return { $loc, token: $1 };
17655
17700
  });
17656
17701
  function Function(state) {
@@ -17675,7 +17720,7 @@ ${input.slice(result.pos)}
17675
17720
  return result;
17676
17721
  }
17677
17722
  }
17678
- var GetOrSet$0 = $TS($S($C($EXPECT($L145, fail, 'GetOrSet "get"'), $EXPECT($L146, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17723
+ var GetOrSet$0 = $TS($S($C($EXPECT($L146, fail, 'GetOrSet "get"'), $EXPECT($L147, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17679
17724
  return { $loc, token: $1, type: "GetOrSet" };
17680
17725
  });
17681
17726
  function GetOrSet(state) {
@@ -17700,7 +17745,7 @@ ${input.slice(result.pos)}
17700
17745
  return result;
17701
17746
  }
17702
17747
  }
17703
- var If$0 = $TV($TEXT($S($EXPECT($L147, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L11, fail, 'If " "')))), function($skip, $loc, $0, $1) {
17748
+ var If$0 = $TV($TEXT($S($EXPECT($L148, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L11, fail, 'If " "')))), function($skip, $loc, $0, $1) {
17704
17749
  return { $loc, token: $1 };
17705
17750
  });
17706
17751
  function If(state) {
@@ -17750,7 +17795,7 @@ ${input.slice(result.pos)}
17750
17795
  return result;
17751
17796
  }
17752
17797
  }
17753
- var In$0 = $TS($S($EXPECT($L148, fail, 'In "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17798
+ var In$0 = $TS($S($EXPECT($L149, fail, 'In "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17754
17799
  return { $loc, token: $1 };
17755
17800
  });
17756
17801
  function In(state) {
@@ -17775,7 +17820,7 @@ ${input.slice(result.pos)}
17775
17820
  return result;
17776
17821
  }
17777
17822
  }
17778
- var LetOrConst$0 = $TS($S($C($EXPECT($L149, fail, 'LetOrConst "let"'), $EXPECT($L150, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17823
+ var LetOrConst$0 = $TS($S($C($EXPECT($L150, fail, 'LetOrConst "let"'), $EXPECT($L151, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17779
17824
  return { $loc, token: $1 };
17780
17825
  });
17781
17826
  function LetOrConst(state) {
@@ -17800,7 +17845,7 @@ ${input.slice(result.pos)}
17800
17845
  return result;
17801
17846
  }
17802
17847
  }
17803
- var Const$0 = $TS($S($EXPECT($L150, fail, 'Const "const"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17848
+ var Const$0 = $TS($S($EXPECT($L151, fail, 'Const "const"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17804
17849
  return { $loc, token: $1 };
17805
17850
  });
17806
17851
  function Const(state) {
@@ -17825,7 +17870,7 @@ ${input.slice(result.pos)}
17825
17870
  return result;
17826
17871
  }
17827
17872
  }
17828
- var Is$0 = $TS($S($EXPECT($L151, fail, 'Is "is"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17873
+ var Is$0 = $TS($S($EXPECT($L152, fail, 'Is "is"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17829
17874
  return { $loc, token: $1 };
17830
17875
  });
17831
17876
  function Is(state) {
@@ -17874,7 +17919,7 @@ ${input.slice(result.pos)}
17874
17919
  return result;
17875
17920
  }
17876
17921
  }
17877
- var Loop$0 = $TS($S($EXPECT($L152, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17922
+ var Loop$0 = $TS($S($EXPECT($L153, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17878
17923
  return { $loc, token: "while(true)" };
17879
17924
  });
17880
17925
  function Loop(state) {
@@ -17899,7 +17944,7 @@ ${input.slice(result.pos)}
17899
17944
  return result;
17900
17945
  }
17901
17946
  }
17902
- var New$0 = $TS($S($EXPECT($L153, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17947
+ var New$0 = $TS($S($EXPECT($L154, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17903
17948
  return { $loc, token: $1 };
17904
17949
  });
17905
17950
  function New(state) {
@@ -17924,7 +17969,7 @@ ${input.slice(result.pos)}
17924
17969
  return result;
17925
17970
  }
17926
17971
  }
17927
- var Not$0 = $TS($S($EXPECT($L154, fail, 'Not "not"'), NonIdContinue, $N($S($E(_), $EXPECT($L12, fail, 'Not ":"')))), function($skip, $loc, $0, $1, $2, $3) {
17972
+ var Not$0 = $TS($S($EXPECT($L155, fail, 'Not "not"'), NonIdContinue, $N($S($E(_), $EXPECT($L12, fail, 'Not ":"')))), function($skip, $loc, $0, $1, $2, $3) {
17928
17973
  return { $loc, token: "!" };
17929
17974
  });
17930
17975
  function Not(state) {
@@ -17974,7 +18019,7 @@ ${input.slice(result.pos)}
17974
18019
  return result;
17975
18020
  }
17976
18021
  }
17977
- var OpenAngleBracket$0 = $TV($EXPECT($L155, fail, 'OpenAngleBracket "<"'), function($skip, $loc, $0, $1) {
18022
+ var OpenAngleBracket$0 = $TV($EXPECT($L156, fail, 'OpenAngleBracket "<"'), function($skip, $loc, $0, $1) {
17978
18023
  return { $loc, token: $1 };
17979
18024
  });
17980
18025
  function OpenAngleBracket(state) {
@@ -18074,7 +18119,7 @@ ${input.slice(result.pos)}
18074
18119
  return result;
18075
18120
  }
18076
18121
  }
18077
- var Operator$0 = $TS($S($EXPECT($L156, fail, 'Operator "operator"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18122
+ var Operator$0 = $TS($S($EXPECT($L157, fail, 'Operator "operator"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18078
18123
  return { $loc, token: $1 };
18079
18124
  });
18080
18125
  function Operator(state) {
@@ -18099,7 +18144,7 @@ ${input.slice(result.pos)}
18099
18144
  return result;
18100
18145
  }
18101
18146
  }
18102
- var Public$0 = $TS($S($EXPECT($L157, fail, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18147
+ var Public$0 = $TS($S($EXPECT($L158, fail, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18103
18148
  return { $loc, token: $1 };
18104
18149
  });
18105
18150
  function Public(state) {
@@ -18124,7 +18169,7 @@ ${input.slice(result.pos)}
18124
18169
  return result;
18125
18170
  }
18126
18171
  }
18127
- var Private$0 = $TS($S($EXPECT($L158, fail, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18172
+ var Private$0 = $TS($S($EXPECT($L159, fail, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18128
18173
  return { $loc, token: $1 };
18129
18174
  });
18130
18175
  function Private(state) {
@@ -18149,7 +18194,7 @@ ${input.slice(result.pos)}
18149
18194
  return result;
18150
18195
  }
18151
18196
  }
18152
- var Protected$0 = $TS($S($EXPECT($L159, fail, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18197
+ var Protected$0 = $TS($S($EXPECT($L160, fail, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18153
18198
  return { $loc, token: $1 };
18154
18199
  });
18155
18200
  function Protected(state) {
@@ -18174,13 +18219,13 @@ ${input.slice(result.pos)}
18174
18219
  return result;
18175
18220
  }
18176
18221
  }
18177
- var Pipe$0 = $TV($C($EXPECT($L160, fail, 'Pipe "||>"'), $EXPECT($L161, fail, 'Pipe "|\u25B7"')), function($skip, $loc, $0, $1) {
18222
+ var Pipe$0 = $TV($C($EXPECT($L161, fail, 'Pipe "||>"'), $EXPECT($L162, fail, 'Pipe "|\u25B7"')), function($skip, $loc, $0, $1) {
18178
18223
  return { $loc, token: "||>" };
18179
18224
  });
18180
- var Pipe$1 = $TV($C($EXPECT($L162, fail, 'Pipe "|>="'), $EXPECT($L163, fail, 'Pipe "\u25B7="')), function($skip, $loc, $0, $1) {
18225
+ var Pipe$1 = $TV($C($EXPECT($L163, fail, 'Pipe "|>="'), $EXPECT($L164, fail, 'Pipe "\u25B7="')), function($skip, $loc, $0, $1) {
18181
18226
  return { $loc, token: "|>=" };
18182
18227
  });
18183
- var Pipe$2 = $TV($C($EXPECT($L164, fail, 'Pipe "|>"'), $EXPECT($L165, fail, 'Pipe "\u25B7"')), function($skip, $loc, $0, $1) {
18228
+ var Pipe$2 = $TV($C($EXPECT($L165, fail, 'Pipe "|>"'), $EXPECT($L166, fail, 'Pipe "\u25B7"')), function($skip, $loc, $0, $1) {
18184
18229
  return { $loc, token: "|>" };
18185
18230
  });
18186
18231
  function Pipe(state) {
@@ -18230,7 +18275,7 @@ ${input.slice(result.pos)}
18230
18275
  return result;
18231
18276
  }
18232
18277
  }
18233
- var Readonly$0 = $TS($S($EXPECT($L166, fail, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18278
+ var Readonly$0 = $TS($S($EXPECT($L167, fail, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18234
18279
  return { $loc, token: $1, ts: true };
18235
18280
  });
18236
18281
  function Readonly(state) {
@@ -18255,7 +18300,7 @@ ${input.slice(result.pos)}
18255
18300
  return result;
18256
18301
  }
18257
18302
  }
18258
- var Return$0 = $TS($S($EXPECT($L167, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18303
+ var Return$0 = $TS($S($EXPECT($L168, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18259
18304
  return { $loc, token: $1 };
18260
18305
  });
18261
18306
  function Return(state) {
@@ -18280,7 +18325,7 @@ ${input.slice(result.pos)}
18280
18325
  return result;
18281
18326
  }
18282
18327
  }
18283
- var Satisfies$0 = $TS($S($EXPECT($L168, fail, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18328
+ var Satisfies$0 = $TS($S($EXPECT($L169, fail, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18284
18329
  return { $loc, token: $1 };
18285
18330
  });
18286
18331
  function Satisfies(state) {
@@ -18330,7 +18375,7 @@ ${input.slice(result.pos)}
18330
18375
  return result;
18331
18376
  }
18332
18377
  }
18333
- var SingleQuote$0 = $TV($EXPECT($L169, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
18378
+ var SingleQuote$0 = $TV($EXPECT($L170, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
18334
18379
  return { $loc, token: $1 };
18335
18380
  });
18336
18381
  function SingleQuote(state) {
@@ -18380,7 +18425,7 @@ ${input.slice(result.pos)}
18380
18425
  return result;
18381
18426
  }
18382
18427
  }
18383
- var Static$0 = $TS($S($EXPECT($L170, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18428
+ var Static$0 = $TS($S($EXPECT($L171, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18384
18429
  return { $loc, token: $1 };
18385
18430
  });
18386
18431
  var Static$1 = $TS($S($EXPECT($L118, fail, 'Static "@"'), $N($C($EXPECT($L4, fail, 'Static "("'), $EXPECT($L118, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
@@ -18408,7 +18453,7 @@ ${input.slice(result.pos)}
18408
18453
  return result;
18409
18454
  }
18410
18455
  }
18411
- var SubstitutionStart$0 = $TV($EXPECT($L171, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
18456
+ var SubstitutionStart$0 = $TV($EXPECT($L172, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
18412
18457
  return { $loc, token: $1 };
18413
18458
  });
18414
18459
  function SubstitutionStart(state) {
@@ -18433,7 +18478,7 @@ ${input.slice(result.pos)}
18433
18478
  return result;
18434
18479
  }
18435
18480
  }
18436
- var Switch$0 = $TS($S($EXPECT($L172, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18481
+ var Switch$0 = $TS($S($EXPECT($L173, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18437
18482
  return { $loc, token: $1 };
18438
18483
  });
18439
18484
  function Switch(state) {
@@ -18458,7 +18503,7 @@ ${input.slice(result.pos)}
18458
18503
  return result;
18459
18504
  }
18460
18505
  }
18461
- var Target$0 = $TS($S($EXPECT($L173, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18506
+ var Target$0 = $TS($S($EXPECT($L174, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18462
18507
  return { $loc, token: $1 };
18463
18508
  });
18464
18509
  function Target(state) {
@@ -18483,7 +18528,7 @@ ${input.slice(result.pos)}
18483
18528
  return result;
18484
18529
  }
18485
18530
  }
18486
- var Then$0 = $TS($S(__, $EXPECT($L174, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
18531
+ var Then$0 = $TS($S(__, $EXPECT($L175, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
18487
18532
  return { $loc, token: "" };
18488
18533
  });
18489
18534
  function Then(state) {
@@ -18508,7 +18553,7 @@ ${input.slice(result.pos)}
18508
18553
  return result;
18509
18554
  }
18510
18555
  }
18511
- var This$0 = $TS($S($EXPECT($L175, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18556
+ var This$0 = $TS($S($EXPECT($L176, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18512
18557
  return { $loc, token: $1 };
18513
18558
  });
18514
18559
  function This(state) {
@@ -18533,7 +18578,7 @@ ${input.slice(result.pos)}
18533
18578
  return result;
18534
18579
  }
18535
18580
  }
18536
- var Throw$0 = $TS($S($EXPECT($L176, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18581
+ var Throw$0 = $TS($S($EXPECT($L177, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18537
18582
  return { $loc, token: $1 };
18538
18583
  });
18539
18584
  function Throw(state) {
@@ -18558,7 +18603,7 @@ ${input.slice(result.pos)}
18558
18603
  return result;
18559
18604
  }
18560
18605
  }
18561
- var TripleDoubleQuote$0 = $TV($EXPECT($L177, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
18606
+ var TripleDoubleQuote$0 = $TV($EXPECT($L178, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
18562
18607
  return { $loc, token: "`" };
18563
18608
  });
18564
18609
  function TripleDoubleQuote(state) {
@@ -18583,7 +18628,7 @@ ${input.slice(result.pos)}
18583
18628
  return result;
18584
18629
  }
18585
18630
  }
18586
- var TripleSingleQuote$0 = $TV($EXPECT($L178, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
18631
+ var TripleSingleQuote$0 = $TV($EXPECT($L179, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
18587
18632
  return { $loc, token: "`" };
18588
18633
  });
18589
18634
  function TripleSingleQuote(state) {
@@ -18608,7 +18653,7 @@ ${input.slice(result.pos)}
18608
18653
  return result;
18609
18654
  }
18610
18655
  }
18611
- var TripleSlash$0 = $TV($EXPECT($L179, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
18656
+ var TripleSlash$0 = $TV($EXPECT($L180, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
18612
18657
  return { $loc, token: "/" };
18613
18658
  });
18614
18659
  function TripleSlash(state) {
@@ -18633,7 +18678,7 @@ ${input.slice(result.pos)}
18633
18678
  return result;
18634
18679
  }
18635
18680
  }
18636
- var TripleTick$0 = $TV($EXPECT($L180, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
18681
+ var TripleTick$0 = $TV($EXPECT($L181, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
18637
18682
  return { $loc, token: "`" };
18638
18683
  });
18639
18684
  function TripleTick(state) {
@@ -18658,7 +18703,7 @@ ${input.slice(result.pos)}
18658
18703
  return result;
18659
18704
  }
18660
18705
  }
18661
- var Try$0 = $TS($S($EXPECT($L181, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18706
+ var Try$0 = $TS($S($EXPECT($L182, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18662
18707
  return { $loc, token: $1 };
18663
18708
  });
18664
18709
  function Try(state) {
@@ -18683,7 +18728,7 @@ ${input.slice(result.pos)}
18683
18728
  return result;
18684
18729
  }
18685
18730
  }
18686
- var Typeof$0 = $TS($S($EXPECT($L182, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18731
+ var Typeof$0 = $TS($S($EXPECT($L183, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18687
18732
  return { $loc, token: $1 };
18688
18733
  });
18689
18734
  function Typeof(state) {
@@ -18708,7 +18753,7 @@ ${input.slice(result.pos)}
18708
18753
  return result;
18709
18754
  }
18710
18755
  }
18711
- var Unless$0 = $TS($S($EXPECT($L183, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18756
+ var Unless$0 = $TS($S($EXPECT($L184, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18712
18757
  return { $loc, token: $1 };
18713
18758
  });
18714
18759
  function Unless(state) {
@@ -18733,7 +18778,7 @@ ${input.slice(result.pos)}
18733
18778
  return result;
18734
18779
  }
18735
18780
  }
18736
- var Until$0 = $TS($S($EXPECT($L184, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18781
+ var Until$0 = $TS($S($EXPECT($L185, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18737
18782
  return { $loc, token: $1 };
18738
18783
  });
18739
18784
  function Until(state) {
@@ -18758,7 +18803,7 @@ ${input.slice(result.pos)}
18758
18803
  return result;
18759
18804
  }
18760
18805
  }
18761
- var Var$0 = $TS($S($EXPECT($L185, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18806
+ var Var$0 = $TS($S($EXPECT($L186, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18762
18807
  return { $loc, token: $1 };
18763
18808
  });
18764
18809
  function Var(state) {
@@ -18783,7 +18828,7 @@ ${input.slice(result.pos)}
18783
18828
  return result;
18784
18829
  }
18785
18830
  }
18786
- var Void$0 = $TS($S($EXPECT($L186, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18831
+ var Void$0 = $TS($S($EXPECT($L187, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18787
18832
  return { $loc, token: $1 };
18788
18833
  });
18789
18834
  function Void(state) {
@@ -18808,7 +18853,7 @@ ${input.slice(result.pos)}
18808
18853
  return result;
18809
18854
  }
18810
18855
  }
18811
- var When$0 = $TS($S($EXPECT($L187, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18856
+ var When$0 = $TS($S($EXPECT($L188, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18812
18857
  return { $loc, token: "case" };
18813
18858
  });
18814
18859
  function When(state) {
@@ -18833,7 +18878,7 @@ ${input.slice(result.pos)}
18833
18878
  return result;
18834
18879
  }
18835
18880
  }
18836
- var While$0 = $TS($S($EXPECT($L188, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18881
+ var While$0 = $TS($S($EXPECT($L189, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18837
18882
  return { $loc, token: $1 };
18838
18883
  });
18839
18884
  function While(state) {
@@ -18858,7 +18903,7 @@ ${input.slice(result.pos)}
18858
18903
  return result;
18859
18904
  }
18860
18905
  }
18861
- var Yield$0 = $TS($S($EXPECT($L189, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18906
+ var Yield$0 = $TS($S($EXPECT($L190, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
18862
18907
  return { $loc, token: $1, type: "Yield" };
18863
18908
  });
18864
18909
  function Yield(state) {
@@ -19003,7 +19048,7 @@ ${input.slice(result.pos)}
19003
19048
  return result;
19004
19049
  }
19005
19050
  }
19006
- var JSXSelfClosingElement$0 = $TS($S($EXPECT($L155, fail, 'JSXSelfClosingElement "<"'), JSXElementName, $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L190, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
19051
+ var JSXSelfClosingElement$0 = $TS($S($EXPECT($L156, fail, 'JSXSelfClosingElement "<"'), JSXElementName, $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L191, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
19007
19052
  return { type: "JSXElement", children: $0, tag: $2 };
19008
19053
  });
19009
19054
  function JSXSelfClosingElement(state) {
@@ -19079,7 +19124,7 @@ ${input.slice(result.pos)}
19079
19124
  return result;
19080
19125
  }
19081
19126
  }
19082
- var JSXOpeningElement$0 = $S($EXPECT($L155, fail, 'JSXOpeningElement "<"'), JSXElementName, $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L34, fail, 'JSXOpeningElement ">"'));
19127
+ var JSXOpeningElement$0 = $S($EXPECT($L156, fail, 'JSXOpeningElement "<"'), JSXElementName, $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L34, fail, 'JSXOpeningElement ">"'));
19083
19128
  function JSXOpeningElement(state) {
19084
19129
  let eventData;
19085
19130
  if (state.events) {
@@ -19131,7 +19176,7 @@ ${input.slice(result.pos)}
19131
19176
  return result;
19132
19177
  }
19133
19178
  }
19134
- var JSXClosingElement$0 = $S($EXPECT($L191, fail, 'JSXClosingElement "</"'), $E(Whitespace), JSXElementName, $E(Whitespace), $EXPECT($L34, fail, 'JSXClosingElement ">"'));
19179
+ var JSXClosingElement$0 = $S($EXPECT($L192, fail, 'JSXClosingElement "</"'), $E(Whitespace), JSXElementName, $E(Whitespace), $EXPECT($L34, fail, 'JSXClosingElement ">"'));
19135
19180
  function JSXClosingElement(state) {
19136
19181
  let eventData;
19137
19182
  if (state.events) {
@@ -19169,7 +19214,7 @@ ${input.slice(result.pos)}
19169
19214
  ];
19170
19215
  return { type: "JSXFragment", children: parts, jsxChildren: children.jsxChildren };
19171
19216
  });
19172
- var JSXFragment$1 = $TS($S(CoffeeJSXEnabled, $EXPECT($L192, fail, 'JSXFragment "<>"'), $E(JSXChildren), $E(Whitespace), JSXClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
19217
+ var JSXFragment$1 = $TS($S(CoffeeJSXEnabled, $EXPECT($L193, fail, 'JSXFragment "<>"'), $E(JSXChildren), $E(Whitespace), JSXClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
19173
19218
  var children = $3;
19174
19219
  $0 = $0.slice(1);
19175
19220
  return {
@@ -19200,7 +19245,7 @@ ${input.slice(result.pos)}
19200
19245
  return result;
19201
19246
  }
19202
19247
  }
19203
- var PushJSXOpeningFragment$0 = $TV($EXPECT($L192, fail, 'PushJSXOpeningFragment "<>"'), function($skip, $loc, $0, $1) {
19248
+ var PushJSXOpeningFragment$0 = $TV($EXPECT($L193, fail, 'PushJSXOpeningFragment "<>"'), function($skip, $loc, $0, $1) {
19204
19249
  module.JSXTagStack.push("");
19205
19250
  return $1;
19206
19251
  });
@@ -19254,7 +19299,7 @@ ${input.slice(result.pos)}
19254
19299
  return result;
19255
19300
  }
19256
19301
  }
19257
- var JSXClosingFragment$0 = $EXPECT($L193, fail, 'JSXClosingFragment "</>"');
19302
+ var JSXClosingFragment$0 = $EXPECT($L194, fail, 'JSXClosingFragment "</>"');
19258
19303
  function JSXClosingFragment(state) {
19259
19304
  let eventData;
19260
19305
  if (state.events) {
@@ -20223,7 +20268,7 @@ ${input.slice(result.pos)}
20223
20268
  return result;
20224
20269
  }
20225
20270
  }
20226
- var JSXComment$0 = $TS($S($EXPECT($L194, fail, 'JSXComment "<!--"'), JSXCommentContent, $EXPECT($L195, fail, 'JSXComment "-->"')), function($skip, $loc, $0, $1, $2, $3) {
20271
+ var JSXComment$0 = $TS($S($EXPECT($L195, fail, 'JSXComment "<!--"'), JSXCommentContent, $EXPECT($L196, fail, 'JSXComment "-->"')), function($skip, $loc, $0, $1, $2, $3) {
20227
20272
  return ["{/*", $2, "*/}"];
20228
20273
  });
20229
20274
  function JSXComment(state) {
@@ -20552,7 +20597,7 @@ ${input.slice(result.pos)}
20552
20597
  return result;
20553
20598
  }
20554
20599
  }
20555
- var TypeKeyword$0 = $TS($S($EXPECT($L196, fail, 'TypeKeyword "type"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
20600
+ var TypeKeyword$0 = $TS($S($EXPECT($L197, fail, 'TypeKeyword "type"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
20556
20601
  return { $loc, token: $1 };
20557
20602
  });
20558
20603
  function TypeKeyword(state) {
@@ -20577,7 +20622,7 @@ ${input.slice(result.pos)}
20577
20622
  return result;
20578
20623
  }
20579
20624
  }
20580
- var Enum$0 = $TS($S($EXPECT($L197, fail, 'Enum "enum"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
20625
+ var Enum$0 = $TS($S($EXPECT($L198, fail, 'Enum "enum"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
20581
20626
  return { $loc, token: $1 };
20582
20627
  });
20583
20628
  function Enum(state) {
@@ -20602,7 +20647,7 @@ ${input.slice(result.pos)}
20602
20647
  return result;
20603
20648
  }
20604
20649
  }
20605
- var Interface$0 = $TS($S($EXPECT($L198, fail, 'Interface "interface"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
20650
+ var Interface$0 = $TS($S($EXPECT($L199, fail, 'Interface "interface"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
20606
20651
  return { $loc, token: $1 };
20607
20652
  });
20608
20653
  function Interface(state) {
@@ -20627,7 +20672,7 @@ ${input.slice(result.pos)}
20627
20672
  return result;
20628
20673
  }
20629
20674
  }
20630
- var Global$0 = $TS($S($EXPECT($L199, fail, 'Global "global"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
20675
+ var Global$0 = $TS($S($EXPECT($L200, fail, 'Global "global"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
20631
20676
  return { $loc, token: $1 };
20632
20677
  });
20633
20678
  function Global(state) {
@@ -20652,7 +20697,7 @@ ${input.slice(result.pos)}
20652
20697
  return result;
20653
20698
  }
20654
20699
  }
20655
- var Module$0 = $TS($S($EXPECT($L200, fail, 'Module "module"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
20700
+ var Module$0 = $TS($S($EXPECT($L201, fail, 'Module "module"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
20656
20701
  return { $loc, token: $1 };
20657
20702
  });
20658
20703
  function Module(state) {
@@ -20677,7 +20722,7 @@ ${input.slice(result.pos)}
20677
20722
  return result;
20678
20723
  }
20679
20724
  }
20680
- var Namespace$0 = $TS($S($EXPECT($L201, fail, 'Namespace "namespace"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
20725
+ var Namespace$0 = $TS($S($EXPECT($L202, fail, 'Namespace "namespace"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
20681
20726
  return { $loc, token: $1 };
20682
20727
  });
20683
20728
  function Namespace(state) {
@@ -21371,7 +21416,7 @@ ${input.slice(result.pos)}
21371
21416
  return result;
21372
21417
  }
21373
21418
  }
21374
- var ReturnType$0 = $TS($S($E($S(__, $EXPECT($L202, fail, 'ReturnType "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2) {
21419
+ var ReturnType$0 = $TS($S($E($S(__, $EXPECT($L203, fail, 'ReturnType "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2) {
21375
21420
  var asserts = $1;
21376
21421
  var t = $2;
21377
21422
  if (asserts) {
@@ -21411,7 +21456,7 @@ ${input.slice(result.pos)}
21411
21456
  return result;
21412
21457
  }
21413
21458
  }
21414
- var TypePredicate$0 = $TS($S(Type, $E($S(__, $EXPECT($L151, fail, 'TypePredicate "is"'), NonIdContinue, Type))), function($skip, $loc, $0, $1, $2) {
21459
+ var TypePredicate$0 = $TS($S(Type, $E($S(__, $EXPECT($L152, fail, 'TypePredicate "is"'), NonIdContinue, Type))), function($skip, $loc, $0, $1, $2) {
21415
21460
  var lhs = $1;
21416
21461
  var rhs = $2;
21417
21462
  if (!rhs)
@@ -21553,10 +21598,10 @@ ${input.slice(result.pos)}
21553
21598
  return result;
21554
21599
  }
21555
21600
  }
21556
- var TypeUnaryOp$0 = $S($EXPECT($L203, fail, 'TypeUnaryOp "keyof"'), NonIdContinue);
21557
- var TypeUnaryOp$1 = $S($EXPECT($L182, fail, 'TypeUnaryOp "typeof"'), NonIdContinue);
21558
- var TypeUnaryOp$2 = $S($EXPECT($L204, fail, 'TypeUnaryOp "infer"'), NonIdContinue);
21559
- var TypeUnaryOp$3 = $S($EXPECT($L166, fail, 'TypeUnaryOp "readonly"'), NonIdContinue);
21601
+ var TypeUnaryOp$0 = $S($EXPECT($L204, fail, 'TypeUnaryOp "keyof"'), NonIdContinue);
21602
+ var TypeUnaryOp$1 = $S($EXPECT($L183, fail, 'TypeUnaryOp "typeof"'), NonIdContinue);
21603
+ var TypeUnaryOp$2 = $S($EXPECT($L205, fail, 'TypeUnaryOp "infer"'), NonIdContinue);
21604
+ var TypeUnaryOp$3 = $S($EXPECT($L167, fail, 'TypeUnaryOp "readonly"'), NonIdContinue);
21560
21605
  function TypeUnaryOp(state) {
21561
21606
  let eventData;
21562
21607
  if (state.events) {
@@ -21819,7 +21864,7 @@ ${input.slice(result.pos)}
21819
21864
  return result;
21820
21865
  }
21821
21866
  }
21822
- var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L140, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
21867
+ var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L141, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
21823
21868
  if ($2)
21824
21869
  return $0;
21825
21870
  return $1;
@@ -21951,10 +21996,10 @@ ${input.slice(result.pos)}
21951
21996
  }
21952
21997
  var TypeLiteral$0 = TypeTemplateLiteral;
21953
21998
  var TypeLiteral$1 = Literal;
21954
- var TypeLiteral$2 = $TS($S($EXPECT($L186, fail, 'TypeLiteral "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
21999
+ var TypeLiteral$2 = $TS($S($EXPECT($L187, fail, 'TypeLiteral "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
21955
22000
  return { type: "VoidType", $loc, token: $1 };
21956
22001
  });
21957
- var TypeLiteral$3 = $TV($EXPECT($L205, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
22002
+ var TypeLiteral$3 = $TV($EXPECT($L206, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
21958
22003
  return { $loc, token: "[]" };
21959
22004
  });
21960
22005
  function TypeLiteral(state) {
@@ -22135,7 +22180,7 @@ ${input.slice(result.pos)}
22135
22180
  return result;
22136
22181
  }
22137
22182
  }
22138
- var TypeArguments$0 = $TS($S($EXPECT($L155, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L34, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
22183
+ var TypeArguments$0 = $TS($S($EXPECT($L156, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L34, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
22139
22184
  var args = $2;
22140
22185
  return { ts: true, types: args.map(([, t]) => t), children: $0 };
22141
22186
  });
@@ -22207,7 +22252,7 @@ ${input.slice(result.pos)}
22207
22252
  return result;
22208
22253
  }
22209
22254
  }
22210
- var TypeParameters$0 = $TS($S($E(_), $EXPECT($L155, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L34, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
22255
+ var TypeParameters$0 = $TS($S($E(_), $EXPECT($L156, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L34, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
22211
22256
  var parameters = $3;
22212
22257
  return {
22213
22258
  type: "TypeParameters",
@@ -22238,7 +22283,7 @@ ${input.slice(result.pos)}
22238
22283
  return result;
22239
22284
  }
22240
22285
  }
22241
- var TypeParameter$0 = $S(__, $E($S($EXPECT($L150, fail, 'TypeParameter "const"'), $E(_))), Identifier, $E(TypeConstraint), $E(TypeInitializer), TypeParameterDelimiter);
22286
+ var TypeParameter$0 = $S(__, $E($S($EXPECT($L151, fail, 'TypeParameter "const"'), $E(_))), Identifier, $E(TypeConstraint), $E(TypeInitializer), TypeParameterDelimiter);
22242
22287
  function TypeParameter(state) {
22243
22288
  let eventData;
22244
22289
  if (state.events) {
@@ -22261,7 +22306,7 @@ ${input.slice(result.pos)}
22261
22306
  return result;
22262
22307
  }
22263
22308
  }
22264
- var TypeConstraint$0 = $S(__, $EXPECT($L140, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
22309
+ var TypeConstraint$0 = $S(__, $EXPECT($L141, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
22265
22310
  function TypeConstraint(state) {
22266
22311
  let eventData;
22267
22312
  if (state.events) {
@@ -22412,7 +22457,7 @@ ${input.slice(result.pos)}
22412
22457
  return result;
22413
22458
  }
22414
22459
  }
22415
- var CivetPrologueContent$0 = $TS($S($EXPECT($L206, fail, 'CivetPrologueContent "civet"'), NonIdContinue, $Q(CivetOption), $EXPECT($R63, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3, $4) {
22460
+ var CivetPrologueContent$0 = $TS($S($EXPECT($L207, fail, 'CivetPrologueContent "civet"'), NonIdContinue, $Q(CivetOption), $EXPECT($R63, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3, $4) {
22416
22461
  var options = $3;
22417
22462
  return {
22418
22463
  type: "CivetPrologue",
@@ -23655,11 +23700,7 @@ ${input.slice(result.pos)}
23655
23700
  module.getRef = function(base) {
23656
23701
  if (refs.hasOwnProperty(base))
23657
23702
  return refs[base];
23658
- const ref = {
23659
- type: "Ref",
23660
- base,
23661
- id: base
23662
- };
23703
+ const ref = makeRef(base);
23663
23704
  if (declareRef.hasOwnProperty(base))
23664
23705
  declareRef[base](ref);
23665
23706
  return refs[base] = ref;
@@ -24040,12 +24081,14 @@ ${input.slice(result.pos)}
24040
24081
  literalValue,
24041
24082
  makeEmptyBlock,
24042
24083
  makeLeftHandSideExpression,
24084
+ makeRef,
24043
24085
  maybeRef,
24044
24086
  modifyString,
24087
+ processAssignmentDeclaration,
24045
24088
  processBinaryOpExpression,
24046
24089
  processCallMemberExpression,
24047
24090
  processCoffeeInterpolation,
24048
- processAssignmentDeclaration,
24091
+ processForInOf,
24049
24092
  processProgram,
24050
24093
  processUnaryExpression,
24051
24094
  quoteString,