@danielx/civet 0.5.90 → 0.5.91
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/README.md +1 -1
- package/dist/browser.js +264 -211
- package/dist/browser.js.gzip +0 -0
- package/dist/civet +41 -12
- package/dist/esm.mjs +2 -1
- package/dist/main.js +264 -211
- package/dist/main.mjs +264 -211
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -979,6 +979,7 @@ ${input.slice(result.pos)}
|
|
|
979
979
|
SingleLineExtendedExpression,
|
|
980
980
|
NonPipelineExtendedExpression,
|
|
981
981
|
NonAssignmentExtendedExpression,
|
|
982
|
+
NestedNonAssignmentExtendedExpression,
|
|
982
983
|
ExpressionizedStatement,
|
|
983
984
|
Expression,
|
|
984
985
|
Arguments,
|
|
@@ -1610,6 +1611,7 @@ ${input.slice(result.pos)}
|
|
|
1610
1611
|
Samedent,
|
|
1611
1612
|
IndentedFurther,
|
|
1612
1613
|
NotDedented,
|
|
1614
|
+
Dedented,
|
|
1613
1615
|
PushIndent,
|
|
1614
1616
|
PopIndent,
|
|
1615
1617
|
Nested
|
|
@@ -1646,84 +1648,84 @@ ${input.slice(result.pos)}
|
|
|
1646
1648
|
var $L29 = $L("off");
|
|
1647
1649
|
var $L30 = $L(">");
|
|
1648
1650
|
var $L31 = $L("]");
|
|
1649
|
-
var $L32 = $L("
|
|
1650
|
-
var $L33 = $L("
|
|
1651
|
-
var $L34 = $L("
|
|
1652
|
-
var $L35 = $L("
|
|
1653
|
-
var $L36 = $L("
|
|
1654
|
-
var $L37 = $L("
|
|
1655
|
-
var $L38 = $L("
|
|
1656
|
-
var $L39 = $L("
|
|
1657
|
-
var $L40 = $L("
|
|
1658
|
-
var $L41 = $L("
|
|
1659
|
-
var $L42 = $L("
|
|
1660
|
-
var $L43 = $L("
|
|
1661
|
-
var $L44 = $L("
|
|
1662
|
-
var $L45 = $L("
|
|
1663
|
-
var $L46 = $L("
|
|
1664
|
-
var $L47 = $L("
|
|
1665
|
-
var $L48 = $L("
|
|
1666
|
-
var $L49 = $L("
|
|
1667
|
-
var $L50 = $L("
|
|
1668
|
-
var $L51 = $L("
|
|
1669
|
-
var $L52 = $L("
|
|
1670
|
-
var $L53 = $L("
|
|
1671
|
-
var $L54 = $L("
|
|
1672
|
-
var $L55 = $L("
|
|
1673
|
-
var $L56 = $L("
|
|
1674
|
-
var $L57 = $L("
|
|
1675
|
-
var $L58 = $L("
|
|
1676
|
-
var $L59 = $L("
|
|
1677
|
-
var $L60 = $L("
|
|
1678
|
-
var $L61 = $L("
|
|
1679
|
-
var $L62 = $L("
|
|
1680
|
-
var $L63 = $L("
|
|
1681
|
-
var $L64 = $L("
|
|
1682
|
-
var $L65 = $L("
|
|
1683
|
-
var $L66 = $L("
|
|
1684
|
-
var $L67 = $L("
|
|
1685
|
-
var $L68 = $L("
|
|
1686
|
-
var $L69 = $L("
|
|
1687
|
-
var $L70 = $L("
|
|
1688
|
-
var $L71 = $L("
|
|
1689
|
-
var $L72 = $L("
|
|
1690
|
-
var $L73 = $L("
|
|
1691
|
-
var $L74 = $L("
|
|
1692
|
-
var $L75 = $L("
|
|
1693
|
-
var $L76 = $L("
|
|
1694
|
-
var $L77 = $L("
|
|
1695
|
-
var $L78 = $L("
|
|
1696
|
-
var $L79 = $L("
|
|
1697
|
-
var $L80 = $L("
|
|
1698
|
-
var $L81 = $L("
|
|
1699
|
-
var $L82 = $L("
|
|
1700
|
-
var $L83 = $L("
|
|
1701
|
-
var $L84 = $L("
|
|
1702
|
-
var $L85 = $L("
|
|
1703
|
-
var $L86 = $L("
|
|
1704
|
-
var $L87 = $L("
|
|
1705
|
-
var $L88 = $L("
|
|
1706
|
-
var $L89 = $L("
|
|
1707
|
-
var $L90 = $L("
|
|
1708
|
-
var $L91 = $L("
|
|
1709
|
-
var $L92 = $L("
|
|
1710
|
-
var $L93 = $L("
|
|
1711
|
-
var $L94 = $L("
|
|
1712
|
-
var $L95 = $L("
|
|
1713
|
-
var $L96 = $L("
|
|
1714
|
-
var $L97 = $L("
|
|
1715
|
-
var $L98 = $L("
|
|
1716
|
-
var $L99 = $L("
|
|
1717
|
-
var $L100 = $L("
|
|
1718
|
-
var $L101 = $L("
|
|
1719
|
-
var $L102 = $L("
|
|
1720
|
-
var $L103 = $L("
|
|
1721
|
-
var $L104 = $L("
|
|
1722
|
-
var $L105 = $L("
|
|
1723
|
-
var $L106 = $L("
|
|
1724
|
-
var $L107 = $L("
|
|
1725
|
-
var $L108 = $L("
|
|
1726
|
-
var $L109 = $L("
|
|
1651
|
+
var $L32 = $L("**=");
|
|
1652
|
+
var $L33 = $L("*=");
|
|
1653
|
+
var $L34 = $L("/=");
|
|
1654
|
+
var $L35 = $L("%=");
|
|
1655
|
+
var $L36 = $L("+=");
|
|
1656
|
+
var $L37 = $L("-=");
|
|
1657
|
+
var $L38 = $L("<<=");
|
|
1658
|
+
var $L39 = $L(">>>=");
|
|
1659
|
+
var $L40 = $L(">>=");
|
|
1660
|
+
var $L41 = $L("&&=");
|
|
1661
|
+
var $L42 = $L("&=");
|
|
1662
|
+
var $L43 = $L("^=");
|
|
1663
|
+
var $L44 = $L("||=");
|
|
1664
|
+
var $L45 = $L("|=");
|
|
1665
|
+
var $L46 = $L("??=");
|
|
1666
|
+
var $L47 = $L("?=");
|
|
1667
|
+
var $L48 = $L("and=");
|
|
1668
|
+
var $L49 = $L("or=");
|
|
1669
|
+
var $L50 = $L("not");
|
|
1670
|
+
var $L51 = $L("**");
|
|
1671
|
+
var $L52 = $L("*");
|
|
1672
|
+
var $L53 = $L("/");
|
|
1673
|
+
var $L54 = $L("%%");
|
|
1674
|
+
var $L55 = $L("%");
|
|
1675
|
+
var $L56 = $L("+");
|
|
1676
|
+
var $L57 = $L("<=");
|
|
1677
|
+
var $L58 = $L(">=");
|
|
1678
|
+
var $L59 = $L("<?");
|
|
1679
|
+
var $L60 = $L("!<?");
|
|
1680
|
+
var $L61 = $L("<<");
|
|
1681
|
+
var $L62 = $L(">>>");
|
|
1682
|
+
var $L63 = $L(">>");
|
|
1683
|
+
var $L64 = $L("!==");
|
|
1684
|
+
var $L65 = $L("!=");
|
|
1685
|
+
var $L66 = $L("isnt");
|
|
1686
|
+
var $L67 = $L("===");
|
|
1687
|
+
var $L68 = $L("==");
|
|
1688
|
+
var $L69 = $L("and");
|
|
1689
|
+
var $L70 = $L("&&");
|
|
1690
|
+
var $L71 = $L("of");
|
|
1691
|
+
var $L72 = $L("or");
|
|
1692
|
+
var $L73 = $L("||");
|
|
1693
|
+
var $L74 = $L("^^");
|
|
1694
|
+
var $L75 = $L("xor");
|
|
1695
|
+
var $L76 = $L("xnor");
|
|
1696
|
+
var $L77 = $L("??");
|
|
1697
|
+
var $L78 = $L("instanceof");
|
|
1698
|
+
var $L79 = $L("in");
|
|
1699
|
+
var $L80 = $L("is");
|
|
1700
|
+
var $L81 = $L("&");
|
|
1701
|
+
var $L82 = $L("|");
|
|
1702
|
+
var $L83 = $L(";");
|
|
1703
|
+
var $L84 = $L("$:");
|
|
1704
|
+
var $L85 = $L("own");
|
|
1705
|
+
var $L86 = $L("break");
|
|
1706
|
+
var $L87 = $L("continue");
|
|
1707
|
+
var $L88 = $L("debugger");
|
|
1708
|
+
var $L89 = $L("assert");
|
|
1709
|
+
var $L90 = $L(":=");
|
|
1710
|
+
var $L91 = $L(".=");
|
|
1711
|
+
var $L92 = $L("/*");
|
|
1712
|
+
var $L93 = $L("*/");
|
|
1713
|
+
var $L94 = $L("\\");
|
|
1714
|
+
var $L95 = $L("[");
|
|
1715
|
+
var $L96 = $L("`");
|
|
1716
|
+
var $L97 = $L("abstract");
|
|
1717
|
+
var $L98 = $L("as");
|
|
1718
|
+
var $L99 = $L("@");
|
|
1719
|
+
var $L100 = $L("@@");
|
|
1720
|
+
var $L101 = $L("async");
|
|
1721
|
+
var $L102 = $L("await");
|
|
1722
|
+
var $L103 = $L("by");
|
|
1723
|
+
var $L104 = $L("case");
|
|
1724
|
+
var $L105 = $L("catch");
|
|
1725
|
+
var $L106 = $L("class");
|
|
1726
|
+
var $L107 = $L(")");
|
|
1727
|
+
var $L108 = $L("#{");
|
|
1728
|
+
var $L109 = $L(":");
|
|
1727
1729
|
var $L110 = $L("declare");
|
|
1728
1730
|
var $L111 = $L("default");
|
|
1729
1731
|
var $L112 = $L("delete");
|
|
@@ -2097,12 +2099,7 @@ ${input.slice(result.pos)}
|
|
|
2097
2099
|
return result;
|
|
2098
2100
|
}
|
|
2099
2101
|
}
|
|
2100
|
-
var NonAssignmentExtendedExpression$0 =
|
|
2101
|
-
var expression = $3;
|
|
2102
|
-
if (expression)
|
|
2103
|
-
return expression;
|
|
2104
|
-
return $skip;
|
|
2105
|
-
});
|
|
2102
|
+
var NonAssignmentExtendedExpression$0 = NestedNonAssignmentExtendedExpression;
|
|
2106
2103
|
var NonAssignmentExtendedExpression$1 = $TS($S(__, ExpressionizedStatement), function($skip, $loc, $0, $1, $2) {
|
|
2107
2104
|
return {
|
|
2108
2105
|
...$2,
|
|
@@ -2131,6 +2128,34 @@ ${input.slice(result.pos)}
|
|
|
2131
2128
|
return result;
|
|
2132
2129
|
}
|
|
2133
2130
|
}
|
|
2131
|
+
var NestedNonAssignmentExtendedExpression$0 = $TS($S($Y(EOS), PushIndent, $E($S(Nested, ExpressionizedStatement)), PopIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
2132
|
+
var expression = $3;
|
|
2133
|
+
if (expression)
|
|
2134
|
+
return expression;
|
|
2135
|
+
return $skip;
|
|
2136
|
+
});
|
|
2137
|
+
function NestedNonAssignmentExtendedExpression(state) {
|
|
2138
|
+
let eventData;
|
|
2139
|
+
if (state.events) {
|
|
2140
|
+
const result = state.events.enter?.("NestedNonAssignmentExtendedExpression", state);
|
|
2141
|
+
if (result) {
|
|
2142
|
+
if (result.cache)
|
|
2143
|
+
return result.cache;
|
|
2144
|
+
eventData = result.data;
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
if (state.tokenize) {
|
|
2148
|
+
const result = $TOKEN("NestedNonAssignmentExtendedExpression", state, NestedNonAssignmentExtendedExpression$0(state));
|
|
2149
|
+
if (state.events)
|
|
2150
|
+
state.events.exit?.("NestedNonAssignmentExtendedExpression", state, result, eventData);
|
|
2151
|
+
return result;
|
|
2152
|
+
} else {
|
|
2153
|
+
const result = NestedNonAssignmentExtendedExpression$0(state);
|
|
2154
|
+
if (state.events)
|
|
2155
|
+
state.events.exit?.("NestedNonAssignmentExtendedExpression", state, result, eventData);
|
|
2156
|
+
return result;
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2134
2159
|
var ExpressionizedStatement$0 = DebuggerExpression;
|
|
2135
2160
|
var ExpressionizedStatement$1 = IfExpression;
|
|
2136
2161
|
var ExpressionizedStatement$2 = UnlessExpression;
|
|
@@ -2728,7 +2753,7 @@ ${input.slice(result.pos)}
|
|
|
2728
2753
|
return result;
|
|
2729
2754
|
}
|
|
2730
2755
|
}
|
|
2731
|
-
var UnaryExpression$0 = $TS($S($Q(UnaryOp), UpdateExpression, $E(UnaryPostfix)), function($skip, $loc, $0, $1, $2, $3) {
|
|
2756
|
+
var UnaryExpression$0 = $TS($S($Q(UnaryOp), $C(UpdateExpression, NestedNonAssignmentExtendedExpression), $E(UnaryPostfix)), function($skip, $loc, $0, $1, $2, $3) {
|
|
2732
2757
|
var pre = $1;
|
|
2733
2758
|
var exp = $2;
|
|
2734
2759
|
var post = $3;
|
|
@@ -7994,12 +8019,15 @@ ${input.slice(result.pos)}
|
|
|
7994
8019
|
return result;
|
|
7995
8020
|
}
|
|
7996
8021
|
}
|
|
7997
|
-
var InlineObjectLiteral$0 = $TS($S(InsertInlineOpenBrace, SnugNamedProperty, ImplicitInlineObjectPropertyDelimiter, $
|
|
8022
|
+
var InlineObjectLiteral$0 = $TS($S(InsertInlineOpenBrace, SnugNamedProperty, $Q($S(ImplicitInlineObjectPropertyDelimiter, ImplicitNamedProperty)), $E($S($E(_), Comma, $Y(Dedented))), InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
7998
8023
|
var open = $1;
|
|
8024
|
+
var first = $2;
|
|
8025
|
+
var rest = $3;
|
|
8026
|
+
var trailing = $4;
|
|
7999
8027
|
var close = $5;
|
|
8000
8028
|
return {
|
|
8001
8029
|
type: "ObjectExpression",
|
|
8002
|
-
children: [open,
|
|
8030
|
+
children: [open, first, ...rest, trailing, close]
|
|
8003
8031
|
};
|
|
8004
8032
|
});
|
|
8005
8033
|
function InlineObjectLiteral(state) {
|
|
@@ -8024,15 +8052,9 @@ ${input.slice(result.pos)}
|
|
|
8024
8052
|
return result;
|
|
8025
8053
|
}
|
|
8026
8054
|
}
|
|
8027
|
-
var ImplicitInlineObjectPropertyDelimiter$0 = $S($E(_), Comma);
|
|
8028
|
-
var ImplicitInlineObjectPropertyDelimiter$1 = $T($S($Y($S($C(Samedent, $
|
|
8029
|
-
return value[1];
|
|
8030
|
-
});
|
|
8031
|
-
var ImplicitInlineObjectPropertyDelimiter$2 = $T($Y($S(__, $C($EXPECT($L32, fail, 'ImplicitInlineObjectPropertyDelimiter ":"'), $EXPECT($L33, fail, 'ImplicitInlineObjectPropertyDelimiter ")"'), $EXPECT($L31, fail, 'ImplicitInlineObjectPropertyDelimiter "]"'), $EXPECT($L22, fail, 'ImplicitInlineObjectPropertyDelimiter "}"'), ReservedWord))), function(value) {
|
|
8032
|
-
return "";
|
|
8033
|
-
});
|
|
8034
|
-
var ImplicitInlineObjectPropertyDelimiter$3 = $T($Y(EOS), function(value) {
|
|
8035
|
-
return "";
|
|
8055
|
+
var ImplicitInlineObjectPropertyDelimiter$0 = $S($E(_), Comma, $C(NotDedented, $E(_)));
|
|
8056
|
+
var ImplicitInlineObjectPropertyDelimiter$1 = $T($S($Y($S(Samedent, ImplicitNamedProperty)), InsertComma, $C(Samedent, $E(_))), function(value) {
|
|
8057
|
+
return [value[1], value[2]];
|
|
8036
8058
|
});
|
|
8037
8059
|
function ImplicitInlineObjectPropertyDelimiter(state) {
|
|
8038
8060
|
let eventData;
|
|
@@ -8045,18 +8067,18 @@ ${input.slice(result.pos)}
|
|
|
8045
8067
|
}
|
|
8046
8068
|
}
|
|
8047
8069
|
if (state.tokenize) {
|
|
8048
|
-
const result = $TOKEN("ImplicitInlineObjectPropertyDelimiter", state, ImplicitInlineObjectPropertyDelimiter$0(state) || ImplicitInlineObjectPropertyDelimiter$1(state)
|
|
8070
|
+
const result = $TOKEN("ImplicitInlineObjectPropertyDelimiter", state, ImplicitInlineObjectPropertyDelimiter$0(state) || ImplicitInlineObjectPropertyDelimiter$1(state));
|
|
8049
8071
|
if (state.events)
|
|
8050
8072
|
state.events.exit?.("ImplicitInlineObjectPropertyDelimiter", state, result, eventData);
|
|
8051
8073
|
return result;
|
|
8052
8074
|
} else {
|
|
8053
|
-
const result = ImplicitInlineObjectPropertyDelimiter$0(state) || ImplicitInlineObjectPropertyDelimiter$1(state)
|
|
8075
|
+
const result = ImplicitInlineObjectPropertyDelimiter$0(state) || ImplicitInlineObjectPropertyDelimiter$1(state);
|
|
8054
8076
|
if (state.events)
|
|
8055
8077
|
state.events.exit?.("ImplicitInlineObjectPropertyDelimiter", state, result, eventData);
|
|
8056
8078
|
return result;
|
|
8057
8079
|
}
|
|
8058
8080
|
}
|
|
8059
|
-
var ObjectPropertyDelimiter$0 = $S($
|
|
8081
|
+
var ObjectPropertyDelimiter$0 = $S($E(_), Comma);
|
|
8060
8082
|
var ObjectPropertyDelimiter$1 = $Y($S(__, $EXPECT($L22, fail, 'ObjectPropertyDelimiter "}"')));
|
|
8061
8083
|
var ObjectPropertyDelimiter$2 = $T($S($Y(EOS), InsertComma), function(value) {
|
|
8062
8084
|
return value[1];
|
|
@@ -8779,22 +8801,22 @@ ${input.slice(result.pos)}
|
|
|
8779
8801
|
return result;
|
|
8780
8802
|
}
|
|
8781
8803
|
}
|
|
8782
|
-
var AssignmentOpSymbol$0 = $EXPECT($
|
|
8783
|
-
var AssignmentOpSymbol$1 = $EXPECT($
|
|
8784
|
-
var AssignmentOpSymbol$2 = $EXPECT($
|
|
8785
|
-
var AssignmentOpSymbol$3 = $EXPECT($
|
|
8786
|
-
var AssignmentOpSymbol$4 = $EXPECT($
|
|
8787
|
-
var AssignmentOpSymbol$5 = $EXPECT($
|
|
8788
|
-
var AssignmentOpSymbol$6 = $EXPECT($
|
|
8789
|
-
var AssignmentOpSymbol$7 = $EXPECT($
|
|
8790
|
-
var AssignmentOpSymbol$8 = $EXPECT($
|
|
8791
|
-
var AssignmentOpSymbol$9 = $EXPECT($
|
|
8792
|
-
var AssignmentOpSymbol$10 = $EXPECT($
|
|
8793
|
-
var AssignmentOpSymbol$11 = $EXPECT($
|
|
8794
|
-
var AssignmentOpSymbol$12 = $EXPECT($
|
|
8795
|
-
var AssignmentOpSymbol$13 = $EXPECT($
|
|
8796
|
-
var AssignmentOpSymbol$14 = $EXPECT($
|
|
8797
|
-
var AssignmentOpSymbol$15 = $T($EXPECT($
|
|
8804
|
+
var AssignmentOpSymbol$0 = $EXPECT($L32, fail, 'AssignmentOpSymbol "**="');
|
|
8805
|
+
var AssignmentOpSymbol$1 = $EXPECT($L33, fail, 'AssignmentOpSymbol "*="');
|
|
8806
|
+
var AssignmentOpSymbol$2 = $EXPECT($L34, fail, 'AssignmentOpSymbol "/="');
|
|
8807
|
+
var AssignmentOpSymbol$3 = $EXPECT($L35, fail, 'AssignmentOpSymbol "%="');
|
|
8808
|
+
var AssignmentOpSymbol$4 = $EXPECT($L36, fail, 'AssignmentOpSymbol "+="');
|
|
8809
|
+
var AssignmentOpSymbol$5 = $EXPECT($L37, fail, 'AssignmentOpSymbol "-="');
|
|
8810
|
+
var AssignmentOpSymbol$6 = $EXPECT($L38, fail, 'AssignmentOpSymbol "<<="');
|
|
8811
|
+
var AssignmentOpSymbol$7 = $EXPECT($L39, fail, 'AssignmentOpSymbol ">>>="');
|
|
8812
|
+
var AssignmentOpSymbol$8 = $EXPECT($L40, fail, 'AssignmentOpSymbol ">>="');
|
|
8813
|
+
var AssignmentOpSymbol$9 = $EXPECT($L41, fail, 'AssignmentOpSymbol "&&="');
|
|
8814
|
+
var AssignmentOpSymbol$10 = $EXPECT($L42, fail, 'AssignmentOpSymbol "&="');
|
|
8815
|
+
var AssignmentOpSymbol$11 = $EXPECT($L43, fail, 'AssignmentOpSymbol "^="');
|
|
8816
|
+
var AssignmentOpSymbol$12 = $EXPECT($L44, fail, 'AssignmentOpSymbol "||="');
|
|
8817
|
+
var AssignmentOpSymbol$13 = $EXPECT($L45, fail, 'AssignmentOpSymbol "|="');
|
|
8818
|
+
var AssignmentOpSymbol$14 = $EXPECT($L46, fail, 'AssignmentOpSymbol "??="');
|
|
8819
|
+
var AssignmentOpSymbol$15 = $T($EXPECT($L47, fail, 'AssignmentOpSymbol "?="'), function(value) {
|
|
8798
8820
|
return "??=";
|
|
8799
8821
|
});
|
|
8800
8822
|
var AssignmentOpSymbol$16 = $T($S($EXPECT($L2, fail, 'AssignmentOpSymbol "="'), $N($EXPECT($L2, fail, 'AssignmentOpSymbol "="'))), function(value) {
|
|
@@ -8825,10 +8847,10 @@ ${input.slice(result.pos)}
|
|
|
8825
8847
|
return result;
|
|
8826
8848
|
}
|
|
8827
8849
|
}
|
|
8828
|
-
var CoffeeWordAssignmentOp$0 = $T($EXPECT($
|
|
8850
|
+
var CoffeeWordAssignmentOp$0 = $T($EXPECT($L48, fail, 'CoffeeWordAssignmentOp "and="'), function(value) {
|
|
8829
8851
|
return "&&=";
|
|
8830
8852
|
});
|
|
8831
|
-
var CoffeeWordAssignmentOp$1 = $T($EXPECT($
|
|
8853
|
+
var CoffeeWordAssignmentOp$1 = $T($EXPECT($L49, fail, 'CoffeeWordAssignmentOp "or="'), function(value) {
|
|
8832
8854
|
return "||=";
|
|
8833
8855
|
});
|
|
8834
8856
|
function CoffeeWordAssignmentOp(state) {
|
|
@@ -8867,7 +8889,7 @@ ${input.slice(result.pos)}
|
|
|
8867
8889
|
special: true
|
|
8868
8890
|
};
|
|
8869
8891
|
});
|
|
8870
|
-
var BinaryOp$2 = $TS($S($EXPECT($
|
|
8892
|
+
var BinaryOp$2 = $TS($S($EXPECT($L50, fail, 'BinaryOp "not"'), NonIdContinue, __, Identifier), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
8871
8893
|
var id = $4;
|
|
8872
8894
|
if (!module.operators.has(id.name))
|
|
8873
8895
|
return $skip;
|
|
@@ -8899,21 +8921,21 @@ ${input.slice(result.pos)}
|
|
|
8899
8921
|
return result;
|
|
8900
8922
|
}
|
|
8901
8923
|
}
|
|
8902
|
-
var BinaryOpSymbol$0 = $EXPECT($
|
|
8903
|
-
var BinaryOpSymbol$1 = $EXPECT($
|
|
8904
|
-
var BinaryOpSymbol$2 = $EXPECT($
|
|
8905
|
-
var BinaryOpSymbol$3 = $TV($EXPECT($
|
|
8924
|
+
var BinaryOpSymbol$0 = $EXPECT($L51, fail, 'BinaryOpSymbol "**"');
|
|
8925
|
+
var BinaryOpSymbol$1 = $EXPECT($L52, fail, 'BinaryOpSymbol "*"');
|
|
8926
|
+
var BinaryOpSymbol$2 = $EXPECT($L53, fail, 'BinaryOpSymbol "/"');
|
|
8927
|
+
var BinaryOpSymbol$3 = $TV($EXPECT($L54, fail, 'BinaryOpSymbol "%%"'), function($skip, $loc, $0, $1) {
|
|
8906
8928
|
return {
|
|
8907
8929
|
call: module.getRef("modulo"),
|
|
8908
8930
|
special: true
|
|
8909
8931
|
};
|
|
8910
8932
|
});
|
|
8911
|
-
var BinaryOpSymbol$4 = $EXPECT($
|
|
8912
|
-
var BinaryOpSymbol$5 = $EXPECT($
|
|
8933
|
+
var BinaryOpSymbol$4 = $EXPECT($L55, fail, 'BinaryOpSymbol "%"');
|
|
8934
|
+
var BinaryOpSymbol$5 = $EXPECT($L56, fail, 'BinaryOpSymbol "+"');
|
|
8913
8935
|
var BinaryOpSymbol$6 = $EXPECT($L18, fail, 'BinaryOpSymbol "-"');
|
|
8914
|
-
var BinaryOpSymbol$7 = $EXPECT($
|
|
8915
|
-
var BinaryOpSymbol$8 = $EXPECT($
|
|
8916
|
-
var BinaryOpSymbol$9 = $TV($EXPECT($
|
|
8936
|
+
var BinaryOpSymbol$7 = $EXPECT($L57, fail, 'BinaryOpSymbol "<="');
|
|
8937
|
+
var BinaryOpSymbol$8 = $EXPECT($L58, fail, 'BinaryOpSymbol ">="');
|
|
8938
|
+
var BinaryOpSymbol$9 = $TV($EXPECT($L59, fail, 'BinaryOpSymbol "<?"'), function($skip, $loc, $0, $1) {
|
|
8917
8939
|
return {
|
|
8918
8940
|
$loc,
|
|
8919
8941
|
token: "instanceof",
|
|
@@ -8921,7 +8943,7 @@ ${input.slice(result.pos)}
|
|
|
8921
8943
|
special: true
|
|
8922
8944
|
};
|
|
8923
8945
|
});
|
|
8924
|
-
var BinaryOpSymbol$10 = $TV($EXPECT($
|
|
8946
|
+
var BinaryOpSymbol$10 = $TV($EXPECT($L60, fail, 'BinaryOpSymbol "!<?"'), function($skip, $loc, $0, $1) {
|
|
8925
8947
|
return {
|
|
8926
8948
|
$loc,
|
|
8927
8949
|
token: "instanceof",
|
|
@@ -8930,58 +8952,58 @@ ${input.slice(result.pos)}
|
|
|
8930
8952
|
negated: true
|
|
8931
8953
|
};
|
|
8932
8954
|
});
|
|
8933
|
-
var BinaryOpSymbol$11 = $EXPECT($
|
|
8955
|
+
var BinaryOpSymbol$11 = $EXPECT($L61, fail, 'BinaryOpSymbol "<<"');
|
|
8934
8956
|
var BinaryOpSymbol$12 = $TR($EXPECT($R7, fail, "BinaryOpSymbol /<(?!\\p{ID_Start}|[_$])/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
8935
8957
|
return "<";
|
|
8936
8958
|
});
|
|
8937
|
-
var BinaryOpSymbol$13 = $EXPECT($
|
|
8938
|
-
var BinaryOpSymbol$14 = $EXPECT($
|
|
8959
|
+
var BinaryOpSymbol$13 = $EXPECT($L62, fail, 'BinaryOpSymbol ">>>"');
|
|
8960
|
+
var BinaryOpSymbol$14 = $EXPECT($L63, fail, 'BinaryOpSymbol ">>"');
|
|
8939
8961
|
var BinaryOpSymbol$15 = $EXPECT($L30, fail, 'BinaryOpSymbol ">"');
|
|
8940
|
-
var BinaryOpSymbol$16 = $EXPECT($
|
|
8941
|
-
var BinaryOpSymbol$17 = $TV($EXPECT($
|
|
8962
|
+
var BinaryOpSymbol$16 = $EXPECT($L64, fail, 'BinaryOpSymbol "!=="');
|
|
8963
|
+
var BinaryOpSymbol$17 = $TV($EXPECT($L65, fail, 'BinaryOpSymbol "!="'), function($skip, $loc, $0, $1) {
|
|
8942
8964
|
if (module.config.coffeeEq)
|
|
8943
8965
|
return "!==";
|
|
8944
8966
|
return $1;
|
|
8945
8967
|
});
|
|
8946
|
-
var BinaryOpSymbol$18 = $TS($S($EXPECT($
|
|
8968
|
+
var BinaryOpSymbol$18 = $TS($S($EXPECT($L66, fail, 'BinaryOpSymbol "isnt"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
8947
8969
|
if (module.config.coffeeIsnt)
|
|
8948
8970
|
return "!==";
|
|
8949
8971
|
return $skip;
|
|
8950
8972
|
});
|
|
8951
|
-
var BinaryOpSymbol$19 = $EXPECT($
|
|
8952
|
-
var BinaryOpSymbol$20 = $TV($EXPECT($
|
|
8973
|
+
var BinaryOpSymbol$19 = $EXPECT($L67, fail, 'BinaryOpSymbol "==="');
|
|
8974
|
+
var BinaryOpSymbol$20 = $TV($EXPECT($L68, fail, 'BinaryOpSymbol "=="'), function($skip, $loc, $0, $1) {
|
|
8953
8975
|
if (module.config.coffeeEq)
|
|
8954
8976
|
return "===";
|
|
8955
8977
|
return $1;
|
|
8956
8978
|
});
|
|
8957
|
-
var BinaryOpSymbol$21 = $T($S($EXPECT($
|
|
8979
|
+
var BinaryOpSymbol$21 = $T($S($EXPECT($L69, fail, 'BinaryOpSymbol "and"'), NonIdContinue), function(value) {
|
|
8958
8980
|
return "&&";
|
|
8959
8981
|
});
|
|
8960
|
-
var BinaryOpSymbol$22 = $EXPECT($
|
|
8961
|
-
var BinaryOpSymbol$23 = $T($S(CoffeeOfEnabled, $EXPECT($
|
|
8982
|
+
var BinaryOpSymbol$22 = $EXPECT($L70, fail, 'BinaryOpSymbol "&&"');
|
|
8983
|
+
var BinaryOpSymbol$23 = $T($S(CoffeeOfEnabled, $EXPECT($L71, fail, 'BinaryOpSymbol "of"'), NonIdContinue), function(value) {
|
|
8962
8984
|
return "in";
|
|
8963
8985
|
});
|
|
8964
|
-
var BinaryOpSymbol$24 = $T($S($EXPECT($
|
|
8986
|
+
var BinaryOpSymbol$24 = $T($S($EXPECT($L72, fail, 'BinaryOpSymbol "or"'), NonIdContinue), function(value) {
|
|
8965
8987
|
return "||";
|
|
8966
8988
|
});
|
|
8967
|
-
var BinaryOpSymbol$25 = $EXPECT($
|
|
8968
|
-
var BinaryOpSymbol$26 = $TV($C($EXPECT($
|
|
8989
|
+
var BinaryOpSymbol$25 = $EXPECT($L73, fail, 'BinaryOpSymbol "||"');
|
|
8990
|
+
var BinaryOpSymbol$26 = $TV($C($EXPECT($L74, fail, 'BinaryOpSymbol "^^"'), $S($EXPECT($L75, fail, 'BinaryOpSymbol "xor"'), NonIdContinue)), function($skip, $loc, $0, $1) {
|
|
8969
8991
|
return {
|
|
8970
8992
|
call: module.getRef("xor"),
|
|
8971
8993
|
special: true
|
|
8972
8994
|
};
|
|
8973
8995
|
});
|
|
8974
|
-
var BinaryOpSymbol$27 = $TV($C($EXPECT($R8, fail, "BinaryOpSymbol /!\\^\\^?/"), $S($EXPECT($
|
|
8996
|
+
var BinaryOpSymbol$27 = $TV($C($EXPECT($R8, fail, "BinaryOpSymbol /!\\^\\^?/"), $S($EXPECT($L76, fail, 'BinaryOpSymbol "xnor"'), NonIdContinue)), function($skip, $loc, $0, $1) {
|
|
8975
8997
|
return {
|
|
8976
8998
|
call: module.getRef("xnor"),
|
|
8977
8999
|
special: true
|
|
8978
9000
|
};
|
|
8979
9001
|
});
|
|
8980
|
-
var BinaryOpSymbol$28 = $EXPECT($
|
|
9002
|
+
var BinaryOpSymbol$28 = $EXPECT($L77, fail, 'BinaryOpSymbol "??"');
|
|
8981
9003
|
var BinaryOpSymbol$29 = $T($S(CoffeeBinaryExistentialEnabled, $EXPECT($L4, fail, 'BinaryOpSymbol "?"')), function(value) {
|
|
8982
9004
|
return "??";
|
|
8983
9005
|
});
|
|
8984
|
-
var BinaryOpSymbol$30 = $TS($S($EXPECT($
|
|
9006
|
+
var BinaryOpSymbol$30 = $TS($S($EXPECT($L78, fail, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
8985
9007
|
return {
|
|
8986
9008
|
$loc,
|
|
8987
9009
|
token: $1,
|
|
@@ -8989,7 +9011,7 @@ ${input.slice(result.pos)}
|
|
|
8989
9011
|
special: true
|
|
8990
9012
|
};
|
|
8991
9013
|
});
|
|
8992
|
-
var BinaryOpSymbol$31 = $TS($S($EXPECT($
|
|
9014
|
+
var BinaryOpSymbol$31 = $TS($S($EXPECT($L50, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L78, fail, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
8993
9015
|
return {
|
|
8994
9016
|
$loc,
|
|
8995
9017
|
token: "instanceof",
|
|
@@ -8998,7 +9020,7 @@ ${input.slice(result.pos)}
|
|
|
8998
9020
|
negated: true
|
|
8999
9021
|
};
|
|
9000
9022
|
});
|
|
9001
|
-
var BinaryOpSymbol$32 = $TV($C($S($N(CoffeeOfEnabled), $EXPECT($
|
|
9023
|
+
var BinaryOpSymbol$32 = $TV($C($S($N(CoffeeOfEnabled), $EXPECT($L50, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L79, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L50, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L71, fail, 'BinaryOpSymbol "of"'), NonIdContinue)), function($skip, $loc, $0, $1) {
|
|
9002
9024
|
return {
|
|
9003
9025
|
$loc,
|
|
9004
9026
|
token: "in",
|
|
@@ -9006,7 +9028,7 @@ ${input.slice(result.pos)}
|
|
|
9006
9028
|
negated: true
|
|
9007
9029
|
};
|
|
9008
9030
|
});
|
|
9009
|
-
var BinaryOpSymbol$33 = $TS($S($EXPECT($
|
|
9031
|
+
var BinaryOpSymbol$33 = $TS($S($EXPECT($L80, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L79, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
9010
9032
|
return {
|
|
9011
9033
|
method: "includes",
|
|
9012
9034
|
relational: true,
|
|
@@ -9014,7 +9036,7 @@ ${input.slice(result.pos)}
|
|
|
9014
9036
|
special: true
|
|
9015
9037
|
};
|
|
9016
9038
|
});
|
|
9017
|
-
var BinaryOpSymbol$34 = $TS($S(CoffeeOfEnabled, $EXPECT($
|
|
9039
|
+
var BinaryOpSymbol$34 = $TS($S(CoffeeOfEnabled, $EXPECT($L79, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
9018
9040
|
return {
|
|
9019
9041
|
call: [module.getRef("indexOf"), ".call"],
|
|
9020
9042
|
relational: true,
|
|
@@ -9023,7 +9045,7 @@ ${input.slice(result.pos)}
|
|
|
9023
9045
|
special: true
|
|
9024
9046
|
};
|
|
9025
9047
|
});
|
|
9026
|
-
var BinaryOpSymbol$35 = $TS($S($EXPECT($
|
|
9048
|
+
var BinaryOpSymbol$35 = $TS($S($EXPECT($L80, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L50, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L79, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
9027
9049
|
return {
|
|
9028
9050
|
method: "includes",
|
|
9029
9051
|
relational: true,
|
|
@@ -9032,7 +9054,7 @@ ${input.slice(result.pos)}
|
|
|
9032
9054
|
negated: true
|
|
9033
9055
|
};
|
|
9034
9056
|
});
|
|
9035
|
-
var BinaryOpSymbol$36 = $TS($S(CoffeeOfEnabled, $EXPECT($
|
|
9057
|
+
var BinaryOpSymbol$36 = $TS($S(CoffeeOfEnabled, $EXPECT($L50, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L79, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
9036
9058
|
return {
|
|
9037
9059
|
call: [module.getRef("indexOf"), ".call"],
|
|
9038
9060
|
relational: true,
|
|
@@ -9041,7 +9063,7 @@ ${input.slice(result.pos)}
|
|
|
9041
9063
|
special: true
|
|
9042
9064
|
};
|
|
9043
9065
|
});
|
|
9044
|
-
var BinaryOpSymbol$37 = $TS($S($N(CoffeeNotEnabled), $EXPECT($
|
|
9066
|
+
var BinaryOpSymbol$37 = $TS($S($N(CoffeeNotEnabled), $EXPECT($L80, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L50, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
9045
9067
|
if (module.config.objectIs) {
|
|
9046
9068
|
return {
|
|
9047
9069
|
call: module.getRef("is"),
|
|
@@ -9053,7 +9075,7 @@ ${input.slice(result.pos)}
|
|
|
9053
9075
|
}
|
|
9054
9076
|
return "!==";
|
|
9055
9077
|
});
|
|
9056
|
-
var BinaryOpSymbol$38 = $TS($S($EXPECT($
|
|
9078
|
+
var BinaryOpSymbol$38 = $TS($S($EXPECT($L80, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9057
9079
|
if (module.config.objectIs) {
|
|
9058
9080
|
return {
|
|
9059
9081
|
call: module.getRef("is"),
|
|
@@ -9064,12 +9086,12 @@ ${input.slice(result.pos)}
|
|
|
9064
9086
|
}
|
|
9065
9087
|
return "===";
|
|
9066
9088
|
});
|
|
9067
|
-
var BinaryOpSymbol$39 = $TS($S($EXPECT($
|
|
9089
|
+
var BinaryOpSymbol$39 = $TS($S($EXPECT($L79, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9068
9090
|
return $1;
|
|
9069
9091
|
});
|
|
9070
|
-
var BinaryOpSymbol$40 = $EXPECT($
|
|
9092
|
+
var BinaryOpSymbol$40 = $EXPECT($L81, fail, 'BinaryOpSymbol "&"');
|
|
9071
9093
|
var BinaryOpSymbol$41 = $EXPECT($L17, fail, 'BinaryOpSymbol "^"');
|
|
9072
|
-
var BinaryOpSymbol$42 = $EXPECT($
|
|
9094
|
+
var BinaryOpSymbol$42 = $EXPECT($L82, fail, 'BinaryOpSymbol "|"');
|
|
9073
9095
|
function BinaryOpSymbol(state) {
|
|
9074
9096
|
let eventData;
|
|
9075
9097
|
if (state.events) {
|
|
@@ -9092,8 +9114,8 @@ ${input.slice(result.pos)}
|
|
|
9092
9114
|
return result;
|
|
9093
9115
|
}
|
|
9094
9116
|
}
|
|
9095
|
-
var Xor$0 = $EXPECT($
|
|
9096
|
-
var Xor$1 = $S($EXPECT($
|
|
9117
|
+
var Xor$0 = $EXPECT($L74, fail, 'Xor "^^"');
|
|
9118
|
+
var Xor$1 = $S($EXPECT($L75, fail, 'Xor "xor"'), NonIdContinue);
|
|
9097
9119
|
function Xor(state) {
|
|
9098
9120
|
let eventData;
|
|
9099
9121
|
if (state.events) {
|
|
@@ -9117,7 +9139,7 @@ ${input.slice(result.pos)}
|
|
|
9117
9139
|
}
|
|
9118
9140
|
}
|
|
9119
9141
|
var Xnor$0 = $R$0($EXPECT($R8, fail, "Xnor /!\\^\\^?/"));
|
|
9120
|
-
var Xnor$1 = $EXPECT($
|
|
9142
|
+
var Xnor$1 = $EXPECT($L76, fail, 'Xnor "xnor"');
|
|
9121
9143
|
function Xnor(state) {
|
|
9122
9144
|
let eventData;
|
|
9123
9145
|
if (state.events) {
|
|
@@ -9168,7 +9190,7 @@ ${input.slice(result.pos)}
|
|
|
9168
9190
|
return result;
|
|
9169
9191
|
}
|
|
9170
9192
|
}
|
|
9171
|
-
var AwaitOp$0 = $TS($S(Await, $E($S(Dot, IdentifierName)), $C(_, $Y(
|
|
9193
|
+
var AwaitOp$0 = $TS($S(Await, $E($S(Dot, IdentifierName)), $C($Y(OpenParen), _, $Y(EOS))), function($skip, $loc, $0, $1, $2, $3) {
|
|
9172
9194
|
var a = $1;
|
|
9173
9195
|
var op = $2;
|
|
9174
9196
|
var ws = $3;
|
|
@@ -9403,7 +9425,7 @@ ${input.slice(result.pos)}
|
|
|
9403
9425
|
return result;
|
|
9404
9426
|
}
|
|
9405
9427
|
}
|
|
9406
|
-
var EmptyStatement$0 = $TS($S($E(_), $Y($EXPECT($
|
|
9428
|
+
var EmptyStatement$0 = $TS($S($E(_), $Y($EXPECT($L83, fail, 'EmptyStatement ";"'))), function($skip, $loc, $0, $1, $2) {
|
|
9407
9429
|
return { type: "EmptyStatement", children: $1 || [] };
|
|
9408
9430
|
});
|
|
9409
9431
|
function EmptyStatement(state) {
|
|
@@ -9482,7 +9504,7 @@ ${input.slice(result.pos)}
|
|
|
9482
9504
|
var w = $3;
|
|
9483
9505
|
return [id, colon, w];
|
|
9484
9506
|
});
|
|
9485
|
-
var Label$1 = $S($EXPECT($
|
|
9507
|
+
var Label$1 = $S($EXPECT($L84, fail, 'Label "$:"'), Whitespace);
|
|
9486
9508
|
function Label(state) {
|
|
9487
9509
|
let eventData;
|
|
9488
9510
|
if (state.events) {
|
|
@@ -10466,7 +10488,7 @@ ${input.slice(result.pos)}
|
|
|
10466
10488
|
return result;
|
|
10467
10489
|
}
|
|
10468
10490
|
}
|
|
10469
|
-
var CoffeeForDeclaration$0 = $TS($S($E($S(__, $EXPECT($
|
|
10491
|
+
var CoffeeForDeclaration$0 = $TS($S($E($S(__, $EXPECT($L85, fail, 'CoffeeForDeclaration "own"'), NonIdContinue)), ForBinding), function($skip, $loc, $0, $1, $2) {
|
|
10470
10492
|
var own = $1;
|
|
10471
10493
|
var binding = $2;
|
|
10472
10494
|
return {
|
|
@@ -11880,7 +11902,7 @@ ${input.slice(result.pos)}
|
|
|
11880
11902
|
return result;
|
|
11881
11903
|
}
|
|
11882
11904
|
}
|
|
11883
|
-
var Break$0 = $TS($S($EXPECT($
|
|
11905
|
+
var Break$0 = $TS($S($EXPECT($L86, fail, 'Break "break"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
11884
11906
|
return { $loc, token: $1 };
|
|
11885
11907
|
});
|
|
11886
11908
|
function Break(state) {
|
|
@@ -11905,7 +11927,7 @@ ${input.slice(result.pos)}
|
|
|
11905
11927
|
return result;
|
|
11906
11928
|
}
|
|
11907
11929
|
}
|
|
11908
|
-
var Continue$0 = $TS($S($EXPECT($
|
|
11930
|
+
var Continue$0 = $TS($S($EXPECT($L87, fail, 'Continue "continue"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
11909
11931
|
return { $loc, token: $1 };
|
|
11910
11932
|
});
|
|
11911
11933
|
function Continue(state) {
|
|
@@ -11930,7 +11952,7 @@ ${input.slice(result.pos)}
|
|
|
11930
11952
|
return result;
|
|
11931
11953
|
}
|
|
11932
11954
|
}
|
|
11933
|
-
var Debugger$0 = $TS($S($EXPECT($
|
|
11955
|
+
var Debugger$0 = $TS($S($EXPECT($L88, fail, 'Debugger "debugger"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
11934
11956
|
return { $loc, token: $1 };
|
|
11935
11957
|
});
|
|
11936
11958
|
function Debugger(state) {
|
|
@@ -12236,7 +12258,7 @@ ${input.slice(result.pos)}
|
|
|
12236
12258
|
return result;
|
|
12237
12259
|
}
|
|
12238
12260
|
}
|
|
12239
|
-
var ImportAssertion$0 = $S($E(_), $EXPECT($
|
|
12261
|
+
var ImportAssertion$0 = $S($E(_), $EXPECT($L89, fail, 'ImportAssertion "assert"'), NonIdContinue, $E(_), ObjectLiteral);
|
|
12240
12262
|
function ImportAssertion(state) {
|
|
12241
12263
|
let eventData;
|
|
12242
12264
|
if (state.events) {
|
|
@@ -12613,10 +12635,12 @@ ${input.slice(result.pos)}
|
|
|
12613
12635
|
}
|
|
12614
12636
|
}
|
|
12615
12637
|
var NamedExports$0 = $S(OpenBrace, $Q(ExportSpecifier), $E($S(__, Comma)), __, CloseBrace);
|
|
12616
|
-
var NamedExports$1 = $TS($S(InsertInlineOpenBrace, ImplicitExportSpecifier, $Q($S(
|
|
12638
|
+
var NamedExports$1 = $TS($S(InsertInlineOpenBrace, ImplicitExportSpecifier, $Q($S(ImplicitInlineObjectPropertyDelimiter, ImplicitExportSpecifier)), InsertCloseBrace, $Y($C(StatementDelimiter, $S(__, From)))), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
12617
12639
|
var open = $1;
|
|
12640
|
+
var first = $2;
|
|
12641
|
+
var rest = $3;
|
|
12618
12642
|
var close = $4;
|
|
12619
|
-
return [open,
|
|
12643
|
+
return [open, first, ...rest, close];
|
|
12620
12644
|
});
|
|
12621
12645
|
function NamedExports(state) {
|
|
12622
12646
|
let eventData;
|
|
@@ -12667,7 +12691,7 @@ ${input.slice(result.pos)}
|
|
|
12667
12691
|
return result;
|
|
12668
12692
|
}
|
|
12669
12693
|
}
|
|
12670
|
-
var ImplicitExportSpecifier$0 = $S($N(Default), ModuleExportName, $E($S(__, As, __, ModuleExportName))
|
|
12694
|
+
var ImplicitExportSpecifier$0 = $S($N(Default), ModuleExportName, $E($S(__, As, __, ModuleExportName)));
|
|
12671
12695
|
function ImplicitExportSpecifier(state) {
|
|
12672
12696
|
let eventData;
|
|
12673
12697
|
if (state.events) {
|
|
@@ -12806,7 +12830,7 @@ ${input.slice(result.pos)}
|
|
|
12806
12830
|
return result;
|
|
12807
12831
|
}
|
|
12808
12832
|
}
|
|
12809
|
-
var ConstAssignment$0 = $TV($EXPECT($
|
|
12833
|
+
var ConstAssignment$0 = $TV($EXPECT($L90, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
|
|
12810
12834
|
return { $loc, token: "=" };
|
|
12811
12835
|
});
|
|
12812
12836
|
function ConstAssignment(state) {
|
|
@@ -12831,7 +12855,7 @@ ${input.slice(result.pos)}
|
|
|
12831
12855
|
return result;
|
|
12832
12856
|
}
|
|
12833
12857
|
}
|
|
12834
|
-
var LetAssignment$0 = $TV($EXPECT($
|
|
12858
|
+
var LetAssignment$0 = $TV($EXPECT($L91, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
|
|
12835
12859
|
return { $loc, token: "=" };
|
|
12836
12860
|
});
|
|
12837
12861
|
function LetAssignment(state) {
|
|
@@ -13538,7 +13562,7 @@ ${input.slice(result.pos)}
|
|
|
13538
13562
|
}
|
|
13539
13563
|
}
|
|
13540
13564
|
var RegularExpressionLiteral$0 = HeregexLiteral;
|
|
13541
|
-
var RegularExpressionLiteral$1 = $TV($TEXT($S($EXPECT($
|
|
13565
|
+
var RegularExpressionLiteral$1 = $TV($TEXT($S($EXPECT($L53, fail, 'RegularExpressionLiteral "/"'), RegularExpressionBody, $EXPECT($L53, fail, 'RegularExpressionLiteral "/"'), RegularExpressionFlags)), function($skip, $loc, $0, $1) {
|
|
13542
13566
|
return { type: "RegularExpressionLiteral", $loc, token: $1 };
|
|
13543
13567
|
});
|
|
13544
13568
|
function RegularExpressionLiteral(state) {
|
|
@@ -14105,7 +14129,7 @@ ${input.slice(result.pos)}
|
|
|
14105
14129
|
return result;
|
|
14106
14130
|
}
|
|
14107
14131
|
}
|
|
14108
|
-
var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($
|
|
14132
|
+
var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L92, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L93, fail, 'JSMultiLineComment "*/"')), $EXPECT($R42, fail, "JSMultiLineComment /./"))), $EXPECT($L93, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
|
|
14109
14133
|
return { type: "Comment", $loc, token: $1 };
|
|
14110
14134
|
});
|
|
14111
14135
|
function JSMultiLineComment(state) {
|
|
@@ -14204,7 +14228,7 @@ ${input.slice(result.pos)}
|
|
|
14204
14228
|
return result;
|
|
14205
14229
|
}
|
|
14206
14230
|
}
|
|
14207
|
-
var InlineComment$0 = $TV($TEXT($S($EXPECT($
|
|
14231
|
+
var InlineComment$0 = $TV($TEXT($S($EXPECT($L92, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L93, fail, 'InlineComment "*/"')), $EXPECT($R46, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L93, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
|
|
14208
14232
|
return { $loc, token: $1 };
|
|
14209
14233
|
});
|
|
14210
14234
|
function InlineComment(state) {
|
|
@@ -14301,7 +14325,7 @@ ${input.slice(result.pos)}
|
|
|
14301
14325
|
var NonNewlineWhitespace$0 = $TR($EXPECT($R47, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
14302
14326
|
return { $loc, token: $0 };
|
|
14303
14327
|
});
|
|
14304
|
-
var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($
|
|
14328
|
+
var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L94, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
|
|
14305
14329
|
return "";
|
|
14306
14330
|
});
|
|
14307
14331
|
function NonNewlineWhitespace(state) {
|
|
@@ -14453,7 +14477,7 @@ ${input.slice(result.pos)}
|
|
|
14453
14477
|
}
|
|
14454
14478
|
}
|
|
14455
14479
|
var StatementDelimiter$0 = SemicolonDelimiter;
|
|
14456
|
-
var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L3, fail, 'StatementDelimiter "("'), $EXPECT($
|
|
14480
|
+
var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L3, fail, 'StatementDelimiter "("'), $EXPECT($L95, fail, 'StatementDelimiter "["'), $EXPECT($L96, fail, 'StatementDelimiter "`"'), $EXPECT($L56, fail, 'StatementDelimiter "+"'), $EXPECT($L18, fail, 'StatementDelimiter "-"'), $EXPECT($L52, fail, 'StatementDelimiter "*"'), $EXPECT($L53, fail, 'StatementDelimiter "/"'), ObjectLiteral, Arrow, FatArrow, $S(Function, $E($S($E(_), Star)), $E(_), $EXPECT($L3, fail, 'StatementDelimiter "("'))))), InsertSemicolon);
|
|
14457
14481
|
var StatementDelimiter$2 = $Y(EOS);
|
|
14458
14482
|
function StatementDelimiter(state) {
|
|
14459
14483
|
let eventData;
|
|
@@ -14553,7 +14577,7 @@ ${input.slice(result.pos)}
|
|
|
14553
14577
|
return result;
|
|
14554
14578
|
}
|
|
14555
14579
|
}
|
|
14556
|
-
var Abstract$0 = $TV($TEXT($S($EXPECT($
|
|
14580
|
+
var Abstract$0 = $TV($TEXT($S($EXPECT($L97, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L9, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
|
|
14557
14581
|
return { $loc, token: $1, ts: true };
|
|
14558
14582
|
});
|
|
14559
14583
|
function Abstract(state) {
|
|
@@ -14578,7 +14602,7 @@ ${input.slice(result.pos)}
|
|
|
14578
14602
|
return result;
|
|
14579
14603
|
}
|
|
14580
14604
|
}
|
|
14581
|
-
var Ampersand$0 = $TV($EXPECT($
|
|
14605
|
+
var Ampersand$0 = $TV($EXPECT($L81, fail, 'Ampersand "&"'), function($skip, $loc, $0, $1) {
|
|
14582
14606
|
return { $loc, token: $1 };
|
|
14583
14607
|
});
|
|
14584
14608
|
function Ampersand(state) {
|
|
@@ -14603,7 +14627,7 @@ ${input.slice(result.pos)}
|
|
|
14603
14627
|
return result;
|
|
14604
14628
|
}
|
|
14605
14629
|
}
|
|
14606
|
-
var As$0 = $TS($S($EXPECT($
|
|
14630
|
+
var As$0 = $TS($S($EXPECT($L98, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14607
14631
|
return { $loc, token: $1 };
|
|
14608
14632
|
});
|
|
14609
14633
|
function As(state) {
|
|
@@ -14628,7 +14652,7 @@ ${input.slice(result.pos)}
|
|
|
14628
14652
|
return result;
|
|
14629
14653
|
}
|
|
14630
14654
|
}
|
|
14631
|
-
var At$0 = $TV($EXPECT($
|
|
14655
|
+
var At$0 = $TV($EXPECT($L99, fail, 'At "@"'), function($skip, $loc, $0, $1) {
|
|
14632
14656
|
return { $loc, token: $1 };
|
|
14633
14657
|
});
|
|
14634
14658
|
function At(state) {
|
|
@@ -14653,7 +14677,7 @@ ${input.slice(result.pos)}
|
|
|
14653
14677
|
return result;
|
|
14654
14678
|
}
|
|
14655
14679
|
}
|
|
14656
|
-
var AtAt$0 = $TV($EXPECT($
|
|
14680
|
+
var AtAt$0 = $TV($EXPECT($L100, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
|
|
14657
14681
|
return { $loc, token: "@" };
|
|
14658
14682
|
});
|
|
14659
14683
|
function AtAt(state) {
|
|
@@ -14678,7 +14702,7 @@ ${input.slice(result.pos)}
|
|
|
14678
14702
|
return result;
|
|
14679
14703
|
}
|
|
14680
14704
|
}
|
|
14681
|
-
var Async$0 = $TS($S($EXPECT($
|
|
14705
|
+
var Async$0 = $TS($S($EXPECT($L101, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14682
14706
|
return { $loc, token: $1, type: "Async" };
|
|
14683
14707
|
});
|
|
14684
14708
|
function Async(state) {
|
|
@@ -14703,7 +14727,7 @@ ${input.slice(result.pos)}
|
|
|
14703
14727
|
return result;
|
|
14704
14728
|
}
|
|
14705
14729
|
}
|
|
14706
|
-
var Await$0 = $TS($S($EXPECT($
|
|
14730
|
+
var Await$0 = $TS($S($EXPECT($L102, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14707
14731
|
return { $loc, token: $1, type: "Await" };
|
|
14708
14732
|
});
|
|
14709
14733
|
function Await(state) {
|
|
@@ -14728,7 +14752,7 @@ ${input.slice(result.pos)}
|
|
|
14728
14752
|
return result;
|
|
14729
14753
|
}
|
|
14730
14754
|
}
|
|
14731
|
-
var Backtick$0 = $TV($EXPECT($
|
|
14755
|
+
var Backtick$0 = $TV($EXPECT($L96, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
|
|
14732
14756
|
return { $loc, token: $1 };
|
|
14733
14757
|
});
|
|
14734
14758
|
function Backtick(state) {
|
|
@@ -14753,7 +14777,7 @@ ${input.slice(result.pos)}
|
|
|
14753
14777
|
return result;
|
|
14754
14778
|
}
|
|
14755
14779
|
}
|
|
14756
|
-
var By$0 = $TS($S($EXPECT($
|
|
14780
|
+
var By$0 = $TS($S($EXPECT($L103, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14757
14781
|
return { $loc, token: $1 };
|
|
14758
14782
|
});
|
|
14759
14783
|
function By(state) {
|
|
@@ -14778,7 +14802,7 @@ ${input.slice(result.pos)}
|
|
|
14778
14802
|
return result;
|
|
14779
14803
|
}
|
|
14780
14804
|
}
|
|
14781
|
-
var Case$0 = $TS($S($EXPECT($
|
|
14805
|
+
var Case$0 = $TS($S($EXPECT($L104, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14782
14806
|
return { $loc, token: $1 };
|
|
14783
14807
|
});
|
|
14784
14808
|
function Case(state) {
|
|
@@ -14803,7 +14827,7 @@ ${input.slice(result.pos)}
|
|
|
14803
14827
|
return result;
|
|
14804
14828
|
}
|
|
14805
14829
|
}
|
|
14806
|
-
var Catch$0 = $TS($S($EXPECT($
|
|
14830
|
+
var Catch$0 = $TS($S($EXPECT($L105, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14807
14831
|
return { $loc, token: $1 };
|
|
14808
14832
|
});
|
|
14809
14833
|
function Catch(state) {
|
|
@@ -14828,7 +14852,7 @@ ${input.slice(result.pos)}
|
|
|
14828
14852
|
return result;
|
|
14829
14853
|
}
|
|
14830
14854
|
}
|
|
14831
|
-
var Class$0 = $TS($S($EXPECT($
|
|
14855
|
+
var Class$0 = $TS($S($EXPECT($L106, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
14832
14856
|
return { $loc, token: $1 };
|
|
14833
14857
|
});
|
|
14834
14858
|
function Class(state) {
|
|
@@ -14903,7 +14927,7 @@ ${input.slice(result.pos)}
|
|
|
14903
14927
|
return result;
|
|
14904
14928
|
}
|
|
14905
14929
|
}
|
|
14906
|
-
var CloseParen$0 = $TV($EXPECT($
|
|
14930
|
+
var CloseParen$0 = $TV($EXPECT($L107, fail, 'CloseParen ")"'), function($skip, $loc, $0, $1) {
|
|
14907
14931
|
return { $loc, token: $1 };
|
|
14908
14932
|
});
|
|
14909
14933
|
function CloseParen(state) {
|
|
@@ -14928,7 +14952,7 @@ ${input.slice(result.pos)}
|
|
|
14928
14952
|
return result;
|
|
14929
14953
|
}
|
|
14930
14954
|
}
|
|
14931
|
-
var CoffeeSubstitutionStart$0 = $TV($EXPECT($
|
|
14955
|
+
var CoffeeSubstitutionStart$0 = $TV($EXPECT($L108, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
|
|
14932
14956
|
return { $loc, token: "${" };
|
|
14933
14957
|
});
|
|
14934
14958
|
function CoffeeSubstitutionStart(state) {
|
|
@@ -14953,7 +14977,7 @@ ${input.slice(result.pos)}
|
|
|
14953
14977
|
return result;
|
|
14954
14978
|
}
|
|
14955
14979
|
}
|
|
14956
|
-
var Colon$0 = $TS($S($EXPECT($
|
|
14980
|
+
var Colon$0 = $TS($S($EXPECT($L109, fail, 'Colon ":"'), $N($EXPECT($L2, fail, 'Colon "="'))), function($skip, $loc, $0, $1, $2) {
|
|
14957
14981
|
return { $loc, token: $1 };
|
|
14958
14982
|
});
|
|
14959
14983
|
function Colon(state) {
|
|
@@ -15003,7 +15027,7 @@ ${input.slice(result.pos)}
|
|
|
15003
15027
|
return result;
|
|
15004
15028
|
}
|
|
15005
15029
|
}
|
|
15006
|
-
var ConstructorShorthand$0 = $TV($EXPECT($
|
|
15030
|
+
var ConstructorShorthand$0 = $TV($EXPECT($L99, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
|
|
15007
15031
|
return { $loc, token: "constructor" };
|
|
15008
15032
|
});
|
|
15009
15033
|
function ConstructorShorthand(state) {
|
|
@@ -15528,7 +15552,7 @@ ${input.slice(result.pos)}
|
|
|
15528
15552
|
return result;
|
|
15529
15553
|
}
|
|
15530
15554
|
}
|
|
15531
|
-
var In$0 = $TS($S($EXPECT($
|
|
15555
|
+
var In$0 = $TS($S($EXPECT($L79, fail, 'In "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
15532
15556
|
return { $loc, token: $1 };
|
|
15533
15557
|
});
|
|
15534
15558
|
function In(state) {
|
|
@@ -15677,7 +15701,7 @@ ${input.slice(result.pos)}
|
|
|
15677
15701
|
return result;
|
|
15678
15702
|
}
|
|
15679
15703
|
}
|
|
15680
|
-
var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($
|
|
15704
|
+
var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L50, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($L9, fail, 'Not " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
15681
15705
|
return { $loc, token: "!" };
|
|
15682
15706
|
});
|
|
15683
15707
|
function Not(state) {
|
|
@@ -15702,7 +15726,7 @@ ${input.slice(result.pos)}
|
|
|
15702
15726
|
return result;
|
|
15703
15727
|
}
|
|
15704
15728
|
}
|
|
15705
|
-
var Of$0 = $TS($S($EXPECT($
|
|
15729
|
+
var Of$0 = $TS($S($EXPECT($L71, fail, 'Of "of"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
15706
15730
|
return { $loc, token: $1 };
|
|
15707
15731
|
});
|
|
15708
15732
|
function Of(state) {
|
|
@@ -15777,7 +15801,7 @@ ${input.slice(result.pos)}
|
|
|
15777
15801
|
return result;
|
|
15778
15802
|
}
|
|
15779
15803
|
}
|
|
15780
|
-
var OpenBracket$0 = $TV($EXPECT($
|
|
15804
|
+
var OpenBracket$0 = $TV($EXPECT($L95, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
|
|
15781
15805
|
return { $loc, token: $1 };
|
|
15782
15806
|
});
|
|
15783
15807
|
function OpenBracket(state) {
|
|
@@ -16058,7 +16082,7 @@ ${input.slice(result.pos)}
|
|
|
16058
16082
|
return result;
|
|
16059
16083
|
}
|
|
16060
16084
|
}
|
|
16061
|
-
var Semicolon$0 = $TV($EXPECT($
|
|
16085
|
+
var Semicolon$0 = $TV($EXPECT($L83, fail, 'Semicolon ";"'), function($skip, $loc, $0, $1) {
|
|
16062
16086
|
return { $loc, token: $1 };
|
|
16063
16087
|
});
|
|
16064
16088
|
function Semicolon(state) {
|
|
@@ -16108,7 +16132,7 @@ ${input.slice(result.pos)}
|
|
|
16108
16132
|
return result;
|
|
16109
16133
|
}
|
|
16110
16134
|
}
|
|
16111
|
-
var Star$0 = $TV($EXPECT($
|
|
16135
|
+
var Star$0 = $TV($EXPECT($L52, fail, 'Star "*"'), function($skip, $loc, $0, $1) {
|
|
16112
16136
|
return { $loc, token: $1 };
|
|
16113
16137
|
});
|
|
16114
16138
|
function Star(state) {
|
|
@@ -16136,7 +16160,7 @@ ${input.slice(result.pos)}
|
|
|
16136
16160
|
var Static$0 = $TS($S($EXPECT($L145, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
16137
16161
|
return { $loc, token: $1 };
|
|
16138
16162
|
});
|
|
16139
|
-
var Static$1 = $TS($S($EXPECT($
|
|
16163
|
+
var Static$1 = $TS($S($EXPECT($L99, fail, 'Static "@"'), $N($C($EXPECT($L3, fail, 'Static "("'), $EXPECT($L99, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
|
|
16140
16164
|
return { $loc, token: "static " };
|
|
16141
16165
|
});
|
|
16142
16166
|
function Static(state) {
|
|
@@ -16756,7 +16780,7 @@ ${input.slice(result.pos)}
|
|
|
16756
16780
|
return result;
|
|
16757
16781
|
}
|
|
16758
16782
|
}
|
|
16759
|
-
var JSXSelfClosingElement$0 = $TS($S($EXPECT($L132, fail, 'JSXSelfClosingElement "<"'),
|
|
16783
|
+
var JSXSelfClosingElement$0 = $TS($S($EXPECT($L132, fail, 'JSXSelfClosingElement "<"'), JSXElementName, $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L165, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
16760
16784
|
return { type: "JSXElement", children: $0, tag: $2 };
|
|
16761
16785
|
});
|
|
16762
16786
|
function JSXSelfClosingElement(state) {
|
|
@@ -16832,7 +16856,7 @@ ${input.slice(result.pos)}
|
|
|
16832
16856
|
return result;
|
|
16833
16857
|
}
|
|
16834
16858
|
}
|
|
16835
|
-
var JSXOpeningElement$0 = $S($EXPECT($L132, fail, 'JSXOpeningElement "<"'),
|
|
16859
|
+
var JSXOpeningElement$0 = $S($EXPECT($L132, fail, 'JSXOpeningElement "<"'), JSXElementName, $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L30, fail, 'JSXOpeningElement ">"'));
|
|
16836
16860
|
function JSXOpeningElement(state) {
|
|
16837
16861
|
let eventData;
|
|
16838
16862
|
if (state.events) {
|
|
@@ -16884,7 +16908,7 @@ ${input.slice(result.pos)}
|
|
|
16884
16908
|
return result;
|
|
16885
16909
|
}
|
|
16886
16910
|
}
|
|
16887
|
-
var JSXClosingElement$0 = $S($EXPECT($L166, fail, 'JSXClosingElement "</"'), $E(Whitespace),
|
|
16911
|
+
var JSXClosingElement$0 = $S($EXPECT($L166, fail, 'JSXClosingElement "</"'), $E(Whitespace), JSXElementName, $E(Whitespace), $EXPECT($L30, fail, 'JSXClosingElement ">"'));
|
|
16888
16912
|
function JSXClosingElement(state) {
|
|
16889
16913
|
let eventData;
|
|
16890
16914
|
if (state.events) {
|
|
@@ -17030,7 +17054,10 @@ ${input.slice(result.pos)}
|
|
|
17030
17054
|
return result;
|
|
17031
17055
|
}
|
|
17032
17056
|
}
|
|
17033
|
-
var JSXElementName$0 = $S(
|
|
17057
|
+
var JSXElementName$0 = $TV($Y($S($C($EXPECT($L12, fail, 'JSXElementName "#"'), Dot), JSXShorthandString)), function($skip, $loc, $0, $1) {
|
|
17058
|
+
return module.config.defaultElement;
|
|
17059
|
+
});
|
|
17060
|
+
var JSXElementName$1 = $TEXT($S(JSXIdentifierName, $C($S(Colon, JSXIdentifierName), $Q($S(Dot, JSXIdentifierName)))));
|
|
17034
17061
|
function JSXElementName(state) {
|
|
17035
17062
|
let eventData;
|
|
17036
17063
|
if (state.events) {
|
|
@@ -17042,12 +17069,12 @@ ${input.slice(result.pos)}
|
|
|
17042
17069
|
}
|
|
17043
17070
|
}
|
|
17044
17071
|
if (state.tokenize) {
|
|
17045
|
-
const result = $TOKEN("JSXElementName", state, JSXElementName$0(state));
|
|
17072
|
+
const result = $TOKEN("JSXElementName", state, JSXElementName$0(state) || JSXElementName$1(state));
|
|
17046
17073
|
if (state.events)
|
|
17047
17074
|
state.events.exit?.("JSXElementName", state, result, eventData);
|
|
17048
17075
|
return result;
|
|
17049
17076
|
} else {
|
|
17050
|
-
const result = JSXElementName$0(state);
|
|
17077
|
+
const result = JSXElementName$0(state) || JSXElementName$1(state);
|
|
17051
17078
|
if (state.events)
|
|
17052
17079
|
state.events.exit?.("JSXElementName", state, result, eventData);
|
|
17053
17080
|
return result;
|
|
@@ -19015,7 +19042,7 @@ ${input.slice(result.pos)}
|
|
|
19015
19042
|
return result;
|
|
19016
19043
|
}
|
|
19017
19044
|
}
|
|
19018
|
-
var TypePredicate$0 = $TS($S(Type, $E($S(__, $EXPECT($
|
|
19045
|
+
var TypePredicate$0 = $TS($S(Type, $E($S(__, $EXPECT($L80, fail, 'TypePredicate "is"'), NonIdContinue, Type))), function($skip, $loc, $0, $1, $2) {
|
|
19019
19046
|
var lhs = $1;
|
|
19020
19047
|
var rhs = $2;
|
|
19021
19048
|
if (!rhs)
|
|
@@ -19576,7 +19603,7 @@ ${input.slice(result.pos)}
|
|
|
19576
19603
|
var InlineInterfacePropertyDelimiter$1 = $T($S($Y($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertComma), function(value) {
|
|
19577
19604
|
return value[1];
|
|
19578
19605
|
});
|
|
19579
|
-
var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($
|
|
19606
|
+
var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L109, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L107, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L31, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L22, fail, 'InlineInterfacePropertyDelimiter "}"'))));
|
|
19580
19607
|
var InlineInterfacePropertyDelimiter$3 = $Y(EOS);
|
|
19581
19608
|
function InlineInterfacePropertyDelimiter(state) {
|
|
19582
19609
|
let eventData;
|
|
@@ -19600,10 +19627,10 @@ ${input.slice(result.pos)}
|
|
|
19600
19627
|
return result;
|
|
19601
19628
|
}
|
|
19602
19629
|
}
|
|
19603
|
-
var TypeBinaryOp$0 = $TV($EXPECT($
|
|
19630
|
+
var TypeBinaryOp$0 = $TV($EXPECT($L82, fail, 'TypeBinaryOp "|"'), function($skip, $loc, $0, $1) {
|
|
19604
19631
|
return { $loc, token: "|" };
|
|
19605
19632
|
});
|
|
19606
|
-
var TypeBinaryOp$1 = $TV($EXPECT($
|
|
19633
|
+
var TypeBinaryOp$1 = $TV($EXPECT($L81, fail, 'TypeBinaryOp "&"'), function($skip, $loc, $0, $1) {
|
|
19607
19634
|
return { $loc, token: "&" };
|
|
19608
19635
|
});
|
|
19609
19636
|
function TypeBinaryOp(state) {
|
|
@@ -21044,6 +21071,7 @@ ${input.slice(result.pos)}
|
|
|
21044
21071
|
coffeeNot: false,
|
|
21045
21072
|
coffeeOf: false,
|
|
21046
21073
|
coffeePrototype: false,
|
|
21074
|
+
defaultElement: "div",
|
|
21047
21075
|
implicitReturns: true,
|
|
21048
21076
|
objectIs: false,
|
|
21049
21077
|
react: false,
|
|
@@ -23178,6 +23206,31 @@ ${input.slice(result.pos)}
|
|
|
23178
23206
|
return result;
|
|
23179
23207
|
}
|
|
23180
23208
|
}
|
|
23209
|
+
var Dedented$0 = $T($S($N($C(Samedent, IndentedFurther)), EOS), function(value) {
|
|
23210
|
+
return value[1];
|
|
23211
|
+
});
|
|
23212
|
+
function Dedented(state) {
|
|
23213
|
+
let eventData;
|
|
23214
|
+
if (state.events) {
|
|
23215
|
+
const result = state.events.enter?.("Dedented", state);
|
|
23216
|
+
if (result) {
|
|
23217
|
+
if (result.cache)
|
|
23218
|
+
return result.cache;
|
|
23219
|
+
eventData = result.data;
|
|
23220
|
+
}
|
|
23221
|
+
}
|
|
23222
|
+
if (state.tokenize) {
|
|
23223
|
+
const result = $TOKEN("Dedented", state, Dedented$0(state));
|
|
23224
|
+
if (state.events)
|
|
23225
|
+
state.events.exit?.("Dedented", state, result, eventData);
|
|
23226
|
+
return result;
|
|
23227
|
+
} else {
|
|
23228
|
+
const result = Dedented$0(state);
|
|
23229
|
+
if (state.events)
|
|
23230
|
+
state.events.exit?.("Dedented", state, result, eventData);
|
|
23231
|
+
return result;
|
|
23232
|
+
}
|
|
23233
|
+
}
|
|
23181
23234
|
var PushIndent$0 = $Y($S(EOS, TrackIndented));
|
|
23182
23235
|
function PushIndent(state) {
|
|
23183
23236
|
let eventData;
|
|
@@ -23739,7 +23792,7 @@ ${input.slice(result.pos)}
|
|
|
23739
23792
|
var uncacheable;
|
|
23740
23793
|
({ parse } = import_parser.default);
|
|
23741
23794
|
({ SourceMap: SourceMap2, base64Encode: base64Encode2 } = util_exports);
|
|
23742
|
-
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", "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", "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"]);
|
|
23795
|
+
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"]);
|
|
23743
23796
|
var compile = function(src, options) {
|
|
23744
23797
|
var ast, code, events, filename, ref, result, sm, srcMapJSON;
|
|
23745
23798
|
if (!options) {
|