@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.js
CHANGED
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@danielx+hera@0.9.
|
|
33
|
+
// node_modules/.pnpm/@danielx+hera@0.9.8/node_modules/@danielx/hera/dist/machine.js
|
|
34
34
|
var require_machine = __commonJS({
|
|
35
|
-
"node_modules/.pnpm/@danielx+hera@0.9.
|
|
35
|
+
"node_modules/.pnpm/@danielx+hera@0.9.8/node_modules/@danielx/hera/dist/machine.js"(exports2, module2) {
|
|
36
36
|
var __defProp2 = Object.defineProperty;
|
|
37
37
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
38
38
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
@@ -61,7 +61,7 @@ var require_machine = __commonJS({
|
|
|
61
61
|
$N: () => $N2,
|
|
62
62
|
$P: () => $P2,
|
|
63
63
|
$Q: () => $Q2,
|
|
64
|
-
$R: () => $
|
|
64
|
+
$R: () => $R104,
|
|
65
65
|
$R$0: () => $R$02,
|
|
66
66
|
$S: () => $S2,
|
|
67
67
|
$T: () => $T,
|
|
@@ -78,7 +78,7 @@ var require_machine = __commonJS({
|
|
|
78
78
|
function $EXPECT2(parser2, expectation) {
|
|
79
79
|
return function(ctx, state2) {
|
|
80
80
|
const result = parser2(ctx, state2);
|
|
81
|
-
if (!result) ctx.fail(state2.pos, expectation);
|
|
81
|
+
if (!result) ctx.fail(state2.pos, typeof expectation === "function" ? expectation() : expectation);
|
|
82
82
|
return result;
|
|
83
83
|
};
|
|
84
84
|
}
|
|
@@ -98,7 +98,7 @@ var require_machine = __commonJS({
|
|
|
98
98
|
return;
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
function $
|
|
101
|
+
function $R104(regExp) {
|
|
102
102
|
return function(_ctx, state2) {
|
|
103
103
|
const { input, pos } = state2;
|
|
104
104
|
regExp.lastIndex = state2.pos;
|
|
@@ -1848,6 +1848,7 @@ function adjustBindingElements(elements) {
|
|
|
1848
1848
|
if (restCount === 0) {
|
|
1849
1849
|
return {
|
|
1850
1850
|
children: elements,
|
|
1851
|
+
elements: void 0,
|
|
1851
1852
|
names,
|
|
1852
1853
|
blockPrefix,
|
|
1853
1854
|
length
|
|
@@ -1868,13 +1869,32 @@ function adjustBindingElements(elements) {
|
|
|
1868
1869
|
names: after.flatMap((p) => p.names)
|
|
1869
1870
|
};
|
|
1870
1871
|
}
|
|
1872
|
+
const restTrimmed = {
|
|
1873
|
+
...rest,
|
|
1874
|
+
children: rest.children.slice(0, -1)
|
|
1875
|
+
// remove trailing comma
|
|
1876
|
+
};
|
|
1877
|
+
if (rest.binding.type === "EmptyBinding" && !l) {
|
|
1878
|
+
const preceding = elements.slice(0, restIndex);
|
|
1879
|
+
const last = preceding[preceding.length - 1];
|
|
1880
|
+
if (last && arrayElementHasTrailingComma(last)) {
|
|
1881
|
+
preceding[preceding.length - 1] = {
|
|
1882
|
+
...last,
|
|
1883
|
+
children: last.children.slice(0, -1)
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
return {
|
|
1887
|
+
names,
|
|
1888
|
+
children: preceding,
|
|
1889
|
+
elements: [...preceding, restTrimmed],
|
|
1890
|
+
blockPrefix,
|
|
1891
|
+
length
|
|
1892
|
+
};
|
|
1893
|
+
}
|
|
1871
1894
|
return {
|
|
1872
1895
|
names,
|
|
1873
|
-
children: [...elements.slice(0, restIndex),
|
|
1874
|
-
|
|
1875
|
-
children: rest.children.slice(0, -1)
|
|
1876
|
-
// remove trailing comma
|
|
1877
|
-
}],
|
|
1896
|
+
children: [...elements.slice(0, restIndex), restTrimmed],
|
|
1897
|
+
elements: void 0,
|
|
1878
1898
|
blockPrefix,
|
|
1879
1899
|
length
|
|
1880
1900
|
};
|
|
@@ -1886,6 +1906,7 @@ function adjustBindingElements(elements) {
|
|
|
1886
1906
|
return {
|
|
1887
1907
|
names,
|
|
1888
1908
|
children: [...elements, err],
|
|
1909
|
+
elements: void 0,
|
|
1889
1910
|
blockPrefix,
|
|
1890
1911
|
length
|
|
1891
1912
|
};
|
|
@@ -3919,6 +3940,9 @@ function processParams(f) {
|
|
|
3919
3940
|
const restIdentifier = rest.binding.ref || rest.binding;
|
|
3920
3941
|
parameters.names.push(...rest.names ?? []);
|
|
3921
3942
|
rest.children.pop();
|
|
3943
|
+
if (rest.binding.type === "EmptyBinding" && !after.length) {
|
|
3944
|
+
restIdentifier.base = restIdentifier.id = "_ref";
|
|
3945
|
+
}
|
|
3922
3946
|
if (after.length) {
|
|
3923
3947
|
let m6;
|
|
3924
3948
|
if (m6 = rest.binding.type, m6 === "ArrayBindingPattern" || m6 === "ObjectBindingPattern" || m6 === "NamedBindingPattern") {
|
|
@@ -5827,6 +5851,19 @@ function processDeclarationCondition(condition, rootCondition, parent) {
|
|
|
5827
5851
|
});
|
|
5828
5852
|
} else {
|
|
5829
5853
|
const { expression } = initializer;
|
|
5854
|
+
if (parent.type === "SwitchStatement" && pattern.type === "Identifier" && !nullCheck) {
|
|
5855
|
+
ref = trimFirstSpace(pattern);
|
|
5856
|
+
Object.assign(condition, {
|
|
5857
|
+
type: "AssignmentExpression",
|
|
5858
|
+
children: [ref],
|
|
5859
|
+
pattern,
|
|
5860
|
+
ref,
|
|
5861
|
+
statementDeclaration: true
|
|
5862
|
+
});
|
|
5863
|
+
updateParentPointers(condition, parent);
|
|
5864
|
+
rootCondition.blockPrefix = getPatternBlockPrefix(pattern, trimFirstSpace(expression), decl, typeSuffix);
|
|
5865
|
+
return;
|
|
5866
|
+
}
|
|
5830
5867
|
ref = maybeRef(expression);
|
|
5831
5868
|
const simple = ref === expression;
|
|
5832
5869
|
let children;
|
|
@@ -8032,6 +8069,11 @@ function processCallMemberExpression(node) {
|
|
|
8032
8069
|
let name = part.name;
|
|
8033
8070
|
let value = part.value ?? name;
|
|
8034
8071
|
const wValue = getTrimmingSpace(part.value);
|
|
8072
|
+
let privateField = void 0;
|
|
8073
|
+
if (value?.privateShorthand) {
|
|
8074
|
+
privateField = value.privateId?.name;
|
|
8075
|
+
}
|
|
8076
|
+
;
|
|
8035
8077
|
[value, suppressPrefix] = handleThisPrivateShorthands(value);
|
|
8036
8078
|
if (glob.reversed) {
|
|
8037
8079
|
[name, value] = [value, name];
|
|
@@ -8085,6 +8127,7 @@ function processCallMemberExpression(node) {
|
|
|
8085
8127
|
type: part.type,
|
|
8086
8128
|
name,
|
|
8087
8129
|
value,
|
|
8130
|
+
privateField,
|
|
8088
8131
|
delim: part.delim,
|
|
8089
8132
|
names: part.names,
|
|
8090
8133
|
children: [
|
|
@@ -8656,18 +8699,80 @@ function processAssignments(statements) {
|
|
|
8656
8699
|
if ($1.some((x) => x[x.length - 1].special)) {
|
|
8657
8700
|
const [, lhs, , op] = $1[0];
|
|
8658
8701
|
const { call, omitLhs } = op;
|
|
8702
|
+
let callLhs = lhs;
|
|
8703
|
+
if (!omitLhs && lhs.type === "MemberExpression") {
|
|
8704
|
+
const memberLhs = lhs;
|
|
8705
|
+
const { children: memberChildren } = memberLhs;
|
|
8706
|
+
let mutated = false;
|
|
8707
|
+
const callChildren = memberChildren.map((child) => {
|
|
8708
|
+
if (!(child?.type === "Index")) {
|
|
8709
|
+
return child;
|
|
8710
|
+
}
|
|
8711
|
+
const indexNode = child;
|
|
8712
|
+
const { ref, refAssignment } = maybeRefAssignment(indexNode.expression);
|
|
8713
|
+
if (!refAssignment) {
|
|
8714
|
+
return child;
|
|
8715
|
+
}
|
|
8716
|
+
mutated = true;
|
|
8717
|
+
replaceNode(indexNode.expression, refAssignment, indexNode);
|
|
8718
|
+
return makeNode({
|
|
8719
|
+
type: "Index",
|
|
8720
|
+
children: ["[", ref, "]"],
|
|
8721
|
+
expression: ref
|
|
8722
|
+
});
|
|
8723
|
+
});
|
|
8724
|
+
if (mutated) {
|
|
8725
|
+
callLhs = makeNode({
|
|
8726
|
+
...memberLhs,
|
|
8727
|
+
children: callChildren
|
|
8728
|
+
});
|
|
8729
|
+
}
|
|
8730
|
+
}
|
|
8659
8731
|
const index = exp.children.indexOf($2);
|
|
8660
8732
|
assert.notEqual(index, -1, "processAssignments: $2 must be directly in exp.children");
|
|
8661
8733
|
exp.children.splice(
|
|
8662
8734
|
index,
|
|
8663
8735
|
1,
|
|
8664
|
-
exp.expression = $2 = [call, "(",
|
|
8736
|
+
exp.expression = $2 = [call, "(", callLhs, ", ", $2, ")"]
|
|
8665
8737
|
);
|
|
8666
8738
|
if (omitLhs) {
|
|
8667
8739
|
replaceNode(exp, $2);
|
|
8668
8740
|
continue;
|
|
8669
8741
|
}
|
|
8670
8742
|
}
|
|
8743
|
+
if ($1.length === 1) {
|
|
8744
|
+
const [, soleLhs, , soleOp] = $1[0];
|
|
8745
|
+
const isPrivateGlobProp = (p) => {
|
|
8746
|
+
return p?.type === "Property" && !!p.privateField;
|
|
8747
|
+
};
|
|
8748
|
+
if (soleOp.token === "=" && soleLhs.type === "ObjectExpression" && soleLhs.properties?.some(isPrivateGlobProp) && !soleLhs.properties.some((p) => p?.type === "SpreadProperty")) {
|
|
8749
|
+
const properties = soleLhs.properties.filter((p) => p?.type === "Property");
|
|
8750
|
+
let prefix, sourceExpr;
|
|
8751
|
+
if (properties.length > 1 && needsRef($2)) {
|
|
8752
|
+
const srcRef = makeRef();
|
|
8753
|
+
prefix = [srcRef, " = ", $2, ", "];
|
|
8754
|
+
sourceExpr = srcRef;
|
|
8755
|
+
exp.hoistDec = {
|
|
8756
|
+
type: "Declaration",
|
|
8757
|
+
children: ["let ", srcRef],
|
|
8758
|
+
names: [],
|
|
8759
|
+
bindings: [],
|
|
8760
|
+
decl: "let"
|
|
8761
|
+
};
|
|
8762
|
+
} else {
|
|
8763
|
+
prefix = [];
|
|
8764
|
+
sourceExpr = $2;
|
|
8765
|
+
}
|
|
8766
|
+
const assignments = properties.map((prop) => {
|
|
8767
|
+
const sourceName = prop.privateField ?? prop.name;
|
|
8768
|
+
return [prop.value, " = ", sourceExpr, ".", sourceName];
|
|
8769
|
+
});
|
|
8770
|
+
const joined = assignments.flatMap((a, idx) => idx ? [", ", a] : [a]);
|
|
8771
|
+
exp.children = [["(", prefix, joined, ")"]];
|
|
8772
|
+
exp.names = [];
|
|
8773
|
+
continue;
|
|
8774
|
+
}
|
|
8775
|
+
}
|
|
8671
8776
|
let wrapped = false;
|
|
8672
8777
|
const insideParens = exp.parent?.type === "ParenthesizedExpression";
|
|
8673
8778
|
let i = 0;
|
|
@@ -8753,7 +8858,7 @@ function processAssignments(statements) {
|
|
|
8753
8858
|
names: []
|
|
8754
8859
|
};
|
|
8755
8860
|
}
|
|
8756
|
-
replaceNode($2, newMemberExp);
|
|
8861
|
+
replaceNode($2, newMemberExp, exp);
|
|
8757
8862
|
$2 = newMemberExp;
|
|
8758
8863
|
}
|
|
8759
8864
|
}
|
|
@@ -10811,113 +10916,128 @@ var $L245 = (0, import_lib2.$L)("unique");
|
|
|
10811
10916
|
var $L246 = (0, import_lib2.$L)("symbol");
|
|
10812
10917
|
var $L247 = (0, import_lib2.$L)("[]");
|
|
10813
10918
|
var $L248 = (0, import_lib2.$L)("civet");
|
|
10814
|
-
var $R0 = (0, import_lib2.$R)(
|
|
10815
|
-
var $R1 = (0, import_lib2.$R)(
|
|
10816
|
-
var $R2 = (0, import_lib2.$R)(
|
|
10817
|
-
var $R3 = (0, import_lib2.$R)(
|
|
10818
|
-
var $R4 = (0, import_lib2.$R)(
|
|
10819
|
-
var $R5 = (0, import_lib2.$R)(
|
|
10820
|
-
var $R6 = (0, import_lib2.$R)(
|
|
10821
|
-
var $R7 = (0, import_lib2.$R)(
|
|
10822
|
-
var $R8 = (0, import_lib2.$R)(
|
|
10823
|
-
var $R9 = (0, import_lib2.$R)(
|
|
10824
|
-
var $R10 = (0, import_lib2.$R)(
|
|
10825
|
-
var $R11 = (0, import_lib2.$R)(
|
|
10826
|
-
var $R12 = (0, import_lib2.$R)(
|
|
10827
|
-
var $R13 = (0, import_lib2.$R)(
|
|
10828
|
-
var $R14 = (0, import_lib2.$R)(
|
|
10829
|
-
var $R15 = (0, import_lib2.$R)(
|
|
10830
|
-
var $R16 = (0, import_lib2.$R)(
|
|
10831
|
-
var $R17 = (0, import_lib2.$R)(
|
|
10832
|
-
var $R18 = (0, import_lib2.$R)(
|
|
10833
|
-
var $R19 = (0, import_lib2.$R)(
|
|
10834
|
-
var $R20 = (0, import_lib2.$R)(
|
|
10835
|
-
var $R21 = (0, import_lib2.$R)(
|
|
10836
|
-
var $R22 = (0, import_lib2.$R)(
|
|
10837
|
-
var $R23 = (0, import_lib2.$R)(
|
|
10838
|
-
var $R24 = (0, import_lib2.$R)(
|
|
10839
|
-
var $R25 = (0, import_lib2.$R)(
|
|
10840
|
-
var $R26 = (0, import_lib2.$R)(
|
|
10841
|
-
var $R27 = (0, import_lib2.$R)(
|
|
10842
|
-
var $R28 = (0, import_lib2.$R)(
|
|
10843
|
-
var $R29 = (0, import_lib2.$R)(
|
|
10844
|
-
var $R30 = (0, import_lib2.$R)(
|
|
10845
|
-
var $R31 = (0, import_lib2.$R)(
|
|
10846
|
-
var $R32 = (0, import_lib2.$R)(
|
|
10847
|
-
var $R33 = (0, import_lib2.$R)(
|
|
10848
|
-
var $R34 = (0, import_lib2.$R)(
|
|
10849
|
-
var $R35 = (0, import_lib2.$R)(
|
|
10850
|
-
var $R36 = (0, import_lib2.$R)(
|
|
10851
|
-
var $R37 = (0, import_lib2.$R)(
|
|
10852
|
-
var $R38 = (0, import_lib2.$R)(
|
|
10853
|
-
var $R39 = (0, import_lib2.$R)(
|
|
10854
|
-
var $R40 = (0, import_lib2.$R)(
|
|
10855
|
-
var $R41 = (0, import_lib2.$R)(
|
|
10856
|
-
var $R42 = (0, import_lib2.$R)(
|
|
10857
|
-
var $R43 = (0, import_lib2.$R)(
|
|
10858
|
-
var $R44 = (0, import_lib2.$R)(
|
|
10859
|
-
var $R45 = (0, import_lib2.$R)(
|
|
10860
|
-
var $R46 = (0, import_lib2.$R)(
|
|
10861
|
-
var $R47 = (0, import_lib2.$R)(
|
|
10862
|
-
var $R48 = (0, import_lib2.$R)(
|
|
10863
|
-
var $R49 = (0, import_lib2.$R)(
|
|
10864
|
-
var $R50 = (0, import_lib2.$R)(
|
|
10865
|
-
var $R51 = (0, import_lib2.$R)(
|
|
10866
|
-
var $R52 = (0, import_lib2.$R)(
|
|
10867
|
-
var $R53 = (0, import_lib2.$R)(
|
|
10868
|
-
var $R54 = (0, import_lib2.$R)(
|
|
10869
|
-
var $R55 = (0, import_lib2.$R)(
|
|
10870
|
-
var $R56 = (0, import_lib2.$R)(
|
|
10871
|
-
var $R57 = (0, import_lib2.$R)(
|
|
10872
|
-
var $R58 = (0, import_lib2.$R)(
|
|
10873
|
-
var $R59 = (0, import_lib2.$R)(
|
|
10874
|
-
var $R60 = (0, import_lib2.$R)(
|
|
10875
|
-
var $R61 = (0, import_lib2.$R)(
|
|
10876
|
-
var $R62 = (0, import_lib2.$R)(
|
|
10877
|
-
var $R63 = (0, import_lib2.$R)(
|
|
10878
|
-
var $R64 = (0, import_lib2.$R)(
|
|
10879
|
-
var $R65 = (0, import_lib2.$R)(
|
|
10880
|
-
var $R66 = (0, import_lib2.$R)(
|
|
10881
|
-
var $R67 = (0, import_lib2.$R)(
|
|
10882
|
-
var $R68 = (0, import_lib2.$R)(
|
|
10883
|
-
var $R69 = (0, import_lib2.$R)(new
|
|
10884
|
-
var $R70 = (0, import_lib2.$R)(
|
|
10885
|
-
var $R71 = (0, import_lib2.$R)(
|
|
10886
|
-
var $R72 = (0, import_lib2.$R)(
|
|
10887
|
-
var $R73 = (0, import_lib2.$R)(
|
|
10888
|
-
var $R74 = (0, import_lib2.$R)(
|
|
10889
|
-
var $R75 = (0, import_lib2.$R)(
|
|
10890
|
-
var $R76 = (0, import_lib2.$R)(
|
|
10891
|
-
var $R77 = (0, import_lib2.$R)(
|
|
10892
|
-
var $R78 = (0, import_lib2.$R)(
|
|
10893
|
-
var $R79 = (0, import_lib2.$R)(
|
|
10894
|
-
var $R80 = (0, import_lib2.$R)(
|
|
10895
|
-
var $R81 = (0, import_lib2.$R)(
|
|
10896
|
-
var $R82 = (0, import_lib2.$R)(
|
|
10897
|
-
var $R83 = (0, import_lib2.$R)(
|
|
10898
|
-
var $R84 = (0, import_lib2.$R)(
|
|
10899
|
-
var $R85 = (0, import_lib2.$R)(
|
|
10900
|
-
var $R86 = (0, import_lib2.$R)(
|
|
10901
|
-
var $R87 = (0, import_lib2.$R)(
|
|
10902
|
-
var $R88 = (0, import_lib2.$R)(
|
|
10903
|
-
var $R89 = (0, import_lib2.$R)(
|
|
10904
|
-
var $R90 = (0, import_lib2.$R)(
|
|
10905
|
-
var $R91 = (0, import_lib2.$R)(
|
|
10906
|
-
var $R92 = (0, import_lib2.$R)(
|
|
10907
|
-
var $R93 = (0, import_lib2.$R)(
|
|
10908
|
-
var $R94 = (0, import_lib2.$R)(
|
|
10909
|
-
var $R95 = (0, import_lib2.$R)(
|
|
10910
|
-
var $R96 = (0, import_lib2.$R)(
|
|
10911
|
-
var $R97 = (0, import_lib2.$R)(
|
|
10912
|
-
var $R98 = (0, import_lib2.$R)(
|
|
10913
|
-
var $R99 = (0, import_lib2.$R)(
|
|
10914
|
-
var $R100 = (0, import_lib2.$R)(
|
|
10915
|
-
var $R101 = (0, import_lib2.$R)(
|
|
10916
|
-
var $R102 = (0, import_lib2.$R)(
|
|
10917
|
-
var $R103 = (0, import_lib2.$R)(
|
|
10918
|
-
var $
|
|
10919
|
-
|
|
10920
|
-
|
|
10919
|
+
var $R0 = (0, import_lib2.$R)(/(?=async|debugger|if|unless|comptime|do|for|loop|until|while|switch|throw|try)/suy);
|
|
10920
|
+
var $R1 = (0, import_lib2.$R)(/&(?=\s)/suy);
|
|
10921
|
+
var $R2 = (0, import_lib2.$R)(/(as|of|by|satisfies|then|when|implements|xor|xnor)(?!\p{ID_Continue}|[\u200C\u200D$])/suy);
|
|
10922
|
+
var $R3 = (0, import_lib2.$R)(/[0-9]/suy);
|
|
10923
|
+
var $R4 = (0, import_lib2.$R)(/(?!\p{ID_Start}|[_$0-9(\[{])/suy);
|
|
10924
|
+
var $R5 = (0, import_lib2.$R)(/[ \t]/suy);
|
|
10925
|
+
var $R6 = (0, import_lib2.$R)(/\p{ID_Continue}|[\u200C\u200D$.#{=]/suy);
|
|
10926
|
+
var $R7 = (0, import_lib2.$R)(/[&=]/suy);
|
|
10927
|
+
var $R8 = (0, import_lib2.$R)(/[@#]/suy);
|
|
10928
|
+
var $R9 = (0, import_lib2.$R)(/(?=['"`])/suy);
|
|
10929
|
+
var $R10 = (0, import_lib2.$R)(/(?=[\/?])/suy);
|
|
10930
|
+
var $R11 = (0, import_lib2.$R)(/(?=[\/\[{?.!@#'’:])/suy);
|
|
10931
|
+
var $R12 = (0, import_lib2.$R)(/%%?/suy);
|
|
10932
|
+
var $R13 = (0, import_lib2.$R)(/[.\s]/suy);
|
|
10933
|
+
var $R14 = (0, import_lib2.$R)(/[)\]}]/suy);
|
|
10934
|
+
var $R15 = (0, import_lib2.$R)(/[+-]/suy);
|
|
10935
|
+
var $R16 = (0, import_lib2.$R)(/\+\+|--|⧺|—|[\+\-&]\S/suy);
|
|
10936
|
+
var $R17 = (0, import_lib2.$R)(/(?=[0-9.'"tfyno])/suy);
|
|
10937
|
+
var $R18 = (0, import_lib2.$R)(/(?=true|false|yes|no|on|off)/suy);
|
|
10938
|
+
var $R19 = (0, import_lib2.$R)(/(?=\[|\s*[.•\/])/suy);
|
|
10939
|
+
var $R20 = (0, import_lib2.$R)(/([<>])(=?)|([≤≥])/suy);
|
|
10940
|
+
var $R21 = (0, import_lib2.$R)(/[ \t]*/suy);
|
|
10941
|
+
var $R22 = (0, import_lib2.$R)(/[ \t]+/suy);
|
|
10942
|
+
var $R23 = (0, import_lib2.$R)(/[!+-]?/suy);
|
|
10943
|
+
var $R24 = (0, import_lib2.$R)(/(?:\p{ID_Continue}|[\u200C\u200D$-])*/suy);
|
|
10944
|
+
var $R25 = (0, import_lib2.$R)(/[=>]/suy);
|
|
10945
|
+
var $R26 = (0, import_lib2.$R)(/(?=\p{ID_Start}|[_$^≪≫⋙≤≥∈∋∉∌≣≡≢≠=⩶⩵‖⁇&|*\/!?%÷<>⧺+-])/suy);
|
|
10946
|
+
var $R27 = (0, import_lib2.$R)(/!\^\^?/suy);
|
|
10947
|
+
var $R28 = (0, import_lib2.$R)(/(?!\+\+|--)[!~+-](?!\s)/suy);
|
|
10948
|
+
var $R29 = (0, import_lib2.$R)(/[:.]/suy);
|
|
10949
|
+
var $R30 = (0, import_lib2.$R)(/(?=for|if|loop|unless|until|while)/suy);
|
|
10950
|
+
var $R31 = (0, import_lib2.$R)(/(?:loop|while|until|for|do)(?!\p{ID_Continue})/suy);
|
|
10951
|
+
var $R32 = (0, import_lib2.$R)(/(?=loop|comptime|do|for|until|while)/suy);
|
|
10952
|
+
var $R33 = (0, import_lib2.$R)(/\s/suy);
|
|
10953
|
+
var $R34 = (0, import_lib2.$R)(/[^;"'\s=>]+/suy);
|
|
10954
|
+
var $R35 = (0, import_lib2.$R)(/(?=[0-9.])/suy);
|
|
10955
|
+
var $R36 = (0, import_lib2.$R)(/(?:0|[1-9](?:_[0-9]|[0-9])*)n/suy);
|
|
10956
|
+
var $R37 = (0, import_lib2.$R)(/(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\.(?:\p{ID_Start}|[_$]))/suy);
|
|
10957
|
+
var $R38 = (0, import_lib2.$R)(/(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\.(?:[0-9](?:_[0-9]|[0-9])*))?/suy);
|
|
10958
|
+
var $R39 = (0, import_lib2.$R)(/(?:\.[0-9](?:_[0-9]|[0-9])*)/suy);
|
|
10959
|
+
var $R40 = (0, import_lib2.$R)(/(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)/suy);
|
|
10960
|
+
var $R41 = (0, import_lib2.$R)(/0[bB][01](?:[01]|_[01])*n?/suy);
|
|
10961
|
+
var $R42 = (0, import_lib2.$R)(/0[oO][0-7](?:[0-7]|_[0-7])*n?/suy);
|
|
10962
|
+
var $R43 = (0, import_lib2.$R)(/0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?/suy);
|
|
10963
|
+
var $R44 = (0, import_lib2.$R)(/(?=[0-9])/suy);
|
|
10964
|
+
var $R45 = (0, import_lib2.$R)(/(?:0|[1-9](?:_[0-9]|[0-9])*)/suy);
|
|
10965
|
+
var $R46 = (0, import_lib2.$R)(/(?:\\.|[^"])*/suy);
|
|
10966
|
+
var $R47 = (0, import_lib2.$R)(/(?:\\.|[^'])*/suy);
|
|
10967
|
+
var $R48 = (0, import_lib2.$R)(/(?:\\.|[^"\n])*/suy);
|
|
10968
|
+
var $R49 = (0, import_lib2.$R)(/(?:\\.|[^'\n])*/suy);
|
|
10969
|
+
var $R50 = (0, import_lib2.$R)(/(?:"(?!"")|#(?!\{)|\\.|[^#"])+/suy);
|
|
10970
|
+
var $R51 = (0, import_lib2.$R)(/(?:"(?!"")|\\.|[^"])+/suy);
|
|
10971
|
+
var $R52 = (0, import_lib2.$R)(/(?:'(?!'')|\\.|[^'])*/suy);
|
|
10972
|
+
var $R53 = (0, import_lib2.$R)(/(?:\\.|#(?!\{)|[^"#])+/suy);
|
|
10973
|
+
var $R54 = (0, import_lib2.$R)(/(?:\\.|[^\]])*/suy);
|
|
10974
|
+
var $R55 = (0, import_lib2.$R)(/\\./suy);
|
|
10975
|
+
var $R56 = (0, import_lib2.$R)(/[\s]+/suy);
|
|
10976
|
+
var $R57 = (0, import_lib2.$R)(/\/(?!\/\/)/suy);
|
|
10977
|
+
var $R58 = (0, import_lib2.$R)(/[^[\/\s#$\\]+|[#$]/suy);
|
|
10978
|
+
var $R59 = (0, import_lib2.$R)(/[*\/\r\n]/suy);
|
|
10979
|
+
var $R60 = (0, import_lib2.$R)(/(?:\\.|[^[\/\r\n])+/suy);
|
|
10980
|
+
var $R61 = (0, import_lib2.$R)(/(?:\p{ID_Continue}|[\u200C\u200D$])*/suy);
|
|
10981
|
+
var $R62 = (0, import_lib2.$R)(/(?=[`'"])/suy);
|
|
10982
|
+
var $R63 = (0, import_lib2.$R)(/(?:\$(?!\{)|\\.|[^$`])+/suy);
|
|
10983
|
+
var $R64 = (0, import_lib2.$R)(/(?:\$(?!\{)|`(?!``)|\\.|[^$`])+/suy);
|
|
10984
|
+
var $R65 = (0, import_lib2.$R)(/(?:off|yes|on|no)/suy);
|
|
10985
|
+
var $R66 = (0, import_lib2.$R)(/isnt/suy);
|
|
10986
|
+
var $R67 = (0, import_lib2.$R)(/by/suy);
|
|
10987
|
+
var $R68 = (0, import_lib2.$R)(/of/suy);
|
|
10988
|
+
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);
|
|
10989
|
+
var $R70 = (0, import_lib2.$R)(/(?=\/|#)/suy);
|
|
10990
|
+
var $R71 = (0, import_lib2.$R)(/\/\/(?!\/(?!\/))[^\r\n]*/suy);
|
|
10991
|
+
var $R72 = (0, import_lib2.$R)(/./suy);
|
|
10992
|
+
var $R73 = (0, import_lib2.$R)(/#(?!##(?!#))([^\r\n]*)/suy);
|
|
10993
|
+
var $R74 = (0, import_lib2.$R)(/[^]*?###/suy);
|
|
10994
|
+
var $R75 = (0, import_lib2.$R)(/###(?!#)/suy);
|
|
10995
|
+
var $R76 = (0, import_lib2.$R)(/\/\*(?:(?!\*\/)[^\r\n])*\*\//suy);
|
|
10996
|
+
var $R77 = (0, import_lib2.$R)(/(?=[ \t\/\\#])/suy);
|
|
10997
|
+
var $R78 = (0, import_lib2.$R)(/(?=\s|\/|#)/suy);
|
|
10998
|
+
var $R79 = (0, import_lib2.$R)(/[=:]/suy);
|
|
10999
|
+
var $R80 = (0, import_lib2.$R)(/['’]s/suy);
|
|
11000
|
+
var $R81 = (0, import_lib2.$R)(/(?=[<])/suy);
|
|
11001
|
+
var $R82 = (0, import_lib2.$R)(/(?:\p{ID_Start}|[_$])(?:\p{ID_Continue}|[\u200C\u200D$-])*/suy);
|
|
11002
|
+
var $R83 = (0, import_lib2.$R)(/[!+-]/suy);
|
|
11003
|
+
var $R84 = (0, import_lib2.$R)(/[\s>]|\/>/suy);
|
|
11004
|
+
var $R85 = (0, import_lib2.$R)(/(?:[\w\-:]+|\([^()]*\)|\[[^\[\]]*\])+/suy);
|
|
11005
|
+
var $R86 = (0, import_lib2.$R)(/"[^"]*"|'[^']*'/suy);
|
|
11006
|
+
var $R87 = (0, import_lib2.$R)(/[<>]/suy);
|
|
11007
|
+
var $R88 = (0, import_lib2.$R)(/[!~+-](?!\s|[!~+-]*&)/suy);
|
|
11008
|
+
var $R89 = (0, import_lib2.$R)(/(?:-[^-]|[^-]*)*/suy);
|
|
11009
|
+
var $R90 = (0, import_lib2.$R)(/[^{}<>\r\n]+/suy);
|
|
11010
|
+
var $R91 = (0, import_lib2.$R)(/[+-]?/suy);
|
|
11011
|
+
var $R92 = (0, import_lib2.$R)(/(?=if|unless)/suy);
|
|
11012
|
+
var $R93 = (0, import_lib2.$R)(/[|&<!=\-⇒→]/suy);
|
|
11013
|
+
var $R94 = (0, import_lib2.$R)(/(extends|not|is)(?!\p{ID_Continue}|[\u200C\u200D$])/suy);
|
|
11014
|
+
var $R95 = (0, import_lib2.$R)(/const|in|out/suy);
|
|
11015
|
+
var $R96 = (0, import_lib2.$R)(/#![^\r\n]*/suy);
|
|
11016
|
+
var $R97 = (0, import_lib2.$R)(/[\t ]*/suy);
|
|
11017
|
+
var $R98 = (0, import_lib2.$R)(/[\s]*/suy);
|
|
11018
|
+
var $R99 = (0, import_lib2.$R)(/\s+([+-]?)([a-zA-Z0-9-]+)(\s*=\s*([\p{ID_Continue}.,+-]*))?/suy);
|
|
11019
|
+
var $R100 = (0, import_lib2.$R)(/\/\/\/[^\r\n]*/suy);
|
|
11020
|
+
var $R101 = (0, import_lib2.$R)(/(?=[ \t\r\n\/#]|$)/suy);
|
|
11021
|
+
var $R102 = (0, import_lib2.$R)(/\r\n|\n|\r|$/suy);
|
|
11022
|
+
var $R103 = (0, import_lib2.$R)(/[^]*/suy);
|
|
11023
|
+
var $RD0 = (($$ctx, $$state) => {
|
|
11024
|
+
const $$source = `(?=\\p{ID_Start}|[_$\\\\]|${nonAsciiIdentifierPattern})`;
|
|
11025
|
+
$RD0 = (0, import_lib2.$R)(new RegExp($$source, "suy"));
|
|
11026
|
+
$RD0.source = $$source;
|
|
11027
|
+
return $RD0($$ctx, $$state);
|
|
11028
|
+
});
|
|
11029
|
+
var $RD1 = (($$ctx, $$state) => {
|
|
11030
|
+
const $$source = `(?:\\p{ID_Start}|[_$]|${unicodeEscapePattern}|${nonAsciiIdentifierPattern})(?:\\p{ID_Continue}|[\\u200C\\u200D$]|${unicodeEscapePattern}|${nonAsciiIdentifierPattern})*`;
|
|
11031
|
+
$RD1 = (0, import_lib2.$R)(new RegExp($$source, "suy"));
|
|
11032
|
+
$RD1.source = $$source;
|
|
11033
|
+
return $RD1($$ctx, $$state);
|
|
11034
|
+
});
|
|
11035
|
+
var $RD2 = (($$ctx, $$state) => {
|
|
11036
|
+
const $$source = `(?!\\p{ID_Continue}|${nonAsciiIdentifierPattern})`;
|
|
11037
|
+
$RD2 = (0, import_lib2.$R)(new RegExp($$source, "suy"));
|
|
11038
|
+
$RD2.source = $$source;
|
|
11039
|
+
return $RD2($$ctx, $$state);
|
|
11040
|
+
});
|
|
10921
11041
|
var Program$parser = (0, import_lib2.$S)(Reset, Init, (0, import_lib2.$E)(EOS), TopLevelStatements, __);
|
|
10922
11042
|
function Program($$ctx, $$state) {
|
|
10923
11043
|
const $$entered = $$ctx.enter?.("Program", $$state);
|
|
@@ -16428,7 +16548,10 @@ function ArrayBindingPattern($$ctx, $$state) {
|
|
|
16428
16548
|
...c,
|
|
16429
16549
|
// names, blockPrefix, length
|
|
16430
16550
|
type: "ArrayBindingPattern",
|
|
16431
|
-
elements
|
|
16551
|
+
// `c.elements` may differ from `c.children` when adjustBindingElements
|
|
16552
|
+
// omits an anonymous rest from the emitted destructure but still needs
|
|
16553
|
+
// pattern matching / type generation to see it.
|
|
16554
|
+
elements: c.elements ?? c.children,
|
|
16432
16555
|
children: [ws1, open, c.children, ws2, close]
|
|
16433
16556
|
});
|
|
16434
16557
|
})($$value[0], $$value[1], $$value[2], $$value[3], $$value[4]);
|
|
@@ -16447,7 +16570,7 @@ function ArrayBindingPatternContent$1($$ctx, $$state) {
|
|
|
16447
16570
|
}
|
|
16448
16571
|
const $$m = (function(elements) {
|
|
16449
16572
|
if (!elements) {
|
|
16450
|
-
return { children: [], names: [], length: 0 };
|
|
16573
|
+
return { children: [], elements: void 0, names: [], length: 0 };
|
|
16451
16574
|
}
|
|
16452
16575
|
return adjustBindingElements(elements);
|
|
16453
16576
|
})($$r.value);
|
|
@@ -18476,7 +18599,7 @@ function SymbolElement($$ctx, $$state) {
|
|
|
18476
18599
|
$$ctx.exit?.("SymbolElement", $$state, $$r, $$eventData);
|
|
18477
18600
|
return $$r;
|
|
18478
18601
|
}
|
|
18479
|
-
var Identifier$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
18602
|
+
var Identifier$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($RD0, () => `Identifier /${$RD0.source}/`), (0, import_lib2.$N)(ReservedWord), IdentifierName);
|
|
18480
18603
|
function Identifier($$ctx, $$state) {
|
|
18481
18604
|
const $$entered = $$ctx.enter?.("Identifier", $$state);
|
|
18482
18605
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -18493,7 +18616,7 @@ function Identifier($$ctx, $$state) {
|
|
|
18493
18616
|
$$ctx.exit?.("Identifier", $$state, $$r, $$eventData);
|
|
18494
18617
|
return $$r;
|
|
18495
18618
|
}
|
|
18496
|
-
var IdentifierName$parser = (0, import_lib2.$EXPECT)($
|
|
18619
|
+
var IdentifierName$parser = (0, import_lib2.$EXPECT)($RD1, () => `IdentifierName /${$RD1.source}/`);
|
|
18497
18620
|
function IdentifierName($$ctx, $$state) {
|
|
18498
18621
|
const $$entered = $$ctx.enter?.("IdentifierName", $$state);
|
|
18499
18622
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -18541,7 +18664,7 @@ function UpcomingAssignment($$ctx, $$state) {
|
|
|
18541
18664
|
$$ctx.exit?.("UpcomingAssignment", $$state, $$final, $$eventData);
|
|
18542
18665
|
return $$final;
|
|
18543
18666
|
}
|
|
18544
|
-
var ArrayLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
18667
|
+
var ArrayLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R19, "ArrayLiteral /(?=\\[|\\s*[.\u2022\\/])/"), _ArrayLiteral);
|
|
18545
18668
|
function ArrayLiteral($$ctx, $$state) {
|
|
18546
18669
|
const $$entered = $$ctx.enter?.("ArrayLiteral", $$state);
|
|
18547
18670
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -18723,7 +18846,7 @@ function OptionalRangeEnd($$ctx, $$state) {
|
|
|
18723
18846
|
$$ctx.exit?.("OptionalRangeEnd", $$state, $$final, $$eventData);
|
|
18724
18847
|
return $$final;
|
|
18725
18848
|
}
|
|
18726
|
-
var RangeEnd$parser = (0, import_lib2.$EXPECT)($
|
|
18849
|
+
var RangeEnd$parser = (0, import_lib2.$EXPECT)($R20, "RangeEnd /([<>])(=?)|([\u2264\u2265])/");
|
|
18727
18850
|
function RangeEnd($$ctx, $$state) {
|
|
18728
18851
|
const $$entered = $$ctx.enter?.("RangeEnd", $$state);
|
|
18729
18852
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -19258,8 +19381,8 @@ function BulletIndent($$ctx, $$state) {
|
|
|
19258
19381
|
$$ctx.exit?.("BulletIndent", $$state, $$r, $$eventData);
|
|
19259
19382
|
return $$r;
|
|
19260
19383
|
}
|
|
19261
|
-
var Bullet$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L46, 'Bullet "\u2022"'), (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19262
|
-
var Bullet$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L7, 'Bullet "."'), (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19384
|
+
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]*/")));
|
|
19385
|
+
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]+/")));
|
|
19263
19386
|
function Bullet$0($$ctx, $$state) {
|
|
19264
19387
|
return Bullet$0$parser($$ctx, $$state);
|
|
19265
19388
|
}
|
|
@@ -19698,7 +19821,7 @@ function ObjectPropertyDelimiter($$ctx, $$state) {
|
|
|
19698
19821
|
}
|
|
19699
19822
|
var PropertyDefinition$0$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), InsertDotDotDot, IterationExpression);
|
|
19700
19823
|
var PropertyDefinition$1$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), NamedProperty);
|
|
19701
|
-
var PropertyDefinition$2$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
19824
|
+
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));
|
|
19702
19825
|
var PropertyDefinition$3$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), MethodDefinition);
|
|
19703
19826
|
var PropertyDefinition$4$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), DotDotDot, Expression);
|
|
19704
19827
|
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));
|
|
@@ -20000,7 +20123,7 @@ function SnugNamedProperty($$ctx, $$state) {
|
|
|
20000
20123
|
$$ctx.exit?.("SnugNamedProperty", $$state, $$r, $$eventData);
|
|
20001
20124
|
return $$r;
|
|
20002
20125
|
}
|
|
20003
|
-
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)($
|
|
20126
|
+
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$-])*/")));
|
|
20004
20127
|
var PropertyName$4$parser = IdentifierName;
|
|
20005
20128
|
function PropertyName$0($$ctx, $$state) {
|
|
20006
20129
|
return NumericLiteral($$ctx, $$state);
|
|
@@ -20591,7 +20714,7 @@ var AssignmentOpSymbol$20$parser = (0, import_lib2.$EXPECT)($L68, 'AssignmentOpS
|
|
|
20591
20714
|
var AssignmentOpSymbol$21$parser = (0, import_lib2.$EXPECT)($L69, 'AssignmentOpSymbol "??="');
|
|
20592
20715
|
var AssignmentOpSymbol$22$parser = (0, import_lib2.$EXPECT)($L70, 'AssignmentOpSymbol "\u2047="');
|
|
20593
20716
|
var AssignmentOpSymbol$23$parser = (0, import_lib2.$EXPECT)($L71, 'AssignmentOpSymbol "?="');
|
|
20594
|
-
var AssignmentOpSymbol$24$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L3, 'AssignmentOpSymbol "="'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
20717
|
+
var AssignmentOpSymbol$24$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L3, 'AssignmentOpSymbol "="'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($R25, "AssignmentOpSymbol /[=>]/")));
|
|
20595
20718
|
var AssignmentOpSymbol$25$parser = (0, import_lib2.$S)(CoffeeWordAssignmentOp);
|
|
20596
20719
|
function AssignmentOpSymbol$0($$ctx, $$state) {
|
|
20597
20720
|
return AssignmentOpSymbol$0$parser($$ctx, $$state);
|
|
@@ -20873,7 +20996,7 @@ function IdentifierBinaryOp($$ctx, $$state) {
|
|
|
20873
20996
|
$$ctx.exit?.("IdentifierBinaryOp", $$state, $$final, $$eventData);
|
|
20874
20997
|
return $$final;
|
|
20875
20998
|
}
|
|
20876
|
-
var BinaryOp$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
20999
|
+
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);
|
|
20877
21000
|
function BinaryOp($$ctx, $$state) {
|
|
20878
21001
|
const $$entered = $$ctx.enter?.("BinaryOp", $$state);
|
|
20879
21002
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20956,7 +21079,7 @@ var BinaryOpSymbol$0$parser = (0, import_lib2.$EXPECT)($L75, 'BinaryOpSymbol "**
|
|
|
20956
21079
|
var BinaryOpSymbol$1$parser = (0, import_lib2.$EXPECT)($L74, 'BinaryOpSymbol "*"');
|
|
20957
21080
|
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 "//"')));
|
|
20958
21081
|
var BinaryOpSymbol$3$parser = (0, import_lib2.$EXPECT)($L52, 'BinaryOpSymbol "%%"');
|
|
20959
|
-
var BinaryOpSymbol$4$parser = (0, import_lib2.$EXPECT)($L76, 'BinaryOpSymbol "/"');
|
|
21082
|
+
var BinaryOpSymbol$4$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L76, 'BinaryOpSymbol "/"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($L76, 'BinaryOpSymbol "/"')));
|
|
20960
21083
|
var BinaryOpSymbol$5$parser = (0, import_lib2.$EXPECT)($L77, 'BinaryOpSymbol "%"');
|
|
20961
21084
|
var BinaryOpSymbol$6$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L9, 'BinaryOpSymbol "++"'), (0, import_lib2.$EXPECT)($L11, 'BinaryOpSymbol "\u29FA"'));
|
|
20962
21085
|
var BinaryOpSymbol$7$parser = (0, import_lib2.$EXPECT)($L78, 'BinaryOpSymbol "+"');
|
|
@@ -20988,7 +21111,7 @@ var BinaryOpSymbol$32$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L10
|
|
|
20988
21111
|
var BinaryOpSymbol$33$parser = (0, import_lib2.$EXPECT)($L104, 'BinaryOpSymbol "||"');
|
|
20989
21112
|
var BinaryOpSymbol$34$parser = (0, import_lib2.$EXPECT)($L105, 'BinaryOpSymbol "\u2016"');
|
|
20990
21113
|
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));
|
|
20991
|
-
var BinaryOpSymbol$36$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($
|
|
21114
|
+
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));
|
|
20992
21115
|
var BinaryOpSymbol$37$parser = (0, import_lib2.$EXPECT)($L109, 'BinaryOpSymbol "??"');
|
|
20993
21116
|
var BinaryOpSymbol$38$parser = (0, import_lib2.$EXPECT)($L110, 'BinaryOpSymbol "\u2047"');
|
|
20994
21117
|
var BinaryOpSymbol$39$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L6, 'BinaryOpSymbol "?"'), CoffeeBinaryExistentialEnabled);
|
|
@@ -21041,7 +21164,15 @@ function BinaryOpSymbol$3($$ctx, $$state) {
|
|
|
21041
21164
|
return $$r;
|
|
21042
21165
|
}
|
|
21043
21166
|
function BinaryOpSymbol$4($$ctx, $$state) {
|
|
21044
|
-
|
|
21167
|
+
const $$r = BinaryOpSymbol$4$parser($$ctx, $$state);
|
|
21168
|
+
if (!$$r) {
|
|
21169
|
+
return void 0;
|
|
21170
|
+
}
|
|
21171
|
+
const $$m = /* @__PURE__ */ (function($1) {
|
|
21172
|
+
return $1;
|
|
21173
|
+
})($$r.value[0]);
|
|
21174
|
+
$$r.value = $$m;
|
|
21175
|
+
return $$r;
|
|
21045
21176
|
}
|
|
21046
21177
|
function BinaryOpSymbol$5($$ctx, $$state) {
|
|
21047
21178
|
return BinaryOpSymbol$5$parser($$ctx, $$state);
|
|
@@ -21671,7 +21802,7 @@ function Xor($$ctx, $$state) {
|
|
|
21671
21802
|
$$ctx.exit?.("Xor", $$state, $$final, $$eventData);
|
|
21672
21803
|
return $$final;
|
|
21673
21804
|
}
|
|
21674
|
-
var Xnor$0$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
21805
|
+
var Xnor$0$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R27, "Xnor /!\\^\\^?/"));
|
|
21675
21806
|
var Xnor$1$parser = (0, import_lib2.$EXPECT)($L108, 'Xnor "xnor"');
|
|
21676
21807
|
function Xnor$0($$ctx, $$state) {
|
|
21677
21808
|
return Xnor$0$parser($$ctx, $$state);
|
|
@@ -21687,9 +21818,9 @@ function Xnor($$ctx, $$state) {
|
|
|
21687
21818
|
$$ctx.exit?.("Xnor", $$state, $$final, $$eventData);
|
|
21688
21819
|
return $$final;
|
|
21689
21820
|
}
|
|
21690
|
-
var UnaryOp$0$parser = (0, import_lib2.$EXPECT)($
|
|
21691
|
-
var UnaryOp$2$parser = (0, import_lib2.$S)((0, import_lib2.$C)(Delete, Void, Typeof), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
21692
|
-
var UnaryOp$3$parser = (0, import_lib2.$S)(Not, (0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
21821
|
+
var UnaryOp$0$parser = (0, import_lib2.$EXPECT)($R28, "UnaryOp /(?!\\+\\+|--)[!~+-](?!\\s)/");
|
|
21822
|
+
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)(_));
|
|
21823
|
+
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)(_));
|
|
21693
21824
|
function UnaryOp$0($$ctx, $$state) {
|
|
21694
21825
|
const $$r = UnaryOp$0$parser($$ctx, $$state);
|
|
21695
21826
|
if (!$$r) {
|
|
@@ -21982,7 +22113,7 @@ function PostfixedCommaExpression($$ctx, $$state) {
|
|
|
21982
22113
|
$$ctx.exit?.("PostfixedCommaExpression", $$state, $$final, $$eventData);
|
|
21983
22114
|
return $$final;
|
|
21984
22115
|
}
|
|
21985
|
-
var PostfixStatement$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
22116
|
+
var PostfixStatement$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R30, "PostfixStatement /(?=for|if|loop|unless|until|while)/"), _PostfixStatement);
|
|
21986
22117
|
function PostfixStatement($$ctx, $$state) {
|
|
21987
22118
|
const $$entered = $$ctx.enter?.("PostfixStatement", $$state);
|
|
21988
22119
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -22273,7 +22404,7 @@ function Label($$ctx, $$state) {
|
|
|
22273
22404
|
return $$final;
|
|
22274
22405
|
}
|
|
22275
22406
|
var LabelIdentifier$0$parser = (0, import_lib2.$S)(Colon, IdentifierName);
|
|
22276
|
-
var LabelIdentifier$1$parser = (0, import_lib2.$EXPECT)($
|
|
22407
|
+
var LabelIdentifier$1$parser = (0, import_lib2.$EXPECT)($R31, "LabelIdentifier /(?:loop|while|until|for|do)(?!\\p{ID_Continue})/");
|
|
22277
22408
|
var LabelIdentifier$2$parser = Identifier;
|
|
22278
22409
|
function LabelIdentifier$0($$ctx, $$state) {
|
|
22279
22410
|
const $$r = LabelIdentifier$0$parser($$ctx, $$state);
|
|
@@ -22451,7 +22582,7 @@ function IfClause($$ctx, $$state) {
|
|
|
22451
22582
|
$$ctx.exit?.("IfClause", $$state, $$r, $$eventData);
|
|
22452
22583
|
return $$r;
|
|
22453
22584
|
}
|
|
22454
|
-
var IterationStatement$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
22585
|
+
var IterationStatement$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R32, "IterationStatement /(?=loop|comptime|do|for|until|while)/"), _IterationStatement);
|
|
22455
22586
|
function IterationStatement($$ctx, $$state) {
|
|
22456
22587
|
const $$entered = $$ctx.enter?.("IterationStatement", $$state);
|
|
22457
22588
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -25265,7 +25396,7 @@ function MaybeParenNestedExpression($$ctx, $$state) {
|
|
|
25265
25396
|
var ImportDeclaration$0$parser = (0, import_lib2.$S)(Import, _, Identifier, (0, import_lib2.$E)(_), Equals, __, (0, import_lib2.$EXPECT)($L132, 'ImportDeclaration "require"'), NonIdContinue, Arguments);
|
|
25266
25397
|
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);
|
|
25267
25398
|
var ImportDeclaration$2$parser = (0, import_lib2.$S)(Import, SameLineOrIndentedFurther, (0, import_lib2.$E)((0, import_lib2.$S)(TypeKeyword, SameLineOrIndentedFurther)), ImportClause, __, FromClause);
|
|
25268
|
-
var ImportDeclaration$3$parser = (0, import_lib2.$S)(Import, (0, import_lib2.$Y)((0, import_lib2.$EXPECT)($
|
|
25399
|
+
var ImportDeclaration$3$parser = (0, import_lib2.$S)(Import, (0, import_lib2.$Y)((0, import_lib2.$EXPECT)($R33, "ImportDeclaration /\\s/")), SameLineOrIndentedFurther, ModuleSpecifier);
|
|
25269
25400
|
var ImportDeclaration$4$parser = (0, import_lib2.$S)(Import, (0, import_lib2.$E)(_), (0, import_lib2.$E)(UnclosedSingleLineStringLiteral), (0, import_lib2.$Y)(EOS));
|
|
25270
25401
|
var ImportDeclaration$5$parser = (0, import_lib2.$S)(ImpliedImport, (0, import_lib2.$E)((0, import_lib2.$S)(TypeKeyword, SameLineOrIndentedFurther)), ImportClause, SameLineOrIndentedFurther, FromClause);
|
|
25271
25402
|
var ImportDeclaration$6$parser = (0, import_lib2.$S)(FromClause, SameLineOrIndentedFurther, Import, SameLineOrIndentedFurther, Operator, (0, import_lib2.$E)(OperatorBehavior), SameLineOrIndentedFurther, OperatorNamedImports);
|
|
@@ -25965,7 +26096,7 @@ function UnprocessedModuleSpecifier($$ctx, $$state) {
|
|
|
25965
26096
|
$$ctx.exit?.("UnprocessedModuleSpecifier", $$state, $$final, $$eventData);
|
|
25966
26097
|
return $$final;
|
|
25967
26098
|
}
|
|
25968
|
-
var UnquotedSpecifier$parser = (0, import_lib2.$EXPECT)($
|
|
26099
|
+
var UnquotedSpecifier$parser = (0, import_lib2.$EXPECT)($R34, `UnquotedSpecifier /[^;"'\\s=>]+/`);
|
|
25969
26100
|
function UnquotedSpecifier($$ctx, $$state) {
|
|
25970
26101
|
const $$entered = $$ctx.enter?.("UnquotedSpecifier", $$state);
|
|
25971
26102
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26556,7 +26687,7 @@ function VariableDeclarationList($$ctx, $$state) {
|
|
|
26556
26687
|
$$ctx.exit?.("VariableDeclarationList", $$state, $$r, $$eventData);
|
|
26557
26688
|
return $$r;
|
|
26558
26689
|
}
|
|
26559
|
-
var NumericLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
26690
|
+
var NumericLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R35, "NumericLiteral /(?=[0-9.])/"), NumericLiteralKind);
|
|
26560
26691
|
function NumericLiteral($$ctx, $$state) {
|
|
26561
26692
|
const $$entered = $$ctx.enter?.("NumericLiteral", $$state);
|
|
26562
26693
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26596,7 +26727,7 @@ function NumericLiteralKind($$ctx, $$state) {
|
|
|
26596
26727
|
$$ctx.exit?.("NumericLiteralKind", $$state, $$final, $$eventData);
|
|
26597
26728
|
return $$final;
|
|
26598
26729
|
}
|
|
26599
|
-
var DecimalBigIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26730
|
+
var DecimalBigIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R36, "DecimalBigIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)n/"));
|
|
26600
26731
|
function DecimalBigIntegerLiteral($$ctx, $$state) {
|
|
26601
26732
|
const $$entered = $$ctx.enter?.("DecimalBigIntegerLiteral", $$state);
|
|
26602
26733
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26605,9 +26736,9 @@ function DecimalBigIntegerLiteral($$ctx, $$state) {
|
|
|
26605
26736
|
$$ctx.exit?.("DecimalBigIntegerLiteral", $$state, $$final, $$eventData);
|
|
26606
26737
|
return $$final;
|
|
26607
26738
|
}
|
|
26608
|
-
var DecimalLiteral$0$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
26609
|
-
var DecimalLiteral$1$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
26610
|
-
var DecimalLiteral$2$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
26739
|
+
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)));
|
|
26740
|
+
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)));
|
|
26741
|
+
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)));
|
|
26611
26742
|
function DecimalLiteral$0($$ctx, $$state) {
|
|
26612
26743
|
const $$r = DecimalLiteral$0$parser($$ctx, $$state);
|
|
26613
26744
|
if (!$$r) {
|
|
@@ -26633,7 +26764,7 @@ function DecimalLiteral($$ctx, $$state) {
|
|
|
26633
26764
|
$$ctx.exit?.("DecimalLiteral", $$state, $$final, $$eventData);
|
|
26634
26765
|
return $$final;
|
|
26635
26766
|
}
|
|
26636
|
-
var ExponentPart$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26767
|
+
var ExponentPart$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R40, "ExponentPart /(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)/"));
|
|
26637
26768
|
function ExponentPart($$ctx, $$state) {
|
|
26638
26769
|
const $$entered = $$ctx.enter?.("ExponentPart", $$state);
|
|
26639
26770
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26642,7 +26773,7 @@ function ExponentPart($$ctx, $$state) {
|
|
|
26642
26773
|
$$ctx.exit?.("ExponentPart", $$state, $$final, $$eventData);
|
|
26643
26774
|
return $$final;
|
|
26644
26775
|
}
|
|
26645
|
-
var BinaryIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26776
|
+
var BinaryIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R41, "BinaryIntegerLiteral /0[bB][01](?:[01]|_[01])*n?/"));
|
|
26646
26777
|
function BinaryIntegerLiteral($$ctx, $$state) {
|
|
26647
26778
|
const $$entered = $$ctx.enter?.("BinaryIntegerLiteral", $$state);
|
|
26648
26779
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26651,7 +26782,7 @@ function BinaryIntegerLiteral($$ctx, $$state) {
|
|
|
26651
26782
|
$$ctx.exit?.("BinaryIntegerLiteral", $$state, $$final, $$eventData);
|
|
26652
26783
|
return $$final;
|
|
26653
26784
|
}
|
|
26654
|
-
var OctalIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26785
|
+
var OctalIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R42, "OctalIntegerLiteral /0[oO][0-7](?:[0-7]|_[0-7])*n?/"));
|
|
26655
26786
|
function OctalIntegerLiteral($$ctx, $$state) {
|
|
26656
26787
|
const $$entered = $$ctx.enter?.("OctalIntegerLiteral", $$state);
|
|
26657
26788
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26660,7 +26791,7 @@ function OctalIntegerLiteral($$ctx, $$state) {
|
|
|
26660
26791
|
$$ctx.exit?.("OctalIntegerLiteral", $$state, $$final, $$eventData);
|
|
26661
26792
|
return $$final;
|
|
26662
26793
|
}
|
|
26663
|
-
var HexIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26794
|
+
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?/"));
|
|
26664
26795
|
function HexIntegerLiteral($$ctx, $$state) {
|
|
26665
26796
|
const $$entered = $$ctx.enter?.("HexIntegerLiteral", $$state);
|
|
26666
26797
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26669,7 +26800,7 @@ function HexIntegerLiteral($$ctx, $$state) {
|
|
|
26669
26800
|
$$ctx.exit?.("HexIntegerLiteral", $$state, $$final, $$eventData);
|
|
26670
26801
|
return $$final;
|
|
26671
26802
|
}
|
|
26672
|
-
var IntegerLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
26803
|
+
var IntegerLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R44, "IntegerLiteral /(?=[0-9])/"), IntegerLiteralKind);
|
|
26673
26804
|
function IntegerLiteral($$ctx, $$state) {
|
|
26674
26805
|
const $$entered = $$ctx.enter?.("IntegerLiteral", $$state);
|
|
26675
26806
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26709,7 +26840,7 @@ function IntegerLiteralKind($$ctx, $$state) {
|
|
|
26709
26840
|
$$ctx.exit?.("IntegerLiteralKind", $$state, $$final, $$eventData);
|
|
26710
26841
|
return $$final;
|
|
26711
26842
|
}
|
|
26712
|
-
var DecimalIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26843
|
+
var DecimalIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R45, "DecimalIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)/"));
|
|
26713
26844
|
function DecimalIntegerLiteral($$ctx, $$state) {
|
|
26714
26845
|
const $$entered = $$ctx.enter?.("DecimalIntegerLiteral", $$state);
|
|
26715
26846
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26758,7 +26889,7 @@ function StringLiteral($$ctx, $$state) {
|
|
|
26758
26889
|
$$ctx.exit?.("StringLiteral", $$state, $$final, $$eventData);
|
|
26759
26890
|
return $$final;
|
|
26760
26891
|
}
|
|
26761
|
-
var DoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
26892
|
+
var DoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($R46, 'DoubleStringCharacters /(?:\\\\.|[^"])*/');
|
|
26762
26893
|
function DoubleStringCharacters($$ctx, $$state) {
|
|
26763
26894
|
const $$entered = $$ctx.enter?.("DoubleStringCharacters", $$state);
|
|
26764
26895
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26775,7 +26906,7 @@ function DoubleStringCharacters($$ctx, $$state) {
|
|
|
26775
26906
|
$$ctx.exit?.("DoubleStringCharacters", $$state, $$r, $$eventData);
|
|
26776
26907
|
return $$r;
|
|
26777
26908
|
}
|
|
26778
|
-
var SingleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
26909
|
+
var SingleStringCharacters$parser = (0, import_lib2.$EXPECT)($R47, "SingleStringCharacters /(?:\\\\.|[^'])*/");
|
|
26779
26910
|
function SingleStringCharacters($$ctx, $$state) {
|
|
26780
26911
|
const $$entered = $$ctx.enter?.("SingleStringCharacters", $$state);
|
|
26781
26912
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26792,7 +26923,7 @@ function SingleStringCharacters($$ctx, $$state) {
|
|
|
26792
26923
|
$$ctx.exit?.("SingleStringCharacters", $$state, $$r, $$eventData);
|
|
26793
26924
|
return $$r;
|
|
26794
26925
|
}
|
|
26795
|
-
var SingleLineStringLiteral$parser = (0, import_lib2.$C)((0, import_lib2.$TEXT)((0, import_lib2.$S)(DoubleQuote, (0, import_lib2.$EXPECT)($
|
|
26926
|
+
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)));
|
|
26796
26927
|
function SingleLineStringLiteral($$ctx, $$state) {
|
|
26797
26928
|
const $$entered = $$ctx.enter?.("SingleLineStringLiteral", $$state);
|
|
26798
26929
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26813,7 +26944,7 @@ function SingleLineStringLiteral($$ctx, $$state) {
|
|
|
26813
26944
|
$$ctx.exit?.("SingleLineStringLiteral", $$state, $$r, $$eventData);
|
|
26814
26945
|
return $$r;
|
|
26815
26946
|
}
|
|
26816
|
-
var UnclosedSingleLineStringLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$TEXT)((0, import_lib2.$S)(DoubleQuote, (0, import_lib2.$EXPECT)($
|
|
26947
|
+
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));
|
|
26817
26948
|
function UnclosedSingleLineStringLiteral($$ctx, $$state) {
|
|
26818
26949
|
const $$entered = $$ctx.enter?.("UnclosedSingleLineStringLiteral", $$state);
|
|
26819
26950
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26872,7 +27003,7 @@ function TripleDoubleStringContents($$ctx, $$state) {
|
|
|
26872
27003
|
$$ctx.exit?.("TripleDoubleStringContents", $$state, $$final, $$eventData);
|
|
26873
27004
|
return $$final;
|
|
26874
27005
|
}
|
|
26875
|
-
var CoffeeTripleDoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27006
|
+
var CoffeeTripleDoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($R50, 'CoffeeTripleDoubleStringCharacters /(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+/');
|
|
26876
27007
|
function CoffeeTripleDoubleStringCharacters($$ctx, $$state) {
|
|
26877
27008
|
const $$entered = $$ctx.enter?.("CoffeeTripleDoubleStringCharacters", $$state);
|
|
26878
27009
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26889,7 +27020,7 @@ function CoffeeTripleDoubleStringCharacters($$ctx, $$state) {
|
|
|
26889
27020
|
$$ctx.exit?.("CoffeeTripleDoubleStringCharacters", $$state, $$r, $$eventData);
|
|
26890
27021
|
return $$r;
|
|
26891
27022
|
}
|
|
26892
|
-
var TripleDoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27023
|
+
var TripleDoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($R51, 'TripleDoubleStringCharacters /(?:"(?!"")|\\\\.|[^"])+/');
|
|
26893
27024
|
function TripleDoubleStringCharacters($$ctx, $$state) {
|
|
26894
27025
|
const $$entered = $$ctx.enter?.("TripleDoubleStringCharacters", $$state);
|
|
26895
27026
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26906,7 +27037,7 @@ function TripleDoubleStringCharacters($$ctx, $$state) {
|
|
|
26906
27037
|
$$ctx.exit?.("TripleDoubleStringCharacters", $$state, $$r, $$eventData);
|
|
26907
27038
|
return $$r;
|
|
26908
27039
|
}
|
|
26909
|
-
var TripleSingleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27040
|
+
var TripleSingleStringCharacters$parser = (0, import_lib2.$EXPECT)($R52, "TripleSingleStringCharacters /(?:'(?!'')|\\\\.|[^'])*/");
|
|
26910
27041
|
function TripleSingleStringCharacters($$ctx, $$state) {
|
|
26911
27042
|
const $$entered = $$ctx.enter?.("TripleSingleStringCharacters", $$state);
|
|
26912
27043
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26962,7 +27093,7 @@ function CoffeeInterpolatedDoubleQuotedString($$ctx, $$state) {
|
|
|
26962
27093
|
$$ctx.exit?.("CoffeeInterpolatedDoubleQuotedString", $$state, $$r, $$eventData);
|
|
26963
27094
|
return $$r;
|
|
26964
27095
|
}
|
|
26965
|
-
var CoffeeDoubleQuotedStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27096
|
+
var CoffeeDoubleQuotedStringCharacters$parser = (0, import_lib2.$EXPECT)($R53, 'CoffeeDoubleQuotedStringCharacters /(?:\\\\.|#(?!\\{)|[^"#])+/');
|
|
26966
27097
|
function CoffeeDoubleQuotedStringCharacters($$ctx, $$state) {
|
|
26967
27098
|
const $$entered = $$ctx.enter?.("CoffeeDoubleQuotedStringCharacters", $$state);
|
|
26968
27099
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27023,7 +27154,7 @@ function RegularExpressionClass($$ctx, $$state) {
|
|
|
27023
27154
|
$$ctx.exit?.("RegularExpressionClass", $$state, $$r, $$eventData);
|
|
27024
27155
|
return $$r;
|
|
27025
27156
|
}
|
|
27026
|
-
var RegularExpressionClassCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27157
|
+
var RegularExpressionClassCharacters$parser = (0, import_lib2.$EXPECT)($R54, "RegularExpressionClassCharacters /(?:\\\\.|[^\\]])*/");
|
|
27027
27158
|
function RegularExpressionClassCharacters($$ctx, $$state) {
|
|
27028
27159
|
const $$entered = $$ctx.enter?.("RegularExpressionClassCharacters", $$state);
|
|
27029
27160
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27051,7 +27182,7 @@ function HeregexLiteral($$ctx, $$state) {
|
|
|
27051
27182
|
return void 0;
|
|
27052
27183
|
}
|
|
27053
27184
|
const $$value = $$r.value;
|
|
27054
|
-
const $$m = (function($0, open, body, close, flags) {
|
|
27185
|
+
const $$m = (function($loc, $0, open, body, close, flags) {
|
|
27055
27186
|
let hasSubstitutions = body.some((part) => part.type === "Substitution");
|
|
27056
27187
|
if (hasSubstitutions) {
|
|
27057
27188
|
const children = [
|
|
@@ -27060,7 +27191,7 @@ function HeregexLiteral($$ctx, $$state) {
|
|
|
27060
27191
|
body.map(
|
|
27061
27192
|
(e) => e.type === "Substitution" ? e : {
|
|
27062
27193
|
...e,
|
|
27063
|
-
token: e.token.replace(
|
|
27194
|
+
token: e.token.replace(/[`\\$]/g, "\\$&")
|
|
27064
27195
|
}
|
|
27065
27196
|
),
|
|
27066
27197
|
"`"
|
|
@@ -27077,16 +27208,32 @@ function HeregexLiteral($$ctx, $$state) {
|
|
|
27077
27208
|
children
|
|
27078
27209
|
};
|
|
27079
27210
|
}
|
|
27211
|
+
const source = body.map(($14) => $14.token).join("");
|
|
27212
|
+
if (!source.length) {
|
|
27213
|
+
const pos = open.$loc.pos + open.$loc.length;
|
|
27214
|
+
const empty = {
|
|
27215
|
+
token: "(?:)",
|
|
27216
|
+
$loc: { pos, length: close.$loc.pos - pos }
|
|
27217
|
+
};
|
|
27218
|
+
const children = [open, empty, close];
|
|
27219
|
+
if (flags.length) {
|
|
27220
|
+
children.push(flags);
|
|
27221
|
+
}
|
|
27222
|
+
return {
|
|
27223
|
+
type: "RegularExpressionLiteral",
|
|
27224
|
+
children
|
|
27225
|
+
};
|
|
27226
|
+
}
|
|
27080
27227
|
return {
|
|
27081
27228
|
type: "RegularExpressionLiteral",
|
|
27082
27229
|
children: $0
|
|
27083
27230
|
};
|
|
27084
|
-
})($$value, $$value[0], $$value[1], $$value[2], $$value[3]);
|
|
27231
|
+
})($$r.loc, $$value, $$value[0], $$value[1], $$value[2], $$value[3]);
|
|
27085
27232
|
$$r.value = $$m;
|
|
27086
27233
|
$$ctx.exit?.("HeregexLiteral", $$state, $$r, $$eventData);
|
|
27087
27234
|
return $$r;
|
|
27088
27235
|
}
|
|
27089
|
-
var HeregexBody$parser = (0, import_lib2.$S)((0, import_lib2.$N)(
|
|
27236
|
+
var HeregexBody$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($L76, 'HeregexBody "/"')), (0, import_lib2.$Q)(HeregexPart));
|
|
27090
27237
|
function HeregexBody($$ctx, $$state) {
|
|
27091
27238
|
const $$entered = $$ctx.enter?.("HeregexBody", $$state);
|
|
27092
27239
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27096,8 +27243,8 @@ function HeregexBody($$ctx, $$state) {
|
|
|
27096
27243
|
$$ctx.exit?.("HeregexBody", $$state, void 0, $$eventData);
|
|
27097
27244
|
return void 0;
|
|
27098
27245
|
}
|
|
27099
|
-
const $$m = /* @__PURE__ */ (function(
|
|
27100
|
-
return
|
|
27246
|
+
const $$m = /* @__PURE__ */ (function(body) {
|
|
27247
|
+
return body;
|
|
27101
27248
|
})($$r.value[1]);
|
|
27102
27249
|
$$r.value = $$m;
|
|
27103
27250
|
$$ctx.exit?.("HeregexBody", $$state, $$r, $$eventData);
|
|
@@ -27105,11 +27252,11 @@ function HeregexBody($$ctx, $$state) {
|
|
|
27105
27252
|
}
|
|
27106
27253
|
var HeregexPart$1$parser = (0, import_lib2.$S)(CoffeeInterpolationEnabled, CoffeeStringSubstitution);
|
|
27107
27254
|
var HeregexPart$2$parser = (0, import_lib2.$S)(TemplateSubstitution);
|
|
27108
|
-
var HeregexPart$3$parser = (0, import_lib2.$EXPECT)($
|
|
27255
|
+
var HeregexPart$3$parser = (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R55, "HeregexPart /\\\\./"));
|
|
27109
27256
|
var HeregexPart$4$parser = (0, import_lib2.$S)(HeregexComment);
|
|
27110
|
-
var HeregexPart$5$parser = (0, import_lib2.$EXPECT)($
|
|
27111
|
-
var HeregexPart$6$parser = (0, import_lib2.$EXPECT)($
|
|
27112
|
-
var HeregexPart$7$parser = (0, import_lib2.$EXPECT)($
|
|
27257
|
+
var HeregexPart$5$parser = (0, import_lib2.$EXPECT)($R56, "HeregexPart /[\\s]+/");
|
|
27258
|
+
var HeregexPart$6$parser = (0, import_lib2.$EXPECT)($R57, "HeregexPart /\\/(?!\\/\\/)/");
|
|
27259
|
+
var HeregexPart$7$parser = (0, import_lib2.$EXPECT)($R58, "HeregexPart /[^[\\/\\s#$\\\\]+|[#$]/");
|
|
27113
27260
|
function HeregexPart$0($$ctx, $$state) {
|
|
27114
27261
|
return RegularExpressionClass($$ctx, $$state);
|
|
27115
27262
|
}
|
|
@@ -27140,21 +27287,9 @@ function HeregexPart$3($$ctx, $$state) {
|
|
|
27140
27287
|
if (!$$r) {
|
|
27141
27288
|
return void 0;
|
|
27142
27289
|
}
|
|
27143
|
-
const $$m = (function($loc,
|
|
27144
|
-
|
|
27145
|
-
|
|
27146
|
-
case "\n":
|
|
27147
|
-
token = "\\n";
|
|
27148
|
-
break;
|
|
27149
|
-
case "\r":
|
|
27150
|
-
token = "\\r";
|
|
27151
|
-
break;
|
|
27152
|
-
case " ":
|
|
27153
|
-
token = " ";
|
|
27154
|
-
break;
|
|
27155
|
-
}
|
|
27156
|
-
return { $loc, token };
|
|
27157
|
-
})($$r.loc, $$r.value[0]);
|
|
27290
|
+
const $$m = (function($loc, escape) {
|
|
27291
|
+
return { $loc, token: heregexEscapes[escape[1]] ?? escape };
|
|
27292
|
+
})($$r.loc, $$r.value);
|
|
27158
27293
|
$$r.value = $$m;
|
|
27159
27294
|
return $$r;
|
|
27160
27295
|
}
|
|
@@ -27234,7 +27369,7 @@ function HeregexComment($$ctx, $$state) {
|
|
|
27234
27369
|
$$ctx.exit?.("HeregexComment", $$state, $$final, $$eventData);
|
|
27235
27370
|
return $$final;
|
|
27236
27371
|
}
|
|
27237
|
-
var RegularExpressionBody$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
27372
|
+
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));
|
|
27238
27373
|
function RegularExpressionBody($$ctx, $$state) {
|
|
27239
27374
|
const $$entered = $$ctx.enter?.("RegularExpressionBody", $$state);
|
|
27240
27375
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27257,7 +27392,7 @@ function RegExpPart($$ctx, $$state) {
|
|
|
27257
27392
|
$$ctx.exit?.("RegExpPart", $$state, $$final, $$eventData);
|
|
27258
27393
|
return $$final;
|
|
27259
27394
|
}
|
|
27260
|
-
var RegExpCharacter$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
27395
|
+
var RegExpCharacter$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R60, "RegExpCharacter /(?:\\\\.|[^[\\/\\r\\n])+/"));
|
|
27261
27396
|
function RegExpCharacter($$ctx, $$state) {
|
|
27262
27397
|
const $$entered = $$ctx.enter?.("RegExpCharacter", $$state);
|
|
27263
27398
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27266,7 +27401,7 @@ function RegExpCharacter($$ctx, $$state) {
|
|
|
27266
27401
|
$$ctx.exit?.("RegExpCharacter", $$state, $$final, $$eventData);
|
|
27267
27402
|
return $$final;
|
|
27268
27403
|
}
|
|
27269
|
-
var RegularExpressionFlags$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
27404
|
+
var RegularExpressionFlags$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R61, "RegularExpressionFlags /(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
|
|
27270
27405
|
function RegularExpressionFlags($$ctx, $$state) {
|
|
27271
27406
|
const $$entered = $$ctx.enter?.("RegularExpressionFlags", $$state);
|
|
27272
27407
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27275,7 +27410,7 @@ function RegularExpressionFlags($$ctx, $$state) {
|
|
|
27275
27410
|
$$ctx.exit?.("RegularExpressionFlags", $$state, $$final, $$eventData);
|
|
27276
27411
|
return $$final;
|
|
27277
27412
|
}
|
|
27278
|
-
var TemplateLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
27413
|
+
var TemplateLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R62, "TemplateLiteral /(?=[`'\"])/"), _TemplateLiteral);
|
|
27279
27414
|
function TemplateLiteral($$ctx, $$state) {
|
|
27280
27415
|
const $$entered = $$ctx.enter?.("TemplateLiteral", $$state);
|
|
27281
27416
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27379,7 +27514,7 @@ function TemplateSubstitution($$ctx, $$state) {
|
|
|
27379
27514
|
$$ctx.exit?.("TemplateSubstitution", $$state, $$final, $$eventData);
|
|
27380
27515
|
return $$final;
|
|
27381
27516
|
}
|
|
27382
|
-
var TemplateCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27517
|
+
var TemplateCharacters$parser = (0, import_lib2.$EXPECT)($R63, "TemplateCharacters /(?:\\$(?!\\{)|\\\\.|[^$`])+/");
|
|
27383
27518
|
function TemplateCharacters($$ctx, $$state) {
|
|
27384
27519
|
const $$entered = $$ctx.enter?.("TemplateCharacters", $$state);
|
|
27385
27520
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27396,7 +27531,7 @@ function TemplateCharacters($$ctx, $$state) {
|
|
|
27396
27531
|
$$ctx.exit?.("TemplateCharacters", $$state, $$r, $$eventData);
|
|
27397
27532
|
return $$r;
|
|
27398
27533
|
}
|
|
27399
|
-
var TemplateBlockCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
27534
|
+
var TemplateBlockCharacters$parser = (0, import_lib2.$EXPECT)($R64, "TemplateBlockCharacters /(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+/");
|
|
27400
27535
|
function TemplateBlockCharacters($$ctx, $$state) {
|
|
27401
27536
|
const $$entered = $$ctx.enter?.("TemplateBlockCharacters", $$state);
|
|
27402
27537
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27413,11 +27548,11 @@ function TemplateBlockCharacters($$ctx, $$state) {
|
|
|
27413
27548
|
$$ctx.exit?.("TemplateBlockCharacters", $$state, $$r, $$eventData);
|
|
27414
27549
|
return $$r;
|
|
27415
27550
|
}
|
|
27416
|
-
var ReservedWord$0$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
27417
|
-
var ReservedWord$1$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
27418
|
-
var ReservedWord$2$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
27419
|
-
var ReservedWord$3$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
27420
|
-
var ReservedWord$4$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
27551
|
+
var ReservedWord$0$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R65, "ReservedWord /(?:off|yes|on|no)/")), NonIdContinue, CoffeeBooleansEnabled);
|
|
27552
|
+
var ReservedWord$1$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R66, "ReservedWord /isnt/")), NonIdContinue, CoffeeIsntEnabled);
|
|
27553
|
+
var ReservedWord$2$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R67, "ReservedWord /by/")), NonIdContinue, CoffeeForLoopsEnabled);
|
|
27554
|
+
var ReservedWord$3$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R68, "ReservedWord /of/")), NonIdContinue, CoffeeOfEnabled);
|
|
27555
|
+
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);
|
|
27421
27556
|
function ReservedWord$0($$ctx, $$state) {
|
|
27422
27557
|
const $$r = ReservedWord$0$parser($$ctx, $$state);
|
|
27423
27558
|
if (!$$r) {
|
|
@@ -27481,7 +27616,7 @@ function ReservedWord($$ctx, $$state) {
|
|
|
27481
27616
|
$$ctx.exit?.("ReservedWord", $$state, $$final, $$eventData);
|
|
27482
27617
|
return $$final;
|
|
27483
27618
|
}
|
|
27484
|
-
var Comment$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
27619
|
+
var Comment$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R70, "Comment /(?=\\/|#)/"), _Comment);
|
|
27485
27620
|
function Comment($$ctx, $$state) {
|
|
27486
27621
|
const $$entered = $$ctx.enter?.("Comment", $$state);
|
|
27487
27622
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27527,7 +27662,7 @@ function SingleLineComment($$ctx, $$state) {
|
|
|
27527
27662
|
$$ctx.exit?.("SingleLineComment", $$state, $$final, $$eventData);
|
|
27528
27663
|
return $$final;
|
|
27529
27664
|
}
|
|
27530
|
-
var JSSingleLineComment$parser = (0, import_lib2.$EXPECT)($
|
|
27665
|
+
var JSSingleLineComment$parser = (0, import_lib2.$EXPECT)($R71, "JSSingleLineComment /\\/\\/(?!\\/(?!\\/))[^\\r\\n]*/");
|
|
27531
27666
|
function JSSingleLineComment($$ctx, $$state) {
|
|
27532
27667
|
const $$entered = $$ctx.enter?.("JSSingleLineComment", $$state);
|
|
27533
27668
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27558,7 +27693,7 @@ function MultiLineComment($$ctx, $$state) {
|
|
|
27558
27693
|
$$ctx.exit?.("MultiLineComment", $$state, $$final, $$eventData);
|
|
27559
27694
|
return $$final;
|
|
27560
27695
|
}
|
|
27561
|
-
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)($
|
|
27696
|
+
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 "*/"')));
|
|
27562
27697
|
function JSMultiLineComment($$ctx, $$state) {
|
|
27563
27698
|
const $$entered = $$ctx.enter?.("JSMultiLineComment", $$state);
|
|
27564
27699
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27575,7 +27710,7 @@ function JSMultiLineComment($$ctx, $$state) {
|
|
|
27575
27710
|
$$ctx.exit?.("JSMultiLineComment", $$state, $$r, $$eventData);
|
|
27576
27711
|
return $$r;
|
|
27577
27712
|
}
|
|
27578
|
-
var CoffeeSingleLineComment$parser = (0, import_lib2.$EXPECT)($
|
|
27713
|
+
var CoffeeSingleLineComment$parser = (0, import_lib2.$EXPECT)($R73, "CoffeeSingleLineComment /#(?!##(?!#))([^\\r\\n]*)/");
|
|
27579
27714
|
function CoffeeSingleLineComment($$ctx, $$state) {
|
|
27580
27715
|
const $$entered = $$ctx.enter?.("CoffeeSingleLineComment", $$state);
|
|
27581
27716
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27592,7 +27727,7 @@ function CoffeeSingleLineComment($$ctx, $$state) {
|
|
|
27592
27727
|
$$ctx.exit?.("CoffeeSingleLineComment", $$state, $$r, $$eventData);
|
|
27593
27728
|
return $$r;
|
|
27594
27729
|
}
|
|
27595
|
-
var CoffeeMultiLineComment$parser = (0, import_lib2.$S)(CoffeeHereCommentStart, (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
27730
|
+
var CoffeeMultiLineComment$parser = (0, import_lib2.$S)(CoffeeHereCommentStart, (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R74, "CoffeeMultiLineComment /[^]*?###/")));
|
|
27596
27731
|
function CoffeeMultiLineComment($$ctx, $$state) {
|
|
27597
27732
|
const $$entered = $$ctx.enter?.("CoffeeMultiLineComment", $$state);
|
|
27598
27733
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27610,7 +27745,7 @@ function CoffeeMultiLineComment($$ctx, $$state) {
|
|
|
27610
27745
|
$$ctx.exit?.("CoffeeMultiLineComment", $$state, $$r, $$eventData);
|
|
27611
27746
|
return $$r;
|
|
27612
27747
|
}
|
|
27613
|
-
var CoffeeHereCommentStart$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
27748
|
+
var CoffeeHereCommentStart$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R75, "CoffeeHereCommentStart /###(?!#)/"));
|
|
27614
27749
|
function CoffeeHereCommentStart($$ctx, $$state) {
|
|
27615
27750
|
const $$entered = $$ctx.enter?.("CoffeeHereCommentStart", $$state);
|
|
27616
27751
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27619,7 +27754,7 @@ function CoffeeHereCommentStart($$ctx, $$state) {
|
|
|
27619
27754
|
$$ctx.exit?.("CoffeeHereCommentStart", $$state, $$final, $$eventData);
|
|
27620
27755
|
return $$final;
|
|
27621
27756
|
}
|
|
27622
|
-
var InlineComment$0$parser = (0, import_lib2.$EXPECT)($
|
|
27757
|
+
var InlineComment$0$parser = (0, import_lib2.$EXPECT)($R76, "InlineComment /\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\//");
|
|
27623
27758
|
function InlineComment$0($$ctx, $$state) {
|
|
27624
27759
|
const $$r = InlineComment$0$parser($$ctx, $$state);
|
|
27625
27760
|
if (!$$r) {
|
|
@@ -27660,7 +27795,7 @@ function TrailingComment($$ctx, $$state) {
|
|
|
27660
27795
|
$$ctx.exit?.("TrailingComment", $$state, $$final, $$eventData);
|
|
27661
27796
|
return $$final;
|
|
27662
27797
|
}
|
|
27663
|
-
var _$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
27798
|
+
var _$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R77, "_ /(?=[ \\t\\/\\\\#])/"), (0, import_lib2.$P)((0, import_lib2.$C)(NonNewlineWhitespace, InlineComment)));
|
|
27664
27799
|
function _($$ctx, $$state) {
|
|
27665
27800
|
const $$entered = $$ctx.enter?.("_", $$state);
|
|
27666
27801
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27677,7 +27812,7 @@ function _($$ctx, $$state) {
|
|
|
27677
27812
|
$$ctx.exit?.("_", $$state, $$r, $$eventData);
|
|
27678
27813
|
return $$r;
|
|
27679
27814
|
}
|
|
27680
|
-
var NonNewlineWhitespace$0$parser = (0, import_lib2.$EXPECT)($
|
|
27815
|
+
var NonNewlineWhitespace$0$parser = (0, import_lib2.$EXPECT)($R22, "NonNewlineWhitespace /[ \\t]+/");
|
|
27681
27816
|
var NonNewlineWhitespace$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L141, 'NonNewlineWhitespace "\\\\\\\\"'), CoffeeLineContinuationEnabled, EOL);
|
|
27682
27817
|
function NonNewlineWhitespace$0($$ctx, $$state) {
|
|
27683
27818
|
const $$r = NonNewlineWhitespace$0$parser($$ctx, $$state);
|
|
@@ -27726,7 +27861,7 @@ function Trimmed_($$ctx, $$state) {
|
|
|
27726
27861
|
$$ctx.exit?.("Trimmed_", $$state, $$r, $$eventData);
|
|
27727
27862
|
return $$r;
|
|
27728
27863
|
}
|
|
27729
|
-
var __$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
27864
|
+
var __$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R78, "__ /(?=\\s|\\/|#)/"), (0, import_lib2.$Q)((0, import_lib2.$C)(Whitespace, Comment)));
|
|
27730
27865
|
var __$1$parser = (0, import_lib2.$EXPECT)($L0, '__ ""');
|
|
27731
27866
|
function __$0($$ctx, $$state) {
|
|
27732
27867
|
const $$r = __$0$parser($$ctx, $$state);
|
|
@@ -27750,7 +27885,7 @@ function __($$ctx, $$state) {
|
|
|
27750
27885
|
$$ctx.exit?.("__", $$state, $$final, $$eventData);
|
|
27751
27886
|
return $$final;
|
|
27752
27887
|
}
|
|
27753
|
-
var Whitespace$parser = (0, import_lib2.$EXPECT)($
|
|
27888
|
+
var Whitespace$parser = (0, import_lib2.$EXPECT)($R56, "Whitespace /[\\s]+/");
|
|
27754
27889
|
function Whitespace($$ctx, $$state) {
|
|
27755
27890
|
const $$entered = $$ctx.enter?.("Whitespace", $$state);
|
|
27756
27891
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -27886,7 +28021,7 @@ function SemicolonDelimiter($$ctx, $$state) {
|
|
|
27886
28021
|
$$ctx.exit?.("SemicolonDelimiter", $$state, $$r, $$eventData);
|
|
27887
28022
|
return $$r;
|
|
27888
28023
|
}
|
|
27889
|
-
var NonIdContinue$parser = (0, import_lib2.$EXPECT)($
|
|
28024
|
+
var NonIdContinue$parser = (0, import_lib2.$EXPECT)($RD2, () => `NonIdContinue /${$RD2.source}/`);
|
|
27890
28025
|
function NonIdContinue($$ctx, $$state) {
|
|
27891
28026
|
const $$entered = $$ctx.enter?.("NonIdContinue", $$state);
|
|
27892
28027
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -28226,7 +28361,7 @@ function CoffeeSubstitutionStart($$ctx, $$state) {
|
|
|
28226
28361
|
$$ctx.exit?.("CoffeeSubstitutionStart", $$state, $$r, $$eventData);
|
|
28227
28362
|
return $$r;
|
|
28228
28363
|
}
|
|
28229
|
-
var Colon$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L15, 'Colon ":"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
28364
|
+
var Colon$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L15, 'Colon ":"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($R79, "Colon /[=:]/")));
|
|
28230
28365
|
function Colon($$ctx, $$state) {
|
|
28231
28366
|
const $$entered = $$ctx.enter?.("Colon", $$state);
|
|
28232
28367
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -28363,7 +28498,7 @@ function Do($$ctx, $$state) {
|
|
|
28363
28498
|
return $$r;
|
|
28364
28499
|
}
|
|
28365
28500
|
var Dot$0$parser = (0, import_lib2.$EXPECT)($L7, 'Dot "."');
|
|
28366
|
-
var Dot$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
28501
|
+
var Dot$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R80, "Dot /['\u2019]s/"), Trimmed_);
|
|
28367
28502
|
function Dot$0($$ctx, $$state) {
|
|
28368
28503
|
const $$r = Dot$0$parser($$ctx, $$state);
|
|
28369
28504
|
if (!$$r) {
|
|
@@ -29747,7 +29882,7 @@ function JSXImplicitFragment($$ctx, $$state) {
|
|
|
29747
29882
|
$$ctx.exit?.("JSXImplicitFragment", $$state, $$r, $$eventData);
|
|
29748
29883
|
return $$r;
|
|
29749
29884
|
}
|
|
29750
|
-
var JSXTag$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
29885
|
+
var JSXTag$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R81, "JSXTag /(?=[<])/"), _JSXTag);
|
|
29751
29886
|
function JSXTag($$ctx, $$state) {
|
|
29752
29887
|
const $$entered = $$ctx.enter?.("JSXTag", $$state);
|
|
29753
29888
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -30071,7 +30206,7 @@ function JSXElementName($$ctx, $$state) {
|
|
|
30071
30206
|
$$ctx.exit?.("JSXElementName", $$state, $$final, $$eventData);
|
|
30072
30207
|
return $$final;
|
|
30073
30208
|
}
|
|
30074
|
-
var JSXIdentifierName$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
30209
|
+
var JSXIdentifierName$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R82, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
|
|
30075
30210
|
function JSXIdentifierName($$ctx, $$state) {
|
|
30076
30211
|
const $$entered = $$ctx.enter?.("JSXIdentifierName", $$state);
|
|
30077
30212
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -30187,7 +30322,7 @@ var JSXAttribute$3$parser = (0, import_lib2.$S)(AtThis, (0, import_lib2.$E)(Iden
|
|
|
30187
30322
|
var JSXAttribute$4$parser = (0, import_lib2.$S)(Identifier, (0, import_lib2.$P)(InlineJSXCallExpressionRest), (0, import_lib2.$Y)(JSXAttributeSpace));
|
|
30188
30323
|
var JSXAttribute$5$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L177, 'JSXAttribute "#"'), JSXShorthandString);
|
|
30189
30324
|
var JSXAttribute$6$parser = (0, import_lib2.$S)(Dot, JSXShorthandString);
|
|
30190
|
-
var JSXAttribute$7$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
30325
|
+
var JSXAttribute$7$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R83, "JSXAttribute /[!+-]/")), JSXAttributeName, (0, import_lib2.$Y)(JSXAttributeSpace));
|
|
30191
30326
|
function JSXAttribute$0($$ctx, $$state) {
|
|
30192
30327
|
const $$r = JSXAttribute$0$parser($$ctx, $$state);
|
|
30193
30328
|
if (!$$r) {
|
|
@@ -30353,7 +30488,7 @@ function JSXAttribute($$ctx, $$state) {
|
|
|
30353
30488
|
$$ctx.exit?.("JSXAttribute", $$state, $$final, $$eventData);
|
|
30354
30489
|
return $$final;
|
|
30355
30490
|
}
|
|
30356
|
-
var JSXAttributeSpace$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
30491
|
+
var JSXAttributeSpace$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R84, "JSXAttributeSpace /[\\s>]|\\/>/"));
|
|
30357
30492
|
function JSXAttributeSpace($$ctx, $$state) {
|
|
30358
30493
|
const $$entered = $$ctx.enter?.("JSXAttributeSpace", $$state);
|
|
30359
30494
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -30362,7 +30497,7 @@ function JSXAttributeSpace($$ctx, $$state) {
|
|
|
30362
30497
|
$$ctx.exit?.("JSXAttributeSpace", $$state, $$final, $$eventData);
|
|
30363
30498
|
return $$final;
|
|
30364
30499
|
}
|
|
30365
|
-
var JSXShorthandString$0$parser = (0, import_lib2.$EXPECT)($
|
|
30500
|
+
var JSXShorthandString$0$parser = (0, import_lib2.$EXPECT)($R85, "JSXShorthandString /(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+/");
|
|
30366
30501
|
var JSXShorthandString$1$parser = (0, import_lib2.$S)(TemplateLiteral);
|
|
30367
30502
|
var JSXShorthandString$3$parser = (0, import_lib2.$S)(OpenBrace, PostfixedExpressionOrCommaLoop, __, CloseBrace);
|
|
30368
30503
|
function JSXShorthandString$0($$ctx, $$state) {
|
|
@@ -30463,7 +30598,7 @@ function JSXAttributeInitializer($$ctx, $$state) {
|
|
|
30463
30598
|
}
|
|
30464
30599
|
var JSXAttributeValue$0$parser = (0, import_lib2.$S)(OpenBrace, PostfixedExpressionOrCommaLoop, __, CloseBrace);
|
|
30465
30600
|
var JSXAttributeValue$3$parser = (0, import_lib2.$S)(InsertInlineOpenBrace, InlineJSXAttributeValue, InsertCloseBrace, (0, import_lib2.$Y)(JSXAttributeSpace));
|
|
30466
|
-
var JSXAttributeValue$4$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
30601
|
+
var JSXAttributeValue$4$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R86, `JSXAttributeValue /"[^"]*"|'[^']*'/`));
|
|
30467
30602
|
function JSXAttributeValue$0($$ctx, $$state) {
|
|
30468
30603
|
return JSXAttributeValue$0$parser($$ctx, $$state);
|
|
30469
30604
|
}
|
|
@@ -30520,7 +30655,7 @@ function InlineJSXAttributeValue($$ctx, $$state) {
|
|
|
30520
30655
|
$$ctx.exit?.("InlineJSXAttributeValue", $$state, $$r, $$eventData);
|
|
30521
30656
|
return $$r;
|
|
30522
30657
|
}
|
|
30523
|
-
var InlineJSXBinaryOpRHS$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
30658
|
+
var InlineJSXBinaryOpRHS$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($R87, "InlineJSXBinaryOpRHS /[<>]/")), BinaryOp, InlineJSXUnaryExpression);
|
|
30524
30659
|
function InlineJSXBinaryOpRHS($$ctx, $$state) {
|
|
30525
30660
|
const $$entered = $$ctx.enter?.("InlineJSXBinaryOpRHS", $$state);
|
|
30526
30661
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -30556,7 +30691,7 @@ function InlineJSXUnaryExpression($$ctx, $$state) {
|
|
|
30556
30691
|
$$ctx.exit?.("InlineJSXUnaryExpression", $$state, $$r, $$eventData);
|
|
30557
30692
|
return $$r;
|
|
30558
30693
|
}
|
|
30559
|
-
var InlineJSXUnaryOp$parser = (0, import_lib2.$EXPECT)($
|
|
30694
|
+
var InlineJSXUnaryOp$parser = (0, import_lib2.$EXPECT)($R88, "InlineJSXUnaryOp /[!~+-](?!\\s|[!~+-]*&)/");
|
|
30560
30695
|
function InlineJSXUnaryOp($$ctx, $$state) {
|
|
30561
30696
|
const $$entered = $$ctx.enter?.("InlineJSXUnaryOp", $$state);
|
|
30562
30697
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -31117,7 +31252,7 @@ function JSXComment($$ctx, $$state) {
|
|
|
31117
31252
|
$$ctx.exit?.("JSXComment", $$state, $$r, $$eventData);
|
|
31118
31253
|
return $$r;
|
|
31119
31254
|
}
|
|
31120
|
-
var JSXCommentContent$parser = (0, import_lib2.$EXPECT)($
|
|
31255
|
+
var JSXCommentContent$parser = (0, import_lib2.$EXPECT)($R89, "JSXCommentContent /(?:-[^-]|[^-]*)*/");
|
|
31121
31256
|
function JSXCommentContent($$ctx, $$state) {
|
|
31122
31257
|
const $$entered = $$ctx.enter?.("JSXCommentContent", $$state);
|
|
31123
31258
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -31134,7 +31269,7 @@ function JSXCommentContent($$ctx, $$state) {
|
|
|
31134
31269
|
$$ctx.exit?.("JSXCommentContent", $$state, $$r, $$eventData);
|
|
31135
31270
|
return $$r;
|
|
31136
31271
|
}
|
|
31137
|
-
var JSXText$parser = (0, import_lib2.$EXPECT)($
|
|
31272
|
+
var JSXText$parser = (0, import_lib2.$EXPECT)($R90, "JSXText /[^{}<>\\r\\n]+/");
|
|
31138
31273
|
function JSXText($$ctx, $$state) {
|
|
31139
31274
|
const $$entered = $$ctx.enter?.("JSXText", $$state);
|
|
31140
31275
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -32242,7 +32377,7 @@ function TypeProperty($$ctx, $$state) {
|
|
|
32242
32377
|
$$ctx.exit?.("TypeProperty", $$state, $$r, $$eventData);
|
|
32243
32378
|
return $$r;
|
|
32244
32379
|
}
|
|
32245
|
-
var TypeIndexSignature$parser = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
32380
|
+
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)))));
|
|
32246
32381
|
function TypeIndexSignature($$ctx, $$state) {
|
|
32247
32382
|
const $$entered = $$ctx.enter?.("TypeIndexSignature", $$state);
|
|
32248
32383
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -33307,7 +33442,7 @@ function TypeWithPostfix($$ctx, $$state) {
|
|
|
33307
33442
|
$$ctx.exit?.("TypeWithPostfix", $$state, $$r, $$eventData);
|
|
33308
33443
|
return $$r;
|
|
33309
33444
|
}
|
|
33310
|
-
var TypeConditional$0$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$EXPECT)($
|
|
33445
|
+
var TypeConditional$0$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$EXPECT)($R92, "TypeConditional /(?=if|unless)/"), TypeIfThenElse);
|
|
33311
33446
|
var TypeConditional$1$parser = (0, import_lib2.$S)(TypeCondition, NotDedented, QuestionMark, __, Type, __, Colon, __, Type);
|
|
33312
33447
|
var TypeConditional$2$parser = TypeBinary;
|
|
33313
33448
|
function TypeConditional$0($$ctx, $$state) {
|
|
@@ -33732,7 +33867,7 @@ function TypeFunction($$ctx, $$state) {
|
|
|
33732
33867
|
message: "abstract function types must be constructors (abstract new)"
|
|
33733
33868
|
};
|
|
33734
33869
|
}
|
|
33735
|
-
if (returnType.$loc && returnType.token === "") {
|
|
33870
|
+
if ("token" in returnType && returnType.$loc && returnType.token === "") {
|
|
33736
33871
|
const t = {
|
|
33737
33872
|
type: "VoidType",
|
|
33738
33873
|
$loc: returnType.$loc,
|
|
@@ -33849,8 +33984,8 @@ function TypeApplicationStart($$ctx, $$state) {
|
|
|
33849
33984
|
$$ctx.exit?.("TypeApplicationStart", $$state, $$final, $$eventData);
|
|
33850
33985
|
return $$final;
|
|
33851
33986
|
}
|
|
33852
|
-
var ForbiddenImplicitTypeCalls$1$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
33853
|
-
var ForbiddenImplicitTypeCalls$2$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
33987
|
+
var ForbiddenImplicitTypeCalls$1$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R93, "ForbiddenImplicitTypeCalls /[|&<!=\\-\u21D2\u2192]/"));
|
|
33988
|
+
var ForbiddenImplicitTypeCalls$2$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R94, "ForbiddenImplicitTypeCalls /(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
|
|
33854
33989
|
function ForbiddenImplicitTypeCalls$0($$ctx, $$state) {
|
|
33855
33990
|
return ReservedBinary($$ctx, $$state);
|
|
33856
33991
|
}
|
|
@@ -34069,7 +34204,7 @@ function TypeParameters($$ctx, $$state) {
|
|
|
34069
34204
|
$$ctx.exit?.("TypeParameters", $$state, $$r, $$eventData);
|
|
34070
34205
|
return $$r;
|
|
34071
34206
|
}
|
|
34072
|
-
var TypeParameter$parser = (0, import_lib2.$S)(__, (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
34207
|
+
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);
|
|
34073
34208
|
function TypeParameter($$ctx, $$state) {
|
|
34074
34209
|
const $$entered = $$ctx.enter?.("TypeParameter", $$state);
|
|
34075
34210
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34153,7 +34288,7 @@ function ThisType($$ctx, $$state) {
|
|
|
34153
34288
|
$$ctx.exit?.("ThisType", $$state, $$r, $$eventData);
|
|
34154
34289
|
return $$r;
|
|
34155
34290
|
}
|
|
34156
|
-
var Shebang$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
34291
|
+
var Shebang$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R96, "Shebang /#![^\\r\\n]*/")), EOL);
|
|
34157
34292
|
function Shebang($$ctx, $$state) {
|
|
34158
34293
|
const $$entered = $$ctx.enter?.("Shebang", $$state);
|
|
34159
34294
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34162,8 +34297,8 @@ function Shebang($$ctx, $$state) {
|
|
|
34162
34297
|
$$ctx.exit?.("Shebang", $$state, $$final, $$eventData);
|
|
34163
34298
|
return $$final;
|
|
34164
34299
|
}
|
|
34165
|
-
var CivetPrologue$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
34166
|
-
var CivetPrologue$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
34300
|
+
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)));
|
|
34301
|
+
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)));
|
|
34167
34302
|
function CivetPrologue$0($$ctx, $$state) {
|
|
34168
34303
|
const $$r = CivetPrologue$0$parser($$ctx, $$state);
|
|
34169
34304
|
if (!$$r) {
|
|
@@ -34194,7 +34329,7 @@ function CivetPrologue($$ctx, $$state) {
|
|
|
34194
34329
|
$$ctx.exit?.("CivetPrologue", $$state, $$final, $$eventData);
|
|
34195
34330
|
return $$final;
|
|
34196
34331
|
}
|
|
34197
|
-
var CivetPrologueContent$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L248, 'CivetPrologueContent "civet"'), NonIdContinue, (0, import_lib2.$Q)(CivetOption), (0, import_lib2.$EXPECT)($
|
|
34332
|
+
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]*/"));
|
|
34198
34333
|
function CivetPrologueContent($$ctx, $$state) {
|
|
34199
34334
|
const $$entered = $$ctx.enter?.("CivetPrologueContent", $$state);
|
|
34200
34335
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34215,7 +34350,7 @@ function CivetPrologueContent($$ctx, $$state) {
|
|
|
34215
34350
|
$$ctx.exit?.("CivetPrologueContent", $$state, $$r, $$eventData);
|
|
34216
34351
|
return $$r;
|
|
34217
34352
|
}
|
|
34218
|
-
var CivetOption$parser = (0, import_lib2.$EXPECT)($
|
|
34353
|
+
var CivetOption$parser = (0, import_lib2.$EXPECT)($R99, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?/");
|
|
34219
34354
|
function CivetOption($$ctx, $$state) {
|
|
34220
34355
|
const $$entered = $$ctx.enter?.("CivetOption", $$state);
|
|
34221
34356
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34253,7 +34388,7 @@ function CivetOption($$ctx, $$state) {
|
|
|
34253
34388
|
$$ctx.exit?.("CivetOption", $$state, $$r, $$eventData);
|
|
34254
34389
|
return $$r;
|
|
34255
34390
|
}
|
|
34256
|
-
var UnknownPrologue$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
34391
|
+
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);
|
|
34257
34392
|
function UnknownPrologue($$ctx, $$state) {
|
|
34258
34393
|
const $$entered = $$ctx.enter?.("UnknownPrologue", $$state);
|
|
34259
34394
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34262,7 +34397,7 @@ function UnknownPrologue($$ctx, $$state) {
|
|
|
34262
34397
|
$$ctx.exit?.("UnknownPrologue", $$state, $$final, $$eventData);
|
|
34263
34398
|
return $$final;
|
|
34264
34399
|
}
|
|
34265
|
-
var TripleSlashDirective$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
34400
|
+
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));
|
|
34266
34401
|
function TripleSlashDirective($$ctx, $$state) {
|
|
34267
34402
|
const $$entered = $$ctx.enter?.("TripleSlashDirective", $$state);
|
|
34268
34403
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34302,7 +34437,7 @@ function PrologueString($$ctx, $$state) {
|
|
|
34302
34437
|
$$ctx.exit?.("PrologueString", $$state, $$final, $$eventData);
|
|
34303
34438
|
return $$final;
|
|
34304
34439
|
}
|
|
34305
|
-
var EOS$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
34440
|
+
var EOS$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R101, "EOS /(?=[ \\t\\r\\n\\/#]|$)/"), (0, import_lib2.$P)(RestOfLine));
|
|
34306
34441
|
function EOS($$ctx, $$state) {
|
|
34307
34442
|
const $$entered = $$ctx.enter?.("EOS", $$state);
|
|
34308
34443
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -34319,7 +34454,7 @@ function EOS($$ctx, $$state) {
|
|
|
34319
34454
|
$$ctx.exit?.("EOS", $$state, $$r, $$eventData);
|
|
34320
34455
|
return $$r;
|
|
34321
34456
|
}
|
|
34322
|
-
var EOL$parser = (0, import_lib2.$EXPECT)($
|
|
34457
|
+
var EOL$parser = (0, import_lib2.$EXPECT)($R102, "EOL /\\r\\n|\\n|\\r|$/");
|
|
34323
34458
|
function EOL($$ctx, $$state) {
|
|
34324
34459
|
const $$entered = $$ctx.enter?.("EOL", $$state);
|
|
34325
34460
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -35294,7 +35429,7 @@ function Prologue($$ctx, $$state) {
|
|
|
35294
35429
|
$$ctx.exit?.("Prologue", $$state, $$final, $$eventData);
|
|
35295
35430
|
return $$final;
|
|
35296
35431
|
}
|
|
35297
|
-
var ProloguePrefix$parser = (0, import_lib2.$S)(Prologue, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
35432
|
+
var ProloguePrefix$parser = (0, import_lib2.$S)(Prologue, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R103, "ProloguePrefix /[^]*/")));
|
|
35298
35433
|
function ProloguePrefix($$ctx, $$state) {
|
|
35299
35434
|
const $$entered = $$ctx.enter?.("ProloguePrefix", $$state);
|
|
35300
35435
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -35303,7 +35438,7 @@ function ProloguePrefix($$ctx, $$state) {
|
|
|
35303
35438
|
$$ctx.exit?.("ProloguePrefix", $$state, $$final, $$eventData);
|
|
35304
35439
|
return $$final;
|
|
35305
35440
|
}
|
|
35306
|
-
var Indent$parser = (0, import_lib2.$EXPECT)($
|
|
35441
|
+
var Indent$parser = (0, import_lib2.$EXPECT)($R21, "Indent /[ \\t]*/");
|
|
35307
35442
|
function Indent($$ctx, $$state) {
|
|
35308
35443
|
const $$entered = $$ctx.enter?.("Indent", $$state);
|
|
35309
35444
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -35681,6 +35816,8 @@ function parseProgram(input, options) {
|
|
|
35681
35816
|
});
|
|
35682
35817
|
}
|
|
35683
35818
|
}
|
|
35819
|
+
var unicodeEscapePattern = String.raw`\\u\{0*(?:[\dA-Fa-f]{1,5}|10[\dA-Fa-f]{4})\}|\\u[\dA-Fa-f]{4}`;
|
|
35820
|
+
var nonAsciiIdentifierPattern = String.raw`[^\u0000-\u007F\p{ID_Continue}\s÷—‖’•‥…⁇→⇒∈∉∋∌≔≠≡≢≣≤≥≪≫⋙▷⧺⩵⩶]`;
|
|
35684
35821
|
var wellKnownSymbols = [
|
|
35685
35822
|
"asyncIterator",
|
|
35686
35823
|
"hasInstance",
|
|
@@ -35696,6 +35833,16 @@ var wellKnownSymbols = [
|
|
|
35696
35833
|
"toStringTag",
|
|
35697
35834
|
"unscopables"
|
|
35698
35835
|
];
|
|
35836
|
+
var heregexEscapes = {
|
|
35837
|
+
"\n": "\\n",
|
|
35838
|
+
"\r": "\\r",
|
|
35839
|
+
"\u2028": "\\u2028",
|
|
35840
|
+
"\u2029": "\\u2029",
|
|
35841
|
+
" ": "\\t",
|
|
35842
|
+
"\v": "\\v",
|
|
35843
|
+
"\f": "\\f",
|
|
35844
|
+
" ": " "
|
|
35845
|
+
};
|
|
35699
35846
|
|
|
35700
35847
|
// source/sourcemap.civet
|
|
35701
35848
|
var sourcemap_exports = {};
|