@danielx/civet 0.11.11 → 0.11.12
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/CHANGELOG.md +15 -0
- package/dist/browser.js +218 -125
- package/dist/browser.min.js +1 -1
- package/dist/main.js +387 -240
- package/dist/main.mjs +387 -240
- package/dist/ts-service/index.js +232 -178
- package/dist/ts-service/index.js.map +4 -4
- package/dist/ts-service/index.mjs +228 -174
- package/dist/ts-service/index.mjs.map +4 -4
- package/dist/types.d.ts +9 -0
- package/package.json +4 -4
package/dist/main.mjs
CHANGED
|
@@ -28,9 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
mod
|
|
29
29
|
));
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@danielx+hera@0.9.
|
|
31
|
+
// node_modules/.pnpm/@danielx+hera@0.9.8/node_modules/@danielx/hera/dist/machine.js
|
|
32
32
|
var require_machine = __commonJS({
|
|
33
|
-
"node_modules/.pnpm/@danielx+hera@0.9.
|
|
33
|
+
"node_modules/.pnpm/@danielx+hera@0.9.8/node_modules/@danielx/hera/dist/machine.js"(exports, module) {
|
|
34
34
|
var __defProp2 = Object.defineProperty;
|
|
35
35
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
36
36
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
@@ -59,7 +59,7 @@ var require_machine = __commonJS({
|
|
|
59
59
|
$N: () => $N2,
|
|
60
60
|
$P: () => $P2,
|
|
61
61
|
$Q: () => $Q2,
|
|
62
|
-
$R: () => $
|
|
62
|
+
$R: () => $R104,
|
|
63
63
|
$R$0: () => $R$02,
|
|
64
64
|
$S: () => $S2,
|
|
65
65
|
$T: () => $T,
|
|
@@ -76,7 +76,7 @@ var require_machine = __commonJS({
|
|
|
76
76
|
function $EXPECT2(parser2, expectation) {
|
|
77
77
|
return function(ctx, state2) {
|
|
78
78
|
const result = parser2(ctx, state2);
|
|
79
|
-
if (!result) ctx.fail(state2.pos, expectation);
|
|
79
|
+
if (!result) ctx.fail(state2.pos, typeof expectation === "function" ? expectation() : expectation);
|
|
80
80
|
return result;
|
|
81
81
|
};
|
|
82
82
|
}
|
|
@@ -96,7 +96,7 @@ var require_machine = __commonJS({
|
|
|
96
96
|
return;
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
function $
|
|
99
|
+
function $R104(regExp) {
|
|
100
100
|
return function(_ctx, state2) {
|
|
101
101
|
const { input, pos } = state2;
|
|
102
102
|
regExp.lastIndex = state2.pos;
|
|
@@ -1827,6 +1827,7 @@ function adjustBindingElements(elements) {
|
|
|
1827
1827
|
if (restCount === 0) {
|
|
1828
1828
|
return {
|
|
1829
1829
|
children: elements,
|
|
1830
|
+
elements: void 0,
|
|
1830
1831
|
names,
|
|
1831
1832
|
blockPrefix,
|
|
1832
1833
|
length
|
|
@@ -1847,13 +1848,32 @@ function adjustBindingElements(elements) {
|
|
|
1847
1848
|
names: after.flatMap((p) => p.names)
|
|
1848
1849
|
};
|
|
1849
1850
|
}
|
|
1851
|
+
const restTrimmed = {
|
|
1852
|
+
...rest,
|
|
1853
|
+
children: rest.children.slice(0, -1)
|
|
1854
|
+
// remove trailing comma
|
|
1855
|
+
};
|
|
1856
|
+
if (rest.binding.type === "EmptyBinding" && !l) {
|
|
1857
|
+
const preceding = elements.slice(0, restIndex);
|
|
1858
|
+
const last = preceding[preceding.length - 1];
|
|
1859
|
+
if (last && arrayElementHasTrailingComma(last)) {
|
|
1860
|
+
preceding[preceding.length - 1] = {
|
|
1861
|
+
...last,
|
|
1862
|
+
children: last.children.slice(0, -1)
|
|
1863
|
+
};
|
|
1864
|
+
}
|
|
1865
|
+
return {
|
|
1866
|
+
names,
|
|
1867
|
+
children: preceding,
|
|
1868
|
+
elements: [...preceding, restTrimmed],
|
|
1869
|
+
blockPrefix,
|
|
1870
|
+
length
|
|
1871
|
+
};
|
|
1872
|
+
}
|
|
1850
1873
|
return {
|
|
1851
1874
|
names,
|
|
1852
|
-
children: [...elements.slice(0, restIndex),
|
|
1853
|
-
|
|
1854
|
-
children: rest.children.slice(0, -1)
|
|
1855
|
-
// remove trailing comma
|
|
1856
|
-
}],
|
|
1875
|
+
children: [...elements.slice(0, restIndex), restTrimmed],
|
|
1876
|
+
elements: void 0,
|
|
1857
1877
|
blockPrefix,
|
|
1858
1878
|
length
|
|
1859
1879
|
};
|
|
@@ -1865,6 +1885,7 @@ function adjustBindingElements(elements) {
|
|
|
1865
1885
|
return {
|
|
1866
1886
|
names,
|
|
1867
1887
|
children: [...elements, err],
|
|
1888
|
+
elements: void 0,
|
|
1868
1889
|
blockPrefix,
|
|
1869
1890
|
length
|
|
1870
1891
|
};
|
|
@@ -3898,6 +3919,9 @@ function processParams(f) {
|
|
|
3898
3919
|
const restIdentifier = rest.binding.ref || rest.binding;
|
|
3899
3920
|
parameters.names.push(...rest.names ?? []);
|
|
3900
3921
|
rest.children.pop();
|
|
3922
|
+
if (rest.binding.type === "EmptyBinding" && !after.length) {
|
|
3923
|
+
restIdentifier.base = restIdentifier.id = "_ref";
|
|
3924
|
+
}
|
|
3901
3925
|
if (after.length) {
|
|
3902
3926
|
let m6;
|
|
3903
3927
|
if (m6 = rest.binding.type, m6 === "ArrayBindingPattern" || m6 === "ObjectBindingPattern" || m6 === "NamedBindingPattern") {
|
|
@@ -5806,6 +5830,19 @@ function processDeclarationCondition(condition, rootCondition, parent) {
|
|
|
5806
5830
|
});
|
|
5807
5831
|
} else {
|
|
5808
5832
|
const { expression } = initializer;
|
|
5833
|
+
if (parent.type === "SwitchStatement" && pattern.type === "Identifier" && !nullCheck) {
|
|
5834
|
+
ref = trimFirstSpace(pattern);
|
|
5835
|
+
Object.assign(condition, {
|
|
5836
|
+
type: "AssignmentExpression",
|
|
5837
|
+
children: [ref],
|
|
5838
|
+
pattern,
|
|
5839
|
+
ref,
|
|
5840
|
+
statementDeclaration: true
|
|
5841
|
+
});
|
|
5842
|
+
updateParentPointers(condition, parent);
|
|
5843
|
+
rootCondition.blockPrefix = getPatternBlockPrefix(pattern, trimFirstSpace(expression), decl, typeSuffix);
|
|
5844
|
+
return;
|
|
5845
|
+
}
|
|
5809
5846
|
ref = maybeRef(expression);
|
|
5810
5847
|
const simple = ref === expression;
|
|
5811
5848
|
let children;
|
|
@@ -8011,6 +8048,11 @@ function processCallMemberExpression(node) {
|
|
|
8011
8048
|
let name = part.name;
|
|
8012
8049
|
let value = part.value ?? name;
|
|
8013
8050
|
const wValue = getTrimmingSpace(part.value);
|
|
8051
|
+
let privateField = void 0;
|
|
8052
|
+
if (value?.privateShorthand) {
|
|
8053
|
+
privateField = value.privateId?.name;
|
|
8054
|
+
}
|
|
8055
|
+
;
|
|
8014
8056
|
[value, suppressPrefix] = handleThisPrivateShorthands(value);
|
|
8015
8057
|
if (glob.reversed) {
|
|
8016
8058
|
[name, value] = [value, name];
|
|
@@ -8064,6 +8106,7 @@ function processCallMemberExpression(node) {
|
|
|
8064
8106
|
type: part.type,
|
|
8065
8107
|
name,
|
|
8066
8108
|
value,
|
|
8109
|
+
privateField,
|
|
8067
8110
|
delim: part.delim,
|
|
8068
8111
|
names: part.names,
|
|
8069
8112
|
children: [
|
|
@@ -8635,18 +8678,80 @@ function processAssignments(statements) {
|
|
|
8635
8678
|
if ($1.some((x) => x[x.length - 1].special)) {
|
|
8636
8679
|
const [, lhs, , op] = $1[0];
|
|
8637
8680
|
const { call, omitLhs } = op;
|
|
8681
|
+
let callLhs = lhs;
|
|
8682
|
+
if (!omitLhs && lhs.type === "MemberExpression") {
|
|
8683
|
+
const memberLhs = lhs;
|
|
8684
|
+
const { children: memberChildren } = memberLhs;
|
|
8685
|
+
let mutated = false;
|
|
8686
|
+
const callChildren = memberChildren.map((child) => {
|
|
8687
|
+
if (!(child?.type === "Index")) {
|
|
8688
|
+
return child;
|
|
8689
|
+
}
|
|
8690
|
+
const indexNode = child;
|
|
8691
|
+
const { ref, refAssignment } = maybeRefAssignment(indexNode.expression);
|
|
8692
|
+
if (!refAssignment) {
|
|
8693
|
+
return child;
|
|
8694
|
+
}
|
|
8695
|
+
mutated = true;
|
|
8696
|
+
replaceNode(indexNode.expression, refAssignment, indexNode);
|
|
8697
|
+
return makeNode({
|
|
8698
|
+
type: "Index",
|
|
8699
|
+
children: ["[", ref, "]"],
|
|
8700
|
+
expression: ref
|
|
8701
|
+
});
|
|
8702
|
+
});
|
|
8703
|
+
if (mutated) {
|
|
8704
|
+
callLhs = makeNode({
|
|
8705
|
+
...memberLhs,
|
|
8706
|
+
children: callChildren
|
|
8707
|
+
});
|
|
8708
|
+
}
|
|
8709
|
+
}
|
|
8638
8710
|
const index = exp.children.indexOf($2);
|
|
8639
8711
|
assert.notEqual(index, -1, "processAssignments: $2 must be directly in exp.children");
|
|
8640
8712
|
exp.children.splice(
|
|
8641
8713
|
index,
|
|
8642
8714
|
1,
|
|
8643
|
-
exp.expression = $2 = [call, "(",
|
|
8715
|
+
exp.expression = $2 = [call, "(", callLhs, ", ", $2, ")"]
|
|
8644
8716
|
);
|
|
8645
8717
|
if (omitLhs) {
|
|
8646
8718
|
replaceNode(exp, $2);
|
|
8647
8719
|
continue;
|
|
8648
8720
|
}
|
|
8649
8721
|
}
|
|
8722
|
+
if ($1.length === 1) {
|
|
8723
|
+
const [, soleLhs, , soleOp] = $1[0];
|
|
8724
|
+
const isPrivateGlobProp = (p) => {
|
|
8725
|
+
return p?.type === "Property" && !!p.privateField;
|
|
8726
|
+
};
|
|
8727
|
+
if (soleOp.token === "=" && soleLhs.type === "ObjectExpression" && soleLhs.properties?.some(isPrivateGlobProp) && !soleLhs.properties.some((p) => p?.type === "SpreadProperty")) {
|
|
8728
|
+
const properties = soleLhs.properties.filter((p) => p?.type === "Property");
|
|
8729
|
+
let prefix, sourceExpr;
|
|
8730
|
+
if (properties.length > 1 && needsRef($2)) {
|
|
8731
|
+
const srcRef = makeRef();
|
|
8732
|
+
prefix = [srcRef, " = ", $2, ", "];
|
|
8733
|
+
sourceExpr = srcRef;
|
|
8734
|
+
exp.hoistDec = {
|
|
8735
|
+
type: "Declaration",
|
|
8736
|
+
children: ["let ", srcRef],
|
|
8737
|
+
names: [],
|
|
8738
|
+
bindings: [],
|
|
8739
|
+
decl: "let"
|
|
8740
|
+
};
|
|
8741
|
+
} else {
|
|
8742
|
+
prefix = [];
|
|
8743
|
+
sourceExpr = $2;
|
|
8744
|
+
}
|
|
8745
|
+
const assignments = properties.map((prop) => {
|
|
8746
|
+
const sourceName = prop.privateField ?? prop.name;
|
|
8747
|
+
return [prop.value, " = ", sourceExpr, ".", sourceName];
|
|
8748
|
+
});
|
|
8749
|
+
const joined = assignments.flatMap((a, idx) => idx ? [", ", a] : [a]);
|
|
8750
|
+
exp.children = [["(", prefix, joined, ")"]];
|
|
8751
|
+
exp.names = [];
|
|
8752
|
+
continue;
|
|
8753
|
+
}
|
|
8754
|
+
}
|
|
8650
8755
|
let wrapped = false;
|
|
8651
8756
|
const insideParens = exp.parent?.type === "ParenthesizedExpression";
|
|
8652
8757
|
let i = 0;
|
|
@@ -8732,7 +8837,7 @@ function processAssignments(statements) {
|
|
|
8732
8837
|
names: []
|
|
8733
8838
|
};
|
|
8734
8839
|
}
|
|
8735
|
-
replaceNode($2, newMemberExp);
|
|
8840
|
+
replaceNode($2, newMemberExp, exp);
|
|
8736
8841
|
$2 = newMemberExp;
|
|
8737
8842
|
}
|
|
8738
8843
|
}
|
|
@@ -10790,113 +10895,128 @@ var $L245 = (0, import_lib2.$L)("unique");
|
|
|
10790
10895
|
var $L246 = (0, import_lib2.$L)("symbol");
|
|
10791
10896
|
var $L247 = (0, import_lib2.$L)("[]");
|
|
10792
10897
|
var $L248 = (0, import_lib2.$L)("civet");
|
|
10793
|
-
var $R0 = (0, import_lib2.$R)(
|
|
10794
|
-
var $R1 = (0, import_lib2.$R)(
|
|
10795
|
-
var $R2 = (0, import_lib2.$R)(
|
|
10796
|
-
var $R3 = (0, import_lib2.$R)(
|
|
10797
|
-
var $R4 = (0, import_lib2.$R)(
|
|
10798
|
-
var $R5 = (0, import_lib2.$R)(
|
|
10799
|
-
var $R6 = (0, import_lib2.$R)(
|
|
10800
|
-
var $R7 = (0, import_lib2.$R)(
|
|
10801
|
-
var $R8 = (0, import_lib2.$R)(
|
|
10802
|
-
var $R9 = (0, import_lib2.$R)(
|
|
10803
|
-
var $R10 = (0, import_lib2.$R)(
|
|
10804
|
-
var $R11 = (0, import_lib2.$R)(
|
|
10805
|
-
var $R12 = (0, import_lib2.$R)(
|
|
10806
|
-
var $R13 = (0, import_lib2.$R)(
|
|
10807
|
-
var $R14 = (0, import_lib2.$R)(
|
|
10808
|
-
var $R15 = (0, import_lib2.$R)(
|
|
10809
|
-
var $R16 = (0, import_lib2.$R)(
|
|
10810
|
-
var $R17 = (0, import_lib2.$R)(
|
|
10811
|
-
var $R18 = (0, import_lib2.$R)(
|
|
10812
|
-
var $R19 = (0, import_lib2.$R)(
|
|
10813
|
-
var $R20 = (0, import_lib2.$R)(
|
|
10814
|
-
var $R21 = (0, import_lib2.$R)(
|
|
10815
|
-
var $R22 = (0, import_lib2.$R)(
|
|
10816
|
-
var $R23 = (0, import_lib2.$R)(
|
|
10817
|
-
var $R24 = (0, import_lib2.$R)(
|
|
10818
|
-
var $R25 = (0, import_lib2.$R)(
|
|
10819
|
-
var $R26 = (0, import_lib2.$R)(
|
|
10820
|
-
var $R27 = (0, import_lib2.$R)(
|
|
10821
|
-
var $R28 = (0, import_lib2.$R)(
|
|
10822
|
-
var $R29 = (0, import_lib2.$R)(
|
|
10823
|
-
var $R30 = (0, import_lib2.$R)(
|
|
10824
|
-
var $R31 = (0, import_lib2.$R)(
|
|
10825
|
-
var $R32 = (0, import_lib2.$R)(
|
|
10826
|
-
var $R33 = (0, import_lib2.$R)(
|
|
10827
|
-
var $R34 = (0, import_lib2.$R)(
|
|
10828
|
-
var $R35 = (0, import_lib2.$R)(
|
|
10829
|
-
var $R36 = (0, import_lib2.$R)(
|
|
10830
|
-
var $R37 = (0, import_lib2.$R)(
|
|
10831
|
-
var $R38 = (0, import_lib2.$R)(
|
|
10832
|
-
var $R39 = (0, import_lib2.$R)(
|
|
10833
|
-
var $R40 = (0, import_lib2.$R)(
|
|
10834
|
-
var $R41 = (0, import_lib2.$R)(
|
|
10835
|
-
var $R42 = (0, import_lib2.$R)(
|
|
10836
|
-
var $R43 = (0, import_lib2.$R)(
|
|
10837
|
-
var $R44 = (0, import_lib2.$R)(
|
|
10838
|
-
var $R45 = (0, import_lib2.$R)(
|
|
10839
|
-
var $R46 = (0, import_lib2.$R)(
|
|
10840
|
-
var $R47 = (0, import_lib2.$R)(
|
|
10841
|
-
var $R48 = (0, import_lib2.$R)(
|
|
10842
|
-
var $R49 = (0, import_lib2.$R)(
|
|
10843
|
-
var $R50 = (0, import_lib2.$R)(
|
|
10844
|
-
var $R51 = (0, import_lib2.$R)(
|
|
10845
|
-
var $R52 = (0, import_lib2.$R)(
|
|
10846
|
-
var $R53 = (0, import_lib2.$R)(
|
|
10847
|
-
var $R54 = (0, import_lib2.$R)(
|
|
10848
|
-
var $R55 = (0, import_lib2.$R)(
|
|
10849
|
-
var $R56 = (0, import_lib2.$R)(
|
|
10850
|
-
var $R57 = (0, import_lib2.$R)(
|
|
10851
|
-
var $R58 = (0, import_lib2.$R)(
|
|
10852
|
-
var $R59 = (0, import_lib2.$R)(
|
|
10853
|
-
var $R60 = (0, import_lib2.$R)(
|
|
10854
|
-
var $R61 = (0, import_lib2.$R)(
|
|
10855
|
-
var $R62 = (0, import_lib2.$R)(
|
|
10856
|
-
var $R63 = (0, import_lib2.$R)(
|
|
10857
|
-
var $R64 = (0, import_lib2.$R)(
|
|
10858
|
-
var $R65 = (0, import_lib2.$R)(
|
|
10859
|
-
var $R66 = (0, import_lib2.$R)(
|
|
10860
|
-
var $R67 = (0, import_lib2.$R)(
|
|
10861
|
-
var $R68 = (0, import_lib2.$R)(
|
|
10862
|
-
var $R69 = (0, import_lib2.$R)(new
|
|
10863
|
-
var $R70 = (0, import_lib2.$R)(
|
|
10864
|
-
var $R71 = (0, import_lib2.$R)(
|
|
10865
|
-
var $R72 = (0, import_lib2.$R)(
|
|
10866
|
-
var $R73 = (0, import_lib2.$R)(
|
|
10867
|
-
var $R74 = (0, import_lib2.$R)(
|
|
10868
|
-
var $R75 = (0, import_lib2.$R)(
|
|
10869
|
-
var $R76 = (0, import_lib2.$R)(
|
|
10870
|
-
var $R77 = (0, import_lib2.$R)(
|
|
10871
|
-
var $R78 = (0, import_lib2.$R)(
|
|
10872
|
-
var $R79 = (0, import_lib2.$R)(
|
|
10873
|
-
var $R80 = (0, import_lib2.$R)(
|
|
10874
|
-
var $R81 = (0, import_lib2.$R)(
|
|
10875
|
-
var $R82 = (0, import_lib2.$R)(
|
|
10876
|
-
var $R83 = (0, import_lib2.$R)(
|
|
10877
|
-
var $R84 = (0, import_lib2.$R)(
|
|
10878
|
-
var $R85 = (0, import_lib2.$R)(
|
|
10879
|
-
var $R86 = (0, import_lib2.$R)(
|
|
10880
|
-
var $R87 = (0, import_lib2.$R)(
|
|
10881
|
-
var $R88 = (0, import_lib2.$R)(
|
|
10882
|
-
var $R89 = (0, import_lib2.$R)(
|
|
10883
|
-
var $R90 = (0, import_lib2.$R)(
|
|
10884
|
-
var $R91 = (0, import_lib2.$R)(
|
|
10885
|
-
var $R92 = (0, import_lib2.$R)(
|
|
10886
|
-
var $R93 = (0, import_lib2.$R)(
|
|
10887
|
-
var $R94 = (0, import_lib2.$R)(
|
|
10888
|
-
var $R95 = (0, import_lib2.$R)(
|
|
10889
|
-
var $R96 = (0, import_lib2.$R)(
|
|
10890
|
-
var $R97 = (0, import_lib2.$R)(
|
|
10891
|
-
var $R98 = (0, import_lib2.$R)(
|
|
10892
|
-
var $R99 = (0, import_lib2.$R)(
|
|
10893
|
-
var $R100 = (0, import_lib2.$R)(
|
|
10894
|
-
var $R101 = (0, import_lib2.$R)(
|
|
10895
|
-
var $R102 = (0, import_lib2.$R)(
|
|
10896
|
-
var $R103 = (0, import_lib2.$R)(
|
|
10897
|
-
var $
|
|
10898
|
-
|
|
10899
|
-
|
|
10898
|
+
var $R0 = (0, import_lib2.$R)(/(?=async|debugger|if|unless|comptime|do|for|loop|until|while|switch|throw|try)/suy);
|
|
10899
|
+
var $R1 = (0, import_lib2.$R)(/&(?=\s)/suy);
|
|
10900
|
+
var $R2 = (0, import_lib2.$R)(/(as|of|by|satisfies|then|when|implements|xor|xnor)(?!\p{ID_Continue}|[\u200C\u200D$])/suy);
|
|
10901
|
+
var $R3 = (0, import_lib2.$R)(/[0-9]/suy);
|
|
10902
|
+
var $R4 = (0, import_lib2.$R)(/(?!\p{ID_Start}|[_$0-9(\[{])/suy);
|
|
10903
|
+
var $R5 = (0, import_lib2.$R)(/[ \t]/suy);
|
|
10904
|
+
var $R6 = (0, import_lib2.$R)(/\p{ID_Continue}|[\u200C\u200D$.#{=]/suy);
|
|
10905
|
+
var $R7 = (0, import_lib2.$R)(/[&=]/suy);
|
|
10906
|
+
var $R8 = (0, import_lib2.$R)(/[@#]/suy);
|
|
10907
|
+
var $R9 = (0, import_lib2.$R)(/(?=['"`])/suy);
|
|
10908
|
+
var $R10 = (0, import_lib2.$R)(/(?=[\/?])/suy);
|
|
10909
|
+
var $R11 = (0, import_lib2.$R)(/(?=[\/\[{?.!@#'’:])/suy);
|
|
10910
|
+
var $R12 = (0, import_lib2.$R)(/%%?/suy);
|
|
10911
|
+
var $R13 = (0, import_lib2.$R)(/[.\s]/suy);
|
|
10912
|
+
var $R14 = (0, import_lib2.$R)(/[)\]}]/suy);
|
|
10913
|
+
var $R15 = (0, import_lib2.$R)(/[+-]/suy);
|
|
10914
|
+
var $R16 = (0, import_lib2.$R)(/\+\+|--|⧺|—|[\+\-&]\S/suy);
|
|
10915
|
+
var $R17 = (0, import_lib2.$R)(/(?=[0-9.'"tfyno])/suy);
|
|
10916
|
+
var $R18 = (0, import_lib2.$R)(/(?=true|false|yes|no|on|off)/suy);
|
|
10917
|
+
var $R19 = (0, import_lib2.$R)(/(?=\[|\s*[.•\/])/suy);
|
|
10918
|
+
var $R20 = (0, import_lib2.$R)(/([<>])(=?)|([≤≥])/suy);
|
|
10919
|
+
var $R21 = (0, import_lib2.$R)(/[ \t]*/suy);
|
|
10920
|
+
var $R22 = (0, import_lib2.$R)(/[ \t]+/suy);
|
|
10921
|
+
var $R23 = (0, import_lib2.$R)(/[!+-]?/suy);
|
|
10922
|
+
var $R24 = (0, import_lib2.$R)(/(?:\p{ID_Continue}|[\u200C\u200D$-])*/suy);
|
|
10923
|
+
var $R25 = (0, import_lib2.$R)(/[=>]/suy);
|
|
10924
|
+
var $R26 = (0, import_lib2.$R)(/(?=\p{ID_Start}|[_$^≪≫⋙≤≥∈∋∉∌≣≡≢≠=⩶⩵‖⁇&|*\/!?%÷<>⧺+-])/suy);
|
|
10925
|
+
var $R27 = (0, import_lib2.$R)(/!\^\^?/suy);
|
|
10926
|
+
var $R28 = (0, import_lib2.$R)(/(?!\+\+|--)[!~+-](?!\s)/suy);
|
|
10927
|
+
var $R29 = (0, import_lib2.$R)(/[:.]/suy);
|
|
10928
|
+
var $R30 = (0, import_lib2.$R)(/(?=for|if|loop|unless|until|while)/suy);
|
|
10929
|
+
var $R31 = (0, import_lib2.$R)(/(?:loop|while|until|for|do)(?!\p{ID_Continue})/suy);
|
|
10930
|
+
var $R32 = (0, import_lib2.$R)(/(?=loop|comptime|do|for|until|while)/suy);
|
|
10931
|
+
var $R33 = (0, import_lib2.$R)(/\s/suy);
|
|
10932
|
+
var $R34 = (0, import_lib2.$R)(/[^;"'\s=>]+/suy);
|
|
10933
|
+
var $R35 = (0, import_lib2.$R)(/(?=[0-9.])/suy);
|
|
10934
|
+
var $R36 = (0, import_lib2.$R)(/(?:0|[1-9](?:_[0-9]|[0-9])*)n/suy);
|
|
10935
|
+
var $R37 = (0, import_lib2.$R)(/(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\.(?:\p{ID_Start}|[_$]))/suy);
|
|
10936
|
+
var $R38 = (0, import_lib2.$R)(/(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\.(?:[0-9](?:_[0-9]|[0-9])*))?/suy);
|
|
10937
|
+
var $R39 = (0, import_lib2.$R)(/(?:\.[0-9](?:_[0-9]|[0-9])*)/suy);
|
|
10938
|
+
var $R40 = (0, import_lib2.$R)(/(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)/suy);
|
|
10939
|
+
var $R41 = (0, import_lib2.$R)(/0[bB][01](?:[01]|_[01])*n?/suy);
|
|
10940
|
+
var $R42 = (0, import_lib2.$R)(/0[oO][0-7](?:[0-7]|_[0-7])*n?/suy);
|
|
10941
|
+
var $R43 = (0, import_lib2.$R)(/0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?/suy);
|
|
10942
|
+
var $R44 = (0, import_lib2.$R)(/(?=[0-9])/suy);
|
|
10943
|
+
var $R45 = (0, import_lib2.$R)(/(?:0|[1-9](?:_[0-9]|[0-9])*)/suy);
|
|
10944
|
+
var $R46 = (0, import_lib2.$R)(/(?:\\.|[^"])*/suy);
|
|
10945
|
+
var $R47 = (0, import_lib2.$R)(/(?:\\.|[^'])*/suy);
|
|
10946
|
+
var $R48 = (0, import_lib2.$R)(/(?:\\.|[^"\n])*/suy);
|
|
10947
|
+
var $R49 = (0, import_lib2.$R)(/(?:\\.|[^'\n])*/suy);
|
|
10948
|
+
var $R50 = (0, import_lib2.$R)(/(?:"(?!"")|#(?!\{)|\\.|[^#"])+/suy);
|
|
10949
|
+
var $R51 = (0, import_lib2.$R)(/(?:"(?!"")|\\.|[^"])+/suy);
|
|
10950
|
+
var $R52 = (0, import_lib2.$R)(/(?:'(?!'')|\\.|[^'])*/suy);
|
|
10951
|
+
var $R53 = (0, import_lib2.$R)(/(?:\\.|#(?!\{)|[^"#])+/suy);
|
|
10952
|
+
var $R54 = (0, import_lib2.$R)(/(?:\\.|[^\]])*/suy);
|
|
10953
|
+
var $R55 = (0, import_lib2.$R)(/\\./suy);
|
|
10954
|
+
var $R56 = (0, import_lib2.$R)(/[\s]+/suy);
|
|
10955
|
+
var $R57 = (0, import_lib2.$R)(/\/(?!\/\/)/suy);
|
|
10956
|
+
var $R58 = (0, import_lib2.$R)(/[^[\/\s#$\\]+|[#$]/suy);
|
|
10957
|
+
var $R59 = (0, import_lib2.$R)(/[*\/\r\n]/suy);
|
|
10958
|
+
var $R60 = (0, import_lib2.$R)(/(?:\\.|[^[\/\r\n])+/suy);
|
|
10959
|
+
var $R61 = (0, import_lib2.$R)(/(?:\p{ID_Continue}|[\u200C\u200D$])*/suy);
|
|
10960
|
+
var $R62 = (0, import_lib2.$R)(/(?=[`'"])/suy);
|
|
10961
|
+
var $R63 = (0, import_lib2.$R)(/(?:\$(?!\{)|\\.|[^$`])+/suy);
|
|
10962
|
+
var $R64 = (0, import_lib2.$R)(/(?:\$(?!\{)|`(?!``)|\\.|[^$`])+/suy);
|
|
10963
|
+
var $R65 = (0, import_lib2.$R)(/(?:off|yes|on|no)/suy);
|
|
10964
|
+
var $R66 = (0, import_lib2.$R)(/isnt/suy);
|
|
10965
|
+
var $R67 = (0, import_lib2.$R)(/by/suy);
|
|
10966
|
+
var $R68 = (0, import_lib2.$R)(/of/suy);
|
|
10967
|
+
var $R69 = (0, import_lib2.$R)(/(?:instanceof|interface|protected|continue|debugger|function|default|extends|finally|private|delete|export|import|public|return|static|switch|typeof|unless|await|break|catch|class|const|false|super|throw|until|while|yield|case|else|enum|loop|null|this|true|void|with|and|for|let|new|not|try|var|do|if|in|is|or)/suy);
|
|
10968
|
+
var $R70 = (0, import_lib2.$R)(/(?=\/|#)/suy);
|
|
10969
|
+
var $R71 = (0, import_lib2.$R)(/\/\/(?!\/(?!\/))[^\r\n]*/suy);
|
|
10970
|
+
var $R72 = (0, import_lib2.$R)(/./suy);
|
|
10971
|
+
var $R73 = (0, import_lib2.$R)(/#(?!##(?!#))([^\r\n]*)/suy);
|
|
10972
|
+
var $R74 = (0, import_lib2.$R)(/[^]*?###/suy);
|
|
10973
|
+
var $R75 = (0, import_lib2.$R)(/###(?!#)/suy);
|
|
10974
|
+
var $R76 = (0, import_lib2.$R)(/\/\*(?:(?!\*\/)[^\r\n])*\*\//suy);
|
|
10975
|
+
var $R77 = (0, import_lib2.$R)(/(?=[ \t\/\\#])/suy);
|
|
10976
|
+
var $R78 = (0, import_lib2.$R)(/(?=\s|\/|#)/suy);
|
|
10977
|
+
var $R79 = (0, import_lib2.$R)(/[=:]/suy);
|
|
10978
|
+
var $R80 = (0, import_lib2.$R)(/['’]s/suy);
|
|
10979
|
+
var $R81 = (0, import_lib2.$R)(/(?=[<])/suy);
|
|
10980
|
+
var $R82 = (0, import_lib2.$R)(/(?:\p{ID_Start}|[_$])(?:\p{ID_Continue}|[\u200C\u200D$-])*/suy);
|
|
10981
|
+
var $R83 = (0, import_lib2.$R)(/[!+-]/suy);
|
|
10982
|
+
var $R84 = (0, import_lib2.$R)(/[\s>]|\/>/suy);
|
|
10983
|
+
var $R85 = (0, import_lib2.$R)(/(?:[\w\-:]+|\([^()]*\)|\[[^\[\]]*\])+/suy);
|
|
10984
|
+
var $R86 = (0, import_lib2.$R)(/"[^"]*"|'[^']*'/suy);
|
|
10985
|
+
var $R87 = (0, import_lib2.$R)(/[<>]/suy);
|
|
10986
|
+
var $R88 = (0, import_lib2.$R)(/[!~+-](?!\s|[!~+-]*&)/suy);
|
|
10987
|
+
var $R89 = (0, import_lib2.$R)(/(?:-[^-]|[^-]*)*/suy);
|
|
10988
|
+
var $R90 = (0, import_lib2.$R)(/[^{}<>\r\n]+/suy);
|
|
10989
|
+
var $R91 = (0, import_lib2.$R)(/[+-]?/suy);
|
|
10990
|
+
var $R92 = (0, import_lib2.$R)(/(?=if|unless)/suy);
|
|
10991
|
+
var $R93 = (0, import_lib2.$R)(/[|&<!=\-⇒→]/suy);
|
|
10992
|
+
var $R94 = (0, import_lib2.$R)(/(extends|not|is)(?!\p{ID_Continue}|[\u200C\u200D$])/suy);
|
|
10993
|
+
var $R95 = (0, import_lib2.$R)(/const|in|out/suy);
|
|
10994
|
+
var $R96 = (0, import_lib2.$R)(/#![^\r\n]*/suy);
|
|
10995
|
+
var $R97 = (0, import_lib2.$R)(/[\t ]*/suy);
|
|
10996
|
+
var $R98 = (0, import_lib2.$R)(/[\s]*/suy);
|
|
10997
|
+
var $R99 = (0, import_lib2.$R)(/\s+([+-]?)([a-zA-Z0-9-]+)(\s*=\s*([\p{ID_Continue}.,+-]*))?/suy);
|
|
10998
|
+
var $R100 = (0, import_lib2.$R)(/\/\/\/[^\r\n]*/suy);
|
|
10999
|
+
var $R101 = (0, import_lib2.$R)(/(?=[ \t\r\n\/#]|$)/suy);
|
|
11000
|
+
var $R102 = (0, import_lib2.$R)(/\r\n|\n|\r|$/suy);
|
|
11001
|
+
var $R103 = (0, import_lib2.$R)(/[^]*/suy);
|
|
11002
|
+
var $RD0 = (($$ctx, $$state) => {
|
|
11003
|
+
const $$source = `(?=\\p{ID_Start}|[_$\\\\]|${nonAsciiIdentifierPattern})`;
|
|
11004
|
+
$RD0 = (0, import_lib2.$R)(new RegExp($$source, "suy"));
|
|
11005
|
+
$RD0.source = $$source;
|
|
11006
|
+
return $RD0($$ctx, $$state);
|
|
11007
|
+
});
|
|
11008
|
+
var $RD1 = (($$ctx, $$state) => {
|
|
11009
|
+
const $$source = `(?:\\p{ID_Start}|[_$]|${unicodeEscapePattern}|${nonAsciiIdentifierPattern})(?:\\p{ID_Continue}|[\\u200C\\u200D$]|${unicodeEscapePattern}|${nonAsciiIdentifierPattern})*`;
|
|
11010
|
+
$RD1 = (0, import_lib2.$R)(new RegExp($$source, "suy"));
|
|
11011
|
+
$RD1.source = $$source;
|
|
11012
|
+
return $RD1($$ctx, $$state);
|
|
11013
|
+
});
|
|
11014
|
+
var $RD2 = (($$ctx, $$state) => {
|
|
11015
|
+
const $$source = `(?!\\p{ID_Continue}|${nonAsciiIdentifierPattern})`;
|
|
11016
|
+
$RD2 = (0, import_lib2.$R)(new RegExp($$source, "suy"));
|
|
11017
|
+
$RD2.source = $$source;
|
|
11018
|
+
return $RD2($$ctx, $$state);
|
|
11019
|
+
});
|
|
10900
11020
|
var Program$parser = (0, import_lib2.$S)(Reset, Init, (0, import_lib2.$E)(EOS), TopLevelStatements, __);
|
|
10901
11021
|
function Program($$ctx, $$state) {
|
|
10902
11022
|
const $$entered = $$ctx.enter?.("Program", $$state);
|
|
@@ -16407,7 +16527,10 @@ function ArrayBindingPattern($$ctx, $$state) {
|
|
|
16407
16527
|
...c,
|
|
16408
16528
|
// names, blockPrefix, length
|
|
16409
16529
|
type: "ArrayBindingPattern",
|
|
16410
|
-
elements
|
|
16530
|
+
// `c.elements` may differ from `c.children` when adjustBindingElements
|
|
16531
|
+
// omits an anonymous rest from the emitted destructure but still needs
|
|
16532
|
+
// pattern matching / type generation to see it.
|
|
16533
|
+
elements: c.elements ?? c.children,
|
|
16411
16534
|
children: [ws1, open, c.children, ws2, close]
|
|
16412
16535
|
});
|
|
16413
16536
|
})($$value[0], $$value[1], $$value[2], $$value[3], $$value[4]);
|
|
@@ -16426,7 +16549,7 @@ function ArrayBindingPatternContent$1($$ctx, $$state) {
|
|
|
16426
16549
|
}
|
|
16427
16550
|
const $$m = (function(elements) {
|
|
16428
16551
|
if (!elements) {
|
|
16429
|
-
return { children: [], names: [], length: 0 };
|
|
16552
|
+
return { children: [], elements: void 0, names: [], length: 0 };
|
|
16430
16553
|
}
|
|
16431
16554
|
return adjustBindingElements(elements);
|
|
16432
16555
|
})($$r.value);
|
|
@@ -18455,7 +18578,7 @@ function SymbolElement($$ctx, $$state) {
|
|
|
18455
18578
|
$$ctx.exit?.("SymbolElement", $$state, $$r, $$eventData);
|
|
18456
18579
|
return $$r;
|
|
18457
18580
|
}
|
|
18458
|
-
var Identifier$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
18581
|
+
var Identifier$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($RD0, () => `Identifier /${$RD0.source}/`), (0, import_lib2.$N)(ReservedWord), IdentifierName);
|
|
18459
18582
|
function Identifier($$ctx, $$state) {
|
|
18460
18583
|
const $$entered = $$ctx.enter?.("Identifier", $$state);
|
|
18461
18584
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -18472,7 +18595,7 @@ function Identifier($$ctx, $$state) {
|
|
|
18472
18595
|
$$ctx.exit?.("Identifier", $$state, $$r, $$eventData);
|
|
18473
18596
|
return $$r;
|
|
18474
18597
|
}
|
|
18475
|
-
var IdentifierName$parser = (0, import_lib2.$EXPECT)($
|
|
18598
|
+
var IdentifierName$parser = (0, import_lib2.$EXPECT)($RD1, () => `IdentifierName /${$RD1.source}/`);
|
|
18476
18599
|
function IdentifierName($$ctx, $$state) {
|
|
18477
18600
|
const $$entered = $$ctx.enter?.("IdentifierName", $$state);
|
|
18478
18601
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -18520,7 +18643,7 @@ function UpcomingAssignment($$ctx, $$state) {
|
|
|
18520
18643
|
$$ctx.exit?.("UpcomingAssignment", $$state, $$final, $$eventData);
|
|
18521
18644
|
return $$final;
|
|
18522
18645
|
}
|
|
18523
|
-
var ArrayLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
18646
|
+
var ArrayLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R19, "ArrayLiteral /(?=\\[|\\s*[.\u2022\\/])/"), _ArrayLiteral);
|
|
18524
18647
|
function ArrayLiteral($$ctx, $$state) {
|
|
18525
18648
|
const $$entered = $$ctx.enter?.("ArrayLiteral", $$state);
|
|
18526
18649
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -18702,7 +18825,7 @@ function OptionalRangeEnd($$ctx, $$state) {
|
|
|
18702
18825
|
$$ctx.exit?.("OptionalRangeEnd", $$state, $$final, $$eventData);
|
|
18703
18826
|
return $$final;
|
|
18704
18827
|
}
|
|
18705
|
-
var RangeEnd$parser = (0, import_lib2.$EXPECT)($
|
|
18828
|
+
var RangeEnd$parser = (0, import_lib2.$EXPECT)($R20, "RangeEnd /([<>])(=?)|([\u2264\u2265])/");
|
|
18706
18829
|
function RangeEnd($$ctx, $$state) {
|
|
18707
18830
|
const $$entered = $$ctx.enter?.("RangeEnd", $$state);
|
|
18708
18831
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -19237,8 +19360,8 @@ function BulletIndent($$ctx, $$state) {
|
|
|
19237
19360
|
$$ctx.exit?.("BulletIndent", $$state, $$r, $$eventData);
|
|
19238
19361
|
return $$r;
|
|
19239
19362
|
}
|
|
19240
|
-
var Bullet$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L46, 'Bullet "\u2022"'), (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19241
|
-
var Bullet$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L7, 'Bullet "."'), (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19363
|
+
var Bullet$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L46, 'Bullet "\u2022"'), (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R21, "Bullet /[ \\t]*/")));
|
|
19364
|
+
var Bullet$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L7, 'Bullet "."'), (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R22, "Bullet /[ \\t]+/")));
|
|
19242
19365
|
function Bullet$0($$ctx, $$state) {
|
|
19243
19366
|
return Bullet$0$parser($$ctx, $$state);
|
|
19244
19367
|
}
|
|
@@ -19677,7 +19800,7 @@ function ObjectPropertyDelimiter($$ctx, $$state) {
|
|
|
19677
19800
|
}
|
|
19678
19801
|
var PropertyDefinition$0$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), InsertDotDotDot, IterationExpression);
|
|
19679
19802
|
var PropertyDefinition$1$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), NamedProperty);
|
|
19680
|
-
var PropertyDefinition$2$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
19803
|
+
var PropertyDefinition$2$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R23, "PropertyDefinition /[!+-]?/")), PropertyName, (0, import_lib2.$Y)(ObjectPropertyDelimiter));
|
|
19681
19804
|
var PropertyDefinition$3$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), MethodDefinition);
|
|
19682
19805
|
var PropertyDefinition$4$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), DotDotDot, Expression);
|
|
19683
19806
|
var PropertyDefinition$5$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$N)((0, import_lib2.$C)(EOS, (0, import_lib2.$EXPECT)($L7, 'PropertyDefinition "."'))), (0, import_lib2.$Q)(UnaryOp), CallExpression, (0, import_lib2.$E)(UnaryPostfix));
|
|
@@ -19979,7 +20102,7 @@ function SnugNamedProperty($$ctx, $$state) {
|
|
|
19979
20102
|
$$ctx.exit?.("SnugNamedProperty", $$state, $$r, $$eventData);
|
|
19980
20103
|
return $$r;
|
|
19981
20104
|
}
|
|
19982
|
-
var PropertyName$3$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$E)(IdentifierName), (0, import_lib2.$EXPECT)($L22, 'PropertyName "-"'), (0, import_lib2.$EXPECT)($
|
|
20105
|
+
var PropertyName$3$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$E)(IdentifierName), (0, import_lib2.$EXPECT)($L22, 'PropertyName "-"'), (0, import_lib2.$EXPECT)($R24, "PropertyName /(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/")));
|
|
19983
20106
|
var PropertyName$4$parser = IdentifierName;
|
|
19984
20107
|
function PropertyName$0($$ctx, $$state) {
|
|
19985
20108
|
return NumericLiteral($$ctx, $$state);
|
|
@@ -20570,7 +20693,7 @@ var AssignmentOpSymbol$20$parser = (0, import_lib2.$EXPECT)($L68, 'AssignmentOpS
|
|
|
20570
20693
|
var AssignmentOpSymbol$21$parser = (0, import_lib2.$EXPECT)($L69, 'AssignmentOpSymbol "??="');
|
|
20571
20694
|
var AssignmentOpSymbol$22$parser = (0, import_lib2.$EXPECT)($L70, 'AssignmentOpSymbol "\u2047="');
|
|
20572
20695
|
var AssignmentOpSymbol$23$parser = (0, import_lib2.$EXPECT)($L71, 'AssignmentOpSymbol "?="');
|
|
20573
|
-
var AssignmentOpSymbol$24$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L3, 'AssignmentOpSymbol "="'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
20696
|
+
var AssignmentOpSymbol$24$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L3, 'AssignmentOpSymbol "="'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($R25, "AssignmentOpSymbol /[=>]/")));
|
|
20574
20697
|
var AssignmentOpSymbol$25$parser = (0, import_lib2.$S)(CoffeeWordAssignmentOp);
|
|
20575
20698
|
function AssignmentOpSymbol$0($$ctx, $$state) {
|
|
20576
20699
|
return AssignmentOpSymbol$0$parser($$ctx, $$state);
|
|
@@ -20852,7 +20975,7 @@ function IdentifierBinaryOp($$ctx, $$state) {
|
|
|
20852
20975
|
$$ctx.exit?.("IdentifierBinaryOp", $$state, $$final, $$eventData);
|
|
20853
20976
|
return $$final;
|
|
20854
20977
|
}
|
|
20855
|
-
var BinaryOp$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
20978
|
+
var BinaryOp$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R26, "BinaryOp /(?=\\p{ID_Start}|[_$^\u226A\u226B\u22D9\u2264\u2265\u2208\u220B\u2209\u220C\u2263\u2261\u2262\u2260=\u2A76\u2A75\u2016\u2047&|*\\/!?%\xF7<>\u29FA+-])/"), _BinaryOp);
|
|
20856
20979
|
function BinaryOp($$ctx, $$state) {
|
|
20857
20980
|
const $$entered = $$ctx.enter?.("BinaryOp", $$state);
|
|
20858
20981
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20935,7 +21058,7 @@ var BinaryOpSymbol$0$parser = (0, import_lib2.$EXPECT)($L75, 'BinaryOpSymbol "**
|
|
|
20935
21058
|
var BinaryOpSymbol$1$parser = (0, import_lib2.$EXPECT)($L74, 'BinaryOpSymbol "*"');
|
|
20936
21059
|
var BinaryOpSymbol$2$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L50, 'BinaryOpSymbol "%/"'), (0, import_lib2.$EXPECT)($L51, 'BinaryOpSymbol "\xF7"'), (0, import_lib2.$S)(CoffeeDivEnabled, (0, import_lib2.$EXPECT)($L47, 'BinaryOpSymbol "//"')));
|
|
20937
21060
|
var BinaryOpSymbol$3$parser = (0, import_lib2.$EXPECT)($L52, 'BinaryOpSymbol "%%"');
|
|
20938
|
-
var BinaryOpSymbol$4$parser = (0, import_lib2.$EXPECT)($L76, 'BinaryOpSymbol "/"');
|
|
21061
|
+
var BinaryOpSymbol$4$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L76, 'BinaryOpSymbol "/"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($L76, 'BinaryOpSymbol "/"')));
|
|
20939
21062
|
var BinaryOpSymbol$5$parser = (0, import_lib2.$EXPECT)($L77, 'BinaryOpSymbol "%"');
|
|
20940
21063
|
var BinaryOpSymbol$6$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L9, 'BinaryOpSymbol "++"'), (0, import_lib2.$EXPECT)($L11, 'BinaryOpSymbol "\u29FA"'));
|
|
20941
21064
|
var BinaryOpSymbol$7$parser = (0, import_lib2.$EXPECT)($L78, 'BinaryOpSymbol "+"');
|
|
@@ -20967,7 +21090,7 @@ var BinaryOpSymbol$32$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L10
|
|
|
20967
21090
|
var BinaryOpSymbol$33$parser = (0, import_lib2.$EXPECT)($L104, 'BinaryOpSymbol "||"');
|
|
20968
21091
|
var BinaryOpSymbol$34$parser = (0, import_lib2.$EXPECT)($L105, 'BinaryOpSymbol "\u2016"');
|
|
20969
21092
|
var BinaryOpSymbol$35$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L106, 'BinaryOpSymbol "^^"'), (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L107, 'BinaryOpSymbol "xor"'), NonIdContinue));
|
|
20970
|
-
var BinaryOpSymbol$36$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($
|
|
21093
|
+
var BinaryOpSymbol$36$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($R27, "BinaryOpSymbol /!\\^\\^?/"), (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L108, 'BinaryOpSymbol "xnor"'), NonIdContinue));
|
|
20971
21094
|
var BinaryOpSymbol$37$parser = (0, import_lib2.$EXPECT)($L109, 'BinaryOpSymbol "??"');
|
|
20972
21095
|
var BinaryOpSymbol$38$parser = (0, import_lib2.$EXPECT)($L110, 'BinaryOpSymbol "\u2047"');
|
|
20973
21096
|
var BinaryOpSymbol$39$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L6, 'BinaryOpSymbol "?"'), CoffeeBinaryExistentialEnabled);
|
|
@@ -21020,7 +21143,15 @@ function BinaryOpSymbol$3($$ctx, $$state) {
|
|
|
21020
21143
|
return $$r;
|
|
21021
21144
|
}
|
|
21022
21145
|
function BinaryOpSymbol$4($$ctx, $$state) {
|
|
21023
|
-
|
|
21146
|
+
const $$r = BinaryOpSymbol$4$parser($$ctx, $$state);
|
|
21147
|
+
if (!$$r) {
|
|
21148
|
+
return void 0;
|
|
21149
|
+
}
|
|
21150
|
+
const $$m = /* @__PURE__ */ (function($1) {
|
|
21151
|
+
return $1;
|
|
21152
|
+
})($$r.value[0]);
|
|
21153
|
+
$$r.value = $$m;
|
|
21154
|
+
return $$r;
|
|
21024
21155
|
}
|
|
21025
21156
|
function BinaryOpSymbol$5($$ctx, $$state) {
|
|
21026
21157
|
return BinaryOpSymbol$5$parser($$ctx, $$state);
|
|
@@ -21650,7 +21781,7 @@ function Xor($$ctx, $$state) {
|
|
|
21650
21781
|
$$ctx.exit?.("Xor", $$state, $$final, $$eventData);
|
|
21651
21782
|
return $$final;
|
|
21652
21783
|
}
|
|
21653
|
-
var Xnor$0$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
21784
|
+
var Xnor$0$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R27, "Xnor /!\\^\\^?/"));
|
|
21654
21785
|
var Xnor$1$parser = (0, import_lib2.$EXPECT)($L108, 'Xnor "xnor"');
|
|
21655
21786
|
function Xnor$0($$ctx, $$state) {
|
|
21656
21787
|
return Xnor$0$parser($$ctx, $$state);
|
|
@@ -21666,9 +21797,9 @@ function Xnor($$ctx, $$state) {
|
|
|
21666
21797
|
$$ctx.exit?.("Xnor", $$state, $$final, $$eventData);
|
|
21667
21798
|
return $$final;
|
|
21668
21799
|
}
|
|
21669
|
-
var UnaryOp$0$parser = (0, import_lib2.$EXPECT)($
|
|
21670
|
-
var UnaryOp$2$parser = (0, import_lib2.$S)((0, import_lib2.$C)(Delete, Void, Typeof), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
21671
|
-
var UnaryOp$3$parser = (0, import_lib2.$S)(Not, (0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
21800
|
+
var UnaryOp$0$parser = (0, import_lib2.$EXPECT)($R28, "UnaryOp /(?!\\+\\+|--)[!~+-](?!\\s)/");
|
|
21801
|
+
var UnaryOp$2$parser = (0, import_lib2.$S)((0, import_lib2.$C)(Delete, Void, Typeof), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($R29, "UnaryOp /[:.]/")), (0, import_lib2.$E)(_));
|
|
21802
|
+
var UnaryOp$3$parser = (0, import_lib2.$S)(Not, (0, import_lib2.$N)((0, import_lib2.$EXPECT)($R29, "UnaryOp /[:.]/")), (0, import_lib2.$E)((0, import_lib2.$EXPECT)($L16, 'UnaryOp " "')), (0, import_lib2.$E)(_));
|
|
21672
21803
|
function UnaryOp$0($$ctx, $$state) {
|
|
21673
21804
|
const $$r = UnaryOp$0$parser($$ctx, $$state);
|
|
21674
21805
|
if (!$$r) {
|
|
@@ -21961,7 +22092,7 @@ function PostfixedCommaExpression($$ctx, $$state) {
|
|
|
21961
22092
|
$$ctx.exit?.("PostfixedCommaExpression", $$state, $$final, $$eventData);
|
|
21962
22093
|
return $$final;
|
|
21963
22094
|
}
|
|
21964
|
-
var PostfixStatement$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
22095
|
+
var PostfixStatement$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R30, "PostfixStatement /(?=for|if|loop|unless|until|while)/"), _PostfixStatement);
|
|
21965
22096
|
function PostfixStatement($$ctx, $$state) {
|
|
21966
22097
|
const $$entered = $$ctx.enter?.("PostfixStatement", $$state);
|
|
21967
22098
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -22252,7 +22383,7 @@ function Label($$ctx, $$state) {
|
|
|
22252
22383
|
return $$final;
|
|
22253
22384
|
}
|
|
22254
22385
|
var LabelIdentifier$0$parser = (0, import_lib2.$S)(Colon, IdentifierName);
|
|
22255
|
-
var LabelIdentifier$1$parser = (0, import_lib2.$EXPECT)($
|
|
22386
|
+
var LabelIdentifier$1$parser = (0, import_lib2.$EXPECT)($R31, "LabelIdentifier /(?:loop|while|until|for|do)(?!\\p{ID_Continue})/");
|
|
22256
22387
|
var LabelIdentifier$2$parser = Identifier;
|
|
22257
22388
|
function LabelIdentifier$0($$ctx, $$state) {
|
|
22258
22389
|
const $$r = LabelIdentifier$0$parser($$ctx, $$state);
|
|
@@ -22430,7 +22561,7 @@ function IfClause($$ctx, $$state) {
|
|
|
22430
22561
|
$$ctx.exit?.("IfClause", $$state, $$r, $$eventData);
|
|
22431
22562
|
return $$r;
|
|
22432
22563
|
}
|
|
22433
|
-
var IterationStatement$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
22564
|
+
var IterationStatement$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R32, "IterationStatement /(?=loop|comptime|do|for|until|while)/"), _IterationStatement);
|
|
22434
22565
|
function IterationStatement($$ctx, $$state) {
|
|
22435
22566
|
const $$entered = $$ctx.enter?.("IterationStatement", $$state);
|
|
22436
22567
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -25244,7 +25375,7 @@ function MaybeParenNestedExpression($$ctx, $$state) {
|
|
|
25244
25375
|
var ImportDeclaration$0$parser = (0, import_lib2.$S)(Import, _, Identifier, (0, import_lib2.$E)(_), Equals, __, (0, import_lib2.$EXPECT)($L132, 'ImportDeclaration "require"'), NonIdContinue, Arguments);
|
|
25245
25376
|
var ImportDeclaration$1$parser = (0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$S)(Import, SameLineOrIndentedFurther), ImpliedImport), Operator, (0, import_lib2.$E)(OperatorBehavior), SameLineOrIndentedFurther, OperatorNamedImports, SameLineOrIndentedFurther, FromClause);
|
|
25246
25377
|
var ImportDeclaration$2$parser = (0, import_lib2.$S)(Import, SameLineOrIndentedFurther, (0, import_lib2.$E)((0, import_lib2.$S)(TypeKeyword, SameLineOrIndentedFurther)), ImportClause, __, FromClause);
|
|
25247
|
-
var ImportDeclaration$3$parser = (0, import_lib2.$S)(Import, (0, import_lib2.$Y)((0, import_lib2.$EXPECT)($
|
|
25378
|
+
var ImportDeclaration$3$parser = (0, import_lib2.$S)(Import, (0, import_lib2.$Y)((0, import_lib2.$EXPECT)($R33, "ImportDeclaration /\\s/")), SameLineOrIndentedFurther, ModuleSpecifier);
|
|
25248
25379
|
var ImportDeclaration$4$parser = (0, import_lib2.$S)(Import, (0, import_lib2.$E)(_), (0, import_lib2.$E)(UnclosedSingleLineStringLiteral), (0, import_lib2.$Y)(EOS));
|
|
25249
25380
|
var ImportDeclaration$5$parser = (0, import_lib2.$S)(ImpliedImport, (0, import_lib2.$E)((0, import_lib2.$S)(TypeKeyword, SameLineOrIndentedFurther)), ImportClause, SameLineOrIndentedFurther, FromClause);
|
|
25250
25381
|
var ImportDeclaration$6$parser = (0, import_lib2.$S)(FromClause, SameLineOrIndentedFurther, Import, SameLineOrIndentedFurther, Operator, (0, import_lib2.$E)(OperatorBehavior), SameLineOrIndentedFurther, OperatorNamedImports);
|
|
@@ -25944,7 +26075,7 @@ function UnprocessedModuleSpecifier($$ctx, $$state) {
|
|
|
25944
26075
|
$$ctx.exit?.("UnprocessedModuleSpecifier", $$state, $$final, $$eventData);
|
|
25945
26076
|
return $$final;
|
|
25946
26077
|
}
|
|
25947
|
-
var UnquotedSpecifier$parser = (0, import_lib2.$EXPECT)($
|
|
26078
|
+
var UnquotedSpecifier$parser = (0, import_lib2.$EXPECT)($R34, `UnquotedSpecifier /[^;"'\\s=>]+/`);
|
|
25948
26079
|
function UnquotedSpecifier($$ctx, $$state) {
|
|
25949
26080
|
const $$entered = $$ctx.enter?.("UnquotedSpecifier", $$state);
|
|
25950
26081
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26535,7 +26666,7 @@ function VariableDeclarationList($$ctx, $$state) {
|
|
|
26535
26666
|
$$ctx.exit?.("VariableDeclarationList", $$state, $$r, $$eventData);
|
|
26536
26667
|
return $$r;
|
|
26537
26668
|
}
|
|
26538
|
-
var NumericLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
26669
|
+
var NumericLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R35, "NumericLiteral /(?=[0-9.])/"), NumericLiteralKind);
|
|
26539
26670
|
function NumericLiteral($$ctx, $$state) {
|
|
26540
26671
|
const $$entered = $$ctx.enter?.("NumericLiteral", $$state);
|
|
26541
26672
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26575,7 +26706,7 @@ function NumericLiteralKind($$ctx, $$state) {
|
|
|
26575
26706
|
$$ctx.exit?.("NumericLiteralKind", $$state, $$final, $$eventData);
|
|
26576
26707
|
return $$final;
|
|
26577
26708
|
}
|
|
26578
|
-
var DecimalBigIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26709
|
+
var DecimalBigIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R36, "DecimalBigIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)n/"));
|
|
26579
26710
|
function DecimalBigIntegerLiteral($$ctx, $$state) {
|
|
26580
26711
|
const $$entered = $$ctx.enter?.("DecimalBigIntegerLiteral", $$state);
|
|
26581
26712
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26584,9 +26715,9 @@ function DecimalBigIntegerLiteral($$ctx, $$state) {
|
|
|
26584
26715
|
$$ctx.exit?.("DecimalBigIntegerLiteral", $$state, $$final, $$eventData);
|
|
26585
26716
|
return $$final;
|
|
26586
26717
|
}
|
|
26587
|
-
var DecimalLiteral$0$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
26588
|
-
var DecimalLiteral$1$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
26589
|
-
var DecimalLiteral$2$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
26718
|
+
var DecimalLiteral$0$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R37, "DecimalLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))/")), (0, import_lib2.$N)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L7, 'DecimalLiteral "."'), ExponentPart)));
|
|
26719
|
+
var DecimalLiteral$1$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R38, "DecimalLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?/"), (0, import_lib2.$E)(ExponentPart)));
|
|
26720
|
+
var DecimalLiteral$2$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R39, "DecimalLiteral /(?:\\.[0-9](?:_[0-9]|[0-9])*)/"), (0, import_lib2.$E)(ExponentPart)));
|
|
26590
26721
|
function DecimalLiteral$0($$ctx, $$state) {
|
|
26591
26722
|
const $$r = DecimalLiteral$0$parser($$ctx, $$state);
|
|
26592
26723
|
if (!$$r) {
|
|
@@ -26612,7 +26743,7 @@ function DecimalLiteral($$ctx, $$state) {
|
|
|
26612
26743
|
$$ctx.exit?.("DecimalLiteral", $$state, $$final, $$eventData);
|
|
26613
26744
|
return $$final;
|
|
26614
26745
|
}
|
|
26615
|
-
var ExponentPart$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26746
|
+
var ExponentPart$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R40, "ExponentPart /(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)/"));
|
|
26616
26747
|
function ExponentPart($$ctx, $$state) {
|
|
26617
26748
|
const $$entered = $$ctx.enter?.("ExponentPart", $$state);
|
|
26618
26749
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26621,7 +26752,7 @@ function ExponentPart($$ctx, $$state) {
|
|
|
26621
26752
|
$$ctx.exit?.("ExponentPart", $$state, $$final, $$eventData);
|
|
26622
26753
|
return $$final;
|
|
26623
26754
|
}
|
|
26624
|
-
var BinaryIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26755
|
+
var BinaryIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R41, "BinaryIntegerLiteral /0[bB][01](?:[01]|_[01])*n?/"));
|
|
26625
26756
|
function BinaryIntegerLiteral($$ctx, $$state) {
|
|
26626
26757
|
const $$entered = $$ctx.enter?.("BinaryIntegerLiteral", $$state);
|
|
26627
26758
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26630,7 +26761,7 @@ function BinaryIntegerLiteral($$ctx, $$state) {
|
|
|
26630
26761
|
$$ctx.exit?.("BinaryIntegerLiteral", $$state, $$final, $$eventData);
|
|
26631
26762
|
return $$final;
|
|
26632
26763
|
}
|
|
26633
|
-
var OctalIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26764
|
+
var OctalIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R42, "OctalIntegerLiteral /0[oO][0-7](?:[0-7]|_[0-7])*n?/"));
|
|
26634
26765
|
function OctalIntegerLiteral($$ctx, $$state) {
|
|
26635
26766
|
const $$entered = $$ctx.enter?.("OctalIntegerLiteral", $$state);
|
|
26636
26767
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26639,7 +26770,7 @@ function OctalIntegerLiteral($$ctx, $$state) {
|
|
|
26639
26770
|
$$ctx.exit?.("OctalIntegerLiteral", $$state, $$final, $$eventData);
|
|
26640
26771
|
return $$final;
|
|
26641
26772
|
}
|
|
26642
|
-
var HexIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26773
|
+
var HexIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R43, "HexIntegerLiteral /0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?/"));
|
|
26643
26774
|
function HexIntegerLiteral($$ctx, $$state) {
|
|
26644
26775
|
const $$entered = $$ctx.enter?.("HexIntegerLiteral", $$state);
|
|
26645
26776
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26648,7 +26779,7 @@ function HexIntegerLiteral($$ctx, $$state) {
|
|
|
26648
26779
|
$$ctx.exit?.("HexIntegerLiteral", $$state, $$final, $$eventData);
|
|
26649
26780
|
return $$final;
|
|
26650
26781
|
}
|
|
26651
|
-
var IntegerLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
26782
|
+
var IntegerLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R44, "IntegerLiteral /(?=[0-9])/"), IntegerLiteralKind);
|
|
26652
26783
|
function IntegerLiteral($$ctx, $$state) {
|
|
26653
26784
|
const $$entered = $$ctx.enter?.("IntegerLiteral", $$state);
|
|
26654
26785
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26688,7 +26819,7 @@ function IntegerLiteralKind($$ctx, $$state) {
|
|
|
26688
26819
|
$$ctx.exit?.("IntegerLiteralKind", $$state, $$final, $$eventData);
|
|
26689
26820
|
return $$final;
|
|
26690
26821
|
}
|
|
26691
|
-
var DecimalIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26822
|
+
var DecimalIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R45, "DecimalIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)/"));
|
|
26692
26823
|
function DecimalIntegerLiteral($$ctx, $$state) {
|
|
26693
26824
|
const $$entered = $$ctx.enter?.("DecimalIntegerLiteral", $$state);
|
|
26694
26825
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26737,7 +26868,7 @@ function StringLiteral($$ctx, $$state) {
|
|
|
26737
26868
|
$$ctx.exit?.("StringLiteral", $$state, $$final, $$eventData);
|
|
26738
26869
|
return $$final;
|
|
26739
26870
|
}
|
|
26740
|
-
var DoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
26871
|
+
var DoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($R46, 'DoubleStringCharacters /(?:\\\\.|[^"])*/');
|
|
26741
26872
|
function DoubleStringCharacters($$ctx, $$state) {
|
|
26742
26873
|
const $$entered = $$ctx.enter?.("DoubleStringCharacters", $$state);
|
|
26743
26874
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26754,7 +26885,7 @@ function DoubleStringCharacters($$ctx, $$state) {
|
|
|
26754
26885
|
$$ctx.exit?.("DoubleStringCharacters", $$state, $$r, $$eventData);
|
|
26755
26886
|
return $$r;
|
|
26756
26887
|
}
|
|
26757
|
-
var SingleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
26888
|
+
var SingleStringCharacters$parser = (0, import_lib2.$EXPECT)($R47, "SingleStringCharacters /(?:\\\\.|[^'])*/");
|
|
26758
26889
|
function SingleStringCharacters($$ctx, $$state) {
|
|
26759
26890
|
const $$entered = $$ctx.enter?.("SingleStringCharacters", $$state);
|
|
26760
26891
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26771,7 +26902,7 @@ function SingleStringCharacters($$ctx, $$state) {
|
|
|
26771
26902
|
$$ctx.exit?.("SingleStringCharacters", $$state, $$r, $$eventData);
|
|
26772
26903
|
return $$r;
|
|
26773
26904
|
}
|
|
26774
|
-
var SingleLineStringLiteral$parser = (0, import_lib2.$C)((0, import_lib2.$TEXT)((0, import_lib2.$S)(DoubleQuote, (0, import_lib2.$EXPECT)($
|
|
26905
|
+
var SingleLineStringLiteral$parser = (0, import_lib2.$C)((0, import_lib2.$TEXT)((0, import_lib2.$S)(DoubleQuote, (0, import_lib2.$EXPECT)($R48, 'SingleLineStringLiteral /(?:\\\\.|[^"\\n])*/'), DoubleQuote)), (0, import_lib2.$TEXT)((0, import_lib2.$S)(SingleQuote, (0, import_lib2.$EXPECT)($R49, "SingleLineStringLiteral /(?:\\\\.|[^'\\n])*/"), SingleQuote)));
|
|
26775
26906
|
function SingleLineStringLiteral($$ctx, $$state) {
|
|
26776
26907
|
const $$entered = $$ctx.enter?.("SingleLineStringLiteral", $$state);
|
|
26777
26908
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26792,7 +26923,7 @@ function SingleLineStringLiteral($$ctx, $$state) {
|
|
|
26792
26923
|
$$ctx.exit?.("SingleLineStringLiteral", $$state, $$r, $$eventData);
|
|
26793
26924
|
return $$r;
|
|
26794
26925
|
}
|
|
26795
|
-
var UnclosedSingleLineStringLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$TEXT)((0, import_lib2.$S)(DoubleQuote, (0, import_lib2.$EXPECT)($
|
|
26926
|
+
var UnclosedSingleLineStringLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$TEXT)((0, import_lib2.$S)(DoubleQuote, (0, import_lib2.$EXPECT)($R48, 'UnclosedSingleLineStringLiteral /(?:\\\\.|[^"\\n])*/'))), (0, import_lib2.$TEXT)((0, import_lib2.$S)(SingleQuote, (0, import_lib2.$EXPECT)($R49, "UnclosedSingleLineStringLiteral /(?:\\\\.|[^'\\n])*/")))), (0, import_lib2.$Y)(EOS));
|
|
26796
26927
|
function UnclosedSingleLineStringLiteral($$ctx, $$state) {
|
|
26797
26928
|
const $$entered = $$ctx.enter?.("UnclosedSingleLineStringLiteral", $$state);
|
|
26798
26929
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26851,7 +26982,7 @@ function TripleDoubleStringContents($$ctx, $$state) {
|
|
|
26851
26982
|
$$ctx.exit?.("TripleDoubleStringContents", $$state, $$final, $$eventData);
|
|
26852
26983
|
return $$final;
|
|
26853
26984
|
}
|
|
26854
|
-
var CoffeeTripleDoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
26985
|
+
var CoffeeTripleDoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($R50, 'CoffeeTripleDoubleStringCharacters /(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+/');
|
|
26855
26986
|
function CoffeeTripleDoubleStringCharacters($$ctx, $$state) {
|
|
26856
26987
|
const $$entered = $$ctx.enter?.("CoffeeTripleDoubleStringCharacters", $$state);
|
|
26857
26988
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26868,7 +26999,7 @@ function CoffeeTripleDoubleStringCharacters($$ctx, $$state) {
|
|
|
26868
26999
|
$$ctx.exit?.("CoffeeTripleDoubleStringCharacters", $$state, $$r, $$eventData);
|
|
26869
27000
|
return $$r;
|
|
26870
27001
|
}
|
|
26871
|
-
var TripleDoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27002
|
+
var TripleDoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($R51, 'TripleDoubleStringCharacters /(?:"(?!"")|\\\\.|[^"])+/');
|
|
26872
27003
|
function TripleDoubleStringCharacters($$ctx, $$state) {
|
|
26873
27004
|
const $$entered = $$ctx.enter?.("TripleDoubleStringCharacters", $$state);
|
|
26874
27005
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26885,7 +27016,7 @@ function TripleDoubleStringCharacters($$ctx, $$state) {
|
|
|
26885
27016
|
$$ctx.exit?.("TripleDoubleStringCharacters", $$state, $$r, $$eventData);
|
|
26886
27017
|
return $$r;
|
|
26887
27018
|
}
|
|
26888
|
-
var TripleSingleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27019
|
+
var TripleSingleStringCharacters$parser = (0, import_lib2.$EXPECT)($R52, "TripleSingleStringCharacters /(?:'(?!'')|\\\\.|[^'])*/");
|
|
26889
27020
|
function TripleSingleStringCharacters($$ctx, $$state) {
|
|
26890
27021
|
const $$entered = $$ctx.enter?.("TripleSingleStringCharacters", $$state);
|
|
26891
27022
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26941,7 +27072,7 @@ function CoffeeInterpolatedDoubleQuotedString($$ctx, $$state) {
|
|
|
26941
27072
|
$$ctx.exit?.("CoffeeInterpolatedDoubleQuotedString", $$state, $$r, $$eventData);
|
|
26942
27073
|
return $$r;
|
|
26943
27074
|
}
|
|
26944
|
-
var CoffeeDoubleQuotedStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27075
|
+
var CoffeeDoubleQuotedStringCharacters$parser = (0, import_lib2.$EXPECT)($R53, 'CoffeeDoubleQuotedStringCharacters /(?:\\\\.|#(?!\\{)|[^"#])+/');
|
|
26945
27076
|
function CoffeeDoubleQuotedStringCharacters($$ctx, $$state) {
|
|
26946
27077
|
const $$entered = $$ctx.enter?.("CoffeeDoubleQuotedStringCharacters", $$state);
|
|
26947
27078
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27002,7 +27133,7 @@ function RegularExpressionClass($$ctx, $$state) {
|
|
|
27002
27133
|
$$ctx.exit?.("RegularExpressionClass", $$state, $$r, $$eventData);
|
|
27003
27134
|
return $$r;
|
|
27004
27135
|
}
|
|
27005
|
-
var RegularExpressionClassCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27136
|
+
var RegularExpressionClassCharacters$parser = (0, import_lib2.$EXPECT)($R54, "RegularExpressionClassCharacters /(?:\\\\.|[^\\]])*/");
|
|
27006
27137
|
function RegularExpressionClassCharacters($$ctx, $$state) {
|
|
27007
27138
|
const $$entered = $$ctx.enter?.("RegularExpressionClassCharacters", $$state);
|
|
27008
27139
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27030,7 +27161,7 @@ function HeregexLiteral($$ctx, $$state) {
|
|
|
27030
27161
|
return void 0;
|
|
27031
27162
|
}
|
|
27032
27163
|
const $$value = $$r.value;
|
|
27033
|
-
const $$m = (function($0, open, body, close, flags) {
|
|
27164
|
+
const $$m = (function($loc, $0, open, body, close, flags) {
|
|
27034
27165
|
let hasSubstitutions = body.some((part) => part.type === "Substitution");
|
|
27035
27166
|
if (hasSubstitutions) {
|
|
27036
27167
|
const children = [
|
|
@@ -27039,7 +27170,7 @@ function HeregexLiteral($$ctx, $$state) {
|
|
|
27039
27170
|
body.map(
|
|
27040
27171
|
(e) => e.type === "Substitution" ? e : {
|
|
27041
27172
|
...e,
|
|
27042
|
-
token: e.token.replace(
|
|
27173
|
+
token: e.token.replace(/[`\\$]/g, "\\$&")
|
|
27043
27174
|
}
|
|
27044
27175
|
),
|
|
27045
27176
|
"`"
|
|
@@ -27056,16 +27187,32 @@ function HeregexLiteral($$ctx, $$state) {
|
|
|
27056
27187
|
children
|
|
27057
27188
|
};
|
|
27058
27189
|
}
|
|
27190
|
+
const source = body.map(($14) => $14.token).join("");
|
|
27191
|
+
if (!source.length) {
|
|
27192
|
+
const pos = open.$loc.pos + open.$loc.length;
|
|
27193
|
+
const empty = {
|
|
27194
|
+
token: "(?:)",
|
|
27195
|
+
$loc: { pos, length: close.$loc.pos - pos }
|
|
27196
|
+
};
|
|
27197
|
+
const children = [open, empty, close];
|
|
27198
|
+
if (flags.length) {
|
|
27199
|
+
children.push(flags);
|
|
27200
|
+
}
|
|
27201
|
+
return {
|
|
27202
|
+
type: "RegularExpressionLiteral",
|
|
27203
|
+
children
|
|
27204
|
+
};
|
|
27205
|
+
}
|
|
27059
27206
|
return {
|
|
27060
27207
|
type: "RegularExpressionLiteral",
|
|
27061
27208
|
children: $0
|
|
27062
27209
|
};
|
|
27063
|
-
})($$value, $$value[0], $$value[1], $$value[2], $$value[3]);
|
|
27210
|
+
})($$r.loc, $$value, $$value[0], $$value[1], $$value[2], $$value[3]);
|
|
27064
27211
|
$$r.value = $$m;
|
|
27065
27212
|
$$ctx.exit?.("HeregexLiteral", $$state, $$r, $$eventData);
|
|
27066
27213
|
return $$r;
|
|
27067
27214
|
}
|
|
27068
|
-
var HeregexBody$parser = (0, import_lib2.$S)((0, import_lib2.$N)(
|
|
27215
|
+
var HeregexBody$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($L76, 'HeregexBody "/"')), (0, import_lib2.$Q)(HeregexPart));
|
|
27069
27216
|
function HeregexBody($$ctx, $$state) {
|
|
27070
27217
|
const $$entered = $$ctx.enter?.("HeregexBody", $$state);
|
|
27071
27218
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27075,8 +27222,8 @@ function HeregexBody($$ctx, $$state) {
|
|
|
27075
27222
|
$$ctx.exit?.("HeregexBody", $$state, void 0, $$eventData);
|
|
27076
27223
|
return void 0;
|
|
27077
27224
|
}
|
|
27078
|
-
const $$m = /* @__PURE__ */ (function(
|
|
27079
|
-
return
|
|
27225
|
+
const $$m = /* @__PURE__ */ (function(body) {
|
|
27226
|
+
return body;
|
|
27080
27227
|
})($$r.value[1]);
|
|
27081
27228
|
$$r.value = $$m;
|
|
27082
27229
|
$$ctx.exit?.("HeregexBody", $$state, $$r, $$eventData);
|
|
@@ -27084,11 +27231,11 @@ function HeregexBody($$ctx, $$state) {
|
|
|
27084
27231
|
}
|
|
27085
27232
|
var HeregexPart$1$parser = (0, import_lib2.$S)(CoffeeInterpolationEnabled, CoffeeStringSubstitution);
|
|
27086
27233
|
var HeregexPart$2$parser = (0, import_lib2.$S)(TemplateSubstitution);
|
|
27087
|
-
var HeregexPart$3$parser = (0, import_lib2.$EXPECT)($
|
|
27234
|
+
var HeregexPart$3$parser = (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R55, "HeregexPart /\\\\./"));
|
|
27088
27235
|
var HeregexPart$4$parser = (0, import_lib2.$S)(HeregexComment);
|
|
27089
|
-
var HeregexPart$5$parser = (0, import_lib2.$EXPECT)($
|
|
27090
|
-
var HeregexPart$6$parser = (0, import_lib2.$EXPECT)($
|
|
27091
|
-
var HeregexPart$7$parser = (0, import_lib2.$EXPECT)($
|
|
27236
|
+
var HeregexPart$5$parser = (0, import_lib2.$EXPECT)($R56, "HeregexPart /[\\s]+/");
|
|
27237
|
+
var HeregexPart$6$parser = (0, import_lib2.$EXPECT)($R57, "HeregexPart /\\/(?!\\/\\/)/");
|
|
27238
|
+
var HeregexPart$7$parser = (0, import_lib2.$EXPECT)($R58, "HeregexPart /[^[\\/\\s#$\\\\]+|[#$]/");
|
|
27092
27239
|
function HeregexPart$0($$ctx, $$state) {
|
|
27093
27240
|
return RegularExpressionClass($$ctx, $$state);
|
|
27094
27241
|
}
|
|
@@ -27119,21 +27266,9 @@ function HeregexPart$3($$ctx, $$state) {
|
|
|
27119
27266
|
if (!$$r) {
|
|
27120
27267
|
return void 0;
|
|
27121
27268
|
}
|
|
27122
|
-
const $$m = (function($loc,
|
|
27123
|
-
|
|
27124
|
-
|
|
27125
|
-
case "\n":
|
|
27126
|
-
token = "\\n";
|
|
27127
|
-
break;
|
|
27128
|
-
case "\r":
|
|
27129
|
-
token = "\\r";
|
|
27130
|
-
break;
|
|
27131
|
-
case " ":
|
|
27132
|
-
token = " ";
|
|
27133
|
-
break;
|
|
27134
|
-
}
|
|
27135
|
-
return { $loc, token };
|
|
27136
|
-
})($$r.loc, $$r.value[0]);
|
|
27269
|
+
const $$m = (function($loc, escape) {
|
|
27270
|
+
return { $loc, token: heregexEscapes[escape[1]] ?? escape };
|
|
27271
|
+
})($$r.loc, $$r.value);
|
|
27137
27272
|
$$r.value = $$m;
|
|
27138
27273
|
return $$r;
|
|
27139
27274
|
}
|
|
@@ -27213,7 +27348,7 @@ function HeregexComment($$ctx, $$state) {
|
|
|
27213
27348
|
$$ctx.exit?.("HeregexComment", $$state, $$final, $$eventData);
|
|
27214
27349
|
return $$final;
|
|
27215
27350
|
}
|
|
27216
|
-
var RegularExpressionBody$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
27351
|
+
var RegularExpressionBody$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R59, "RegularExpressionBody /[*\\/\\r\\n]/"))), (0, import_lib2.$Q)(RegExpPart));
|
|
27217
27352
|
function RegularExpressionBody($$ctx, $$state) {
|
|
27218
27353
|
const $$entered = $$ctx.enter?.("RegularExpressionBody", $$state);
|
|
27219
27354
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27236,7 +27371,7 @@ function RegExpPart($$ctx, $$state) {
|
|
|
27236
27371
|
$$ctx.exit?.("RegExpPart", $$state, $$final, $$eventData);
|
|
27237
27372
|
return $$final;
|
|
27238
27373
|
}
|
|
27239
|
-
var RegExpCharacter$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
27374
|
+
var RegExpCharacter$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R60, "RegExpCharacter /(?:\\\\.|[^[\\/\\r\\n])+/"));
|
|
27240
27375
|
function RegExpCharacter($$ctx, $$state) {
|
|
27241
27376
|
const $$entered = $$ctx.enter?.("RegExpCharacter", $$state);
|
|
27242
27377
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27245,7 +27380,7 @@ function RegExpCharacter($$ctx, $$state) {
|
|
|
27245
27380
|
$$ctx.exit?.("RegExpCharacter", $$state, $$final, $$eventData);
|
|
27246
27381
|
return $$final;
|
|
27247
27382
|
}
|
|
27248
|
-
var RegularExpressionFlags$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
27383
|
+
var RegularExpressionFlags$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R61, "RegularExpressionFlags /(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
|
|
27249
27384
|
function RegularExpressionFlags($$ctx, $$state) {
|
|
27250
27385
|
const $$entered = $$ctx.enter?.("RegularExpressionFlags", $$state);
|
|
27251
27386
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27254,7 +27389,7 @@ function RegularExpressionFlags($$ctx, $$state) {
|
|
|
27254
27389
|
$$ctx.exit?.("RegularExpressionFlags", $$state, $$final, $$eventData);
|
|
27255
27390
|
return $$final;
|
|
27256
27391
|
}
|
|
27257
|
-
var TemplateLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
27392
|
+
var TemplateLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R62, "TemplateLiteral /(?=[`'\"])/"), _TemplateLiteral);
|
|
27258
27393
|
function TemplateLiteral($$ctx, $$state) {
|
|
27259
27394
|
const $$entered = $$ctx.enter?.("TemplateLiteral", $$state);
|
|
27260
27395
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27358,7 +27493,7 @@ function TemplateSubstitution($$ctx, $$state) {
|
|
|
27358
27493
|
$$ctx.exit?.("TemplateSubstitution", $$state, $$final, $$eventData);
|
|
27359
27494
|
return $$final;
|
|
27360
27495
|
}
|
|
27361
|
-
var TemplateCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27496
|
+
var TemplateCharacters$parser = (0, import_lib2.$EXPECT)($R63, "TemplateCharacters /(?:\\$(?!\\{)|\\\\.|[^$`])+/");
|
|
27362
27497
|
function TemplateCharacters($$ctx, $$state) {
|
|
27363
27498
|
const $$entered = $$ctx.enter?.("TemplateCharacters", $$state);
|
|
27364
27499
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27375,7 +27510,7 @@ function TemplateCharacters($$ctx, $$state) {
|
|
|
27375
27510
|
$$ctx.exit?.("TemplateCharacters", $$state, $$r, $$eventData);
|
|
27376
27511
|
return $$r;
|
|
27377
27512
|
}
|
|
27378
|
-
var TemplateBlockCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27513
|
+
var TemplateBlockCharacters$parser = (0, import_lib2.$EXPECT)($R64, "TemplateBlockCharacters /(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+/");
|
|
27379
27514
|
function TemplateBlockCharacters($$ctx, $$state) {
|
|
27380
27515
|
const $$entered = $$ctx.enter?.("TemplateBlockCharacters", $$state);
|
|
27381
27516
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27392,11 +27527,11 @@ function TemplateBlockCharacters($$ctx, $$state) {
|
|
|
27392
27527
|
$$ctx.exit?.("TemplateBlockCharacters", $$state, $$r, $$eventData);
|
|
27393
27528
|
return $$r;
|
|
27394
27529
|
}
|
|
27395
|
-
var ReservedWord$0$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
27396
|
-
var ReservedWord$1$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
27397
|
-
var ReservedWord$2$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
27398
|
-
var ReservedWord$3$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
27399
|
-
var ReservedWord$4$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
27530
|
+
var ReservedWord$0$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R65, "ReservedWord /(?:off|yes|on|no)/")), NonIdContinue, CoffeeBooleansEnabled);
|
|
27531
|
+
var ReservedWord$1$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R66, "ReservedWord /isnt/")), NonIdContinue, CoffeeIsntEnabled);
|
|
27532
|
+
var ReservedWord$2$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R67, "ReservedWord /by/")), NonIdContinue, CoffeeForLoopsEnabled);
|
|
27533
|
+
var ReservedWord$3$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R68, "ReservedWord /of/")), NonIdContinue, CoffeeOfEnabled);
|
|
27534
|
+
var ReservedWord$4$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R69, "ReservedWord /(?:instanceof|interface|protected|continue|debugger|function|default|extends|finally|private|delete|export|import|public|return|static|switch|typeof|unless|await|break|catch|class|const|false|super|throw|until|while|yield|case|else|enum|loop|null|this|true|void|with|and|for|let|new|not|try|var|do|if|in|is|or)/")), NonIdContinue);
|
|
27400
27535
|
function ReservedWord$0($$ctx, $$state) {
|
|
27401
27536
|
const $$r = ReservedWord$0$parser($$ctx, $$state);
|
|
27402
27537
|
if (!$$r) {
|
|
@@ -27460,7 +27595,7 @@ function ReservedWord($$ctx, $$state) {
|
|
|
27460
27595
|
$$ctx.exit?.("ReservedWord", $$state, $$final, $$eventData);
|
|
27461
27596
|
return $$final;
|
|
27462
27597
|
}
|
|
27463
|
-
var Comment$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
27598
|
+
var Comment$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R70, "Comment /(?=\\/|#)/"), _Comment);
|
|
27464
27599
|
function Comment($$ctx, $$state) {
|
|
27465
27600
|
const $$entered = $$ctx.enter?.("Comment", $$state);
|
|
27466
27601
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27506,7 +27641,7 @@ function SingleLineComment($$ctx, $$state) {
|
|
|
27506
27641
|
$$ctx.exit?.("SingleLineComment", $$state, $$final, $$eventData);
|
|
27507
27642
|
return $$final;
|
|
27508
27643
|
}
|
|
27509
|
-
var JSSingleLineComment$parser = (0, import_lib2.$EXPECT)($
|
|
27644
|
+
var JSSingleLineComment$parser = (0, import_lib2.$EXPECT)($R71, "JSSingleLineComment /\\/\\/(?!\\/(?!\\/))[^\\r\\n]*/");
|
|
27510
27645
|
function JSSingleLineComment($$ctx, $$state) {
|
|
27511
27646
|
const $$entered = $$ctx.enter?.("JSSingleLineComment", $$state);
|
|
27512
27647
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27537,7 +27672,7 @@ function MultiLineComment($$ctx, $$state) {
|
|
|
27537
27672
|
$$ctx.exit?.("MultiLineComment", $$state, $$final, $$eventData);
|
|
27538
27673
|
return $$final;
|
|
27539
27674
|
}
|
|
27540
|
-
var JSMultiLineComment$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L139, 'JSMultiLineComment "/*"'), (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($L140, 'JSMultiLineComment "*/"')), (0, import_lib2.$EXPECT)($
|
|
27675
|
+
var JSMultiLineComment$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L139, 'JSMultiLineComment "/*"'), (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($L140, 'JSMultiLineComment "*/"')), (0, import_lib2.$EXPECT)($R72, "JSMultiLineComment /./"))), (0, import_lib2.$EXPECT)($L140, 'JSMultiLineComment "*/"')));
|
|
27541
27676
|
function JSMultiLineComment($$ctx, $$state) {
|
|
27542
27677
|
const $$entered = $$ctx.enter?.("JSMultiLineComment", $$state);
|
|
27543
27678
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27554,7 +27689,7 @@ function JSMultiLineComment($$ctx, $$state) {
|
|
|
27554
27689
|
$$ctx.exit?.("JSMultiLineComment", $$state, $$r, $$eventData);
|
|
27555
27690
|
return $$r;
|
|
27556
27691
|
}
|
|
27557
|
-
var CoffeeSingleLineComment$parser = (0, import_lib2.$EXPECT)($
|
|
27692
|
+
var CoffeeSingleLineComment$parser = (0, import_lib2.$EXPECT)($R73, "CoffeeSingleLineComment /#(?!##(?!#))([^\\r\\n]*)/");
|
|
27558
27693
|
function CoffeeSingleLineComment($$ctx, $$state) {
|
|
27559
27694
|
const $$entered = $$ctx.enter?.("CoffeeSingleLineComment", $$state);
|
|
27560
27695
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27571,7 +27706,7 @@ function CoffeeSingleLineComment($$ctx, $$state) {
|
|
|
27571
27706
|
$$ctx.exit?.("CoffeeSingleLineComment", $$state, $$r, $$eventData);
|
|
27572
27707
|
return $$r;
|
|
27573
27708
|
}
|
|
27574
|
-
var CoffeeMultiLineComment$parser = (0, import_lib2.$S)(CoffeeHereCommentStart, (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
27709
|
+
var CoffeeMultiLineComment$parser = (0, import_lib2.$S)(CoffeeHereCommentStart, (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R74, "CoffeeMultiLineComment /[^]*?###/")));
|
|
27575
27710
|
function CoffeeMultiLineComment($$ctx, $$state) {
|
|
27576
27711
|
const $$entered = $$ctx.enter?.("CoffeeMultiLineComment", $$state);
|
|
27577
27712
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27589,7 +27724,7 @@ function CoffeeMultiLineComment($$ctx, $$state) {
|
|
|
27589
27724
|
$$ctx.exit?.("CoffeeMultiLineComment", $$state, $$r, $$eventData);
|
|
27590
27725
|
return $$r;
|
|
27591
27726
|
}
|
|
27592
|
-
var CoffeeHereCommentStart$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
27727
|
+
var CoffeeHereCommentStart$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R75, "CoffeeHereCommentStart /###(?!#)/"));
|
|
27593
27728
|
function CoffeeHereCommentStart($$ctx, $$state) {
|
|
27594
27729
|
const $$entered = $$ctx.enter?.("CoffeeHereCommentStart", $$state);
|
|
27595
27730
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27598,7 +27733,7 @@ function CoffeeHereCommentStart($$ctx, $$state) {
|
|
|
27598
27733
|
$$ctx.exit?.("CoffeeHereCommentStart", $$state, $$final, $$eventData);
|
|
27599
27734
|
return $$final;
|
|
27600
27735
|
}
|
|
27601
|
-
var InlineComment$0$parser = (0, import_lib2.$EXPECT)($
|
|
27736
|
+
var InlineComment$0$parser = (0, import_lib2.$EXPECT)($R76, "InlineComment /\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\//");
|
|
27602
27737
|
function InlineComment$0($$ctx, $$state) {
|
|
27603
27738
|
const $$r = InlineComment$0$parser($$ctx, $$state);
|
|
27604
27739
|
if (!$$r) {
|
|
@@ -27639,7 +27774,7 @@ function TrailingComment($$ctx, $$state) {
|
|
|
27639
27774
|
$$ctx.exit?.("TrailingComment", $$state, $$final, $$eventData);
|
|
27640
27775
|
return $$final;
|
|
27641
27776
|
}
|
|
27642
|
-
var _$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
27777
|
+
var _$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R77, "_ /(?=[ \\t\\/\\\\#])/"), (0, import_lib2.$P)((0, import_lib2.$C)(NonNewlineWhitespace, InlineComment)));
|
|
27643
27778
|
function _($$ctx, $$state) {
|
|
27644
27779
|
const $$entered = $$ctx.enter?.("_", $$state);
|
|
27645
27780
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27656,7 +27791,7 @@ function _($$ctx, $$state) {
|
|
|
27656
27791
|
$$ctx.exit?.("_", $$state, $$r, $$eventData);
|
|
27657
27792
|
return $$r;
|
|
27658
27793
|
}
|
|
27659
|
-
var NonNewlineWhitespace$0$parser = (0, import_lib2.$EXPECT)($
|
|
27794
|
+
var NonNewlineWhitespace$0$parser = (0, import_lib2.$EXPECT)($R22, "NonNewlineWhitespace /[ \\t]+/");
|
|
27660
27795
|
var NonNewlineWhitespace$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L141, 'NonNewlineWhitespace "\\\\\\\\"'), CoffeeLineContinuationEnabled, EOL);
|
|
27661
27796
|
function NonNewlineWhitespace$0($$ctx, $$state) {
|
|
27662
27797
|
const $$r = NonNewlineWhitespace$0$parser($$ctx, $$state);
|
|
@@ -27705,7 +27840,7 @@ function Trimmed_($$ctx, $$state) {
|
|
|
27705
27840
|
$$ctx.exit?.("Trimmed_", $$state, $$r, $$eventData);
|
|
27706
27841
|
return $$r;
|
|
27707
27842
|
}
|
|
27708
|
-
var __$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
27843
|
+
var __$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R78, "__ /(?=\\s|\\/|#)/"), (0, import_lib2.$Q)((0, import_lib2.$C)(Whitespace, Comment)));
|
|
27709
27844
|
var __$1$parser = (0, import_lib2.$EXPECT)($L0, '__ ""');
|
|
27710
27845
|
function __$0($$ctx, $$state) {
|
|
27711
27846
|
const $$r = __$0$parser($$ctx, $$state);
|
|
@@ -27729,7 +27864,7 @@ function __($$ctx, $$state) {
|
|
|
27729
27864
|
$$ctx.exit?.("__", $$state, $$final, $$eventData);
|
|
27730
27865
|
return $$final;
|
|
27731
27866
|
}
|
|
27732
|
-
var Whitespace$parser = (0, import_lib2.$EXPECT)($
|
|
27867
|
+
var Whitespace$parser = (0, import_lib2.$EXPECT)($R56, "Whitespace /[\\s]+/");
|
|
27733
27868
|
function Whitespace($$ctx, $$state) {
|
|
27734
27869
|
const $$entered = $$ctx.enter?.("Whitespace", $$state);
|
|
27735
27870
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27865,7 +28000,7 @@ function SemicolonDelimiter($$ctx, $$state) {
|
|
|
27865
28000
|
$$ctx.exit?.("SemicolonDelimiter", $$state, $$r, $$eventData);
|
|
27866
28001
|
return $$r;
|
|
27867
28002
|
}
|
|
27868
|
-
var NonIdContinue$parser = (0, import_lib2.$EXPECT)($
|
|
28003
|
+
var NonIdContinue$parser = (0, import_lib2.$EXPECT)($RD2, () => `NonIdContinue /${$RD2.source}/`);
|
|
27869
28004
|
function NonIdContinue($$ctx, $$state) {
|
|
27870
28005
|
const $$entered = $$ctx.enter?.("NonIdContinue", $$state);
|
|
27871
28006
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -28205,7 +28340,7 @@ function CoffeeSubstitutionStart($$ctx, $$state) {
|
|
|
28205
28340
|
$$ctx.exit?.("CoffeeSubstitutionStart", $$state, $$r, $$eventData);
|
|
28206
28341
|
return $$r;
|
|
28207
28342
|
}
|
|
28208
|
-
var Colon$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L15, 'Colon ":"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
28343
|
+
var Colon$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L15, 'Colon ":"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($R79, "Colon /[=:]/")));
|
|
28209
28344
|
function Colon($$ctx, $$state) {
|
|
28210
28345
|
const $$entered = $$ctx.enter?.("Colon", $$state);
|
|
28211
28346
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -28342,7 +28477,7 @@ function Do($$ctx, $$state) {
|
|
|
28342
28477
|
return $$r;
|
|
28343
28478
|
}
|
|
28344
28479
|
var Dot$0$parser = (0, import_lib2.$EXPECT)($L7, 'Dot "."');
|
|
28345
|
-
var Dot$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
28480
|
+
var Dot$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R80, "Dot /['\u2019]s/"), Trimmed_);
|
|
28346
28481
|
function Dot$0($$ctx, $$state) {
|
|
28347
28482
|
const $$r = Dot$0$parser($$ctx, $$state);
|
|
28348
28483
|
if (!$$r) {
|
|
@@ -29726,7 +29861,7 @@ function JSXImplicitFragment($$ctx, $$state) {
|
|
|
29726
29861
|
$$ctx.exit?.("JSXImplicitFragment", $$state, $$r, $$eventData);
|
|
29727
29862
|
return $$r;
|
|
29728
29863
|
}
|
|
29729
|
-
var JSXTag$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
29864
|
+
var JSXTag$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R81, "JSXTag /(?=[<])/"), _JSXTag);
|
|
29730
29865
|
function JSXTag($$ctx, $$state) {
|
|
29731
29866
|
const $$entered = $$ctx.enter?.("JSXTag", $$state);
|
|
29732
29867
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -30050,7 +30185,7 @@ function JSXElementName($$ctx, $$state) {
|
|
|
30050
30185
|
$$ctx.exit?.("JSXElementName", $$state, $$final, $$eventData);
|
|
30051
30186
|
return $$final;
|
|
30052
30187
|
}
|
|
30053
|
-
var JSXIdentifierName$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
30188
|
+
var JSXIdentifierName$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R82, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
|
|
30054
30189
|
function JSXIdentifierName($$ctx, $$state) {
|
|
30055
30190
|
const $$entered = $$ctx.enter?.("JSXIdentifierName", $$state);
|
|
30056
30191
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -30166,7 +30301,7 @@ var JSXAttribute$3$parser = (0, import_lib2.$S)(AtThis, (0, import_lib2.$E)(Iden
|
|
|
30166
30301
|
var JSXAttribute$4$parser = (0, import_lib2.$S)(Identifier, (0, import_lib2.$P)(InlineJSXCallExpressionRest), (0, import_lib2.$Y)(JSXAttributeSpace));
|
|
30167
30302
|
var JSXAttribute$5$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L177, 'JSXAttribute "#"'), JSXShorthandString);
|
|
30168
30303
|
var JSXAttribute$6$parser = (0, import_lib2.$S)(Dot, JSXShorthandString);
|
|
30169
|
-
var JSXAttribute$7$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
30304
|
+
var JSXAttribute$7$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R83, "JSXAttribute /[!+-]/")), JSXAttributeName, (0, import_lib2.$Y)(JSXAttributeSpace));
|
|
30170
30305
|
function JSXAttribute$0($$ctx, $$state) {
|
|
30171
30306
|
const $$r = JSXAttribute$0$parser($$ctx, $$state);
|
|
30172
30307
|
if (!$$r) {
|
|
@@ -30332,7 +30467,7 @@ function JSXAttribute($$ctx, $$state) {
|
|
|
30332
30467
|
$$ctx.exit?.("JSXAttribute", $$state, $$final, $$eventData);
|
|
30333
30468
|
return $$final;
|
|
30334
30469
|
}
|
|
30335
|
-
var JSXAttributeSpace$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
30470
|
+
var JSXAttributeSpace$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R84, "JSXAttributeSpace /[\\s>]|\\/>/"));
|
|
30336
30471
|
function JSXAttributeSpace($$ctx, $$state) {
|
|
30337
30472
|
const $$entered = $$ctx.enter?.("JSXAttributeSpace", $$state);
|
|
30338
30473
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -30341,7 +30476,7 @@ function JSXAttributeSpace($$ctx, $$state) {
|
|
|
30341
30476
|
$$ctx.exit?.("JSXAttributeSpace", $$state, $$final, $$eventData);
|
|
30342
30477
|
return $$final;
|
|
30343
30478
|
}
|
|
30344
|
-
var JSXShorthandString$0$parser = (0, import_lib2.$EXPECT)($
|
|
30479
|
+
var JSXShorthandString$0$parser = (0, import_lib2.$EXPECT)($R85, "JSXShorthandString /(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+/");
|
|
30345
30480
|
var JSXShorthandString$1$parser = (0, import_lib2.$S)(TemplateLiteral);
|
|
30346
30481
|
var JSXShorthandString$3$parser = (0, import_lib2.$S)(OpenBrace, PostfixedExpressionOrCommaLoop, __, CloseBrace);
|
|
30347
30482
|
function JSXShorthandString$0($$ctx, $$state) {
|
|
@@ -30442,7 +30577,7 @@ function JSXAttributeInitializer($$ctx, $$state) {
|
|
|
30442
30577
|
}
|
|
30443
30578
|
var JSXAttributeValue$0$parser = (0, import_lib2.$S)(OpenBrace, PostfixedExpressionOrCommaLoop, __, CloseBrace);
|
|
30444
30579
|
var JSXAttributeValue$3$parser = (0, import_lib2.$S)(InsertInlineOpenBrace, InlineJSXAttributeValue, InsertCloseBrace, (0, import_lib2.$Y)(JSXAttributeSpace));
|
|
30445
|
-
var JSXAttributeValue$4$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
30580
|
+
var JSXAttributeValue$4$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R86, `JSXAttributeValue /"[^"]*"|'[^']*'/`));
|
|
30446
30581
|
function JSXAttributeValue$0($$ctx, $$state) {
|
|
30447
30582
|
return JSXAttributeValue$0$parser($$ctx, $$state);
|
|
30448
30583
|
}
|
|
@@ -30499,7 +30634,7 @@ function InlineJSXAttributeValue($$ctx, $$state) {
|
|
|
30499
30634
|
$$ctx.exit?.("InlineJSXAttributeValue", $$state, $$r, $$eventData);
|
|
30500
30635
|
return $$r;
|
|
30501
30636
|
}
|
|
30502
|
-
var InlineJSXBinaryOpRHS$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
30637
|
+
var InlineJSXBinaryOpRHS$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($R87, "InlineJSXBinaryOpRHS /[<>]/")), BinaryOp, InlineJSXUnaryExpression);
|
|
30503
30638
|
function InlineJSXBinaryOpRHS($$ctx, $$state) {
|
|
30504
30639
|
const $$entered = $$ctx.enter?.("InlineJSXBinaryOpRHS", $$state);
|
|
30505
30640
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -30535,7 +30670,7 @@ function InlineJSXUnaryExpression($$ctx, $$state) {
|
|
|
30535
30670
|
$$ctx.exit?.("InlineJSXUnaryExpression", $$state, $$r, $$eventData);
|
|
30536
30671
|
return $$r;
|
|
30537
30672
|
}
|
|
30538
|
-
var InlineJSXUnaryOp$parser = (0, import_lib2.$EXPECT)($
|
|
30673
|
+
var InlineJSXUnaryOp$parser = (0, import_lib2.$EXPECT)($R88, "InlineJSXUnaryOp /[!~+-](?!\\s|[!~+-]*&)/");
|
|
30539
30674
|
function InlineJSXUnaryOp($$ctx, $$state) {
|
|
30540
30675
|
const $$entered = $$ctx.enter?.("InlineJSXUnaryOp", $$state);
|
|
30541
30676
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -31096,7 +31231,7 @@ function JSXComment($$ctx, $$state) {
|
|
|
31096
31231
|
$$ctx.exit?.("JSXComment", $$state, $$r, $$eventData);
|
|
31097
31232
|
return $$r;
|
|
31098
31233
|
}
|
|
31099
|
-
var JSXCommentContent$parser = (0, import_lib2.$EXPECT)($
|
|
31234
|
+
var JSXCommentContent$parser = (0, import_lib2.$EXPECT)($R89, "JSXCommentContent /(?:-[^-]|[^-]*)*/");
|
|
31100
31235
|
function JSXCommentContent($$ctx, $$state) {
|
|
31101
31236
|
const $$entered = $$ctx.enter?.("JSXCommentContent", $$state);
|
|
31102
31237
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -31113,7 +31248,7 @@ function JSXCommentContent($$ctx, $$state) {
|
|
|
31113
31248
|
$$ctx.exit?.("JSXCommentContent", $$state, $$r, $$eventData);
|
|
31114
31249
|
return $$r;
|
|
31115
31250
|
}
|
|
31116
|
-
var JSXText$parser = (0, import_lib2.$EXPECT)($
|
|
31251
|
+
var JSXText$parser = (0, import_lib2.$EXPECT)($R90, "JSXText /[^{}<>\\r\\n]+/");
|
|
31117
31252
|
function JSXText($$ctx, $$state) {
|
|
31118
31253
|
const $$entered = $$ctx.enter?.("JSXText", $$state);
|
|
31119
31254
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -32221,7 +32356,7 @@ function TypeProperty($$ctx, $$state) {
|
|
|
32221
32356
|
$$ctx.exit?.("TypeProperty", $$state, $$r, $$eventData);
|
|
32222
32357
|
return $$r;
|
|
32223
32358
|
}
|
|
32224
|
-
var TypeIndexSignature$parser = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
32359
|
+
var TypeIndexSignature$parser = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R91, "TypeIndexSignature /[+-]?/"), Readonly, NotDedented)), OpenBracket, TypeIndex, CloseBracket, (0, import_lib2.$E)((0, import_lib2.$S)(__, (0, import_lib2.$EXPECT)($R15, "TypeIndexSignature /[+-]/"), (0, import_lib2.$Y)((0, import_lib2.$S)((0, import_lib2.$E)(_), QuestionMark)))));
|
|
32225
32360
|
function TypeIndexSignature($$ctx, $$state) {
|
|
32226
32361
|
const $$entered = $$ctx.enter?.("TypeIndexSignature", $$state);
|
|
32227
32362
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -33286,7 +33421,7 @@ function TypeWithPostfix($$ctx, $$state) {
|
|
|
33286
33421
|
$$ctx.exit?.("TypeWithPostfix", $$state, $$r, $$eventData);
|
|
33287
33422
|
return $$r;
|
|
33288
33423
|
}
|
|
33289
|
-
var TypeConditional$0$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$EXPECT)($
|
|
33424
|
+
var TypeConditional$0$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$EXPECT)($R92, "TypeConditional /(?=if|unless)/"), TypeIfThenElse);
|
|
33290
33425
|
var TypeConditional$1$parser = (0, import_lib2.$S)(TypeCondition, NotDedented, QuestionMark, __, Type, __, Colon, __, Type);
|
|
33291
33426
|
var TypeConditional$2$parser = TypeBinary;
|
|
33292
33427
|
function TypeConditional$0($$ctx, $$state) {
|
|
@@ -33711,7 +33846,7 @@ function TypeFunction($$ctx, $$state) {
|
|
|
33711
33846
|
message: "abstract function types must be constructors (abstract new)"
|
|
33712
33847
|
};
|
|
33713
33848
|
}
|
|
33714
|
-
if (returnType.$loc && returnType.token === "") {
|
|
33849
|
+
if ("token" in returnType && returnType.$loc && returnType.token === "") {
|
|
33715
33850
|
const t = {
|
|
33716
33851
|
type: "VoidType",
|
|
33717
33852
|
$loc: returnType.$loc,
|
|
@@ -33828,8 +33963,8 @@ function TypeApplicationStart($$ctx, $$state) {
|
|
|
33828
33963
|
$$ctx.exit?.("TypeApplicationStart", $$state, $$final, $$eventData);
|
|
33829
33964
|
return $$final;
|
|
33830
33965
|
}
|
|
33831
|
-
var ForbiddenImplicitTypeCalls$1$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
33832
|
-
var ForbiddenImplicitTypeCalls$2$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
33966
|
+
var ForbiddenImplicitTypeCalls$1$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R93, "ForbiddenImplicitTypeCalls /[|&<!=\\-\u21D2\u2192]/"));
|
|
33967
|
+
var ForbiddenImplicitTypeCalls$2$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R94, "ForbiddenImplicitTypeCalls /(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
|
|
33833
33968
|
function ForbiddenImplicitTypeCalls$0($$ctx, $$state) {
|
|
33834
33969
|
return ReservedBinary($$ctx, $$state);
|
|
33835
33970
|
}
|
|
@@ -34048,7 +34183,7 @@ function TypeParameters($$ctx, $$state) {
|
|
|
34048
34183
|
$$ctx.exit?.("TypeParameters", $$state, $$r, $$eventData);
|
|
34049
34184
|
return $$r;
|
|
34050
34185
|
}
|
|
34051
|
-
var TypeParameter$parser = (0, import_lib2.$S)(__, (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
34186
|
+
var TypeParameter$parser = (0, import_lib2.$S)(__, (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R95, "TypeParameter /const|in|out/")), _)), Identifier, (0, import_lib2.$E)(TypeConstraint), (0, import_lib2.$E)(TypeInitializer), TypeParameterDelimiter);
|
|
34052
34187
|
function TypeParameter($$ctx, $$state) {
|
|
34053
34188
|
const $$entered = $$ctx.enter?.("TypeParameter", $$state);
|
|
34054
34189
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34132,7 +34267,7 @@ function ThisType($$ctx, $$state) {
|
|
|
34132
34267
|
$$ctx.exit?.("ThisType", $$state, $$r, $$eventData);
|
|
34133
34268
|
return $$r;
|
|
34134
34269
|
}
|
|
34135
|
-
var Shebang$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
34270
|
+
var Shebang$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R96, "Shebang /#![^\\r\\n]*/")), EOL);
|
|
34136
34271
|
function Shebang($$ctx, $$state) {
|
|
34137
34272
|
const $$entered = $$ctx.enter?.("Shebang", $$state);
|
|
34138
34273
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34141,8 +34276,8 @@ function Shebang($$ctx, $$state) {
|
|
|
34141
34276
|
$$ctx.exit?.("Shebang", $$state, $$final, $$eventData);
|
|
34142
34277
|
return $$final;
|
|
34143
34278
|
}
|
|
34144
|
-
var CivetPrologue$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
34145
|
-
var CivetPrologue$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
34279
|
+
var CivetPrologue$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R97, "CivetPrologue /[\\t ]*/"), DoubleQuote, CivetPrologueContent, DoubleQuote, SimpleStatementDelimiter, (0, import_lib2.$EXPECT)($R21, "CivetPrologue /[ \\t]*/"), (0, import_lib2.$C)(EOL, (0, import_lib2.$Y)(RestOfLine)));
|
|
34280
|
+
var CivetPrologue$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R97, "CivetPrologue /[\\t ]*/"), SingleQuote, CivetPrologueContent, SingleQuote, SimpleStatementDelimiter, (0, import_lib2.$EXPECT)($R21, "CivetPrologue /[ \\t]*/"), (0, import_lib2.$C)(EOL, (0, import_lib2.$Y)(RestOfLine)));
|
|
34146
34281
|
function CivetPrologue$0($$ctx, $$state) {
|
|
34147
34282
|
const $$r = CivetPrologue$0$parser($$ctx, $$state);
|
|
34148
34283
|
if (!$$r) {
|
|
@@ -34173,7 +34308,7 @@ function CivetPrologue($$ctx, $$state) {
|
|
|
34173
34308
|
$$ctx.exit?.("CivetPrologue", $$state, $$final, $$eventData);
|
|
34174
34309
|
return $$final;
|
|
34175
34310
|
}
|
|
34176
|
-
var CivetPrologueContent$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L248, 'CivetPrologueContent "civet"'), NonIdContinue, (0, import_lib2.$Q)(CivetOption), (0, import_lib2.$EXPECT)($
|
|
34311
|
+
var CivetPrologueContent$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L248, 'CivetPrologueContent "civet"'), NonIdContinue, (0, import_lib2.$Q)(CivetOption), (0, import_lib2.$EXPECT)($R98, "CivetPrologueContent /[\\s]*/"));
|
|
34177
34312
|
function CivetPrologueContent($$ctx, $$state) {
|
|
34178
34313
|
const $$entered = $$ctx.enter?.("CivetPrologueContent", $$state);
|
|
34179
34314
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34194,7 +34329,7 @@ function CivetPrologueContent($$ctx, $$state) {
|
|
|
34194
34329
|
$$ctx.exit?.("CivetPrologueContent", $$state, $$r, $$eventData);
|
|
34195
34330
|
return $$r;
|
|
34196
34331
|
}
|
|
34197
|
-
var CivetOption$parser = (0, import_lib2.$EXPECT)($
|
|
34332
|
+
var CivetOption$parser = (0, import_lib2.$EXPECT)($R99, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?/");
|
|
34198
34333
|
function CivetOption($$ctx, $$state) {
|
|
34199
34334
|
const $$entered = $$ctx.enter?.("CivetOption", $$state);
|
|
34200
34335
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34232,7 +34367,7 @@ function CivetOption($$ctx, $$state) {
|
|
|
34232
34367
|
$$ctx.exit?.("CivetOption", $$state, $$r, $$eventData);
|
|
34233
34368
|
return $$r;
|
|
34234
34369
|
}
|
|
34235
|
-
var UnknownPrologue$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
34370
|
+
var UnknownPrologue$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R97, "UnknownPrologue /[\\t ]*/")), StringLiteral, (0, import_lib2.$TEXT)(SimpleStatementDelimiter), EOS);
|
|
34236
34371
|
function UnknownPrologue($$ctx, $$state) {
|
|
34237
34372
|
const $$entered = $$ctx.enter?.("UnknownPrologue", $$state);
|
|
34238
34373
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34241,7 +34376,7 @@ function UnknownPrologue($$ctx, $$state) {
|
|
|
34241
34376
|
$$ctx.exit?.("UnknownPrologue", $$state, $$final, $$eventData);
|
|
34242
34377
|
return $$final;
|
|
34243
34378
|
}
|
|
34244
|
-
var TripleSlashDirective$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
34379
|
+
var TripleSlashDirective$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R100, "TripleSlashDirective /\\/\\/\\/[^\\r\\n]*/")), (0, import_lib2.$E)(EOS));
|
|
34245
34380
|
function TripleSlashDirective($$ctx, $$state) {
|
|
34246
34381
|
const $$entered = $$ctx.enter?.("TripleSlashDirective", $$state);
|
|
34247
34382
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34281,7 +34416,7 @@ function PrologueString($$ctx, $$state) {
|
|
|
34281
34416
|
$$ctx.exit?.("PrologueString", $$state, $$final, $$eventData);
|
|
34282
34417
|
return $$final;
|
|
34283
34418
|
}
|
|
34284
|
-
var EOS$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
34419
|
+
var EOS$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R101, "EOS /(?=[ \\t\\r\\n\\/#]|$)/"), (0, import_lib2.$P)(RestOfLine));
|
|
34285
34420
|
function EOS($$ctx, $$state) {
|
|
34286
34421
|
const $$entered = $$ctx.enter?.("EOS", $$state);
|
|
34287
34422
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34298,7 +34433,7 @@ function EOS($$ctx, $$state) {
|
|
|
34298
34433
|
$$ctx.exit?.("EOS", $$state, $$r, $$eventData);
|
|
34299
34434
|
return $$r;
|
|
34300
34435
|
}
|
|
34301
|
-
var EOL$parser = (0, import_lib2.$EXPECT)($
|
|
34436
|
+
var EOL$parser = (0, import_lib2.$EXPECT)($R102, "EOL /\\r\\n|\\n|\\r|$/");
|
|
34302
34437
|
function EOL($$ctx, $$state) {
|
|
34303
34438
|
const $$entered = $$ctx.enter?.("EOL", $$state);
|
|
34304
34439
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -35273,7 +35408,7 @@ function Prologue($$ctx, $$state) {
|
|
|
35273
35408
|
$$ctx.exit?.("Prologue", $$state, $$final, $$eventData);
|
|
35274
35409
|
return $$final;
|
|
35275
35410
|
}
|
|
35276
|
-
var ProloguePrefix$parser = (0, import_lib2.$S)(Prologue, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
35411
|
+
var ProloguePrefix$parser = (0, import_lib2.$S)(Prologue, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R103, "ProloguePrefix /[^]*/")));
|
|
35277
35412
|
function ProloguePrefix($$ctx, $$state) {
|
|
35278
35413
|
const $$entered = $$ctx.enter?.("ProloguePrefix", $$state);
|
|
35279
35414
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -35282,7 +35417,7 @@ function ProloguePrefix($$ctx, $$state) {
|
|
|
35282
35417
|
$$ctx.exit?.("ProloguePrefix", $$state, $$final, $$eventData);
|
|
35283
35418
|
return $$final;
|
|
35284
35419
|
}
|
|
35285
|
-
var Indent$parser = (0, import_lib2.$EXPECT)($
|
|
35420
|
+
var Indent$parser = (0, import_lib2.$EXPECT)($R21, "Indent /[ \\t]*/");
|
|
35286
35421
|
function Indent($$ctx, $$state) {
|
|
35287
35422
|
const $$entered = $$ctx.enter?.("Indent", $$state);
|
|
35288
35423
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -35660,6 +35795,8 @@ function parseProgram(input, options) {
|
|
|
35660
35795
|
});
|
|
35661
35796
|
}
|
|
35662
35797
|
}
|
|
35798
|
+
var unicodeEscapePattern = String.raw`\\u\{0*(?:[\dA-Fa-f]{1,5}|10[\dA-Fa-f]{4})\}|\\u[\dA-Fa-f]{4}`;
|
|
35799
|
+
var nonAsciiIdentifierPattern = String.raw`[^\u0000-\u007F\p{ID_Continue}\s÷—‖’•‥…⁇→⇒∈∉∋∌≔≠≡≢≣≤≥≪≫⋙▷⧺⩵⩶]`;
|
|
35663
35800
|
var wellKnownSymbols = [
|
|
35664
35801
|
"asyncIterator",
|
|
35665
35802
|
"hasInstance",
|
|
@@ -35675,6 +35812,16 @@ var wellKnownSymbols = [
|
|
|
35675
35812
|
"toStringTag",
|
|
35676
35813
|
"unscopables"
|
|
35677
35814
|
];
|
|
35815
|
+
var heregexEscapes = {
|
|
35816
|
+
"\n": "\\n",
|
|
35817
|
+
"\r": "\\r",
|
|
35818
|
+
"\u2028": "\\u2028",
|
|
35819
|
+
"\u2029": "\\u2029",
|
|
35820
|
+
" ": "\\t",
|
|
35821
|
+
"\v": "\\v",
|
|
35822
|
+
"\f": "\\f",
|
|
35823
|
+
" ": " "
|
|
35824
|
+
};
|
|
35678
35825
|
|
|
35679
35826
|
// source/sourcemap.civet
|
|
35680
35827
|
var sourcemap_exports = {};
|