@danielx/civet 0.5.91 → 0.5.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +336 -362
- package/dist/civet +1 -1
- package/dist/esm.mjs +9 -4
- package/dist/main.js +336 -362
- package/dist/main.mjs +336 -362
- package/package.json +4 -1
- package/register.js +9 -0
- package/dist/browser.js.gzip +0 -0
package/dist/main.mjs
CHANGED
|
@@ -472,6 +472,8 @@ var require_lib = __commonJS({
|
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
474
|
function processUnaryExpression(pre, exp, post) {
|
|
475
|
+
if (!(pre.length || post))
|
|
476
|
+
return exp;
|
|
475
477
|
if (post?.token === "?") {
|
|
476
478
|
post = {
|
|
477
479
|
$loc: post.$loc,
|
|
@@ -521,22 +523,10 @@ var require_lib = __commonJS({
|
|
|
521
523
|
};
|
|
522
524
|
}
|
|
523
525
|
}
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
return Object.assign({}, exp, { children });
|
|
529
|
-
} else if (Array.isArray(exp)) {
|
|
530
|
-
const children = [...pre, ...exp];
|
|
531
|
-
if (post)
|
|
532
|
-
children.push(post);
|
|
533
|
-
return { children };
|
|
534
|
-
} else {
|
|
535
|
-
const children = [...pre, exp];
|
|
536
|
-
if (post)
|
|
537
|
-
children.push(post);
|
|
538
|
-
return { children };
|
|
539
|
-
}
|
|
526
|
+
return {
|
|
527
|
+
type: "UnaryExpression",
|
|
528
|
+
children: [...pre, exp, post]
|
|
529
|
+
};
|
|
540
530
|
}
|
|
541
531
|
module.exports = {
|
|
542
532
|
blockWithPrefix,
|
|
@@ -1049,8 +1039,6 @@ ${input.slice(result.pos)}
|
|
|
1049
1039
|
AtThis,
|
|
1050
1040
|
LeftHandSideExpression,
|
|
1051
1041
|
CallExpression,
|
|
1052
|
-
ReturnValue,
|
|
1053
|
-
AfterReturnShorthand,
|
|
1054
1042
|
CallExpressionRest,
|
|
1055
1043
|
OptionalShorthand,
|
|
1056
1044
|
OptionalDot,
|
|
@@ -1063,6 +1051,8 @@ ${input.slice(result.pos)}
|
|
|
1063
1051
|
PropertyGlob,
|
|
1064
1052
|
SuperProperty,
|
|
1065
1053
|
MetaProperty,
|
|
1054
|
+
ReturnValue,
|
|
1055
|
+
AfterReturnShorthand,
|
|
1066
1056
|
Parameters,
|
|
1067
1057
|
NonEmptyParameters,
|
|
1068
1058
|
FunctionRestParameter,
|
|
@@ -1623,106 +1613,106 @@ ${input.slice(result.pos)}
|
|
|
1623
1613
|
var $L7 = $L("--");
|
|
1624
1614
|
var $L8 = $L("=>");
|
|
1625
1615
|
var $L9 = $L(" ");
|
|
1626
|
-
var $L10 = $L("
|
|
1627
|
-
var $L11 = $L("
|
|
1628
|
-
var $L12 = $L("
|
|
1629
|
-
var $L13 = $L("
|
|
1630
|
-
var $L14 = $L("
|
|
1631
|
-
var $L15 = $L("
|
|
1616
|
+
var $L10 = $L(":");
|
|
1617
|
+
var $L11 = $L("implements");
|
|
1618
|
+
var $L12 = $L("<:");
|
|
1619
|
+
var $L13 = $L("#");
|
|
1620
|
+
var $L14 = $L("super");
|
|
1621
|
+
var $L15 = $L("import");
|
|
1632
1622
|
var $L16 = $L("!");
|
|
1633
1623
|
var $L17 = $L("^");
|
|
1634
1624
|
var $L18 = $L("-");
|
|
1635
1625
|
var $L19 = $L("import.meta");
|
|
1636
|
-
var $L20 = $L("
|
|
1637
|
-
var $L21 = $L("
|
|
1638
|
-
var $L22 = $L("
|
|
1639
|
-
var $L23 = $L("
|
|
1640
|
-
var $L24 = $L("
|
|
1641
|
-
var $L25 = $L("
|
|
1642
|
-
var $L26 = $L("
|
|
1643
|
-
var $L27 = $L("
|
|
1644
|
-
var $L28 = $L("
|
|
1645
|
-
var $L29 = $L("
|
|
1646
|
-
var $L30 = $L("
|
|
1647
|
-
var $L31 = $L("
|
|
1648
|
-
var $L32 = $L("
|
|
1649
|
-
var $L33 = $L("
|
|
1650
|
-
var $L34 = $L("
|
|
1651
|
-
var $L35 = $L("
|
|
1652
|
-
var $L36 = $L("
|
|
1653
|
-
var $L37 = $L("
|
|
1654
|
-
var $L38 = $L("
|
|
1655
|
-
var $L39 = $L("
|
|
1656
|
-
var $L40 = $L("
|
|
1657
|
-
var $L41 = $L("
|
|
1658
|
-
var $L42 = $L("
|
|
1659
|
-
var $L43 = $L("
|
|
1660
|
-
var $L44 = $L("
|
|
1661
|
-
var $L45 = $L("
|
|
1662
|
-
var $L46 = $L("
|
|
1663
|
-
var $L47 = $L("
|
|
1664
|
-
var $L48 = $L("
|
|
1665
|
-
var $L49 = $L("
|
|
1666
|
-
var $L50 = $L("
|
|
1667
|
-
var $L51 = $L("
|
|
1668
|
-
var $L52 = $L("
|
|
1669
|
-
var $L53 = $L("
|
|
1670
|
-
var $L54 = $L("
|
|
1671
|
-
var $L55 = $L("
|
|
1672
|
-
var $L56 = $L("
|
|
1673
|
-
var $L57 = $L("
|
|
1674
|
-
var $L58 = $L("
|
|
1675
|
-
var $L59 = $L("
|
|
1676
|
-
var $L60 = $L("
|
|
1677
|
-
var $L61 = $L("
|
|
1678
|
-
var $L62 = $L("
|
|
1679
|
-
var $L63 = $L("
|
|
1680
|
-
var $L64 = $L("
|
|
1681
|
-
var $L65 = $L("
|
|
1682
|
-
var $L66 = $L("
|
|
1683
|
-
var $L67 = $L("
|
|
1684
|
-
var $L68 = $L("
|
|
1685
|
-
var $L69 = $L("
|
|
1686
|
-
var $L70 = $L("
|
|
1687
|
-
var $L71 = $L("
|
|
1688
|
-
var $L72 = $L("
|
|
1689
|
-
var $L73 = $L("
|
|
1690
|
-
var $L74 = $L("
|
|
1691
|
-
var $L75 = $L("
|
|
1692
|
-
var $L76 = $L("
|
|
1693
|
-
var $L77 = $L("
|
|
1694
|
-
var $L78 = $L("
|
|
1695
|
-
var $L79 = $L("
|
|
1696
|
-
var $L80 = $L("
|
|
1697
|
-
var $L81 = $L("
|
|
1698
|
-
var $L82 = $L("
|
|
1699
|
-
var $L83 = $L("
|
|
1700
|
-
var $L84 = $L("
|
|
1701
|
-
var $L85 = $L("
|
|
1702
|
-
var $L86 = $L("
|
|
1703
|
-
var $L87 = $L("
|
|
1704
|
-
var $L88 = $L("
|
|
1705
|
-
var $L89 = $L("
|
|
1706
|
-
var $L90 = $L("
|
|
1707
|
-
var $L91 = $L("
|
|
1708
|
-
var $L92 = $L("
|
|
1709
|
-
var $L93 = $L("
|
|
1710
|
-
var $L94 = $L("
|
|
1711
|
-
var $L95 = $L("
|
|
1712
|
-
var $L96 = $L("
|
|
1713
|
-
var $L97 = $L("
|
|
1714
|
-
var $L98 = $L("
|
|
1715
|
-
var $L99 = $L("
|
|
1716
|
-
var $L100 = $L("
|
|
1717
|
-
var $L101 = $L("
|
|
1718
|
-
var $L102 = $L("
|
|
1719
|
-
var $L103 = $L("
|
|
1720
|
-
var $L104 = $L("
|
|
1721
|
-
var $L105 = $L("
|
|
1722
|
-
var $L106 = $L("
|
|
1723
|
-
var $L107 = $L("
|
|
1724
|
-
var $L108 = $L("
|
|
1725
|
-
var $L109 = $L("
|
|
1626
|
+
var $L20 = $L("return.value");
|
|
1627
|
+
var $L21 = $L(",");
|
|
1628
|
+
var $L22 = $L("->");
|
|
1629
|
+
var $L23 = $L("}");
|
|
1630
|
+
var $L24 = $L("null");
|
|
1631
|
+
var $L25 = $L("true");
|
|
1632
|
+
var $L26 = $L("false");
|
|
1633
|
+
var $L27 = $L("yes");
|
|
1634
|
+
var $L28 = $L("on");
|
|
1635
|
+
var $L29 = $L("no");
|
|
1636
|
+
var $L30 = $L("off");
|
|
1637
|
+
var $L31 = $L(">");
|
|
1638
|
+
var $L32 = $L("]");
|
|
1639
|
+
var $L33 = $L("**=");
|
|
1640
|
+
var $L34 = $L("*=");
|
|
1641
|
+
var $L35 = $L("/=");
|
|
1642
|
+
var $L36 = $L("%=");
|
|
1643
|
+
var $L37 = $L("+=");
|
|
1644
|
+
var $L38 = $L("-=");
|
|
1645
|
+
var $L39 = $L("<<=");
|
|
1646
|
+
var $L40 = $L(">>>=");
|
|
1647
|
+
var $L41 = $L(">>=");
|
|
1648
|
+
var $L42 = $L("&&=");
|
|
1649
|
+
var $L43 = $L("&=");
|
|
1650
|
+
var $L44 = $L("^=");
|
|
1651
|
+
var $L45 = $L("||=");
|
|
1652
|
+
var $L46 = $L("|=");
|
|
1653
|
+
var $L47 = $L("??=");
|
|
1654
|
+
var $L48 = $L("?=");
|
|
1655
|
+
var $L49 = $L("and=");
|
|
1656
|
+
var $L50 = $L("or=");
|
|
1657
|
+
var $L51 = $L("not");
|
|
1658
|
+
var $L52 = $L("**");
|
|
1659
|
+
var $L53 = $L("*");
|
|
1660
|
+
var $L54 = $L("/");
|
|
1661
|
+
var $L55 = $L("%%");
|
|
1662
|
+
var $L56 = $L("%");
|
|
1663
|
+
var $L57 = $L("+");
|
|
1664
|
+
var $L58 = $L("<=");
|
|
1665
|
+
var $L59 = $L(">=");
|
|
1666
|
+
var $L60 = $L("<?");
|
|
1667
|
+
var $L61 = $L("!<?");
|
|
1668
|
+
var $L62 = $L("<<");
|
|
1669
|
+
var $L63 = $L(">>>");
|
|
1670
|
+
var $L64 = $L(">>");
|
|
1671
|
+
var $L65 = $L("!==");
|
|
1672
|
+
var $L66 = $L("!=");
|
|
1673
|
+
var $L67 = $L("isnt");
|
|
1674
|
+
var $L68 = $L("===");
|
|
1675
|
+
var $L69 = $L("==");
|
|
1676
|
+
var $L70 = $L("and");
|
|
1677
|
+
var $L71 = $L("&&");
|
|
1678
|
+
var $L72 = $L("of");
|
|
1679
|
+
var $L73 = $L("or");
|
|
1680
|
+
var $L74 = $L("||");
|
|
1681
|
+
var $L75 = $L("^^");
|
|
1682
|
+
var $L76 = $L("xor");
|
|
1683
|
+
var $L77 = $L("xnor");
|
|
1684
|
+
var $L78 = $L("??");
|
|
1685
|
+
var $L79 = $L("instanceof");
|
|
1686
|
+
var $L80 = $L("in");
|
|
1687
|
+
var $L81 = $L("is");
|
|
1688
|
+
var $L82 = $L("&");
|
|
1689
|
+
var $L83 = $L("|");
|
|
1690
|
+
var $L84 = $L(";");
|
|
1691
|
+
var $L85 = $L("$:");
|
|
1692
|
+
var $L86 = $L("own");
|
|
1693
|
+
var $L87 = $L("break");
|
|
1694
|
+
var $L88 = $L("continue");
|
|
1695
|
+
var $L89 = $L("debugger");
|
|
1696
|
+
var $L90 = $L("assert");
|
|
1697
|
+
var $L91 = $L(":=");
|
|
1698
|
+
var $L92 = $L(".=");
|
|
1699
|
+
var $L93 = $L("/*");
|
|
1700
|
+
var $L94 = $L("*/");
|
|
1701
|
+
var $L95 = $L("\\");
|
|
1702
|
+
var $L96 = $L("[");
|
|
1703
|
+
var $L97 = $L("`");
|
|
1704
|
+
var $L98 = $L("abstract");
|
|
1705
|
+
var $L99 = $L("as");
|
|
1706
|
+
var $L100 = $L("@");
|
|
1707
|
+
var $L101 = $L("@@");
|
|
1708
|
+
var $L102 = $L("async");
|
|
1709
|
+
var $L103 = $L("await");
|
|
1710
|
+
var $L104 = $L("by");
|
|
1711
|
+
var $L105 = $L("case");
|
|
1712
|
+
var $L106 = $L("catch");
|
|
1713
|
+
var $L107 = $L("class");
|
|
1714
|
+
var $L108 = $L(")");
|
|
1715
|
+
var $L109 = $L("#{");
|
|
1726
1716
|
var $L110 = $L("declare");
|
|
1727
1717
|
var $L111 = $L("default");
|
|
1728
1718
|
var $L112 = $L("delete");
|
|
@@ -3116,9 +3106,9 @@ ${input.slice(result.pos)}
|
|
|
3116
3106
|
return result;
|
|
3117
3107
|
}
|
|
3118
3108
|
}
|
|
3119
|
-
var FatArrow$0 = $TS($S(
|
|
3109
|
+
var FatArrow$0 = $TS($S($E(_), $EXPECT($L8, fail, 'FatArrow "=>"')), function($skip, $loc, $0, $1, $2) {
|
|
3120
3110
|
var ws = $1;
|
|
3121
|
-
if (!ws
|
|
3111
|
+
if (!ws)
|
|
3122
3112
|
return " =>";
|
|
3123
3113
|
return $0;
|
|
3124
3114
|
});
|
|
@@ -3470,7 +3460,7 @@ ${input.slice(result.pos)}
|
|
|
3470
3460
|
return result;
|
|
3471
3461
|
}
|
|
3472
3462
|
}
|
|
3473
|
-
var ClassExpression$0 = $S($E(Decorators), $E($S(Abstract, __)), Class, $E(ClassBinding), $E(ClassHeritage), ClassBody);
|
|
3463
|
+
var ClassExpression$0 = $S($E(Decorators), $E($S(Abstract, __)), Class, $N($EXPECT($L10, fail, 'ClassExpression ":"')), $E(ClassBinding), $E(ClassHeritage), ClassBody);
|
|
3474
3464
|
function ClassExpression(state) {
|
|
3475
3465
|
let eventData;
|
|
3476
3466
|
if (state.events) {
|
|
@@ -3669,7 +3659,7 @@ ${input.slice(result.pos)}
|
|
|
3669
3659
|
}
|
|
3670
3660
|
return { children };
|
|
3671
3661
|
});
|
|
3672
|
-
var ImplementsToken$1 = $TS($S(__, $EXPECT($
|
|
3662
|
+
var ImplementsToken$1 = $TS($S(__, $EXPECT($L11, fail, 'ImplementsToken "implements"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
3673
3663
|
$2 = { $loc, token: $2 };
|
|
3674
3664
|
return [$1, $2];
|
|
3675
3665
|
});
|
|
@@ -3695,7 +3685,7 @@ ${input.slice(result.pos)}
|
|
|
3695
3685
|
return result;
|
|
3696
3686
|
}
|
|
3697
3687
|
}
|
|
3698
|
-
var ImplementsShorthand$0 = $TV($EXPECT($
|
|
3688
|
+
var ImplementsShorthand$0 = $TV($EXPECT($L12, fail, 'ImplementsShorthand "<:"'), function($skip, $loc, $0, $1) {
|
|
3699
3689
|
return { $loc, token: "implements " };
|
|
3700
3690
|
});
|
|
3701
3691
|
function ImplementsShorthand(state) {
|
|
@@ -4075,7 +4065,7 @@ ${input.slice(result.pos)}
|
|
|
4075
4065
|
}
|
|
4076
4066
|
}
|
|
4077
4067
|
var ThisLiteral$0 = This;
|
|
4078
|
-
var ThisLiteral$1 = $TS($S(AtThis, $TEXT($S($E($EXPECT($
|
|
4068
|
+
var ThisLiteral$1 = $TS($S(AtThis, $TEXT($S($E($EXPECT($L13, fail, 'ThisLiteral "#"')), IdentifierName))), function($skip, $loc, $0, $1, $2) {
|
|
4079
4069
|
var at = $1;
|
|
4080
4070
|
var id = $2;
|
|
4081
4071
|
return [at, ".", id];
|
|
@@ -4129,11 +4119,8 @@ ${input.slice(result.pos)}
|
|
|
4129
4119
|
return result;
|
|
4130
4120
|
}
|
|
4131
4121
|
}
|
|
4132
|
-
var LeftHandSideExpression$0 = $
|
|
4133
|
-
|
|
4134
|
-
return $0;
|
|
4135
|
-
return $2;
|
|
4136
|
-
});
|
|
4122
|
+
var LeftHandSideExpression$0 = $S($P($S(New, $N($C($EXPECT($L5, fail, 'LeftHandSideExpression "."'), $EXPECT($L10, fail, 'LeftHandSideExpression ":"'))), __)), CallExpression, $E(TypeArguments));
|
|
4123
|
+
var LeftHandSideExpression$1 = CallExpression;
|
|
4137
4124
|
function LeftHandSideExpression(state) {
|
|
4138
4125
|
let eventData;
|
|
4139
4126
|
if (state.events) {
|
|
@@ -4145,33 +4132,32 @@ ${input.slice(result.pos)}
|
|
|
4145
4132
|
}
|
|
4146
4133
|
}
|
|
4147
4134
|
if (state.tokenize) {
|
|
4148
|
-
const result = $TOKEN("LeftHandSideExpression", state, LeftHandSideExpression$0(state));
|
|
4135
|
+
const result = $TOKEN("LeftHandSideExpression", state, LeftHandSideExpression$0(state) || LeftHandSideExpression$1(state));
|
|
4149
4136
|
if (state.events)
|
|
4150
4137
|
state.events.exit?.("LeftHandSideExpression", state, result, eventData);
|
|
4151
4138
|
return result;
|
|
4152
4139
|
} else {
|
|
4153
|
-
const result = LeftHandSideExpression$0(state);
|
|
4140
|
+
const result = LeftHandSideExpression$0(state) || LeftHandSideExpression$1(state);
|
|
4154
4141
|
if (state.events)
|
|
4155
4142
|
state.events.exit?.("LeftHandSideExpression", state, result, eventData);
|
|
4156
4143
|
return result;
|
|
4157
4144
|
}
|
|
4158
4145
|
}
|
|
4159
|
-
var CallExpression$0 = $TS($S($EXPECT($
|
|
4146
|
+
var CallExpression$0 = $TS($S($EXPECT($L14, fail, 'CallExpression "super"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
|
|
4160
4147
|
var rest = $3;
|
|
4161
4148
|
return module.processGlob({
|
|
4162
4149
|
type: "CallExpression",
|
|
4163
4150
|
children: [$1, ...$2, ...rest.flat()]
|
|
4164
4151
|
});
|
|
4165
4152
|
});
|
|
4166
|
-
var CallExpression$1 = $TS($S($EXPECT($
|
|
4153
|
+
var CallExpression$1 = $TS($S($EXPECT($L15, fail, 'CallExpression "import"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
|
|
4167
4154
|
var rest = $3;
|
|
4168
4155
|
return module.processGlob({
|
|
4169
4156
|
type: "CallExpression",
|
|
4170
4157
|
children: [$1, ...$2, ...rest.flat()]
|
|
4171
4158
|
});
|
|
4172
4159
|
});
|
|
4173
|
-
var CallExpression$2 =
|
|
4174
|
-
var CallExpression$3 = $TS($S(MemberExpression, AllowedTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
|
|
4160
|
+
var CallExpression$2 = $TS($S(MemberExpression, AllowedTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
|
|
4175
4161
|
var member = $1;
|
|
4176
4162
|
var trailing = $2;
|
|
4177
4163
|
var rest = $3;
|
|
@@ -4195,69 +4181,17 @@ ${input.slice(result.pos)}
|
|
|
4195
4181
|
}
|
|
4196
4182
|
}
|
|
4197
4183
|
if (state.tokenize) {
|
|
4198
|
-
const result = $TOKEN("CallExpression", state, CallExpression$0(state) || CallExpression$1(state) || CallExpression$2(state)
|
|
4184
|
+
const result = $TOKEN("CallExpression", state, CallExpression$0(state) || CallExpression$1(state) || CallExpression$2(state));
|
|
4199
4185
|
if (state.events)
|
|
4200
4186
|
state.events.exit?.("CallExpression", state, result, eventData);
|
|
4201
4187
|
return result;
|
|
4202
4188
|
} else {
|
|
4203
|
-
const result = CallExpression$0(state) || CallExpression$1(state) || CallExpression$2(state)
|
|
4189
|
+
const result = CallExpression$0(state) || CallExpression$1(state) || CallExpression$2(state);
|
|
4204
4190
|
if (state.events)
|
|
4205
4191
|
state.events.exit?.("CallExpression", state, result, eventData);
|
|
4206
4192
|
return result;
|
|
4207
4193
|
}
|
|
4208
4194
|
}
|
|
4209
|
-
var ReturnValue$0 = $TV($C($S($EXPECT($L15, fail, 'ReturnValue "return.value"'), NonIdContinue), $S(Return, $Y(AfterReturnShorthand))), function($skip, $loc, $0, $1) {
|
|
4210
|
-
return { type: "ReturnValue", children: [$1[0]] };
|
|
4211
|
-
});
|
|
4212
|
-
function ReturnValue(state) {
|
|
4213
|
-
let eventData;
|
|
4214
|
-
if (state.events) {
|
|
4215
|
-
const result = state.events.enter?.("ReturnValue", state);
|
|
4216
|
-
if (result) {
|
|
4217
|
-
if (result.cache)
|
|
4218
|
-
return result.cache;
|
|
4219
|
-
eventData = result.data;
|
|
4220
|
-
}
|
|
4221
|
-
}
|
|
4222
|
-
if (state.tokenize) {
|
|
4223
|
-
const result = $TOKEN("ReturnValue", state, ReturnValue$0(state));
|
|
4224
|
-
if (state.events)
|
|
4225
|
-
state.events.exit?.("ReturnValue", state, result, eventData);
|
|
4226
|
-
return result;
|
|
4227
|
-
} else {
|
|
4228
|
-
const result = ReturnValue$0(state);
|
|
4229
|
-
if (state.events)
|
|
4230
|
-
state.events.exit?.("ReturnValue", state, result, eventData);
|
|
4231
|
-
return result;
|
|
4232
|
-
}
|
|
4233
|
-
}
|
|
4234
|
-
var AfterReturnShorthand$0 = WAssignmentOp;
|
|
4235
|
-
var AfterReturnShorthand$1 = UpdateExpressionSymbol;
|
|
4236
|
-
var AfterReturnShorthand$2 = TypeSuffix;
|
|
4237
|
-
var AfterReturnShorthand$3 = $S(__, LetAssignment);
|
|
4238
|
-
var AfterReturnShorthand$4 = $S(__, ConstAssignment);
|
|
4239
|
-
function AfterReturnShorthand(state) {
|
|
4240
|
-
let eventData;
|
|
4241
|
-
if (state.events) {
|
|
4242
|
-
const result = state.events.enter?.("AfterReturnShorthand", state);
|
|
4243
|
-
if (result) {
|
|
4244
|
-
if (result.cache)
|
|
4245
|
-
return result.cache;
|
|
4246
|
-
eventData = result.data;
|
|
4247
|
-
}
|
|
4248
|
-
}
|
|
4249
|
-
if (state.tokenize) {
|
|
4250
|
-
const result = $TOKEN("AfterReturnShorthand", state, AfterReturnShorthand$0(state) || AfterReturnShorthand$1(state) || AfterReturnShorthand$2(state) || AfterReturnShorthand$3(state) || AfterReturnShorthand$4(state));
|
|
4251
|
-
if (state.events)
|
|
4252
|
-
state.events.exit?.("AfterReturnShorthand", state, result, eventData);
|
|
4253
|
-
return result;
|
|
4254
|
-
} else {
|
|
4255
|
-
const result = AfterReturnShorthand$0(state) || AfterReturnShorthand$1(state) || AfterReturnShorthand$2(state) || AfterReturnShorthand$3(state) || AfterReturnShorthand$4(state);
|
|
4256
|
-
if (state.events)
|
|
4257
|
-
state.events.exit?.("AfterReturnShorthand", state, result, eventData);
|
|
4258
|
-
return result;
|
|
4259
|
-
}
|
|
4260
|
-
}
|
|
4261
4195
|
var CallExpressionRest$0 = MemberExpressionRest;
|
|
4262
4196
|
var CallExpressionRest$1 = $TV($C(TemplateLiteral, StringLiteral), function($skip, $loc, $0, $1) {
|
|
4263
4197
|
if ($1.type === "StringLiteral") {
|
|
@@ -4668,8 +4602,8 @@ ${input.slice(result.pos)}
|
|
|
4668
4602
|
return result;
|
|
4669
4603
|
}
|
|
4670
4604
|
}
|
|
4671
|
-
var SuperProperty$0 = $S($EXPECT($
|
|
4672
|
-
var SuperProperty$1 = $S($EXPECT($
|
|
4605
|
+
var SuperProperty$0 = $S($EXPECT($L14, fail, 'SuperProperty "super"'), MemberBracketContent);
|
|
4606
|
+
var SuperProperty$1 = $S($EXPECT($L14, fail, 'SuperProperty "super"'), $N($C(QuestionMark, NonNullAssertion)), PropertyAccess);
|
|
4673
4607
|
function SuperProperty(state) {
|
|
4674
4608
|
let eventData;
|
|
4675
4609
|
if (state.events) {
|
|
@@ -4696,6 +4630,7 @@ ${input.slice(result.pos)}
|
|
|
4696
4630
|
var MetaProperty$1 = $TS($S($EXPECT($L19, fail, 'MetaProperty "import.meta"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
4697
4631
|
return { $loc, token: $1 };
|
|
4698
4632
|
});
|
|
4633
|
+
var MetaProperty$2 = ReturnValue;
|
|
4699
4634
|
function MetaProperty(state) {
|
|
4700
4635
|
let eventData;
|
|
4701
4636
|
if (state.events) {
|
|
@@ -4707,22 +4642,77 @@ ${input.slice(result.pos)}
|
|
|
4707
4642
|
}
|
|
4708
4643
|
}
|
|
4709
4644
|
if (state.tokenize) {
|
|
4710
|
-
const result = $TOKEN("MetaProperty", state, MetaProperty$0(state) || MetaProperty$1(state));
|
|
4645
|
+
const result = $TOKEN("MetaProperty", state, MetaProperty$0(state) || MetaProperty$1(state) || MetaProperty$2(state));
|
|
4711
4646
|
if (state.events)
|
|
4712
4647
|
state.events.exit?.("MetaProperty", state, result, eventData);
|
|
4713
4648
|
return result;
|
|
4714
4649
|
} else {
|
|
4715
|
-
const result = MetaProperty$0(state) || MetaProperty$1(state);
|
|
4650
|
+
const result = MetaProperty$0(state) || MetaProperty$1(state) || MetaProperty$2(state);
|
|
4716
4651
|
if (state.events)
|
|
4717
4652
|
state.events.exit?.("MetaProperty", state, result, eventData);
|
|
4718
4653
|
return result;
|
|
4719
4654
|
}
|
|
4720
4655
|
}
|
|
4656
|
+
var ReturnValue$0 = $TV($C($S($EXPECT($L20, fail, 'ReturnValue "return.value"'), NonIdContinue), $S(Return, $Y(AfterReturnShorthand))), function($skip, $loc, $0, $1) {
|
|
4657
|
+
return { type: "ReturnValue", children: [$1[0]] };
|
|
4658
|
+
});
|
|
4659
|
+
function ReturnValue(state) {
|
|
4660
|
+
let eventData;
|
|
4661
|
+
if (state.events) {
|
|
4662
|
+
const result = state.events.enter?.("ReturnValue", state);
|
|
4663
|
+
if (result) {
|
|
4664
|
+
if (result.cache)
|
|
4665
|
+
return result.cache;
|
|
4666
|
+
eventData = result.data;
|
|
4667
|
+
}
|
|
4668
|
+
}
|
|
4669
|
+
if (state.tokenize) {
|
|
4670
|
+
const result = $TOKEN("ReturnValue", state, ReturnValue$0(state));
|
|
4671
|
+
if (state.events)
|
|
4672
|
+
state.events.exit?.("ReturnValue", state, result, eventData);
|
|
4673
|
+
return result;
|
|
4674
|
+
} else {
|
|
4675
|
+
const result = ReturnValue$0(state);
|
|
4676
|
+
if (state.events)
|
|
4677
|
+
state.events.exit?.("ReturnValue", state, result, eventData);
|
|
4678
|
+
return result;
|
|
4679
|
+
}
|
|
4680
|
+
}
|
|
4681
|
+
var AfterReturnShorthand$0 = WAssignmentOp;
|
|
4682
|
+
var AfterReturnShorthand$1 = UpdateExpressionSymbol;
|
|
4683
|
+
var AfterReturnShorthand$2 = TypeSuffix;
|
|
4684
|
+
var AfterReturnShorthand$3 = $S(__, LetAssignment);
|
|
4685
|
+
var AfterReturnShorthand$4 = $S(__, ConstAssignment);
|
|
4686
|
+
function AfterReturnShorthand(state) {
|
|
4687
|
+
let eventData;
|
|
4688
|
+
if (state.events) {
|
|
4689
|
+
const result = state.events.enter?.("AfterReturnShorthand", state);
|
|
4690
|
+
if (result) {
|
|
4691
|
+
if (result.cache)
|
|
4692
|
+
return result.cache;
|
|
4693
|
+
eventData = result.data;
|
|
4694
|
+
}
|
|
4695
|
+
}
|
|
4696
|
+
if (state.tokenize) {
|
|
4697
|
+
const result = $TOKEN("AfterReturnShorthand", state, AfterReturnShorthand$0(state) || AfterReturnShorthand$1(state) || AfterReturnShorthand$2(state) || AfterReturnShorthand$3(state) || AfterReturnShorthand$4(state));
|
|
4698
|
+
if (state.events)
|
|
4699
|
+
state.events.exit?.("AfterReturnShorthand", state, result, eventData);
|
|
4700
|
+
return result;
|
|
4701
|
+
} else {
|
|
4702
|
+
const result = AfterReturnShorthand$0(state) || AfterReturnShorthand$1(state) || AfterReturnShorthand$2(state) || AfterReturnShorthand$3(state) || AfterReturnShorthand$4(state);
|
|
4703
|
+
if (state.events)
|
|
4704
|
+
state.events.exit?.("AfterReturnShorthand", state, result, eventData);
|
|
4705
|
+
return result;
|
|
4706
|
+
}
|
|
4707
|
+
}
|
|
4721
4708
|
var Parameters$0 = NonEmptyParameters;
|
|
4722
|
-
var Parameters$1 = $
|
|
4709
|
+
var Parameters$1 = $TS($S($E(TypeParameters), Loc), function($skip, $loc, $0, $1, $2) {
|
|
4710
|
+
var tp = $1;
|
|
4711
|
+
var p = $2;
|
|
4723
4712
|
return {
|
|
4724
4713
|
type: "Parameters",
|
|
4725
|
-
children: [{ $loc, token: "()" }],
|
|
4714
|
+
children: [tp, { $loc: p.$loc, token: "()" }],
|
|
4715
|
+
tp,
|
|
4726
4716
|
names: [],
|
|
4727
4717
|
implicit: true
|
|
4728
4718
|
};
|
|
@@ -4768,9 +4758,8 @@ ${input.slice(result.pos)}
|
|
|
4768
4758
|
}
|
|
4769
4759
|
let blockPrefix;
|
|
4770
4760
|
if (after.length) {
|
|
4771
|
-
const spliceRef = module.getRef("splice");
|
|
4772
4761
|
blockPrefix = {
|
|
4773
|
-
children: ["[", insertTrimmingSpace(after, ""), "] = ",
|
|
4762
|
+
children: ["[", insertTrimmingSpace(after, ""), "] = ", restIdentifier, ".splice(-", after.length.toString(), ")"],
|
|
4774
4763
|
names: after.flatMap((p) => p.names)
|
|
4775
4764
|
};
|
|
4776
4765
|
}
|
|
@@ -5503,7 +5492,7 @@ ${input.slice(result.pos)}
|
|
|
5503
5492
|
children: $0
|
|
5504
5493
|
};
|
|
5505
5494
|
});
|
|
5506
|
-
var BindingElement$2 = $TV($Y($S($E(_), $EXPECT($
|
|
5495
|
+
var BindingElement$2 = $TV($Y($S($E(_), $EXPECT($L21, fail, 'BindingElement ","'))), function($skip, $loc, $0, $1) {
|
|
5507
5496
|
return {
|
|
5508
5497
|
children: [{
|
|
5509
5498
|
type: "ElisionElement",
|
|
@@ -6052,7 +6041,7 @@ ${input.slice(result.pos)}
|
|
|
6052
6041
|
children: [ws, binding]
|
|
6053
6042
|
};
|
|
6054
6043
|
});
|
|
6055
|
-
var MatchingElement$3 = $TV($Y($S($E(_), $EXPECT($
|
|
6044
|
+
var MatchingElement$3 = $TV($Y($S($E(_), $EXPECT($L21, fail, 'MatchingElement ","'))), function($skip, $loc, $0, $1) {
|
|
6056
6045
|
return {
|
|
6057
6046
|
children: [{
|
|
6058
6047
|
type: "ElisionElement",
|
|
@@ -6154,7 +6143,7 @@ ${input.slice(result.pos)}
|
|
|
6154
6143
|
async,
|
|
6155
6144
|
generator,
|
|
6156
6145
|
block: null,
|
|
6157
|
-
children: !parameters.implicit ?
|
|
6146
|
+
children: !parameters.implicit ? [async, func, generator, wid, w, parameters, suffix] : [async, func, generator, wid, parameters, w, suffix]
|
|
6158
6147
|
};
|
|
6159
6148
|
});
|
|
6160
6149
|
function FunctionSignature(state) {
|
|
@@ -6467,7 +6456,7 @@ ${input.slice(result.pos)}
|
|
|
6467
6456
|
return result;
|
|
6468
6457
|
}
|
|
6469
6458
|
}
|
|
6470
|
-
var ThinArrowFunction$0 = $TS($S($E($S(Async, _)), Parameters, $E(ReturnTypeSuffix), $
|
|
6459
|
+
var ThinArrowFunction$0 = $TS($S($E($S(Async, _)), Parameters, $E(ReturnTypeSuffix), $E(_), Arrow, BracedOrEmptyBlock), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
6471
6460
|
var async = $1;
|
|
6472
6461
|
var parameters = $2;
|
|
6473
6462
|
var suffix = $3;
|
|
@@ -6521,7 +6510,7 @@ ${input.slice(result.pos)}
|
|
|
6521
6510
|
return result;
|
|
6522
6511
|
}
|
|
6523
6512
|
}
|
|
6524
|
-
var Arrow$0 = $TV($EXPECT($
|
|
6513
|
+
var Arrow$0 = $TV($EXPECT($L22, fail, 'Arrow "->"'), function($skip, $loc, $0, $1) {
|
|
6525
6514
|
return { $loc, token: $1 };
|
|
6526
6515
|
});
|
|
6527
6516
|
function Arrow(state) {
|
|
@@ -6987,7 +6976,7 @@ ${input.slice(result.pos)}
|
|
|
6987
6976
|
children: [$1, expressions]
|
|
6988
6977
|
};
|
|
6989
6978
|
});
|
|
6990
|
-
var BracedContent$2 = $TV($Y($S(__, $EXPECT($
|
|
6979
|
+
var BracedContent$2 = $TV($Y($S(__, $EXPECT($L23, fail, 'BracedContent "}"'))), function($skip, $loc, $0, $1) {
|
|
6991
6980
|
const expressions = [];
|
|
6992
6981
|
return {
|
|
6993
6982
|
type: "BlockStatement",
|
|
@@ -7168,7 +7157,7 @@ ${input.slice(result.pos)}
|
|
|
7168
7157
|
return result;
|
|
7169
7158
|
}
|
|
7170
7159
|
}
|
|
7171
|
-
var NullLiteral$0 = $TS($S($EXPECT($
|
|
7160
|
+
var NullLiteral$0 = $TS($S($EXPECT($L24, fail, 'NullLiteral "null"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
7172
7161
|
return { $loc, token: $1 };
|
|
7173
7162
|
});
|
|
7174
7163
|
function NullLiteral(state) {
|
|
@@ -7196,7 +7185,7 @@ ${input.slice(result.pos)}
|
|
|
7196
7185
|
var BooleanLiteral$0 = $T($S(CoffeeBooleansEnabled, CoffeeScriptBooleanLiteral), function(value) {
|
|
7197
7186
|
return value[1];
|
|
7198
7187
|
});
|
|
7199
|
-
var BooleanLiteral$1 = $TS($S($C($EXPECT($
|
|
7188
|
+
var BooleanLiteral$1 = $TS($S($C($EXPECT($L25, fail, 'BooleanLiteral "true"'), $EXPECT($L26, fail, 'BooleanLiteral "false"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
7200
7189
|
return { $loc, token: $1 };
|
|
7201
7190
|
});
|
|
7202
7191
|
function BooleanLiteral(state) {
|
|
@@ -7221,10 +7210,10 @@ ${input.slice(result.pos)}
|
|
|
7221
7210
|
return result;
|
|
7222
7211
|
}
|
|
7223
7212
|
}
|
|
7224
|
-
var CoffeeScriptBooleanLiteral$0 = $TS($S($C($EXPECT($
|
|
7213
|
+
var CoffeeScriptBooleanLiteral$0 = $TS($S($C($EXPECT($L27, fail, 'CoffeeScriptBooleanLiteral "yes"'), $EXPECT($L28, fail, 'CoffeeScriptBooleanLiteral "on"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
7225
7214
|
return { $loc, token: "true" };
|
|
7226
7215
|
});
|
|
7227
|
-
var CoffeeScriptBooleanLiteral$1 = $TS($S($C($EXPECT($
|
|
7216
|
+
var CoffeeScriptBooleanLiteral$1 = $TS($S($C($EXPECT($L29, fail, 'CoffeeScriptBooleanLiteral "no"'), $EXPECT($L30, fail, 'CoffeeScriptBooleanLiteral "off"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
7228
7217
|
return { $loc, token: "false" };
|
|
7229
7218
|
});
|
|
7230
7219
|
function CoffeeScriptBooleanLiteral(state) {
|
|
@@ -7330,7 +7319,7 @@ ${input.slice(result.pos)}
|
|
|
7330
7319
|
return result;
|
|
7331
7320
|
}
|
|
7332
7321
|
}
|
|
7333
|
-
var UpcomingAssignment$0 = $Y($S(__, $EXPECT($L2, fail, 'UpcomingAssignment "="'), $N($C($EXPECT($L2, fail, 'UpcomingAssignment "="'), $EXPECT($
|
|
7322
|
+
var UpcomingAssignment$0 = $Y($S(__, $EXPECT($L2, fail, 'UpcomingAssignment "="'), $N($C($EXPECT($L2, fail, 'UpcomingAssignment "="'), $EXPECT($L31, fail, 'UpcomingAssignment ">"')))));
|
|
7334
7323
|
function UpcomingAssignment(state) {
|
|
7335
7324
|
let eventData;
|
|
7336
7325
|
if (state.events) {
|
|
@@ -7596,7 +7585,7 @@ ${input.slice(result.pos)}
|
|
|
7596
7585
|
}
|
|
7597
7586
|
}
|
|
7598
7587
|
var ArrayElementDelimiter$0 = $S(__, Comma);
|
|
7599
|
-
var ArrayElementDelimiter$1 = $Y($S(__, $EXPECT($
|
|
7588
|
+
var ArrayElementDelimiter$1 = $Y($S(__, $EXPECT($L32, fail, 'ArrayElementDelimiter "]"')));
|
|
7600
7589
|
var ArrayElementDelimiter$2 = $T($S($Y(EOS), InsertComma), function(value) {
|
|
7601
7590
|
return value[1];
|
|
7602
7591
|
});
|
|
@@ -8076,7 +8065,7 @@ ${input.slice(result.pos)}
|
|
|
8076
8065
|
}
|
|
8077
8066
|
}
|
|
8078
8067
|
var ObjectPropertyDelimiter$0 = $S($E(_), Comma);
|
|
8079
|
-
var ObjectPropertyDelimiter$1 = $Y($S(__, $EXPECT($
|
|
8068
|
+
var ObjectPropertyDelimiter$1 = $Y($S(__, $EXPECT($L23, fail, 'ObjectPropertyDelimiter "}"')));
|
|
8080
8069
|
var ObjectPropertyDelimiter$2 = $T($S($Y(EOS), InsertComma), function(value) {
|
|
8081
8070
|
return value[1];
|
|
8082
8071
|
});
|
|
@@ -8539,7 +8528,7 @@ ${input.slice(result.pos)}
|
|
|
8539
8528
|
return result;
|
|
8540
8529
|
}
|
|
8541
8530
|
}
|
|
8542
|
-
var MethodModifier$0 = $TS($S(GetOrSet, $E(_)), function($skip, $loc, $0, $1, $2) {
|
|
8531
|
+
var MethodModifier$0 = $TS($S(GetOrSet, $E(_), $Y(ClassElementName)), function($skip, $loc, $0, $1, $2, $3) {
|
|
8543
8532
|
var kind = $1;
|
|
8544
8533
|
return {
|
|
8545
8534
|
type: "MethodModifier",
|
|
@@ -8667,7 +8656,7 @@ ${input.slice(result.pos)}
|
|
|
8667
8656
|
return result;
|
|
8668
8657
|
}
|
|
8669
8658
|
}
|
|
8670
|
-
var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($
|
|
8659
|
+
var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($L13, fail, 'PrivateIdentifier "#"'), IdentifierName)), function($skip, $loc, $0, $1) {
|
|
8671
8660
|
return {
|
|
8672
8661
|
type: "Identifier",
|
|
8673
8662
|
name: $0,
|
|
@@ -8798,22 +8787,22 @@ ${input.slice(result.pos)}
|
|
|
8798
8787
|
return result;
|
|
8799
8788
|
}
|
|
8800
8789
|
}
|
|
8801
|
-
var AssignmentOpSymbol$0 = $EXPECT($
|
|
8802
|
-
var AssignmentOpSymbol$1 = $EXPECT($
|
|
8803
|
-
var AssignmentOpSymbol$2 = $EXPECT($
|
|
8804
|
-
var AssignmentOpSymbol$3 = $EXPECT($
|
|
8805
|
-
var AssignmentOpSymbol$4 = $EXPECT($
|
|
8806
|
-
var AssignmentOpSymbol$5 = $EXPECT($
|
|
8807
|
-
var AssignmentOpSymbol$6 = $EXPECT($
|
|
8808
|
-
var AssignmentOpSymbol$7 = $EXPECT($
|
|
8809
|
-
var AssignmentOpSymbol$8 = $EXPECT($
|
|
8810
|
-
var AssignmentOpSymbol$9 = $EXPECT($
|
|
8811
|
-
var AssignmentOpSymbol$10 = $EXPECT($
|
|
8812
|
-
var AssignmentOpSymbol$11 = $EXPECT($
|
|
8813
|
-
var AssignmentOpSymbol$12 = $EXPECT($
|
|
8814
|
-
var AssignmentOpSymbol$13 = $EXPECT($
|
|
8815
|
-
var AssignmentOpSymbol$14 = $EXPECT($
|
|
8816
|
-
var AssignmentOpSymbol$15 = $T($EXPECT($
|
|
8790
|
+
var AssignmentOpSymbol$0 = $EXPECT($L33, fail, 'AssignmentOpSymbol "**="');
|
|
8791
|
+
var AssignmentOpSymbol$1 = $EXPECT($L34, fail, 'AssignmentOpSymbol "*="');
|
|
8792
|
+
var AssignmentOpSymbol$2 = $EXPECT($L35, fail, 'AssignmentOpSymbol "/="');
|
|
8793
|
+
var AssignmentOpSymbol$3 = $EXPECT($L36, fail, 'AssignmentOpSymbol "%="');
|
|
8794
|
+
var AssignmentOpSymbol$4 = $EXPECT($L37, fail, 'AssignmentOpSymbol "+="');
|
|
8795
|
+
var AssignmentOpSymbol$5 = $EXPECT($L38, fail, 'AssignmentOpSymbol "-="');
|
|
8796
|
+
var AssignmentOpSymbol$6 = $EXPECT($L39, fail, 'AssignmentOpSymbol "<<="');
|
|
8797
|
+
var AssignmentOpSymbol$7 = $EXPECT($L40, fail, 'AssignmentOpSymbol ">>>="');
|
|
8798
|
+
var AssignmentOpSymbol$8 = $EXPECT($L41, fail, 'AssignmentOpSymbol ">>="');
|
|
8799
|
+
var AssignmentOpSymbol$9 = $EXPECT($L42, fail, 'AssignmentOpSymbol "&&="');
|
|
8800
|
+
var AssignmentOpSymbol$10 = $EXPECT($L43, fail, 'AssignmentOpSymbol "&="');
|
|
8801
|
+
var AssignmentOpSymbol$11 = $EXPECT($L44, fail, 'AssignmentOpSymbol "^="');
|
|
8802
|
+
var AssignmentOpSymbol$12 = $EXPECT($L45, fail, 'AssignmentOpSymbol "||="');
|
|
8803
|
+
var AssignmentOpSymbol$13 = $EXPECT($L46, fail, 'AssignmentOpSymbol "|="');
|
|
8804
|
+
var AssignmentOpSymbol$14 = $EXPECT($L47, fail, 'AssignmentOpSymbol "??="');
|
|
8805
|
+
var AssignmentOpSymbol$15 = $T($EXPECT($L48, fail, 'AssignmentOpSymbol "?="'), function(value) {
|
|
8817
8806
|
return "??=";
|
|
8818
8807
|
});
|
|
8819
8808
|
var AssignmentOpSymbol$16 = $T($S($EXPECT($L2, fail, 'AssignmentOpSymbol "="'), $N($EXPECT($L2, fail, 'AssignmentOpSymbol "="'))), function(value) {
|
|
@@ -8844,10 +8833,10 @@ ${input.slice(result.pos)}
|
|
|
8844
8833
|
return result;
|
|
8845
8834
|
}
|
|
8846
8835
|
}
|
|
8847
|
-
var CoffeeWordAssignmentOp$0 = $T($EXPECT($
|
|
8836
|
+
var CoffeeWordAssignmentOp$0 = $T($EXPECT($L49, fail, 'CoffeeWordAssignmentOp "and="'), function(value) {
|
|
8848
8837
|
return "&&=";
|
|
8849
8838
|
});
|
|
8850
|
-
var CoffeeWordAssignmentOp$1 = $T($EXPECT($
|
|
8839
|
+
var CoffeeWordAssignmentOp$1 = $T($EXPECT($L50, fail, 'CoffeeWordAssignmentOp "or="'), function(value) {
|
|
8851
8840
|
return "||=";
|
|
8852
8841
|
});
|
|
8853
8842
|
function CoffeeWordAssignmentOp(state) {
|
|
@@ -8886,7 +8875,7 @@ ${input.slice(result.pos)}
|
|
|
8886
8875
|
special: true
|
|
8887
8876
|
};
|
|
8888
8877
|
});
|
|
8889
|
-
var BinaryOp$2 = $TS($S($EXPECT($
|
|
8878
|
+
var BinaryOp$2 = $TS($S($EXPECT($L51, fail, 'BinaryOp "not"'), NonIdContinue, __, Identifier), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
8890
8879
|
var id = $4;
|
|
8891
8880
|
if (!module.operators.has(id.name))
|
|
8892
8881
|
return $skip;
|
|
@@ -8918,21 +8907,21 @@ ${input.slice(result.pos)}
|
|
|
8918
8907
|
return result;
|
|
8919
8908
|
}
|
|
8920
8909
|
}
|
|
8921
|
-
var BinaryOpSymbol$0 = $EXPECT($
|
|
8922
|
-
var BinaryOpSymbol$1 = $EXPECT($
|
|
8923
|
-
var BinaryOpSymbol$2 = $EXPECT($
|
|
8924
|
-
var BinaryOpSymbol$3 = $TV($EXPECT($
|
|
8910
|
+
var BinaryOpSymbol$0 = $EXPECT($L52, fail, 'BinaryOpSymbol "**"');
|
|
8911
|
+
var BinaryOpSymbol$1 = $EXPECT($L53, fail, 'BinaryOpSymbol "*"');
|
|
8912
|
+
var BinaryOpSymbol$2 = $EXPECT($L54, fail, 'BinaryOpSymbol "/"');
|
|
8913
|
+
var BinaryOpSymbol$3 = $TV($EXPECT($L55, fail, 'BinaryOpSymbol "%%"'), function($skip, $loc, $0, $1) {
|
|
8925
8914
|
return {
|
|
8926
8915
|
call: module.getRef("modulo"),
|
|
8927
8916
|
special: true
|
|
8928
8917
|
};
|
|
8929
8918
|
});
|
|
8930
|
-
var BinaryOpSymbol$4 = $EXPECT($
|
|
8931
|
-
var BinaryOpSymbol$5 = $EXPECT($
|
|
8919
|
+
var BinaryOpSymbol$4 = $EXPECT($L56, fail, 'BinaryOpSymbol "%"');
|
|
8920
|
+
var BinaryOpSymbol$5 = $EXPECT($L57, fail, 'BinaryOpSymbol "+"');
|
|
8932
8921
|
var BinaryOpSymbol$6 = $EXPECT($L18, fail, 'BinaryOpSymbol "-"');
|
|
8933
|
-
var BinaryOpSymbol$7 = $EXPECT($
|
|
8934
|
-
var BinaryOpSymbol$8 = $EXPECT($
|
|
8935
|
-
var BinaryOpSymbol$9 = $TV($EXPECT($
|
|
8922
|
+
var BinaryOpSymbol$7 = $EXPECT($L58, fail, 'BinaryOpSymbol "<="');
|
|
8923
|
+
var BinaryOpSymbol$8 = $EXPECT($L59, fail, 'BinaryOpSymbol ">="');
|
|
8924
|
+
var BinaryOpSymbol$9 = $TV($EXPECT($L60, fail, 'BinaryOpSymbol "<?"'), function($skip, $loc, $0, $1) {
|
|
8936
8925
|
return {
|
|
8937
8926
|
$loc,
|
|
8938
8927
|
token: "instanceof",
|
|
@@ -8940,7 +8929,7 @@ ${input.slice(result.pos)}
|
|
|
8940
8929
|
special: true
|
|
8941
8930
|
};
|
|
8942
8931
|
});
|
|
8943
|
-
var BinaryOpSymbol$10 = $TV($EXPECT($
|
|
8932
|
+
var BinaryOpSymbol$10 = $TV($EXPECT($L61, fail, 'BinaryOpSymbol "!<?"'), function($skip, $loc, $0, $1) {
|
|
8944
8933
|
return {
|
|
8945
8934
|
$loc,
|
|
8946
8935
|
token: "instanceof",
|
|
@@ -8949,58 +8938,58 @@ ${input.slice(result.pos)}
|
|
|
8949
8938
|
negated: true
|
|
8950
8939
|
};
|
|
8951
8940
|
});
|
|
8952
|
-
var BinaryOpSymbol$11 = $EXPECT($
|
|
8941
|
+
var BinaryOpSymbol$11 = $EXPECT($L62, fail, 'BinaryOpSymbol "<<"');
|
|
8953
8942
|
var BinaryOpSymbol$12 = $TR($EXPECT($R7, fail, "BinaryOpSymbol /<(?!\\p{ID_Start}|[_$])/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
8954
8943
|
return "<";
|
|
8955
8944
|
});
|
|
8956
|
-
var BinaryOpSymbol$13 = $EXPECT($
|
|
8957
|
-
var BinaryOpSymbol$14 = $EXPECT($
|
|
8958
|
-
var BinaryOpSymbol$15 = $EXPECT($
|
|
8959
|
-
var BinaryOpSymbol$16 = $EXPECT($
|
|
8960
|
-
var BinaryOpSymbol$17 = $TV($EXPECT($
|
|
8945
|
+
var BinaryOpSymbol$13 = $EXPECT($L63, fail, 'BinaryOpSymbol ">>>"');
|
|
8946
|
+
var BinaryOpSymbol$14 = $EXPECT($L64, fail, 'BinaryOpSymbol ">>"');
|
|
8947
|
+
var BinaryOpSymbol$15 = $EXPECT($L31, fail, 'BinaryOpSymbol ">"');
|
|
8948
|
+
var BinaryOpSymbol$16 = $EXPECT($L65, fail, 'BinaryOpSymbol "!=="');
|
|
8949
|
+
var BinaryOpSymbol$17 = $TV($EXPECT($L66, fail, 'BinaryOpSymbol "!="'), function($skip, $loc, $0, $1) {
|
|
8961
8950
|
if (module.config.coffeeEq)
|
|
8962
8951
|
return "!==";
|
|
8963
8952
|
return $1;
|
|
8964
8953
|
});
|
|
8965
|
-
var BinaryOpSymbol$18 = $TS($S($EXPECT($
|
|
8954
|
+
var BinaryOpSymbol$18 = $TS($S($EXPECT($L67, fail, 'BinaryOpSymbol "isnt"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
8966
8955
|
if (module.config.coffeeIsnt)
|
|
8967
8956
|
return "!==";
|
|
8968
8957
|
return $skip;
|
|
8969
8958
|
});
|
|
8970
|
-
var BinaryOpSymbol$19 = $EXPECT($
|
|
8971
|
-
var BinaryOpSymbol$20 = $TV($EXPECT($
|
|
8959
|
+
var BinaryOpSymbol$19 = $EXPECT($L68, fail, 'BinaryOpSymbol "==="');
|
|
8960
|
+
var BinaryOpSymbol$20 = $TV($EXPECT($L69, fail, 'BinaryOpSymbol "=="'), function($skip, $loc, $0, $1) {
|
|
8972
8961
|
if (module.config.coffeeEq)
|
|
8973
8962
|
return "===";
|
|
8974
8963
|
return $1;
|
|
8975
8964
|
});
|
|
8976
|
-
var BinaryOpSymbol$21 = $T($S($EXPECT($
|
|
8965
|
+
var BinaryOpSymbol$21 = $T($S($EXPECT($L70, fail, 'BinaryOpSymbol "and"'), NonIdContinue), function(value) {
|
|
8977
8966
|
return "&&";
|
|
8978
8967
|
});
|
|
8979
|
-
var BinaryOpSymbol$22 = $EXPECT($
|
|
8980
|
-
var BinaryOpSymbol$23 = $T($S(CoffeeOfEnabled, $EXPECT($
|
|
8968
|
+
var BinaryOpSymbol$22 = $EXPECT($L71, fail, 'BinaryOpSymbol "&&"');
|
|
8969
|
+
var BinaryOpSymbol$23 = $T($S(CoffeeOfEnabled, $EXPECT($L72, fail, 'BinaryOpSymbol "of"'), NonIdContinue), function(value) {
|
|
8981
8970
|
return "in";
|
|
8982
8971
|
});
|
|
8983
|
-
var BinaryOpSymbol$24 = $T($S($EXPECT($
|
|
8972
|
+
var BinaryOpSymbol$24 = $T($S($EXPECT($L73, fail, 'BinaryOpSymbol "or"'), NonIdContinue), function(value) {
|
|
8984
8973
|
return "||";
|
|
8985
8974
|
});
|
|
8986
|
-
var BinaryOpSymbol$25 = $EXPECT($
|
|
8987
|
-
var BinaryOpSymbol$26 = $TV($C($EXPECT($
|
|
8975
|
+
var BinaryOpSymbol$25 = $EXPECT($L74, fail, 'BinaryOpSymbol "||"');
|
|
8976
|
+
var BinaryOpSymbol$26 = $TV($C($EXPECT($L75, fail, 'BinaryOpSymbol "^^"'), $S($EXPECT($L76, fail, 'BinaryOpSymbol "xor"'), NonIdContinue)), function($skip, $loc, $0, $1) {
|
|
8988
8977
|
return {
|
|
8989
8978
|
call: module.getRef("xor"),
|
|
8990
8979
|
special: true
|
|
8991
8980
|
};
|
|
8992
8981
|
});
|
|
8993
|
-
var BinaryOpSymbol$27 = $TV($C($EXPECT($R8, fail, "BinaryOpSymbol /!\\^\\^?/"), $S($EXPECT($
|
|
8982
|
+
var BinaryOpSymbol$27 = $TV($C($EXPECT($R8, fail, "BinaryOpSymbol /!\\^\\^?/"), $S($EXPECT($L77, fail, 'BinaryOpSymbol "xnor"'), NonIdContinue)), function($skip, $loc, $0, $1) {
|
|
8994
8983
|
return {
|
|
8995
8984
|
call: module.getRef("xnor"),
|
|
8996
8985
|
special: true
|
|
8997
8986
|
};
|
|
8998
8987
|
});
|
|
8999
|
-
var BinaryOpSymbol$28 = $EXPECT($
|
|
8988
|
+
var BinaryOpSymbol$28 = $EXPECT($L78, fail, 'BinaryOpSymbol "??"');
|
|
9000
8989
|
var BinaryOpSymbol$29 = $T($S(CoffeeBinaryExistentialEnabled, $EXPECT($L4, fail, 'BinaryOpSymbol "?"')), function(value) {
|
|
9001
8990
|
return "??";
|
|
9002
8991
|
});
|
|
9003
|
-
var BinaryOpSymbol$30 = $TS($S($EXPECT($
|
|
8992
|
+
var BinaryOpSymbol$30 = $TS($S($EXPECT($L79, fail, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9004
8993
|
return {
|
|
9005
8994
|
$loc,
|
|
9006
8995
|
token: $1,
|
|
@@ -9008,7 +8997,7 @@ ${input.slice(result.pos)}
|
|
|
9008
8997
|
special: true
|
|
9009
8998
|
};
|
|
9010
8999
|
});
|
|
9011
|
-
var BinaryOpSymbol$31 = $TS($S($EXPECT($
|
|
9000
|
+
var BinaryOpSymbol$31 = $TS($S($EXPECT($L51, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L79, fail, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
9012
9001
|
return {
|
|
9013
9002
|
$loc,
|
|
9014
9003
|
token: "instanceof",
|
|
@@ -9017,7 +9006,7 @@ ${input.slice(result.pos)}
|
|
|
9017
9006
|
negated: true
|
|
9018
9007
|
};
|
|
9019
9008
|
});
|
|
9020
|
-
var BinaryOpSymbol$32 = $TV($C($S($N(CoffeeOfEnabled), $EXPECT($
|
|
9009
|
+
var BinaryOpSymbol$32 = $TV($C($S($N(CoffeeOfEnabled), $EXPECT($L51, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L80, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L51, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L72, fail, 'BinaryOpSymbol "of"'), NonIdContinue)), function($skip, $loc, $0, $1) {
|
|
9021
9010
|
return {
|
|
9022
9011
|
$loc,
|
|
9023
9012
|
token: "in",
|
|
@@ -9025,7 +9014,7 @@ ${input.slice(result.pos)}
|
|
|
9025
9014
|
negated: true
|
|
9026
9015
|
};
|
|
9027
9016
|
});
|
|
9028
|
-
var BinaryOpSymbol$33 = $TS($S($EXPECT($
|
|
9017
|
+
var BinaryOpSymbol$33 = $TS($S($EXPECT($L81, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L80, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
9029
9018
|
return {
|
|
9030
9019
|
method: "includes",
|
|
9031
9020
|
relational: true,
|
|
@@ -9033,7 +9022,7 @@ ${input.slice(result.pos)}
|
|
|
9033
9022
|
special: true
|
|
9034
9023
|
};
|
|
9035
9024
|
});
|
|
9036
|
-
var BinaryOpSymbol$34 = $TS($S(CoffeeOfEnabled, $EXPECT($
|
|
9025
|
+
var BinaryOpSymbol$34 = $TS($S(CoffeeOfEnabled, $EXPECT($L80, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
9037
9026
|
return {
|
|
9038
9027
|
call: [module.getRef("indexOf"), ".call"],
|
|
9039
9028
|
relational: true,
|
|
@@ -9042,7 +9031,7 @@ ${input.slice(result.pos)}
|
|
|
9042
9031
|
special: true
|
|
9043
9032
|
};
|
|
9044
9033
|
});
|
|
9045
|
-
var BinaryOpSymbol$35 = $TS($S($EXPECT($
|
|
9034
|
+
var BinaryOpSymbol$35 = $TS($S($EXPECT($L81, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L51, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L80, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
9046
9035
|
return {
|
|
9047
9036
|
method: "includes",
|
|
9048
9037
|
relational: true,
|
|
@@ -9051,7 +9040,7 @@ ${input.slice(result.pos)}
|
|
|
9051
9040
|
negated: true
|
|
9052
9041
|
};
|
|
9053
9042
|
});
|
|
9054
|
-
var BinaryOpSymbol$36 = $TS($S(CoffeeOfEnabled, $EXPECT($
|
|
9043
|
+
var BinaryOpSymbol$36 = $TS($S(CoffeeOfEnabled, $EXPECT($L51, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L80, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
9055
9044
|
return {
|
|
9056
9045
|
call: [module.getRef("indexOf"), ".call"],
|
|
9057
9046
|
relational: true,
|
|
@@ -9060,7 +9049,7 @@ ${input.slice(result.pos)}
|
|
|
9060
9049
|
special: true
|
|
9061
9050
|
};
|
|
9062
9051
|
});
|
|
9063
|
-
var BinaryOpSymbol$37 = $TS($S($N(CoffeeNotEnabled), $EXPECT($
|
|
9052
|
+
var BinaryOpSymbol$37 = $TS($S($N(CoffeeNotEnabled), $EXPECT($L81, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L51, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
9064
9053
|
if (module.config.objectIs) {
|
|
9065
9054
|
return {
|
|
9066
9055
|
call: module.getRef("is"),
|
|
@@ -9072,7 +9061,7 @@ ${input.slice(result.pos)}
|
|
|
9072
9061
|
}
|
|
9073
9062
|
return "!==";
|
|
9074
9063
|
});
|
|
9075
|
-
var BinaryOpSymbol$38 = $TS($S($EXPECT($
|
|
9064
|
+
var BinaryOpSymbol$38 = $TS($S($EXPECT($L81, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9076
9065
|
if (module.config.objectIs) {
|
|
9077
9066
|
return {
|
|
9078
9067
|
call: module.getRef("is"),
|
|
@@ -9083,12 +9072,12 @@ ${input.slice(result.pos)}
|
|
|
9083
9072
|
}
|
|
9084
9073
|
return "===";
|
|
9085
9074
|
});
|
|
9086
|
-
var BinaryOpSymbol$39 = $TS($S($EXPECT($
|
|
9075
|
+
var BinaryOpSymbol$39 = $TS($S($EXPECT($L80, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9087
9076
|
return $1;
|
|
9088
9077
|
});
|
|
9089
|
-
var BinaryOpSymbol$40 = $EXPECT($
|
|
9078
|
+
var BinaryOpSymbol$40 = $EXPECT($L82, fail, 'BinaryOpSymbol "&"');
|
|
9090
9079
|
var BinaryOpSymbol$41 = $EXPECT($L17, fail, 'BinaryOpSymbol "^"');
|
|
9091
|
-
var BinaryOpSymbol$42 = $EXPECT($
|
|
9080
|
+
var BinaryOpSymbol$42 = $EXPECT($L83, fail, 'BinaryOpSymbol "|"');
|
|
9092
9081
|
function BinaryOpSymbol(state) {
|
|
9093
9082
|
let eventData;
|
|
9094
9083
|
if (state.events) {
|
|
@@ -9111,8 +9100,8 @@ ${input.slice(result.pos)}
|
|
|
9111
9100
|
return result;
|
|
9112
9101
|
}
|
|
9113
9102
|
}
|
|
9114
|
-
var Xor$0 = $EXPECT($
|
|
9115
|
-
var Xor$1 = $S($EXPECT($
|
|
9103
|
+
var Xor$0 = $EXPECT($L75, fail, 'Xor "^^"');
|
|
9104
|
+
var Xor$1 = $S($EXPECT($L76, fail, 'Xor "xor"'), NonIdContinue);
|
|
9116
9105
|
function Xor(state) {
|
|
9117
9106
|
let eventData;
|
|
9118
9107
|
if (state.events) {
|
|
@@ -9136,7 +9125,7 @@ ${input.slice(result.pos)}
|
|
|
9136
9125
|
}
|
|
9137
9126
|
}
|
|
9138
9127
|
var Xnor$0 = $R$0($EXPECT($R8, fail, "Xnor /!\\^\\^?/"));
|
|
9139
|
-
var Xnor$1 = $EXPECT($
|
|
9128
|
+
var Xnor$1 = $EXPECT($L77, fail, 'Xnor "xnor"');
|
|
9140
9129
|
function Xnor(state) {
|
|
9141
9130
|
let eventData;
|
|
9142
9131
|
if (state.events) {
|
|
@@ -9163,7 +9152,7 @@ ${input.slice(result.pos)}
|
|
|
9163
9152
|
return { $loc, token: $0 };
|
|
9164
9153
|
});
|
|
9165
9154
|
var UnaryOp$1 = AwaitOp;
|
|
9166
|
-
var UnaryOp$2 = $S($C(Delete, Void, Typeof), $E(_));
|
|
9155
|
+
var UnaryOp$2 = $S($C(Delete, Void, Typeof), $N($EXPECT($L10, fail, 'UnaryOp ":"')), $E(_));
|
|
9167
9156
|
var UnaryOp$3 = Not;
|
|
9168
9157
|
function UnaryOp(state) {
|
|
9169
9158
|
let eventData;
|
|
@@ -9422,7 +9411,7 @@ ${input.slice(result.pos)}
|
|
|
9422
9411
|
return result;
|
|
9423
9412
|
}
|
|
9424
9413
|
}
|
|
9425
|
-
var EmptyStatement$0 = $TS($S($E(_), $Y($EXPECT($
|
|
9414
|
+
var EmptyStatement$0 = $TS($S($E(_), $Y($EXPECT($L84, fail, 'EmptyStatement ";"'))), function($skip, $loc, $0, $1, $2) {
|
|
9426
9415
|
return { type: "EmptyStatement", children: $1 || [] };
|
|
9427
9416
|
});
|
|
9428
9417
|
function EmptyStatement(state) {
|
|
@@ -9501,7 +9490,7 @@ ${input.slice(result.pos)}
|
|
|
9501
9490
|
var w = $3;
|
|
9502
9491
|
return [id, colon, w];
|
|
9503
9492
|
});
|
|
9504
|
-
var Label$1 = $S($EXPECT($
|
|
9493
|
+
var Label$1 = $S($EXPECT($L85, fail, 'Label "$:"'), Whitespace);
|
|
9505
9494
|
function Label(state) {
|
|
9506
9495
|
let eventData;
|
|
9507
9496
|
if (state.events) {
|
|
@@ -10485,7 +10474,7 @@ ${input.slice(result.pos)}
|
|
|
10485
10474
|
return result;
|
|
10486
10475
|
}
|
|
10487
10476
|
}
|
|
10488
|
-
var CoffeeForDeclaration$0 = $TS($S($E($S(__, $EXPECT($
|
|
10477
|
+
var CoffeeForDeclaration$0 = $TS($S($E($S(__, $EXPECT($L86, fail, 'CoffeeForDeclaration "own"'), NonIdContinue)), ForBinding), function($skip, $loc, $0, $1, $2) {
|
|
10489
10478
|
var own = $1;
|
|
10490
10479
|
var binding = $2;
|
|
10491
10480
|
return {
|
|
@@ -11056,11 +11045,11 @@ ${input.slice(result.pos)}
|
|
|
11056
11045
|
return result;
|
|
11057
11046
|
}
|
|
11058
11047
|
}
|
|
11059
|
-
var TryStatement$0 = $TS($S(Try, NoPostfixBracedOrEmptyBlock, $E(CatchClause), $E(FinallyClause)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
11048
|
+
var TryStatement$0 = $TS($S(Try, $N($EXPECT($L10, fail, 'TryStatement ":"')), NoPostfixBracedOrEmptyBlock, $E(CatchClause), $E(FinallyClause)), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
11060
11049
|
var t = $1;
|
|
11061
|
-
var b = $
|
|
11062
|
-
var c = $
|
|
11063
|
-
var f = $
|
|
11050
|
+
var b = $3;
|
|
11051
|
+
var c = $4;
|
|
11052
|
+
var f = $5;
|
|
11064
11053
|
if (!c && !f) {
|
|
11065
11054
|
const e = [];
|
|
11066
11055
|
const emptyCatchBlock = {
|
|
@@ -11870,7 +11859,7 @@ ${input.slice(result.pos)}
|
|
|
11870
11859
|
var KeywordStatement$2 = $T($S(Debugger), function(value) {
|
|
11871
11860
|
return { "type": "DebuggerStatement", "children": value };
|
|
11872
11861
|
});
|
|
11873
|
-
var KeywordStatement$3 = $T($S(Return, $N($C($EXPECT($L5, fail, 'KeywordStatement "."'), AfterReturnShorthand)), $E(MaybeNestedExpression)), function(value) {
|
|
11862
|
+
var KeywordStatement$3 = $T($S(Return, $N($C($EXPECT($L10, fail, 'KeywordStatement ":"'), $EXPECT($L5, fail, 'KeywordStatement "."'), AfterReturnShorthand)), $E(MaybeNestedExpression)), function(value) {
|
|
11874
11863
|
var expression = value[2];
|
|
11875
11864
|
return { "type": "ReturnStatement", "expression": expression, "children": value };
|
|
11876
11865
|
});
|
|
@@ -11899,7 +11888,7 @@ ${input.slice(result.pos)}
|
|
|
11899
11888
|
return result;
|
|
11900
11889
|
}
|
|
11901
11890
|
}
|
|
11902
|
-
var Break$0 = $TS($S($EXPECT($
|
|
11891
|
+
var Break$0 = $TS($S($EXPECT($L87, fail, 'Break "break"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
11903
11892
|
return { $loc, token: $1 };
|
|
11904
11893
|
});
|
|
11905
11894
|
function Break(state) {
|
|
@@ -11924,7 +11913,7 @@ ${input.slice(result.pos)}
|
|
|
11924
11913
|
return result;
|
|
11925
11914
|
}
|
|
11926
11915
|
}
|
|
11927
|
-
var Continue$0 = $TS($S($EXPECT($
|
|
11916
|
+
var Continue$0 = $TS($S($EXPECT($L88, fail, 'Continue "continue"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
11928
11917
|
return { $loc, token: $1 };
|
|
11929
11918
|
});
|
|
11930
11919
|
function Continue(state) {
|
|
@@ -11949,7 +11938,7 @@ ${input.slice(result.pos)}
|
|
|
11949
11938
|
return result;
|
|
11950
11939
|
}
|
|
11951
11940
|
}
|
|
11952
|
-
var Debugger$0 = $TS($S($EXPECT($
|
|
11941
|
+
var Debugger$0 = $TS($S($EXPECT($L89, fail, 'Debugger "debugger"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
11953
11942
|
return { $loc, token: $1 };
|
|
11954
11943
|
});
|
|
11955
11944
|
function Debugger(state) {
|
|
@@ -12255,7 +12244,7 @@ ${input.slice(result.pos)}
|
|
|
12255
12244
|
return result;
|
|
12256
12245
|
}
|
|
12257
12246
|
}
|
|
12258
|
-
var ImportAssertion$0 = $S($E(_), $EXPECT($
|
|
12247
|
+
var ImportAssertion$0 = $S($E(_), $EXPECT($L90, fail, 'ImportAssertion "assert"'), NonIdContinue, $E(_), ObjectLiteral);
|
|
12259
12248
|
function ImportAssertion(state) {
|
|
12260
12249
|
let eventData;
|
|
12261
12250
|
if (state.events) {
|
|
@@ -12827,7 +12816,7 @@ ${input.slice(result.pos)}
|
|
|
12827
12816
|
return result;
|
|
12828
12817
|
}
|
|
12829
12818
|
}
|
|
12830
|
-
var ConstAssignment$0 = $TV($EXPECT($
|
|
12819
|
+
var ConstAssignment$0 = $TV($EXPECT($L91, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
|
|
12831
12820
|
return { $loc, token: "=" };
|
|
12832
12821
|
});
|
|
12833
12822
|
function ConstAssignment(state) {
|
|
@@ -12852,7 +12841,7 @@ ${input.slice(result.pos)}
|
|
|
12852
12841
|
return result;
|
|
12853
12842
|
}
|
|
12854
12843
|
}
|
|
12855
|
-
var LetAssignment$0 = $TV($EXPECT($
|
|
12844
|
+
var LetAssignment$0 = $TV($EXPECT($L92, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
|
|
12856
12845
|
return { $loc, token: "=" };
|
|
12857
12846
|
});
|
|
12858
12847
|
function LetAssignment(state) {
|
|
@@ -13559,7 +13548,7 @@ ${input.slice(result.pos)}
|
|
|
13559
13548
|
}
|
|
13560
13549
|
}
|
|
13561
13550
|
var RegularExpressionLiteral$0 = HeregexLiteral;
|
|
13562
|
-
var RegularExpressionLiteral$1 = $TV($TEXT($S($EXPECT($
|
|
13551
|
+
var RegularExpressionLiteral$1 = $TV($TEXT($S($EXPECT($L54, fail, 'RegularExpressionLiteral "/"'), RegularExpressionBody, $EXPECT($L54, fail, 'RegularExpressionLiteral "/"'), RegularExpressionFlags)), function($skip, $loc, $0, $1) {
|
|
13563
13552
|
return { type: "RegularExpressionLiteral", $loc, token: $1 };
|
|
13564
13553
|
});
|
|
13565
13554
|
function RegularExpressionLiteral(state) {
|
|
@@ -14126,7 +14115,7 @@ ${input.slice(result.pos)}
|
|
|
14126
14115
|
return result;
|
|
14127
14116
|
}
|
|
14128
14117
|
}
|
|
14129
|
-
var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($
|
|
14118
|
+
var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L93, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L94, fail, 'JSMultiLineComment "*/"')), $EXPECT($R42, fail, "JSMultiLineComment /./"))), $EXPECT($L94, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
|
|
14130
14119
|
return { type: "Comment", $loc, token: $1 };
|
|
14131
14120
|
});
|
|
14132
14121
|
function JSMultiLineComment(state) {
|
|
@@ -14225,7 +14214,7 @@ ${input.slice(result.pos)}
|
|
|
14225
14214
|
return result;
|
|
14226
14215
|
}
|
|
14227
14216
|
}
|
|
14228
|
-
var InlineComment$0 = $TV($TEXT($S($EXPECT($
|
|
14217
|
+
var InlineComment$0 = $TV($TEXT($S($EXPECT($L93, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L94, fail, 'InlineComment "*/"')), $EXPECT($R46, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L94, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
|
|
14229
14218
|
return { $loc, token: $1 };
|
|
14230
14219
|
});
|
|
14231
14220
|
function InlineComment(state) {
|
|
@@ -14322,7 +14311,7 @@ ${input.slice(result.pos)}
|
|
|
14322
14311
|
var NonNewlineWhitespace$0 = $TR($EXPECT($R47, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
14323
14312
|
return { $loc, token: $0 };
|
|
14324
14313
|
});
|
|
14325
|
-
var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($
|
|
14314
|
+
var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L95, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
|
|
14326
14315
|
return "";
|
|
14327
14316
|
});
|
|
14328
14317
|
function NonNewlineWhitespace(state) {
|
|
@@ -14474,7 +14463,7 @@ ${input.slice(result.pos)}
|
|
|
14474
14463
|
}
|
|
14475
14464
|
}
|
|
14476
14465
|
var StatementDelimiter$0 = SemicolonDelimiter;
|
|
14477
|
-
var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L3, fail, 'StatementDelimiter "("'), $EXPECT($
|
|
14466
|
+
var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L3, fail, 'StatementDelimiter "("'), $EXPECT($L96, fail, 'StatementDelimiter "["'), $EXPECT($L97, fail, 'StatementDelimiter "`"'), $EXPECT($L57, fail, 'StatementDelimiter "+"'), $EXPECT($L18, fail, 'StatementDelimiter "-"'), $EXPECT($L53, fail, 'StatementDelimiter "*"'), $EXPECT($L54, fail, 'StatementDelimiter "/"'), ObjectLiteral, Arrow, FatArrow, $S(Function, $E($S($E(_), Star)), $E(_), $EXPECT($L3, fail, 'StatementDelimiter "("'))))), InsertSemicolon);
|
|
14478
14467
|
var StatementDelimiter$2 = $Y(EOS);
|
|
14479
14468
|
function StatementDelimiter(state) {
|
|
14480
14469
|
let eventData;
|
|
@@ -14574,7 +14563,7 @@ ${input.slice(result.pos)}
|
|
|
14574
14563
|
return result;
|
|
14575
14564
|
}
|
|
14576
14565
|
}
|
|
14577
|
-
var Abstract$0 = $TV($TEXT($S($EXPECT($
|
|
14566
|
+
var Abstract$0 = $TV($TEXT($S($EXPECT($L98, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L9, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
|
|
14578
14567
|
return { $loc, token: $1, ts: true };
|
|
14579
14568
|
});
|
|
14580
14569
|
function Abstract(state) {
|
|
@@ -14599,7 +14588,7 @@ ${input.slice(result.pos)}
|
|
|
14599
14588
|
return result;
|
|
14600
14589
|
}
|
|
14601
14590
|
}
|
|
14602
|
-
var Ampersand$0 = $TV($EXPECT($
|
|
14591
|
+
var Ampersand$0 = $TV($EXPECT($L82, fail, 'Ampersand "&"'), function($skip, $loc, $0, $1) {
|
|
14603
14592
|
return { $loc, token: $1 };
|
|
14604
14593
|
});
|
|
14605
14594
|
function Ampersand(state) {
|
|
@@ -14624,7 +14613,7 @@ ${input.slice(result.pos)}
|
|
|
14624
14613
|
return result;
|
|
14625
14614
|
}
|
|
14626
14615
|
}
|
|
14627
|
-
var As$0 = $TS($S($EXPECT($
|
|
14616
|
+
var As$0 = $TS($S($EXPECT($L99, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14628
14617
|
return { $loc, token: $1 };
|
|
14629
14618
|
});
|
|
14630
14619
|
function As(state) {
|
|
@@ -14649,7 +14638,7 @@ ${input.slice(result.pos)}
|
|
|
14649
14638
|
return result;
|
|
14650
14639
|
}
|
|
14651
14640
|
}
|
|
14652
|
-
var At$0 = $TV($EXPECT($
|
|
14641
|
+
var At$0 = $TV($EXPECT($L100, fail, 'At "@"'), function($skip, $loc, $0, $1) {
|
|
14653
14642
|
return { $loc, token: $1 };
|
|
14654
14643
|
});
|
|
14655
14644
|
function At(state) {
|
|
@@ -14674,7 +14663,7 @@ ${input.slice(result.pos)}
|
|
|
14674
14663
|
return result;
|
|
14675
14664
|
}
|
|
14676
14665
|
}
|
|
14677
|
-
var AtAt$0 = $TV($EXPECT($
|
|
14666
|
+
var AtAt$0 = $TV($EXPECT($L101, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
|
|
14678
14667
|
return { $loc, token: "@" };
|
|
14679
14668
|
});
|
|
14680
14669
|
function AtAt(state) {
|
|
@@ -14699,7 +14688,7 @@ ${input.slice(result.pos)}
|
|
|
14699
14688
|
return result;
|
|
14700
14689
|
}
|
|
14701
14690
|
}
|
|
14702
|
-
var Async$0 = $TS($S($EXPECT($
|
|
14691
|
+
var Async$0 = $TS($S($EXPECT($L102, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14703
14692
|
return { $loc, token: $1, type: "Async" };
|
|
14704
14693
|
});
|
|
14705
14694
|
function Async(state) {
|
|
@@ -14724,7 +14713,7 @@ ${input.slice(result.pos)}
|
|
|
14724
14713
|
return result;
|
|
14725
14714
|
}
|
|
14726
14715
|
}
|
|
14727
|
-
var Await$0 = $TS($S($EXPECT($
|
|
14716
|
+
var Await$0 = $TS($S($EXPECT($L103, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14728
14717
|
return { $loc, token: $1, type: "Await" };
|
|
14729
14718
|
});
|
|
14730
14719
|
function Await(state) {
|
|
@@ -14749,7 +14738,7 @@ ${input.slice(result.pos)}
|
|
|
14749
14738
|
return result;
|
|
14750
14739
|
}
|
|
14751
14740
|
}
|
|
14752
|
-
var Backtick$0 = $TV($EXPECT($
|
|
14741
|
+
var Backtick$0 = $TV($EXPECT($L97, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
|
|
14753
14742
|
return { $loc, token: $1 };
|
|
14754
14743
|
});
|
|
14755
14744
|
function Backtick(state) {
|
|
@@ -14774,7 +14763,7 @@ ${input.slice(result.pos)}
|
|
|
14774
14763
|
return result;
|
|
14775
14764
|
}
|
|
14776
14765
|
}
|
|
14777
|
-
var By$0 = $TS($S($EXPECT($
|
|
14766
|
+
var By$0 = $TS($S($EXPECT($L104, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14778
14767
|
return { $loc, token: $1 };
|
|
14779
14768
|
});
|
|
14780
14769
|
function By(state) {
|
|
@@ -14799,7 +14788,7 @@ ${input.slice(result.pos)}
|
|
|
14799
14788
|
return result;
|
|
14800
14789
|
}
|
|
14801
14790
|
}
|
|
14802
|
-
var Case$0 = $TS($S($EXPECT($
|
|
14791
|
+
var Case$0 = $TS($S($EXPECT($L105, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14803
14792
|
return { $loc, token: $1 };
|
|
14804
14793
|
});
|
|
14805
14794
|
function Case(state) {
|
|
@@ -14824,7 +14813,7 @@ ${input.slice(result.pos)}
|
|
|
14824
14813
|
return result;
|
|
14825
14814
|
}
|
|
14826
14815
|
}
|
|
14827
|
-
var Catch$0 = $TS($S($EXPECT($
|
|
14816
|
+
var Catch$0 = $TS($S($EXPECT($L106, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14828
14817
|
return { $loc, token: $1 };
|
|
14829
14818
|
});
|
|
14830
14819
|
function Catch(state) {
|
|
@@ -14849,7 +14838,7 @@ ${input.slice(result.pos)}
|
|
|
14849
14838
|
return result;
|
|
14850
14839
|
}
|
|
14851
14840
|
}
|
|
14852
|
-
var Class$0 = $TS($S($EXPECT($
|
|
14841
|
+
var Class$0 = $TS($S($EXPECT($L107, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14853
14842
|
return { $loc, token: $1 };
|
|
14854
14843
|
});
|
|
14855
14844
|
function Class(state) {
|
|
@@ -14874,7 +14863,7 @@ ${input.slice(result.pos)}
|
|
|
14874
14863
|
return result;
|
|
14875
14864
|
}
|
|
14876
14865
|
}
|
|
14877
|
-
var CloseBrace$0 = $TV($EXPECT($
|
|
14866
|
+
var CloseBrace$0 = $TV($EXPECT($L23, fail, 'CloseBrace "}"'), function($skip, $loc, $0, $1) {
|
|
14878
14867
|
return { $loc, token: $1 };
|
|
14879
14868
|
});
|
|
14880
14869
|
function CloseBrace(state) {
|
|
@@ -14899,7 +14888,7 @@ ${input.slice(result.pos)}
|
|
|
14899
14888
|
return result;
|
|
14900
14889
|
}
|
|
14901
14890
|
}
|
|
14902
|
-
var CloseBracket$0 = $TV($EXPECT($
|
|
14891
|
+
var CloseBracket$0 = $TV($EXPECT($L32, fail, 'CloseBracket "]"'), function($skip, $loc, $0, $1) {
|
|
14903
14892
|
return { $loc, token: $1 };
|
|
14904
14893
|
});
|
|
14905
14894
|
function CloseBracket(state) {
|
|
@@ -14924,7 +14913,7 @@ ${input.slice(result.pos)}
|
|
|
14924
14913
|
return result;
|
|
14925
14914
|
}
|
|
14926
14915
|
}
|
|
14927
|
-
var CloseParen$0 = $TV($EXPECT($
|
|
14916
|
+
var CloseParen$0 = $TV($EXPECT($L108, fail, 'CloseParen ")"'), function($skip, $loc, $0, $1) {
|
|
14928
14917
|
return { $loc, token: $1 };
|
|
14929
14918
|
});
|
|
14930
14919
|
function CloseParen(state) {
|
|
@@ -14949,7 +14938,7 @@ ${input.slice(result.pos)}
|
|
|
14949
14938
|
return result;
|
|
14950
14939
|
}
|
|
14951
14940
|
}
|
|
14952
|
-
var CoffeeSubstitutionStart$0 = $TV($EXPECT($
|
|
14941
|
+
var CoffeeSubstitutionStart$0 = $TV($EXPECT($L109, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
|
|
14953
14942
|
return { $loc, token: "${" };
|
|
14954
14943
|
});
|
|
14955
14944
|
function CoffeeSubstitutionStart(state) {
|
|
@@ -14974,7 +14963,7 @@ ${input.slice(result.pos)}
|
|
|
14974
14963
|
return result;
|
|
14975
14964
|
}
|
|
14976
14965
|
}
|
|
14977
|
-
var Colon$0 = $TS($S($EXPECT($
|
|
14966
|
+
var Colon$0 = $TS($S($EXPECT($L10, fail, 'Colon ":"'), $N($EXPECT($L2, fail, 'Colon "="'))), function($skip, $loc, $0, $1, $2) {
|
|
14978
14967
|
return { $loc, token: $1 };
|
|
14979
14968
|
});
|
|
14980
14969
|
function Colon(state) {
|
|
@@ -14999,7 +14988,7 @@ ${input.slice(result.pos)}
|
|
|
14999
14988
|
return result;
|
|
15000
14989
|
}
|
|
15001
14990
|
}
|
|
15002
|
-
var Comma$0 = $TV($EXPECT($
|
|
14991
|
+
var Comma$0 = $TV($EXPECT($L21, fail, 'Comma ","'), function($skip, $loc, $0, $1) {
|
|
15003
14992
|
return { $loc, token: $1 };
|
|
15004
14993
|
});
|
|
15005
14994
|
function Comma(state) {
|
|
@@ -15024,7 +15013,7 @@ ${input.slice(result.pos)}
|
|
|
15024
15013
|
return result;
|
|
15025
15014
|
}
|
|
15026
15015
|
}
|
|
15027
|
-
var ConstructorShorthand$0 = $TV($EXPECT($
|
|
15016
|
+
var ConstructorShorthand$0 = $TV($EXPECT($L100, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
|
|
15028
15017
|
return { $loc, token: "constructor" };
|
|
15029
15018
|
});
|
|
15030
15019
|
function ConstructorShorthand(state) {
|
|
@@ -15524,7 +15513,7 @@ ${input.slice(result.pos)}
|
|
|
15524
15513
|
return result;
|
|
15525
15514
|
}
|
|
15526
15515
|
}
|
|
15527
|
-
var Import$0 = $TS($S($EXPECT($
|
|
15516
|
+
var Import$0 = $TS($S($EXPECT($L15, fail, 'Import "import"'), $Y($EXPECT($R49, fail, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
|
|
15528
15517
|
return { $loc, token: $1 };
|
|
15529
15518
|
});
|
|
15530
15519
|
function Import(state) {
|
|
@@ -15549,7 +15538,7 @@ ${input.slice(result.pos)}
|
|
|
15549
15538
|
return result;
|
|
15550
15539
|
}
|
|
15551
15540
|
}
|
|
15552
|
-
var In$0 = $TS($S($EXPECT($
|
|
15541
|
+
var In$0 = $TS($S($EXPECT($L80, fail, 'In "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
15553
15542
|
return { $loc, token: $1 };
|
|
15554
15543
|
});
|
|
15555
15544
|
function In(state) {
|
|
@@ -15698,7 +15687,7 @@ ${input.slice(result.pos)}
|
|
|
15698
15687
|
return result;
|
|
15699
15688
|
}
|
|
15700
15689
|
}
|
|
15701
|
-
var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($
|
|
15690
|
+
var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L51, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($L9, fail, 'Not " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
15702
15691
|
return { $loc, token: "!" };
|
|
15703
15692
|
});
|
|
15704
15693
|
function Not(state) {
|
|
@@ -15723,7 +15712,7 @@ ${input.slice(result.pos)}
|
|
|
15723
15712
|
return result;
|
|
15724
15713
|
}
|
|
15725
15714
|
}
|
|
15726
|
-
var Of$0 = $TS($S($EXPECT($
|
|
15715
|
+
var Of$0 = $TS($S($EXPECT($L72, fail, 'Of "of"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
15727
15716
|
return { $loc, token: $1 };
|
|
15728
15717
|
});
|
|
15729
15718
|
function Of(state) {
|
|
@@ -15798,7 +15787,7 @@ ${input.slice(result.pos)}
|
|
|
15798
15787
|
return result;
|
|
15799
15788
|
}
|
|
15800
15789
|
}
|
|
15801
|
-
var OpenBracket$0 = $TV($EXPECT($
|
|
15790
|
+
var OpenBracket$0 = $TV($EXPECT($L96, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
|
|
15802
15791
|
return { $loc, token: $1 };
|
|
15803
15792
|
});
|
|
15804
15793
|
function OpenBracket(state) {
|
|
@@ -16079,7 +16068,7 @@ ${input.slice(result.pos)}
|
|
|
16079
16068
|
return result;
|
|
16080
16069
|
}
|
|
16081
16070
|
}
|
|
16082
|
-
var Semicolon$0 = $TV($EXPECT($
|
|
16071
|
+
var Semicolon$0 = $TV($EXPECT($L84, fail, 'Semicolon ";"'), function($skip, $loc, $0, $1) {
|
|
16083
16072
|
return { $loc, token: $1 };
|
|
16084
16073
|
});
|
|
16085
16074
|
function Semicolon(state) {
|
|
@@ -16129,7 +16118,7 @@ ${input.slice(result.pos)}
|
|
|
16129
16118
|
return result;
|
|
16130
16119
|
}
|
|
16131
16120
|
}
|
|
16132
|
-
var Star$0 = $TV($EXPECT($
|
|
16121
|
+
var Star$0 = $TV($EXPECT($L53, fail, 'Star "*"'), function($skip, $loc, $0, $1) {
|
|
16133
16122
|
return { $loc, token: $1 };
|
|
16134
16123
|
});
|
|
16135
16124
|
function Star(state) {
|
|
@@ -16157,7 +16146,7 @@ ${input.slice(result.pos)}
|
|
|
16157
16146
|
var Static$0 = $TS($S($EXPECT($L145, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
16158
16147
|
return { $loc, token: $1 };
|
|
16159
16148
|
});
|
|
16160
|
-
var Static$1 = $TS($S($EXPECT($
|
|
16149
|
+
var Static$1 = $TS($S($EXPECT($L100, fail, 'Static "@"'), $N($C($EXPECT($L3, fail, 'Static "("'), $EXPECT($L100, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
|
|
16161
16150
|
return { $loc, token: "static " };
|
|
16162
16151
|
});
|
|
16163
16152
|
function Static(state) {
|
|
@@ -16853,7 +16842,7 @@ ${input.slice(result.pos)}
|
|
|
16853
16842
|
return result;
|
|
16854
16843
|
}
|
|
16855
16844
|
}
|
|
16856
|
-
var JSXOpeningElement$0 = $S($EXPECT($L132, fail, 'JSXOpeningElement "<"'), JSXElementName, $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($
|
|
16845
|
+
var JSXOpeningElement$0 = $S($EXPECT($L132, fail, 'JSXOpeningElement "<"'), JSXElementName, $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L31, fail, 'JSXOpeningElement ">"'));
|
|
16857
16846
|
function JSXOpeningElement(state) {
|
|
16858
16847
|
let eventData;
|
|
16859
16848
|
if (state.events) {
|
|
@@ -16905,7 +16894,7 @@ ${input.slice(result.pos)}
|
|
|
16905
16894
|
return result;
|
|
16906
16895
|
}
|
|
16907
16896
|
}
|
|
16908
|
-
var JSXClosingElement$0 = $S($EXPECT($L166, fail, 'JSXClosingElement "</"'), $E(Whitespace), JSXElementName, $E(Whitespace), $EXPECT($
|
|
16897
|
+
var JSXClosingElement$0 = $S($EXPECT($L166, fail, 'JSXClosingElement "</"'), $E(Whitespace), JSXElementName, $E(Whitespace), $EXPECT($L31, fail, 'JSXClosingElement ">"'));
|
|
16909
16898
|
function JSXClosingElement(state) {
|
|
16910
16899
|
let eventData;
|
|
16911
16900
|
if (state.events) {
|
|
@@ -17051,7 +17040,7 @@ ${input.slice(result.pos)}
|
|
|
17051
17040
|
return result;
|
|
17052
17041
|
}
|
|
17053
17042
|
}
|
|
17054
|
-
var JSXElementName$0 = $TV($Y($S($C($EXPECT($
|
|
17043
|
+
var JSXElementName$0 = $TV($Y($S($C($EXPECT($L13, fail, 'JSXElementName "#"'), Dot), JSXShorthandString)), function($skip, $loc, $0, $1) {
|
|
17055
17044
|
return module.config.defaultElement;
|
|
17056
17045
|
});
|
|
17057
17046
|
var JSXElementName$1 = $TEXT($S(JSXIdentifierName, $C($S(Colon, JSXIdentifierName), $Q($S(Dot, JSXIdentifierName)))));
|
|
@@ -17256,7 +17245,7 @@ ${input.slice(result.pos)}
|
|
|
17256
17245
|
}
|
|
17257
17246
|
});
|
|
17258
17247
|
var JSXAttribute$2 = $S(InsertInlineOpenBrace, DotDotDot, InlineJSXAttributeValue, InsertCloseBrace, $Y(JSXAttributeSpace));
|
|
17259
|
-
var JSXAttribute$3 = $TS($S($EXPECT($
|
|
17248
|
+
var JSXAttribute$3 = $TS($S($EXPECT($L13, fail, 'JSXAttribute "#"'), JSXShorthandString), function($skip, $loc, $0, $1, $2) {
|
|
17260
17249
|
return [" ", "id=", $2];
|
|
17261
17250
|
});
|
|
17262
17251
|
var JSXAttribute$4 = $TS($S(Dot, JSXShorthandString), function($skip, $loc, $0, $1, $2) {
|
|
@@ -17397,7 +17386,8 @@ ${input.slice(result.pos)}
|
|
|
17397
17386
|
var JSXAttributeValue$1 = JSXElement;
|
|
17398
17387
|
var JSXAttributeValue$2 = JSXFragment;
|
|
17399
17388
|
var JSXAttributeValue$3 = $TS($S(InsertInlineOpenBrace, InlineJSXAttributeValue, InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3) {
|
|
17400
|
-
|
|
17389
|
+
var value = $2;
|
|
17390
|
+
if (value.type === "StringLiteral") {
|
|
17401
17391
|
return $skip;
|
|
17402
17392
|
}
|
|
17403
17393
|
return $0;
|
|
@@ -17583,8 +17573,8 @@ ${input.slice(result.pos)}
|
|
|
17583
17573
|
return result;
|
|
17584
17574
|
}
|
|
17585
17575
|
}
|
|
17586
|
-
var InlineJSXCallExpression$0 = $S($EXPECT($
|
|
17587
|
-
var InlineJSXCallExpression$1 = $S($EXPECT($
|
|
17576
|
+
var InlineJSXCallExpression$0 = $S($EXPECT($L14, fail, 'InlineJSXCallExpression "super"'), ExplicitArguments);
|
|
17577
|
+
var InlineJSXCallExpression$1 = $S($EXPECT($L15, fail, 'InlineJSXCallExpression "import"'), OpenParen, PostfixedExpression, __, CloseParen);
|
|
17588
17578
|
var InlineJSXCallExpression$2 = $TS($S(InlineJSXMemberExpression, $Q(InlineJSXCallExpressionRest)), function($skip, $loc, $0, $1, $2) {
|
|
17589
17579
|
if ($2.length)
|
|
17590
17580
|
return $0;
|
|
@@ -17798,7 +17788,7 @@ ${input.slice(result.pos)}
|
|
|
17798
17788
|
}
|
|
17799
17789
|
return $skip;
|
|
17800
17790
|
});
|
|
17801
|
-
var JSXNestedChildren$1 = $TV($Y($C(JSXEOS, $EXPECT($
|
|
17791
|
+
var JSXNestedChildren$1 = $TV($Y($C(JSXEOS, $EXPECT($L23, fail, 'JSXNestedChildren "}"'), JSXClosingElement, JSXClosingFragment)), function($skip, $loc, $0, $1) {
|
|
17802
17792
|
return { children: [], jsxChildren: [] };
|
|
17803
17793
|
});
|
|
17804
17794
|
function JSXNestedChildren(state) {
|
|
@@ -19039,7 +19029,7 @@ ${input.slice(result.pos)}
|
|
|
19039
19029
|
return result;
|
|
19040
19030
|
}
|
|
19041
19031
|
}
|
|
19042
|
-
var TypePredicate$0 = $TS($S(Type, $E($S(__, $EXPECT($
|
|
19032
|
+
var TypePredicate$0 = $TS($S(Type, $E($S(__, $EXPECT($L81, fail, 'TypePredicate "is"'), NonIdContinue, Type))), function($skip, $loc, $0, $1, $2) {
|
|
19043
19033
|
var lhs = $1;
|
|
19044
19034
|
var rhs = $2;
|
|
19045
19035
|
if (!rhs)
|
|
@@ -19268,8 +19258,8 @@ ${input.slice(result.pos)}
|
|
|
19268
19258
|
return result;
|
|
19269
19259
|
}
|
|
19270
19260
|
}
|
|
19271
|
-
var ImportType$0 = $S($EXPECT($
|
|
19272
|
-
var ImportType$1 = $S($EXPECT($
|
|
19261
|
+
var ImportType$0 = $S($EXPECT($L15, fail, 'ImportType "import"'), OpenParen, __, StringLiteral, __, CloseParen, $E($S(Dot, IdentifierName)), $E(TypeArguments));
|
|
19262
|
+
var ImportType$1 = $S($EXPECT($L15, fail, 'ImportType "import"'), InsertOpenParen, Trimmed_, StringLiteral, InsertCloseParen);
|
|
19273
19263
|
function ImportType(state) {
|
|
19274
19264
|
let eventData;
|
|
19275
19265
|
if (state.events) {
|
|
@@ -19600,7 +19590,7 @@ ${input.slice(result.pos)}
|
|
|
19600
19590
|
var InlineInterfacePropertyDelimiter$1 = $T($S($Y($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertComma), function(value) {
|
|
19601
19591
|
return value[1];
|
|
19602
19592
|
});
|
|
19603
|
-
var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($
|
|
19593
|
+
var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L10, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L108, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L32, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L23, fail, 'InlineInterfacePropertyDelimiter "}"'))));
|
|
19604
19594
|
var InlineInterfacePropertyDelimiter$3 = $Y(EOS);
|
|
19605
19595
|
function InlineInterfacePropertyDelimiter(state) {
|
|
19606
19596
|
let eventData;
|
|
@@ -19624,10 +19614,10 @@ ${input.slice(result.pos)}
|
|
|
19624
19614
|
return result;
|
|
19625
19615
|
}
|
|
19626
19616
|
}
|
|
19627
|
-
var TypeBinaryOp$0 = $TV($EXPECT($
|
|
19617
|
+
var TypeBinaryOp$0 = $TV($EXPECT($L83, fail, 'TypeBinaryOp "|"'), function($skip, $loc, $0, $1) {
|
|
19628
19618
|
return { $loc, token: "|" };
|
|
19629
19619
|
});
|
|
19630
|
-
var TypeBinaryOp$1 = $TV($EXPECT($
|
|
19620
|
+
var TypeBinaryOp$1 = $TV($EXPECT($L82, fail, 'TypeBinaryOp "&"'), function($skip, $loc, $0, $1) {
|
|
19631
19621
|
return { $loc, token: "&" };
|
|
19632
19622
|
});
|
|
19633
19623
|
function TypeBinaryOp(state) {
|
|
@@ -19684,7 +19674,7 @@ ${input.slice(result.pos)}
|
|
|
19684
19674
|
var TypeArrowFunction$0 = $TV($EXPECT($L8, fail, 'TypeArrowFunction "=>"'), function($skip, $loc, $0, $1) {
|
|
19685
19675
|
return { $loc, token: "=>" };
|
|
19686
19676
|
});
|
|
19687
|
-
var TypeArrowFunction$1 = $TV($EXPECT($
|
|
19677
|
+
var TypeArrowFunction$1 = $TV($EXPECT($L22, fail, 'TypeArrowFunction "->"'), function($skip, $loc, $0, $1) {
|
|
19688
19678
|
return { $loc, token: "=>" };
|
|
19689
19679
|
});
|
|
19690
19680
|
function TypeArrowFunction(state) {
|
|
@@ -19709,7 +19699,7 @@ ${input.slice(result.pos)}
|
|
|
19709
19699
|
return result;
|
|
19710
19700
|
}
|
|
19711
19701
|
}
|
|
19712
|
-
var TypeArguments$0 = $TS($S($EXPECT($L132, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($
|
|
19702
|
+
var TypeArguments$0 = $TS($S($EXPECT($L132, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L31, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
19713
19703
|
return { ts: true, children: $0 };
|
|
19714
19704
|
});
|
|
19715
19705
|
function TypeArguments(state) {
|
|
@@ -19780,7 +19770,7 @@ ${input.slice(result.pos)}
|
|
|
19780
19770
|
return result;
|
|
19781
19771
|
}
|
|
19782
19772
|
}
|
|
19783
|
-
var TypeParameters$0 = $TS($S(
|
|
19773
|
+
var TypeParameters$0 = $TS($S($E(_), $EXPECT($L132, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L31, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
19784
19774
|
var parameters = $3;
|
|
19785
19775
|
return {
|
|
19786
19776
|
type: "TypeParameters",
|
|
@@ -19881,7 +19871,7 @@ ${input.slice(result.pos)}
|
|
|
19881
19871
|
}
|
|
19882
19872
|
}
|
|
19883
19873
|
var TypeParameterDelimiter$0 = $S($Q(_), Comma);
|
|
19884
|
-
var TypeParameterDelimiter$1 = $Y($S(__, $EXPECT($
|
|
19874
|
+
var TypeParameterDelimiter$1 = $Y($S(__, $EXPECT($L31, fail, 'TypeParameterDelimiter ">"')));
|
|
19885
19875
|
var TypeParameterDelimiter$2 = $T($S($Y(EOS), InsertComma), function(value) {
|
|
19886
19876
|
return value[1];
|
|
19887
19877
|
});
|
|
@@ -21931,10 +21921,9 @@ ${input.slice(result.pos)}
|
|
|
21931
21921
|
names.push(...rest.names);
|
|
21932
21922
|
}
|
|
21933
21923
|
if (after.length) {
|
|
21934
|
-
const spliceRef = module.getRef("splice");
|
|
21935
21924
|
blockPrefix = {
|
|
21936
21925
|
type: "PostRestBindingElements",
|
|
21937
|
-
children: ["[", insertTrimmingSpace(after, ""), "] = ",
|
|
21926
|
+
children: ["[", insertTrimmingSpace(after, ""), "] = ", restIdentifier, ".splice(-", after.length.toString(), ")"],
|
|
21938
21927
|
names: after.flatMap((p) => p.names)
|
|
21939
21928
|
};
|
|
21940
21929
|
}
|
|
@@ -22295,16 +22284,6 @@ ${input.slice(result.pos)}
|
|
|
22295
22284
|
exp.children.push(...post);
|
|
22296
22285
|
});
|
|
22297
22286
|
}
|
|
22298
|
-
function checkSpliceRef(statements) {
|
|
22299
|
-
const spliceRef = module.getRef("splice");
|
|
22300
|
-
if (gatherRecursiveAll(statements, (n) => n === spliceRef).length) {
|
|
22301
|
-
const typeSuffix = {
|
|
22302
|
-
ts: true,
|
|
22303
|
-
children: [": <T>(this: T[], start: number, deleteCount?: number) => T[]"]
|
|
22304
|
-
};
|
|
22305
|
-
module.prelude.push(["", ["const ", spliceRef, typeSuffix, " = [].splice", module.asAny, "\n"]]);
|
|
22306
|
-
}
|
|
22307
|
-
}
|
|
22308
22287
|
module.attachPostfixStatementAsExpression = function(exp, post) {
|
|
22309
22288
|
let clause;
|
|
22310
22289
|
switch (post[1].type) {
|
|
@@ -22792,7 +22771,6 @@ ${input.slice(result.pos)}
|
|
|
22792
22771
|
processTryExpressions(statements);
|
|
22793
22772
|
hoistRefDecs(statements);
|
|
22794
22773
|
gatherRecursiveAll(statements, (n) => n.type === "IterationExpression").forEach((e) => expressionizeIteration(e));
|
|
22795
|
-
checkSpliceRef(statements);
|
|
22796
22774
|
statements.unshift(...module.prelude);
|
|
22797
22775
|
if (module.config.autoLet) {
|
|
22798
22776
|
createLetDecs(statements, []);
|
|
@@ -23594,17 +23572,17 @@ SourceMap.parseWithLines = function(base64encodedJSONstr) {
|
|
|
23594
23572
|
smRegexp = /\n\/\/# sourceMappingURL=data:application\/json;charset=utf-8;base64,([+a-zA-Z0-9\/]*=?=?)$/;
|
|
23595
23573
|
SourceMap.remap = function(codeWithSourceMap, upstreamMap, sourcePath, targetPath) {
|
|
23596
23574
|
var codeWithoutSourceMap, composedLines, newSourceMap, parsed, remappedCodeWithSourceMap, remappedSourceMapJSON, sourceMapText;
|
|
23597
|
-
sourceMapText =
|
|
23575
|
+
sourceMapText = null;
|
|
23576
|
+
codeWithoutSourceMap = codeWithSourceMap.replace(smRegexp, (match, sm) => {
|
|
23577
|
+
sourceMapText = sm;
|
|
23578
|
+
return "";
|
|
23579
|
+
});
|
|
23598
23580
|
if (sourceMapText) {
|
|
23599
|
-
parsed = SourceMap.parseWithLines(sourceMapText
|
|
23600
|
-
|
|
23601
|
-
|
|
23602
|
-
return codeWithSourceMap;
|
|
23581
|
+
parsed = SourceMap.parseWithLines(sourceMapText);
|
|
23582
|
+
composedLines = SourceMap.composeLines(upstreamMap.data.lines, parsed.lines);
|
|
23583
|
+
upstreamMap.data.lines = composedLines;
|
|
23603
23584
|
}
|
|
23604
|
-
composedLines = SourceMap.composeLines(upstreamMap.data.lines, parsed.lines);
|
|
23605
|
-
upstreamMap.data.lines = composedLines;
|
|
23606
23585
|
remappedSourceMapJSON = upstreamMap.json(sourcePath, targetPath);
|
|
23607
|
-
codeWithoutSourceMap = codeWithSourceMap.replace(smRegexp, "");
|
|
23608
23586
|
newSourceMap = `${"sourceMapping"}URL=data:application/json;charset=utf-8;base64,${base64Encode(JSON.stringify(remappedSourceMapJSON))}`;
|
|
23609
23587
|
remappedCodeWithSourceMap = `${codeWithoutSourceMap}
|
|
23610
23588
|
//# ${newSourceMap}`;
|
|
@@ -23774,15 +23752,14 @@ remapPosition = function(position, sourcemapLines) {
|
|
|
23774
23752
|
// source/main.coffee
|
|
23775
23753
|
"civet coffeeCompat";
|
|
23776
23754
|
var SourceMap2;
|
|
23777
|
-
var base64Encode2;
|
|
23778
23755
|
var makeCache;
|
|
23779
23756
|
var parse;
|
|
23780
23757
|
var uncacheable;
|
|
23781
23758
|
({ parse } = import_parser.default);
|
|
23782
|
-
({ SourceMap: SourceMap2
|
|
23759
|
+
({ SourceMap: SourceMap2 } = util_exports);
|
|
23783
23760
|
uncacheable = /* @__PURE__ */ new Set(["ActualAssignment", "AllowAll", "AllowClassImplicitCall", "AllowIndentedApplication", "AllowMultiLineImplicitObjectLiteral", "AllowTrailingMemberProperty", "AllowedTrailingMemberExpressions", "ApplicationStart", "Arguments", "ArgumentsWithTrailingMemberExpressions", "ArrowFunction", "ArrowFunctionTail", "AssignmentExpression", "AssignmentExpressionTail", "BinaryOpExpression", "BinaryOpRHS", "BracedBlock", "BracedObjectLiteralContent", "BracedOrEmptyBlock", "CallExpression", "CallExpressionRest", "ClassImplicitCallForbidden", "CoffeeCommentEnabled", "CommaDelimiter", "ConditionalExpression", "Declaration", "Debugger", "Dedented", "ElementListWithIndentedApplicationForbidden", "ElseClause", "Expression", "ExpressionStatement", "ExpressionWithIndentedApplicationForbidden", "ExtendedExpression", "FatArrowBody", "ForbidClassImplicitCall", "ForbidIndentedApplication", "ForbidMultiLineImplicitObjectLiteral", "ForbidTrailingMemberProperty", "FunctionDeclaration", "FunctionExpression", "HoistableDeclaration", "ImplicitArguments", "ImplicitInlineObjectPropertyDelimiter", "ImplicitNestedBlock", "IndentedApplicationAllowed", "IndentedFurther", "IndentedJSXChildExpression", "InlineObjectLiteral", "InsertIndent", "JSXChild", "JSXChildren", "JSXElement", "JSXFragment", "JSXImplicitFragment", "JSXMixedChildren", "JSXNested", "JSXNestedChildren", "JSXOptionalClosingElement", "JSXOptionalClosingFragment", "JSXTag", "LeftHandSideExpression", "MemberExpression", "MemberExpressionRest", "Nested", "NestedBindingElement", "NestedBindingElements", "NestedBlockExpression", "NestedBlockExpression", "NestedBlockStatement", "NestedBlockStatements", "NestedClassSignatureElement", "NestedClassSignatureElements", "NestedDeclareElement", "NestedDeclareElements", "NestedElement", "NestedElementList", "NestedImplicitObjectLiteral", "NestedImplicitPropertyDefinition", "NestedImplicitPropertyDefinitions", "NestedInterfaceProperty", "NestedJSXChildExpression", "NestedModuleItem", "NestedModuleItems", "NestedNonAssignmentExtendedExpression", "NestedObject", "NestedPropertyDefinitions", "NonSingleBracedBlock", "NotDedented", "ObjectLiteral", "PopIndent", "PopJSXStack", "PostfixedExpression", "PostfixedStatement", "PrimaryExpression", "PushIndent", "PushJSXOpeningElement", "PushJSXOpeningFragment", "RestoreAll", "RestoreClassImplicitCall", "RestoreMultiLineImplicitObjectLiteral", "RestoreIndentedApplication", "RestoreTrailingMemberProperty", "RHS", "Samedent", "ShortCircuitExpression", "SingleLineAssignmentExpression", "SingleLineComment", "SingleLineStatements", "SnugNamedProperty", "Statement", "StatementListItem", "SuffixedExpression", "SuffixedStatement", "ThinArrowFunction", "TrackIndented", "TrailingMemberExpressions", "TrailingMemberPropertyAllowed", "TypedJSXElement", "TypedJSXFragment", "UnaryExpression", "UpdateExpression"]);
|
|
23784
23761
|
var compile = function(src, options) {
|
|
23785
|
-
var ast, code, events, filename, ref, result, sm
|
|
23762
|
+
var ast, code, events, filename, ref, result, sm;
|
|
23786
23763
|
if (!options) {
|
|
23787
23764
|
options = {};
|
|
23788
23765
|
} else {
|
|
@@ -23804,10 +23781,7 @@ var compile = function(src, options) {
|
|
|
23804
23781
|
options.updateSourceMap = sm.updateSourceMap;
|
|
23805
23782
|
code = generate_default(ast, options);
|
|
23806
23783
|
if (options.inlineMap) {
|
|
23807
|
-
|
|
23808
|
-
return `${code}
|
|
23809
|
-
${"//#"} sourceMappingURL=data:application/json;base64,${base64Encode2(JSON.stringify(srcMapJSON))}
|
|
23810
|
-
`;
|
|
23784
|
+
return SourceMap2.remap(code, sm, filename, filename + ".tsx");
|
|
23811
23785
|
} else {
|
|
23812
23786
|
return {
|
|
23813
23787
|
code,
|