@danielx/civet 0.6.41 → 0.6.43
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 +622 -480
- package/dist/main.js +622 -480
- package/dist/main.mjs +622 -480
- package/dist/ts-diagnostic.js +0 -61
- package/dist/ts-diagnostic.mjs +0 -49
- package/package.json +2 -2
package/dist/main.mjs
CHANGED
|
@@ -849,14 +849,36 @@ var require_lib = __commonJS({
|
|
|
849
849
|
})
|
|
850
850
|
);
|
|
851
851
|
}
|
|
852
|
+
function negateCondition(condition) {
|
|
853
|
+
let { expression } = condition;
|
|
854
|
+
const children = condition.children.slice();
|
|
855
|
+
const i = children.indexOf(expression);
|
|
856
|
+
if (i < 0) {
|
|
857
|
+
throw new Error(`Could not find expression in condition`);
|
|
858
|
+
}
|
|
859
|
+
children[i] = expression = {
|
|
860
|
+
type: "UnaryExpression",
|
|
861
|
+
children: [
|
|
862
|
+
"!",
|
|
863
|
+
makeLeftHandSideExpression(expression)
|
|
864
|
+
]
|
|
865
|
+
};
|
|
866
|
+
return { ...condition, expression, children };
|
|
867
|
+
}
|
|
852
868
|
function expressionizeIfClause(clause, b, e) {
|
|
853
|
-
const
|
|
854
|
-
children.
|
|
869
|
+
const { condition } = clause;
|
|
870
|
+
const [...condRest] = condition.children, [closeParen] = condRest.splice(-1);
|
|
871
|
+
const children = [
|
|
872
|
+
...condRest,
|
|
873
|
+
"?",
|
|
874
|
+
b
|
|
875
|
+
];
|
|
855
876
|
if (e) {
|
|
856
877
|
children.push(e[0], ":", ...e.slice(2));
|
|
857
878
|
} else {
|
|
858
879
|
children.push(":void 0");
|
|
859
880
|
}
|
|
881
|
+
children.push(closeParen);
|
|
860
882
|
return {
|
|
861
883
|
type: "IfExpression",
|
|
862
884
|
children
|
|
@@ -1540,7 +1562,6 @@ var require_lib = __commonJS({
|
|
|
1540
1562
|
const [, exp, semi] = node;
|
|
1541
1563
|
if (semi?.type === "SemicolonDelimiter")
|
|
1542
1564
|
return;
|
|
1543
|
-
let indent = getIndent(node);
|
|
1544
1565
|
if (!exp)
|
|
1545
1566
|
return;
|
|
1546
1567
|
switch (exp.type) {
|
|
@@ -1965,6 +1986,7 @@ var require_lib = __commonJS({
|
|
|
1965
1986
|
case "CallExpression":
|
|
1966
1987
|
case "MemberExpression":
|
|
1967
1988
|
case "ParenthesizedExpression":
|
|
1989
|
+
case "IfExpression":
|
|
1968
1990
|
case "DebuggerExpression":
|
|
1969
1991
|
case "SwitchExpression":
|
|
1970
1992
|
case "ThrowExpression":
|
|
@@ -2204,7 +2226,7 @@ var require_lib = __commonJS({
|
|
|
2204
2226
|
children
|
|
2205
2227
|
};
|
|
2206
2228
|
}
|
|
2207
|
-
function processDeclarationCondition(condition) {
|
|
2229
|
+
function processDeclarationCondition(condition, rootCondition) {
|
|
2208
2230
|
if (!(condition.type === "DeclarationCondition")) {
|
|
2209
2231
|
return;
|
|
2210
2232
|
}
|
|
@@ -2212,7 +2234,7 @@ var require_lib = __commonJS({
|
|
|
2212
2234
|
const { decl, bindings } = condition.declaration;
|
|
2213
2235
|
const binding = bindings[0];
|
|
2214
2236
|
const { pattern, suffix, initializer, splices, thisAssignments } = binding;
|
|
2215
|
-
|
|
2237
|
+
Object.assign(condition, {
|
|
2216
2238
|
type: "AssignmentExpression",
|
|
2217
2239
|
children: [ref, initializer],
|
|
2218
2240
|
hoistDec: {
|
|
@@ -2220,14 +2242,15 @@ var require_lib = __commonJS({
|
|
|
2220
2242
|
children: ["let ", ref, suffix],
|
|
2221
2243
|
names: []
|
|
2222
2244
|
},
|
|
2245
|
+
pattern,
|
|
2246
|
+
ref
|
|
2247
|
+
});
|
|
2248
|
+
Object.assign(rootCondition, {
|
|
2223
2249
|
blockPrefix: [
|
|
2224
2250
|
["", [decl, pattern, suffix, " = ", ref, ...splices], ";"],
|
|
2225
2251
|
...thisAssignments
|
|
2226
|
-
]
|
|
2227
|
-
|
|
2228
|
-
ref
|
|
2229
|
-
};
|
|
2230
|
-
Object.assign(condition, initCondition);
|
|
2252
|
+
]
|
|
2253
|
+
});
|
|
2231
2254
|
}
|
|
2232
2255
|
function processDeclarationConditions(node) {
|
|
2233
2256
|
gatherRecursiveAll(node, (n) => {
|
|
@@ -2239,8 +2262,15 @@ var require_lib = __commonJS({
|
|
|
2239
2262
|
if (!condition?.expression) {
|
|
2240
2263
|
return;
|
|
2241
2264
|
}
|
|
2242
|
-
|
|
2243
|
-
|
|
2265
|
+
;
|
|
2266
|
+
let { expression } = condition;
|
|
2267
|
+
if (typeof expression === "object" && expression != null && "type" in expression && expression.type === "UnaryExpression" && "children" in expression && Array.isArray(expression.children) && expression.children.length === 2 && expression.children[0] === "!" && typeof expression.children[1] === "object" && expression.children[1] != null && "type" in expression.children[1] && expression.children[1].type === "ParenthesizedExpression" && "expression" in expression.children[1]) {
|
|
2268
|
+
const { type: type1, children: [, { type: type2, expression: expression2 }] } = expression;
|
|
2269
|
+
const type = [type1, type2];
|
|
2270
|
+
expression = expression2;
|
|
2271
|
+
}
|
|
2272
|
+
processDeclarationCondition(expression, condition.expression);
|
|
2273
|
+
const { ref, pattern } = expression;
|
|
2244
2274
|
if (pattern) {
|
|
2245
2275
|
let conditions = [];
|
|
2246
2276
|
getPatternConditions(pattern, ref, conditions);
|
|
@@ -3532,6 +3562,7 @@ var require_lib = __commonJS({
|
|
|
3532
3562
|
maybeRef,
|
|
3533
3563
|
modifyString,
|
|
3534
3564
|
needsRef,
|
|
3565
|
+
negateCondition,
|
|
3535
3566
|
processAssignmentDeclaration,
|
|
3536
3567
|
processBinaryOpExpression,
|
|
3537
3568
|
processCallMemberExpression,
|
|
@@ -3596,6 +3627,7 @@ var require_parser = __commonJS({
|
|
|
3596
3627
|
NestedNonAssignmentExtendedExpression,
|
|
3597
3628
|
ExpressionizedStatementWithTrailingCallExpressions,
|
|
3598
3629
|
ExpressionizedStatement,
|
|
3630
|
+
_ExpressionizedStatement,
|
|
3599
3631
|
Expression,
|
|
3600
3632
|
Arguments,
|
|
3601
3633
|
ImplicitArguments,
|
|
@@ -3687,6 +3719,7 @@ var require_parser = __commonJS({
|
|
|
3687
3719
|
MemberBracketContent,
|
|
3688
3720
|
SliceParameters,
|
|
3689
3721
|
AccessStart,
|
|
3722
|
+
PropertyAccessModifier,
|
|
3690
3723
|
PropertyAccess,
|
|
3691
3724
|
PropertyGlob,
|
|
3692
3725
|
PropertyBind,
|
|
@@ -3757,12 +3790,14 @@ var require_parser = __commonJS({
|
|
|
3757
3790
|
LiteralContent,
|
|
3758
3791
|
NullLiteral,
|
|
3759
3792
|
BooleanLiteral,
|
|
3793
|
+
_BooleanLiteral,
|
|
3760
3794
|
CoffeeScriptBooleanLiteral,
|
|
3761
3795
|
Identifier,
|
|
3762
3796
|
IdentifierName,
|
|
3763
3797
|
IdentifierReference,
|
|
3764
3798
|
UpcomingAssignment,
|
|
3765
3799
|
ArrayLiteral,
|
|
3800
|
+
_ArrayLiteral,
|
|
3766
3801
|
RangeExpression,
|
|
3767
3802
|
ArrayLiteralContent,
|
|
3768
3803
|
NestedElementList,
|
|
@@ -3804,6 +3839,8 @@ var require_parser = __commonJS({
|
|
|
3804
3839
|
IdentifierBinaryOp,
|
|
3805
3840
|
BinaryOp,
|
|
3806
3841
|
BinaryOpSymbol,
|
|
3842
|
+
CoffeeOfOp,
|
|
3843
|
+
NotOp,
|
|
3807
3844
|
Xor,
|
|
3808
3845
|
Xnor,
|
|
3809
3846
|
UnaryOp,
|
|
@@ -3814,6 +3851,7 @@ var require_parser = __commonJS({
|
|
|
3814
3851
|
PostfixedExpression,
|
|
3815
3852
|
NonPipelinePostfixedExpression,
|
|
3816
3853
|
PostfixStatement,
|
|
3854
|
+
_PostfixStatement,
|
|
3817
3855
|
Statement,
|
|
3818
3856
|
EmptyStatement,
|
|
3819
3857
|
BlockStatement,
|
|
@@ -3833,6 +3871,7 @@ var require_parser = __commonJS({
|
|
|
3833
3871
|
NestedBlockExpression,
|
|
3834
3872
|
BlockExpressionPart,
|
|
3835
3873
|
IterationStatement,
|
|
3874
|
+
_IterationStatement,
|
|
3836
3875
|
IterationExpression,
|
|
3837
3876
|
LoopStatement,
|
|
3838
3877
|
LoopClause,
|
|
@@ -3969,11 +4008,13 @@ var require_parser = __commonJS({
|
|
|
3969
4008
|
RegExpCharacter,
|
|
3970
4009
|
RegularExpressionFlags,
|
|
3971
4010
|
TemplateLiteral,
|
|
4011
|
+
_TemplateLiteral,
|
|
3972
4012
|
TemplateSubstitution,
|
|
3973
4013
|
TemplateCharacters,
|
|
3974
4014
|
TemplateBlockCharacters,
|
|
3975
4015
|
ReservedWord,
|
|
3976
4016
|
Comment,
|
|
4017
|
+
_Comment,
|
|
3977
4018
|
SingleLineComment,
|
|
3978
4019
|
JSSingleLineComment,
|
|
3979
4020
|
MultiLineComment,
|
|
@@ -4273,8 +4314,8 @@ var require_parser = __commonJS({
|
|
|
4273
4314
|
var $L8 = $L("--");
|
|
4274
4315
|
var $L9 = $L("=>");
|
|
4275
4316
|
var $L10 = $L("\u21D2");
|
|
4276
|
-
var $L11 = $L("
|
|
4277
|
-
var $L12 = $L("
|
|
4317
|
+
var $L11 = $L(":");
|
|
4318
|
+
var $L12 = $L(" ");
|
|
4278
4319
|
var $L13 = $L("implements");
|
|
4279
4320
|
var $L14 = $L("<:");
|
|
4280
4321
|
var $L15 = $L("import");
|
|
@@ -4346,77 +4387,77 @@ var require_parser = __commonJS({
|
|
|
4346
4387
|
var $L81 = $L("\u2A75");
|
|
4347
4388
|
var $L82 = $L("and");
|
|
4348
4389
|
var $L83 = $L("&&");
|
|
4349
|
-
var $L84 = $L("
|
|
4350
|
-
var $L85 = $L("
|
|
4351
|
-
var $L86 = $L("
|
|
4352
|
-
var $L87 = $L("
|
|
4353
|
-
var $L88 = $L("
|
|
4354
|
-
var $L89 = $L("
|
|
4355
|
-
var $L90 = $L("
|
|
4356
|
-
var $L91 = $L("
|
|
4357
|
-
var $L92 = $L("
|
|
4358
|
-
var $L93 = $L("
|
|
4359
|
-
var $L94 = $L("\
|
|
4360
|
-
var $L95 = $L("\
|
|
4361
|
-
var $L96 = $L("\
|
|
4362
|
-
var $L97 = $L("
|
|
4363
|
-
var $L98 = $L("
|
|
4364
|
-
var $L99 = $L("
|
|
4365
|
-
var $L100 = $L("
|
|
4366
|
-
var $L101 = $L("
|
|
4367
|
-
var $L102 = $L("
|
|
4368
|
-
var $L103 = $L("
|
|
4369
|
-
var $L104 = $L("
|
|
4370
|
-
var $L105 = $L("
|
|
4371
|
-
var $L106 = $L("
|
|
4372
|
-
var $L107 = $L("
|
|
4373
|
-
var $L108 = $L("
|
|
4374
|
-
var $L109 = $L("
|
|
4375
|
-
var $L110 = $L("
|
|
4376
|
-
var $L111 = $L("
|
|
4377
|
-
var $L112 = $L("
|
|
4378
|
-
var $L113 = $L("
|
|
4379
|
-
var $L114 = $L("
|
|
4380
|
-
var $L115 = $L("
|
|
4381
|
-
var $L116 = $L("
|
|
4382
|
-
var $L117 = $L("
|
|
4383
|
-
var $L118 = $L("
|
|
4384
|
-
var $L119 = $L("
|
|
4385
|
-
var $L120 = $L("
|
|
4386
|
-
var $L121 = $L("
|
|
4387
|
-
var $L122 = $L("
|
|
4388
|
-
var $L123 = $L("
|
|
4389
|
-
var $L124 = $L("
|
|
4390
|
-
var $L125 = $L("
|
|
4391
|
-
var $L126 = $L("
|
|
4392
|
-
var $L127 = $L("
|
|
4393
|
-
var $L128 = $L("
|
|
4394
|
-
var $L129 = $L("
|
|
4395
|
-
var $L130 = $L("
|
|
4396
|
-
var $L131 = $L("
|
|
4397
|
-
var $L132 = $L("
|
|
4398
|
-
var $L133 = $L("
|
|
4399
|
-
var $L134 = $L("
|
|
4400
|
-
var $L135 = $L(
|
|
4401
|
-
var $L136 = $L("
|
|
4402
|
-
var $L137 = $L("
|
|
4403
|
-
var $L138 = $L("
|
|
4404
|
-
var $L139 = $L("
|
|
4405
|
-
var $L140 = $L("
|
|
4406
|
-
var $L141 = $L("
|
|
4407
|
-
var $L142 = $L("
|
|
4408
|
-
var $L143 = $L("
|
|
4409
|
-
var $L144 = $L("
|
|
4410
|
-
var $L145 = $L("
|
|
4411
|
-
var $L146 = $L("
|
|
4412
|
-
var $L147 = $L("
|
|
4413
|
-
var $L148 = $L("
|
|
4414
|
-
var $L149 = $L("
|
|
4415
|
-
var $L150 = $L("
|
|
4416
|
-
var $L151 = $L("
|
|
4417
|
-
var $L152 = $L("
|
|
4418
|
-
var $L153 = $L("
|
|
4419
|
-
var $L154 = $L("
|
|
4390
|
+
var $L84 = $L("or");
|
|
4391
|
+
var $L85 = $L("||");
|
|
4392
|
+
var $L86 = $L("\u2016");
|
|
4393
|
+
var $L87 = $L("^^");
|
|
4394
|
+
var $L88 = $L("xor");
|
|
4395
|
+
var $L89 = $L("xnor");
|
|
4396
|
+
var $L90 = $L("??");
|
|
4397
|
+
var $L91 = $L("\u2047");
|
|
4398
|
+
var $L92 = $L("instanceof");
|
|
4399
|
+
var $L93 = $L("\u2208");
|
|
4400
|
+
var $L94 = $L("\u220B");
|
|
4401
|
+
var $L95 = $L("\u220C");
|
|
4402
|
+
var $L96 = $L("\u2209");
|
|
4403
|
+
var $L97 = $L("&");
|
|
4404
|
+
var $L98 = $L("|");
|
|
4405
|
+
var $L99 = $L(";");
|
|
4406
|
+
var $L100 = $L("$:");
|
|
4407
|
+
var $L101 = $L("break");
|
|
4408
|
+
var $L102 = $L("continue");
|
|
4409
|
+
var $L103 = $L("debugger");
|
|
4410
|
+
var $L104 = $L("assert");
|
|
4411
|
+
var $L105 = $L(":=");
|
|
4412
|
+
var $L106 = $L("\u2254");
|
|
4413
|
+
var $L107 = $L(".=");
|
|
4414
|
+
var $L108 = $L("/*");
|
|
4415
|
+
var $L109 = $L("*/");
|
|
4416
|
+
var $L110 = $L("\\");
|
|
4417
|
+
var $L111 = $L("[");
|
|
4418
|
+
var $L112 = $L("`");
|
|
4419
|
+
var $L113 = $L(")");
|
|
4420
|
+
var $L114 = $L("abstract");
|
|
4421
|
+
var $L115 = $L("as");
|
|
4422
|
+
var $L116 = $L("@");
|
|
4423
|
+
var $L117 = $L("@@");
|
|
4424
|
+
var $L118 = $L("async");
|
|
4425
|
+
var $L119 = $L("await");
|
|
4426
|
+
var $L120 = $L("by");
|
|
4427
|
+
var $L121 = $L("case");
|
|
4428
|
+
var $L122 = $L("catch");
|
|
4429
|
+
var $L123 = $L("class");
|
|
4430
|
+
var $L124 = $L("#{");
|
|
4431
|
+
var $L125 = $L("declare");
|
|
4432
|
+
var $L126 = $L("default");
|
|
4433
|
+
var $L127 = $L("delete");
|
|
4434
|
+
var $L128 = $L("do");
|
|
4435
|
+
var $L129 = $L("..");
|
|
4436
|
+
var $L130 = $L("\u2025");
|
|
4437
|
+
var $L131 = $L("...");
|
|
4438
|
+
var $L132 = $L("\u2026");
|
|
4439
|
+
var $L133 = $L("::");
|
|
4440
|
+
var $L134 = $L('"');
|
|
4441
|
+
var $L135 = $L("each");
|
|
4442
|
+
var $L136 = $L("else");
|
|
4443
|
+
var $L137 = $L("export");
|
|
4444
|
+
var $L138 = $L("extends");
|
|
4445
|
+
var $L139 = $L("finally");
|
|
4446
|
+
var $L140 = $L("for");
|
|
4447
|
+
var $L141 = $L("from");
|
|
4448
|
+
var $L142 = $L("function");
|
|
4449
|
+
var $L143 = $L("get");
|
|
4450
|
+
var $L144 = $L("set");
|
|
4451
|
+
var $L145 = $L("#");
|
|
4452
|
+
var $L146 = $L("if");
|
|
4453
|
+
var $L147 = $L("in");
|
|
4454
|
+
var $L148 = $L("let");
|
|
4455
|
+
var $L149 = $L("const");
|
|
4456
|
+
var $L150 = $L("is");
|
|
4457
|
+
var $L151 = $L("loop");
|
|
4458
|
+
var $L152 = $L("new");
|
|
4459
|
+
var $L153 = $L("not");
|
|
4460
|
+
var $L154 = $L("of");
|
|
4420
4461
|
var $L155 = $L("<");
|
|
4421
4462
|
var $L156 = $L("operator");
|
|
4422
4463
|
var $L157 = $L("own");
|
|
@@ -4473,74 +4514,91 @@ var require_parser = __commonJS({
|
|
|
4473
4514
|
var $L208 = $L("???");
|
|
4474
4515
|
var $L209 = $L("[]");
|
|
4475
4516
|
var $L210 = $L("civet");
|
|
4476
|
-
var $R0 = $R(new RegExp("(
|
|
4477
|
-
var $R1 = $R(new RegExp("[
|
|
4478
|
-
var $R2 = $R(new RegExp("[
|
|
4479
|
-
var $R3 = $R(new RegExp("[
|
|
4480
|
-
var $R4 = $R(new RegExp("[
|
|
4481
|
-
var $R5 = $R(new RegExp("(
|
|
4482
|
-
var $R6 = $R(new RegExp("[
|
|
4483
|
-
var $R7 = $R(new RegExp("
|
|
4484
|
-
var $R8 = $R(new RegExp("
|
|
4485
|
-
var $R9 = $R(new RegExp(
|
|
4486
|
-
var $R10 = $R(new RegExp("(?=
|
|
4487
|
-
var $R11 = $R(new RegExp(
|
|
4488
|
-
var $R12 = $R(new RegExp("(
|
|
4489
|
-
var $R13 = $R(new RegExp("(
|
|
4490
|
-
var $R14 = $R(new RegExp("
|
|
4491
|
-
var $R15 = $R(new RegExp("(
|
|
4492
|
-
var $R16 = $R(new RegExp("
|
|
4493
|
-
var $R17 = $R(new RegExp("
|
|
4494
|
-
var $R18 = $R(new RegExp("
|
|
4495
|
-
var $R19 = $R(new RegExp("
|
|
4496
|
-
var $R20 = $R(new RegExp("(
|
|
4497
|
-
var $R21 = $R(new RegExp('
|
|
4498
|
-
var $R22 = $R(new RegExp("(
|
|
4499
|
-
var $R23 = $R(new RegExp(
|
|
4500
|
-
var $R24 = $R(new RegExp("(?:
|
|
4501
|
-
var $R25 = $R(new RegExp(
|
|
4502
|
-
var $R26 = $R(new RegExp("(
|
|
4503
|
-
var $R27 = $R(new RegExp("(
|
|
4504
|
-
var $R28 = $R(new RegExp("[
|
|
4505
|
-
var $R29 = $R(new RegExp("
|
|
4506
|
-
var $R30 = $R(new RegExp("[
|
|
4507
|
-
var $R31 = $R(new RegExp("[
|
|
4508
|
-
var $R32 = $R(new RegExp("(
|
|
4509
|
-
var $R33 = $R(new RegExp(
|
|
4510
|
-
var $R34 = $R(new RegExp("(
|
|
4511
|
-
var $R35 = $R(new RegExp("(
|
|
4512
|
-
var $R36 = $R(new RegExp("(?:
|
|
4513
|
-
var $R37 = $R(new RegExp(
|
|
4514
|
-
var $R38 = $R(new RegExp("(
|
|
4515
|
-
var $R39 = $R(new RegExp("(
|
|
4516
|
-
var $R40 = $R(new RegExp("
|
|
4517
|
-
var $R41 = $R(new RegExp("
|
|
4518
|
-
var $R42 = $R(new RegExp("
|
|
4519
|
-
var $R43 = $R(new RegExp("
|
|
4520
|
-
var $R44 = $R(new RegExp("[^]
|
|
4521
|
-
var $R45 = $R(new RegExp("
|
|
4522
|
-
var $R46 = $R(new RegExp("
|
|
4523
|
-
var $R47 = $R(new RegExp("[
|
|
4524
|
-
var $R48 = $R(new RegExp("(?!\\
|
|
4525
|
-
var $R49 = $R(new RegExp("
|
|
4526
|
-
var $R50 = $R(new RegExp("
|
|
4527
|
-
var $R51 = $R(new RegExp("(
|
|
4528
|
-
var $R52 = $R(new RegExp("
|
|
4529
|
-
var $R53 = $R(new RegExp("(?:
|
|
4530
|
-
var $R54 = $R(new RegExp(
|
|
4531
|
-
var $R55 = $R(new RegExp("[
|
|
4532
|
-
var $R56 = $R(new RegExp("
|
|
4533
|
-
var $R57 = $R(new RegExp("(
|
|
4534
|
-
var $R58 = $R(new RegExp("[^
|
|
4535
|
-
var $R59 = $R(new RegExp("
|
|
4536
|
-
var $R60 = $R(new RegExp("[
|
|
4537
|
-
var $R61 = $R(new RegExp("
|
|
4538
|
-
var $R62 = $R(new RegExp("[\\t
|
|
4539
|
-
var $R63 = $R(new RegExp("
|
|
4540
|
-
var $R64 = $R(new RegExp("
|
|
4541
|
-
var $R65 = $R(new RegExp("
|
|
4542
|
-
var $R66 = $R(new RegExp("\\
|
|
4543
|
-
var $R67 = $R(new RegExp("[
|
|
4517
|
+
var $R0 = $R(new RegExp("(?=debugger|if|unless|do|for|loop|until|while|switch|throw|try)", "suy"));
|
|
4518
|
+
var $R1 = $R(new RegExp("(as|of|satisfies|then|when|implements|xor|xnor)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
|
|
4519
|
+
var $R2 = $R(new RegExp("[0-9]", "suy"));
|
|
4520
|
+
var $R3 = $R(new RegExp("[ \\t]", "suy"));
|
|
4521
|
+
var $R4 = $R(new RegExp("(?=['\"`])", "suy"));
|
|
4522
|
+
var $R5 = $R(new RegExp("(?=[\\/?])", "suy"));
|
|
4523
|
+
var $R6 = $R(new RegExp("[)}]", "suy"));
|
|
4524
|
+
var $R7 = $R(new RegExp("[&]", "suy"));
|
|
4525
|
+
var $R8 = $R(new RegExp("[!~+-]+", "suy"));
|
|
4526
|
+
var $R9 = $R(new RegExp(`(?=[0-9.'"tfyno])`, "suy"));
|
|
4527
|
+
var $R10 = $R(new RegExp("(?=true|false|yes|no|on|off)", "suy"));
|
|
4528
|
+
var $R11 = $R(new RegExp("(?=\\p{ID_Start}|[_$])", "suy"));
|
|
4529
|
+
var $R12 = $R(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
|
|
4530
|
+
var $R13 = $R(new RegExp("(?=\\[)", "suy"));
|
|
4531
|
+
var $R14 = $R(new RegExp("[!+-]", "suy"));
|
|
4532
|
+
var $R15 = $R(new RegExp("<(?!\\p{ID_Start}|[_$])", "suy"));
|
|
4533
|
+
var $R16 = $R(new RegExp("!\\^\\^?", "suy"));
|
|
4534
|
+
var $R17 = $R(new RegExp("(?!\\+\\+|--)[!~+-](?!\\s|[!~+-]*[&.])", "suy"));
|
|
4535
|
+
var $R18 = $R(new RegExp("(?=for|if|loop|unless|until|while)", "suy"));
|
|
4536
|
+
var $R19 = $R(new RegExp("(?=loop|do|for|until|while)", "suy"));
|
|
4537
|
+
var $R20 = $R(new RegExp("(?=[\\s\\),])", "suy"));
|
|
4538
|
+
var $R21 = $R(new RegExp('[^;"\\s]+', "suy"));
|
|
4539
|
+
var $R22 = $R(new RegExp("(?=[0-9.])", "suy"));
|
|
4540
|
+
var $R23 = $R(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy"));
|
|
4541
|
+
var $R24 = $R(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))", "suy"));
|
|
4542
|
+
var $R25 = $R(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?", "suy"));
|
|
4543
|
+
var $R26 = $R(new RegExp("(?:\\.[0-9](?:_[0-9]|[0-9])*)", "suy"));
|
|
4544
|
+
var $R27 = $R(new RegExp("(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)", "suy"));
|
|
4545
|
+
var $R28 = $R(new RegExp("0[bB][01](?:[01]|_[01])*n?", "suy"));
|
|
4546
|
+
var $R29 = $R(new RegExp("0[oO][0-7](?:[0-7]|_[0-7])*n?", "suy"));
|
|
4547
|
+
var $R30 = $R(new RegExp("0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?", "suy"));
|
|
4548
|
+
var $R31 = $R(new RegExp("(?=[0-9])", "suy"));
|
|
4549
|
+
var $R32 = $R(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)", "suy"));
|
|
4550
|
+
var $R33 = $R(new RegExp('(?:\\\\.|[^"])*', "suy"));
|
|
4551
|
+
var $R34 = $R(new RegExp("(?:\\\\.|[^'])*", "suy"));
|
|
4552
|
+
var $R35 = $R(new RegExp('(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+', "suy"));
|
|
4553
|
+
var $R36 = $R(new RegExp("(?:'(?!'')|\\\\.|[^'])*", "suy"));
|
|
4554
|
+
var $R37 = $R(new RegExp('(?:\\\\.|#(?!\\{)|[^"#])+', "suy"));
|
|
4555
|
+
var $R38 = $R(new RegExp("(?:\\\\.|[^\\]])*", "suy"));
|
|
4556
|
+
var $R39 = $R(new RegExp("(?:\\\\.)", "suy"));
|
|
4557
|
+
var $R40 = $R(new RegExp("[\\s]+", "suy"));
|
|
4558
|
+
var $R41 = $R(new RegExp("\\/(?!\\/\\/)", "suy"));
|
|
4559
|
+
var $R42 = $R(new RegExp("[^[\\/\\s#\\\\]+", "suy"));
|
|
4560
|
+
var $R43 = $R(new RegExp("[*\\/\\r\\n]", "suy"));
|
|
4561
|
+
var $R44 = $R(new RegExp("(?:\\\\.|[^[\\/\\r\\n])+", "suy"));
|
|
4562
|
+
var $R45 = $R(new RegExp("(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
|
|
4563
|
+
var $R46 = $R(new RegExp("(?=[`'\"])", "suy"));
|
|
4564
|
+
var $R47 = $R(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy"));
|
|
4565
|
+
var $R48 = $R(new RegExp("(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+", "suy"));
|
|
4566
|
+
var $R49 = $R(new RegExp("(?:on|off|yes|no)(?!\\p{ID_Continue})", "suy"));
|
|
4567
|
+
var $R50 = $R(new RegExp("(?:isnt)(?!\\p{ID_Continue})", "suy"));
|
|
4568
|
+
var $R51 = $R(new RegExp("(?:by)(?!\\p{ID_Continue})", "suy"));
|
|
4569
|
+
var $R52 = $R(new RegExp("(?:of)(?!\\p{ID_Continue})", "suy"));
|
|
4570
|
+
var $R53 = $R(new RegExp("(?:and|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|not|null|or|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
|
|
4571
|
+
var $R54 = $R(new RegExp("(?=\\/|#)", "suy"));
|
|
4572
|
+
var $R55 = $R(new RegExp("\\/\\/(?!\\/)[^\\r\\n]*", "suy"));
|
|
4573
|
+
var $R56 = $R(new RegExp(".", "suy"));
|
|
4574
|
+
var $R57 = $R(new RegExp("#(?!##(?!#))([^\\r\\n]*)", "suy"));
|
|
4575
|
+
var $R58 = $R(new RegExp("[^]*?###", "suy"));
|
|
4576
|
+
var $R59 = $R(new RegExp("###(?!#)", "suy"));
|
|
4577
|
+
var $R60 = $R(new RegExp("\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\/", "suy"));
|
|
4578
|
+
var $R61 = $R(new RegExp("(?=[ \\t\\/\\\\])", "suy"));
|
|
4579
|
+
var $R62 = $R(new RegExp("[ \\t]+", "suy"));
|
|
4580
|
+
var $R63 = $R(new RegExp("(?=\\s|\\/|#)", "suy"));
|
|
4581
|
+
var $R64 = $R(new RegExp("(?!\\p{ID_Continue})", "suy"));
|
|
4582
|
+
var $R65 = $R(new RegExp("['\u2019]s", "suy"));
|
|
4583
|
+
var $R66 = $R(new RegExp("\\s", "suy"));
|
|
4584
|
+
var $R67 = $R(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy"));
|
|
4585
|
+
var $R68 = $R(new RegExp("[\\s>]|\\/>", "suy"));
|
|
4586
|
+
var $R69 = $R(new RegExp("(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+", "suy"));
|
|
4587
|
+
var $R70 = $R(new RegExp(`"[^"]*"|'[^']*'`, "suy"));
|
|
4588
|
+
var $R71 = $R(new RegExp("[<>]", "suy"));
|
|
4589
|
+
var $R72 = $R(new RegExp("[!~+-](?!\\s|[!~+-]*&)", "suy"));
|
|
4590
|
+
var $R73 = $R(new RegExp("(?:-[^-]|[^-]*)*", "suy"));
|
|
4591
|
+
var $R74 = $R(new RegExp("[^{}<>\\r\\n]+", "suy"));
|
|
4592
|
+
var $R75 = $R(new RegExp("[+-]?", "suy"));
|
|
4593
|
+
var $R76 = $R(new RegExp("[+-]", "suy"));
|
|
4594
|
+
var $R77 = $R(new RegExp("#![^\\r\\n]*", "suy"));
|
|
4595
|
+
var $R78 = $R(new RegExp("[\\t ]*", "suy"));
|
|
4596
|
+
var $R79 = $R(new RegExp("[\\s]*", "suy"));
|
|
4597
|
+
var $R80 = $R(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?", "suy"));
|
|
4598
|
+
var $R81 = $R(new RegExp("\\/\\/\\/[^\\r\\n]*", "suy"));
|
|
4599
|
+
var $R82 = $R(new RegExp("(?=[ \\t\\r\\n\\/#]|$)", "suy"));
|
|
4600
|
+
var $R83 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
|
|
4601
|
+
var $R84 = $R(new RegExp("[ \\t]*", "suy"));
|
|
4544
4602
|
var Program$0 = $TS($S(Reset, Init, $E(EOS), TopLevelStatements, __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
4545
4603
|
var statements = $4;
|
|
4546
4604
|
processProgram({
|
|
@@ -4671,16 +4729,22 @@ var require_parser = __commonJS({
|
|
|
4671
4729
|
function ExpressionizedStatementWithTrailingCallExpressions(ctx, state) {
|
|
4672
4730
|
return $EVENT(ctx, state, "ExpressionizedStatementWithTrailingCallExpressions", ExpressionizedStatementWithTrailingCallExpressions$0);
|
|
4673
4731
|
}
|
|
4674
|
-
var ExpressionizedStatement$0 =
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
var ExpressionizedStatement$3 = IterationExpression;
|
|
4678
|
-
var ExpressionizedStatement$4 = SwitchExpression;
|
|
4679
|
-
var ExpressionizedStatement$5 = ThrowExpression;
|
|
4680
|
-
var ExpressionizedStatement$6 = TryExpression;
|
|
4681
|
-
var ExpressionizedStatement$$ = [ExpressionizedStatement$0, ExpressionizedStatement$1, ExpressionizedStatement$2, ExpressionizedStatement$3, ExpressionizedStatement$4, ExpressionizedStatement$5, ExpressionizedStatement$6];
|
|
4732
|
+
var ExpressionizedStatement$0 = $T($S($EXPECT($R0, "ExpressionizedStatement /(?=debugger|if|unless|do|for|loop|until|while|switch|throw|try)/"), _ExpressionizedStatement), function(value) {
|
|
4733
|
+
return value[1];
|
|
4734
|
+
});
|
|
4682
4735
|
function ExpressionizedStatement(ctx, state) {
|
|
4683
|
-
return $
|
|
4736
|
+
return $EVENT(ctx, state, "ExpressionizedStatement", ExpressionizedStatement$0);
|
|
4737
|
+
}
|
|
4738
|
+
var _ExpressionizedStatement$0 = DebuggerExpression;
|
|
4739
|
+
var _ExpressionizedStatement$1 = IfExpression;
|
|
4740
|
+
var _ExpressionizedStatement$2 = UnlessExpression;
|
|
4741
|
+
var _ExpressionizedStatement$3 = IterationExpression;
|
|
4742
|
+
var _ExpressionizedStatement$4 = SwitchExpression;
|
|
4743
|
+
var _ExpressionizedStatement$5 = ThrowExpression;
|
|
4744
|
+
var _ExpressionizedStatement$6 = TryExpression;
|
|
4745
|
+
var _ExpressionizedStatement$$ = [_ExpressionizedStatement$0, _ExpressionizedStatement$1, _ExpressionizedStatement$2, _ExpressionizedStatement$3, _ExpressionizedStatement$4, _ExpressionizedStatement$5, _ExpressionizedStatement$6];
|
|
4746
|
+
function _ExpressionizedStatement(ctx, state) {
|
|
4747
|
+
return $EVENT_C(ctx, state, "_ExpressionizedStatement", _ExpressionizedStatement$$);
|
|
4684
4748
|
}
|
|
4685
4749
|
var Expression$0 = $TS($S(AssignmentExpression, $Q($S(CommaDelimiter, AssignmentExpression))), function($skip, $loc, $0, $1, $2) {
|
|
4686
4750
|
if ($2.length == 0)
|
|
@@ -4725,7 +4789,7 @@ var require_parser = __commonJS({
|
|
|
4725
4789
|
function ApplicationStart(ctx, state) {
|
|
4726
4790
|
return $EVENT_C(ctx, state, "ApplicationStart", ApplicationStart$$);
|
|
4727
4791
|
}
|
|
4728
|
-
var ForbiddenImplicitCalls$0 = $R$0($EXPECT($
|
|
4792
|
+
var ForbiddenImplicitCalls$0 = $R$0($EXPECT($R1, "ForbiddenImplicitCalls /(as|of|satisfies|then|when|implements|xor|xnor)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
|
|
4729
4793
|
var ForbiddenImplicitCalls$1 = $EXPECT($L2, 'ForbiddenImplicitCalls "/ "');
|
|
4730
4794
|
var ForbiddenImplicitCalls$2 = $S(ClassImplicitCallForbidden, $C(Class, AtAt));
|
|
4731
4795
|
var ForbiddenImplicitCalls$3 = $S(Identifier, $EXPECT($L3, 'ForbiddenImplicitCalls "="'), Whitespace);
|
|
@@ -4757,7 +4821,7 @@ var require_parser = __commonJS({
|
|
|
4757
4821
|
function ArgumentsWithTrailingMemberExpressions(ctx, state) {
|
|
4758
4822
|
return $EVENT(ctx, state, "ArgumentsWithTrailingMemberExpressions", ArgumentsWithTrailingMemberExpressions$0);
|
|
4759
4823
|
}
|
|
4760
|
-
var TrailingMemberExpressions$0 = $TS($S($Q(MemberExpressionRest), $Q($S(IndentedAtLeast, $Y($S($E($EXPECT($L5, 'TrailingMemberExpressions "?"')), $EXPECT($L6, 'TrailingMemberExpressions "."'), $N($EXPECT($
|
|
4824
|
+
var TrailingMemberExpressions$0 = $TS($S($Q(MemberExpressionRest), $Q($S(IndentedAtLeast, $Y($S($E($EXPECT($L5, 'TrailingMemberExpressions "?"')), $EXPECT($L6, 'TrailingMemberExpressions "."'), $N($EXPECT($R2, "TrailingMemberExpressions /[0-9]/")))), MemberExpressionRest))), function($skip, $loc, $0, $1, $2) {
|
|
4761
4825
|
return $1.concat($2);
|
|
4762
4826
|
});
|
|
4763
4827
|
function TrailingMemberExpressions(ctx, state) {
|
|
@@ -4771,7 +4835,7 @@ var require_parser = __commonJS({
|
|
|
4771
4835
|
function AllowedTrailingMemberExpressions(ctx, state) {
|
|
4772
4836
|
return $EVENT_C(ctx, state, "AllowedTrailingMemberExpressions", AllowedTrailingMemberExpressions$$);
|
|
4773
4837
|
}
|
|
4774
|
-
var TrailingCallExpressions$0 = $P($S(IndentedAtLeast, $Y($S($E($EXPECT($L5, 'TrailingCallExpressions "?"')), $EXPECT($L6, 'TrailingCallExpressions "."'), $N($R$0($EXPECT($
|
|
4838
|
+
var TrailingCallExpressions$0 = $P($S(IndentedAtLeast, $Y($S($E($EXPECT($L5, 'TrailingCallExpressions "?"')), $EXPECT($L6, 'TrailingCallExpressions "."'), $N($R$0($EXPECT($R2, "TrailingCallExpressions /[0-9]/"))))), $P(CallExpressionRest)));
|
|
4775
4839
|
function TrailingCallExpressions(ctx, state) {
|
|
4776
4840
|
return $EVENT(ctx, state, "TrailingCallExpressions", TrailingCallExpressions$0);
|
|
4777
4841
|
}
|
|
@@ -5089,7 +5153,7 @@ var require_parser = __commonJS({
|
|
|
5089
5153
|
function FatArrow(ctx, state) {
|
|
5090
5154
|
return $EVENT(ctx, state, "FatArrow", FatArrow$0);
|
|
5091
5155
|
}
|
|
5092
|
-
var TrailingDeclaration$0 = $S($
|
|
5156
|
+
var TrailingDeclaration$0 = $S($E(_), $C(ConstAssignment, LetAssignment));
|
|
5093
5157
|
function TrailingDeclaration(ctx, state) {
|
|
5094
5158
|
return $EVENT(ctx, state, "TrailingDeclaration", TrailingDeclaration$0);
|
|
5095
5159
|
}
|
|
@@ -5112,7 +5176,7 @@ var require_parser = __commonJS({
|
|
|
5112
5176
|
return $EVENT(ctx, state, "ConditionalExpression", ConditionalExpression$0);
|
|
5113
5177
|
}
|
|
5114
5178
|
var TernaryRest$0 = NestedTernaryRest;
|
|
5115
|
-
var TernaryRest$1 = $TS($S($N(CoffeeBinaryExistentialEnabled), $Y($EXPECT($
|
|
5179
|
+
var TernaryRest$1 = $TS($S($N(CoffeeBinaryExistentialEnabled), $Y($EXPECT($R3, "TernaryRest /[ \\t]/")), _, QuestionMark, ExtendedExpression, __, Colon, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
5116
5180
|
return $0.slice(2);
|
|
5117
5181
|
});
|
|
5118
5182
|
var TernaryRest$$ = [TernaryRest$0, TernaryRest$1];
|
|
@@ -5226,7 +5290,7 @@ var require_parser = __commonJS({
|
|
|
5226
5290
|
function ClassDeclaration(ctx, state) {
|
|
5227
5291
|
return $EVENT(ctx, state, "ClassDeclaration", ClassDeclaration$0);
|
|
5228
5292
|
}
|
|
5229
|
-
var ClassExpression$0 = $S($E(Decorators), $E($S(Abstract, __)), Class, $N($EXPECT($
|
|
5293
|
+
var ClassExpression$0 = $S($E(Decorators), $E($S(Abstract, __)), Class, $N($EXPECT($L11, 'ClassExpression ":"')), $E(ClassBinding), $E(ClassHeritage), ClassBody);
|
|
5230
5294
|
function ClassExpression(ctx, state) {
|
|
5231
5295
|
return $EVENT(ctx, state, "ClassExpression", ClassExpression$0);
|
|
5232
5296
|
}
|
|
@@ -5246,7 +5310,7 @@ var require_parser = __commonJS({
|
|
|
5246
5310
|
function ExtendsClause(ctx, state) {
|
|
5247
5311
|
return $EVENT(ctx, state, "ExtendsClause", ExtendsClause$0);
|
|
5248
5312
|
}
|
|
5249
|
-
var ExtendsToken$0 = $TS($S(Loc, __, OpenAngleBracket, $E($EXPECT($
|
|
5313
|
+
var ExtendsToken$0 = $TS($S(Loc, __, OpenAngleBracket, $E($EXPECT($L12, 'ExtendsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
5250
5314
|
var l = $1;
|
|
5251
5315
|
var ws = $2;
|
|
5252
5316
|
var lt = $3;
|
|
@@ -5284,7 +5348,7 @@ var require_parser = __commonJS({
|
|
|
5284
5348
|
function ImplementsClause(ctx, state) {
|
|
5285
5349
|
return $EVENT(ctx, state, "ImplementsClause", ImplementsClause$0);
|
|
5286
5350
|
}
|
|
5287
|
-
var ImplementsToken$0 = $TS($S(Loc, __, ImplementsShorthand, $E($EXPECT($
|
|
5351
|
+
var ImplementsToken$0 = $TS($S(Loc, __, ImplementsShorthand, $E($EXPECT($L12, 'ImplementsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
5288
5352
|
var l = $1;
|
|
5289
5353
|
var ws = $2;
|
|
5290
5354
|
var token = $3;
|
|
@@ -5514,7 +5578,7 @@ var require_parser = __commonJS({
|
|
|
5514
5578
|
function AtThis(ctx, state) {
|
|
5515
5579
|
return $EVENT(ctx, state, "AtThis", AtThis$0);
|
|
5516
5580
|
}
|
|
5517
|
-
var LeftHandSideExpression$0 = $S($P($S(New, $N($C($EXPECT($L6, 'LeftHandSideExpression "."'), $EXPECT($
|
|
5581
|
+
var LeftHandSideExpression$0 = $S($P($S(New, $N($C($EXPECT($L6, 'LeftHandSideExpression "."'), $EXPECT($L11, 'LeftHandSideExpression ":"'))), __)), CallExpression, $E(TypeArguments));
|
|
5518
5582
|
var LeftHandSideExpression$1 = CallExpression;
|
|
5519
5583
|
var LeftHandSideExpression$$ = [LeftHandSideExpression$0, LeftHandSideExpression$1];
|
|
5520
5584
|
function LeftHandSideExpression(ctx, state) {
|
|
@@ -5552,13 +5616,14 @@ var require_parser = __commonJS({
|
|
|
5552
5616
|
return $EVENT_C(ctx, state, "CallExpression", CallExpression$$);
|
|
5553
5617
|
}
|
|
5554
5618
|
var CallExpressionRest$0 = MemberExpressionRest;
|
|
5555
|
-
var CallExpressionRest$1 = $
|
|
5556
|
-
|
|
5557
|
-
|
|
5619
|
+
var CallExpressionRest$1 = $TS($S($EXPECT($R4, "CallExpressionRest /(?=['\"`])/"), $C(TemplateLiteral, StringLiteral)), function($skip, $loc, $0, $1, $2) {
|
|
5620
|
+
var literal = $2;
|
|
5621
|
+
if (literal.type === "StringLiteral") {
|
|
5622
|
+
return "`" + literal.token.slice(1, -1).replace(/(`|\$\{)/g, "\\$1") + "`";
|
|
5558
5623
|
}
|
|
5559
|
-
return
|
|
5624
|
+
return literal;
|
|
5560
5625
|
});
|
|
5561
|
-
var CallExpressionRest$2 = $TS($S($E(
|
|
5626
|
+
var CallExpressionRest$2 = $TS($S($E(OptionalShorthand), ArgumentsWithTrailingMemberExpressions), function($skip, $loc, $0, $1, $2) {
|
|
5562
5627
|
if (!$1)
|
|
5563
5628
|
return $2;
|
|
5564
5629
|
return [$1, ...$2];
|
|
@@ -5567,17 +5632,19 @@ var require_parser = __commonJS({
|
|
|
5567
5632
|
function CallExpressionRest(ctx, state) {
|
|
5568
5633
|
return $EVENT_C(ctx, state, "CallExpressionRest", CallExpressionRest$$);
|
|
5569
5634
|
}
|
|
5570
|
-
var OptionalShorthand$0 = $TS($S($Q(InlineComment), QuestionMark, OptionalDot), function($skip, $loc, $0, $1, $2, $3) {
|
|
5635
|
+
var OptionalShorthand$0 = $TS($S($EXPECT($R5, "OptionalShorthand /(?=[\\/?])/"), $Q(InlineComment), QuestionMark, OptionalDot), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
5571
5636
|
return {
|
|
5572
5637
|
type: "Optional",
|
|
5573
5638
|
children: $0
|
|
5574
5639
|
};
|
|
5575
5640
|
});
|
|
5641
|
+
var OptionalShorthand$1 = NonNullAssertion;
|
|
5642
|
+
var OptionalShorthand$$ = [OptionalShorthand$0, OptionalShorthand$1];
|
|
5576
5643
|
function OptionalShorthand(ctx, state) {
|
|
5577
|
-
return $
|
|
5644
|
+
return $EVENT_C(ctx, state, "OptionalShorthand", OptionalShorthand$$);
|
|
5578
5645
|
}
|
|
5579
5646
|
var OptionalDot$0 = $S($Q(InlineComment), Dot);
|
|
5580
|
-
var OptionalDot$1 =
|
|
5647
|
+
var OptionalDot$1 = InsertDot;
|
|
5581
5648
|
var OptionalDot$$ = [OptionalDot$0, OptionalDot$1];
|
|
5582
5649
|
function OptionalDot(ctx, state) {
|
|
5583
5650
|
return $EVENT_C(ctx, state, "OptionalDot", OptionalDot$$);
|
|
@@ -5621,7 +5688,7 @@ var require_parser = __commonJS({
|
|
|
5621
5688
|
function MemberExpressionRest(ctx, state) {
|
|
5622
5689
|
return $EVENT(ctx, state, "MemberExpressionRest", MemberExpressionRest$0);
|
|
5623
5690
|
}
|
|
5624
|
-
var MemberExpressionRestBody$0 = $TS($S($E(
|
|
5691
|
+
var MemberExpressionRestBody$0 = $TS($S($E(OptionalShorthand), $Q(InlineComment), MemberBracketContent), function($skip, $loc, $0, $1, $2, $3) {
|
|
5625
5692
|
var dot = $1;
|
|
5626
5693
|
var comments = $2;
|
|
5627
5694
|
var content = $3;
|
|
@@ -5665,35 +5732,21 @@ var require_parser = __commonJS({
|
|
|
5665
5732
|
expression
|
|
5666
5733
|
};
|
|
5667
5734
|
});
|
|
5668
|
-
var MemberBracketContent$1 = $TS($S(Dot, $C(TemplateLiteral, StringLiteral)), function($skip, $loc, $0, $1, $2) {
|
|
5669
|
-
var dot = $1;
|
|
5670
|
-
var str = $2;
|
|
5671
|
-
if (Array.isArray(dot))
|
|
5672
|
-
dot = dot[0];
|
|
5673
|
-
return {
|
|
5674
|
-
type: "Index",
|
|
5675
|
-
children: [
|
|
5676
|
-
{ token: "[", $loc: dot.$loc },
|
|
5677
|
-
str,
|
|
5678
|
-
"]"
|
|
5679
|
-
]
|
|
5680
|
-
};
|
|
5681
|
-
});
|
|
5682
|
-
var MemberBracketContent$2 = $TS($S(Dot, IntegerLiteral), function($skip, $loc, $0, $1, $2) {
|
|
5735
|
+
var MemberBracketContent$1 = $TS($S(Dot, $C(TemplateLiteral, StringLiteral, IntegerLiteral)), function($skip, $loc, $0, $1, $2) {
|
|
5683
5736
|
var dot = $1;
|
|
5684
|
-
var
|
|
5737
|
+
var literal = $2;
|
|
5685
5738
|
if (Array.isArray(dot))
|
|
5686
5739
|
dot = dot[0];
|
|
5687
5740
|
return {
|
|
5688
5741
|
type: "Index",
|
|
5689
5742
|
children: [
|
|
5690
5743
|
{ token: "[", $loc: dot.$loc },
|
|
5691
|
-
|
|
5744
|
+
literal,
|
|
5692
5745
|
"]"
|
|
5693
5746
|
]
|
|
5694
5747
|
};
|
|
5695
5748
|
});
|
|
5696
|
-
var MemberBracketContent$
|
|
5749
|
+
var MemberBracketContent$2 = $TS($S(Dot, $EXPECT($L18, 'MemberBracketContent "-"'), IntegerLiteral), function($skip, $loc, $0, $1, $2, $3) {
|
|
5697
5750
|
var dot = $1;
|
|
5698
5751
|
var neg = $2;
|
|
5699
5752
|
var num = $3;
|
|
@@ -5703,7 +5756,7 @@ var require_parser = __commonJS({
|
|
|
5703
5756
|
{ type: "Call", children: ["(", neg, num, ")"] }
|
|
5704
5757
|
];
|
|
5705
5758
|
});
|
|
5706
|
-
var MemberBracketContent$$ = [MemberBracketContent$0, MemberBracketContent$1, MemberBracketContent$2
|
|
5759
|
+
var MemberBracketContent$$ = [MemberBracketContent$0, MemberBracketContent$1, MemberBracketContent$2];
|
|
5707
5760
|
function MemberBracketContent(ctx, state) {
|
|
5708
5761
|
return $EVENT_C(ctx, state, "MemberBracketContent", MemberBracketContent$$);
|
|
5709
5762
|
}
|
|
@@ -5771,7 +5824,7 @@ var require_parser = __commonJS({
|
|
|
5771
5824
|
function SliceParameters(ctx, state) {
|
|
5772
5825
|
return $EVENT_C(ctx, state, "SliceParameters", SliceParameters$$);
|
|
5773
5826
|
}
|
|
5774
|
-
var AccessStart$0 = $TS($S($E(
|
|
5827
|
+
var AccessStart$0 = $TS($S($E(PropertyAccessModifier), Dot, $N(Dot)), function($skip, $loc, $0, $1, $2, $3) {
|
|
5775
5828
|
if ($1)
|
|
5776
5829
|
return [$1, $2];
|
|
5777
5830
|
return $2;
|
|
@@ -5779,6 +5832,12 @@ var require_parser = __commonJS({
|
|
|
5779
5832
|
function AccessStart(ctx, state) {
|
|
5780
5833
|
return $EVENT(ctx, state, "AccessStart", AccessStart$0);
|
|
5781
5834
|
}
|
|
5835
|
+
var PropertyAccessModifier$0 = QuestionMark;
|
|
5836
|
+
var PropertyAccessModifier$1 = NonNullAssertion;
|
|
5837
|
+
var PropertyAccessModifier$$ = [PropertyAccessModifier$0, PropertyAccessModifier$1];
|
|
5838
|
+
function PropertyAccessModifier(ctx, state) {
|
|
5839
|
+
return $EVENT_C(ctx, state, "PropertyAccessModifier", PropertyAccessModifier$$);
|
|
5840
|
+
}
|
|
5782
5841
|
var PropertyAccess$0 = $TS($S(AccessStart, $Q(InlineComment), $C(IdentifierName, PrivateIdentifier)), function($skip, $loc, $0, $1, $2, $3) {
|
|
5783
5842
|
var access = $1;
|
|
5784
5843
|
var comments = $2;
|
|
@@ -5811,7 +5870,7 @@ var require_parser = __commonJS({
|
|
|
5811
5870
|
function PropertyAccess(ctx, state) {
|
|
5812
5871
|
return $EVENT_C(ctx, state, "PropertyAccess", PropertyAccess$$);
|
|
5813
5872
|
}
|
|
5814
|
-
var PropertyGlob$0 = $TS($S($S($E(
|
|
5873
|
+
var PropertyGlob$0 = $TS($S($S($E(PropertyAccessModifier), OptionalDot), $Q(InlineComment), BracedObjectLiteral), function($skip, $loc, $0, $1, $2, $3) {
|
|
5815
5874
|
var dot = $1;
|
|
5816
5875
|
var object = $3;
|
|
5817
5876
|
return {
|
|
@@ -5824,7 +5883,7 @@ var require_parser = __commonJS({
|
|
|
5824
5883
|
function PropertyGlob(ctx, state) {
|
|
5825
5884
|
return $EVENT(ctx, state, "PropertyGlob", PropertyGlob$0);
|
|
5826
5885
|
}
|
|
5827
|
-
var PropertyBind$0 = $TS($S($E(
|
|
5886
|
+
var PropertyBind$0 = $TS($S($E(PropertyAccessModifier), At, OptionalDot, $C(IdentifierName, PrivateIdentifier)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
5828
5887
|
var modifier = $1;
|
|
5829
5888
|
var dot = $3;
|
|
5830
5889
|
var id = $4;
|
|
@@ -5839,7 +5898,7 @@ var require_parser = __commonJS({
|
|
|
5839
5898
|
return $EVENT(ctx, state, "PropertyBind", PropertyBind$0);
|
|
5840
5899
|
}
|
|
5841
5900
|
var SuperProperty$0 = $S(Super, MemberBracketContent);
|
|
5842
|
-
var SuperProperty$1 = $S(Super, $N(
|
|
5901
|
+
var SuperProperty$1 = $S(Super, $N(PropertyAccessModifier), PropertyAccess);
|
|
5843
5902
|
var SuperProperty$$ = [SuperProperty$0, SuperProperty$1];
|
|
5844
5903
|
function SuperProperty(ctx, state) {
|
|
5845
5904
|
return $EVENT_C(ctx, state, "SuperProperty", SuperProperty$$);
|
|
@@ -5947,8 +6006,8 @@ var require_parser = __commonJS({
|
|
|
5947
6006
|
function NonEmptyParameters(ctx, state) {
|
|
5948
6007
|
return $EVENT(ctx, state, "NonEmptyParameters", NonEmptyParameters$0);
|
|
5949
6008
|
}
|
|
5950
|
-
var FunctionRestParameter$0 = $TS($S(BindingRestElement, $E(TypeSuffix), ParameterElementDelimiter), function($skip, $loc, $0, $1, $2, $3) {
|
|
5951
|
-
var id = $
|
|
6009
|
+
var FunctionRestParameter$0 = $TS($S(__, BindingRestElement, $E(TypeSuffix), ParameterElementDelimiter), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
6010
|
+
var id = $2;
|
|
5952
6011
|
return {
|
|
5953
6012
|
type: "FunctionRestParameter",
|
|
5954
6013
|
children: $0,
|
|
@@ -5971,7 +6030,7 @@ var require_parser = __commonJS({
|
|
|
5971
6030
|
return $EVENT(ctx, state, "ParameterElement", ParameterElement$0);
|
|
5972
6031
|
}
|
|
5973
6032
|
var ParameterElementDelimiter$0 = $S($Q(_), Comma);
|
|
5974
|
-
var ParameterElementDelimiter$1 = $Y($S(__, $R$0($EXPECT($
|
|
6033
|
+
var ParameterElementDelimiter$1 = $Y($S(__, $R$0($EXPECT($R6, "ParameterElementDelimiter /[)}]/"))));
|
|
5975
6034
|
var ParameterElementDelimiter$2 = $T($S($Y(EOS), InsertComma), function(value) {
|
|
5976
6035
|
return value[1];
|
|
5977
6036
|
});
|
|
@@ -6045,10 +6104,14 @@ var require_parser = __commonJS({
|
|
|
6045
6104
|
return $EVENT_C(ctx, state, "BindingPattern", BindingPattern$$);
|
|
6046
6105
|
}
|
|
6047
6106
|
var ObjectBindingPattern$0 = $TS($S($E(_), OpenBrace, ObjectBindingPatternContent, __, CloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
6107
|
+
var ws1 = $1;
|
|
6108
|
+
var open = $2;
|
|
6048
6109
|
var c = $3;
|
|
6110
|
+
var ws2 = $4;
|
|
6111
|
+
var close = $5;
|
|
6049
6112
|
return {
|
|
6050
6113
|
type: "ObjectBindingPattern",
|
|
6051
|
-
children: [
|
|
6114
|
+
children: [ws1, open, c.children, ws2, close],
|
|
6052
6115
|
names: c.names,
|
|
6053
6116
|
properties: c.children
|
|
6054
6117
|
};
|
|
@@ -6081,13 +6144,17 @@ var require_parser = __commonJS({
|
|
|
6081
6144
|
return $EVENT(ctx, state, "BindingPropertyList", BindingPropertyList$0);
|
|
6082
6145
|
}
|
|
6083
6146
|
var ArrayBindingPattern$0 = $TS($S($E(_), OpenBracket, ArrayBindingPatternContent, __, CloseBracket), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
6147
|
+
var ws1 = $1;
|
|
6148
|
+
var open = $2;
|
|
6084
6149
|
var c = $3;
|
|
6150
|
+
var ws2 = $4;
|
|
6151
|
+
var close = $5;
|
|
6085
6152
|
return {
|
|
6086
6153
|
...c,
|
|
6087
6154
|
// names, blockPrefix, length
|
|
6088
6155
|
type: "ArrayBindingPattern",
|
|
6089
6156
|
elements: c.children,
|
|
6090
|
-
children: [
|
|
6157
|
+
children: [ws1, open, c.children, ws2, close]
|
|
6091
6158
|
};
|
|
6092
6159
|
});
|
|
6093
6160
|
function ArrayBindingPattern(ctx, state) {
|
|
@@ -6529,7 +6596,7 @@ var require_parser = __commonJS({
|
|
|
6529
6596
|
function AmpersandBlockRHS(ctx, state) {
|
|
6530
6597
|
return $EVENT(ctx, state, "AmpersandBlockRHS", AmpersandBlockRHS$0);
|
|
6531
6598
|
}
|
|
6532
|
-
var AmpersandBlockRHSBody$0 = $TS($S($E($S($N(_), $P(CallExpressionRest))), $E(QuestionMark), $E($S($N($EXPECT($
|
|
6599
|
+
var AmpersandBlockRHSBody$0 = $TS($S($E($S($N(_), $P(CallExpressionRest))), $E(QuestionMark), $E($S($N($EXPECT($R7, "AmpersandBlockRHSBody /[&]/")), $P(BinaryOpRHS)))), function($skip, $loc, $0, $1, $2, $3) {
|
|
6533
6600
|
var callExpRest = $1;
|
|
6534
6601
|
var unaryPostfix = $2;
|
|
6535
6602
|
var binopRHS = $3;
|
|
@@ -6559,7 +6626,7 @@ var require_parser = __commonJS({
|
|
|
6559
6626
|
function AmpersandBlockRHSBody(ctx, state) {
|
|
6560
6627
|
return $EVENT(ctx, state, "AmpersandBlockRHSBody", AmpersandBlockRHSBody$0);
|
|
6561
6628
|
}
|
|
6562
|
-
var AmpersandUnaryPrefix$0 = $R$0($EXPECT($
|
|
6629
|
+
var AmpersandUnaryPrefix$0 = $R$0($EXPECT($R8, "AmpersandUnaryPrefix /[!~+-]+/"));
|
|
6563
6630
|
function AmpersandUnaryPrefix(ctx, state) {
|
|
6564
6631
|
return $EVENT(ctx, state, "AmpersandUnaryPrefix", AmpersandUnaryPrefix$0);
|
|
6565
6632
|
}
|
|
@@ -6893,12 +6960,13 @@ var require_parser = __commonJS({
|
|
|
6893
6960
|
function BlockStatementPart(ctx, state) {
|
|
6894
6961
|
return $EVENT(ctx, state, "BlockStatementPart", BlockStatementPart$0);
|
|
6895
6962
|
}
|
|
6896
|
-
var Literal$0 = $TS($S(LiteralContent), function($skip, $loc, $0, $1) {
|
|
6963
|
+
var Literal$0 = $TS($S($EXPECT($R9, `Literal /(?=[0-9.'"tfyno])/`), LiteralContent), function($skip, $loc, $0, $1, $2) {
|
|
6964
|
+
var literal = $2;
|
|
6897
6965
|
return {
|
|
6898
6966
|
type: "Literal",
|
|
6899
|
-
subtype:
|
|
6900
|
-
children:
|
|
6901
|
-
raw:
|
|
6967
|
+
subtype: literal.type,
|
|
6968
|
+
children: [literal],
|
|
6969
|
+
raw: literal.token
|
|
6902
6970
|
};
|
|
6903
6971
|
});
|
|
6904
6972
|
function Literal(ctx, state) {
|
|
@@ -6918,15 +6986,21 @@ var require_parser = __commonJS({
|
|
|
6918
6986
|
function NullLiteral(ctx, state) {
|
|
6919
6987
|
return $EVENT(ctx, state, "NullLiteral", NullLiteral$0);
|
|
6920
6988
|
}
|
|
6921
|
-
var BooleanLiteral$0 = $T($S(
|
|
6989
|
+
var BooleanLiteral$0 = $T($S($EXPECT($R10, "BooleanLiteral /(?=true|false|yes|no|on|off)/"), _BooleanLiteral), function(value) {
|
|
6922
6990
|
return value[1];
|
|
6923
6991
|
});
|
|
6924
|
-
|
|
6992
|
+
function BooleanLiteral(ctx, state) {
|
|
6993
|
+
return $EVENT(ctx, state, "BooleanLiteral", BooleanLiteral$0);
|
|
6994
|
+
}
|
|
6995
|
+
var _BooleanLiteral$0 = $T($S(CoffeeBooleansEnabled, CoffeeScriptBooleanLiteral), function(value) {
|
|
6996
|
+
return value[1];
|
|
6997
|
+
});
|
|
6998
|
+
var _BooleanLiteral$1 = $TS($S($C($EXPECT($L27, '_BooleanLiteral "true"'), $EXPECT($L28, '_BooleanLiteral "false"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
6925
6999
|
return { $loc, token: $1 };
|
|
6926
7000
|
});
|
|
6927
|
-
var
|
|
6928
|
-
function
|
|
6929
|
-
return $EVENT_C(ctx, state, "
|
|
7001
|
+
var _BooleanLiteral$$ = [_BooleanLiteral$0, _BooleanLiteral$1];
|
|
7002
|
+
function _BooleanLiteral(ctx, state) {
|
|
7003
|
+
return $EVENT_C(ctx, state, "_BooleanLiteral", _BooleanLiteral$$);
|
|
6930
7004
|
}
|
|
6931
7005
|
var CoffeeScriptBooleanLiteral$0 = $TS($S($C($EXPECT($L29, 'CoffeeScriptBooleanLiteral "yes"'), $EXPECT($L30, 'CoffeeScriptBooleanLiteral "on"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
6932
7006
|
return { $loc, token: "true" };
|
|
@@ -6938,13 +7012,14 @@ var require_parser = __commonJS({
|
|
|
6938
7012
|
function CoffeeScriptBooleanLiteral(ctx, state) {
|
|
6939
7013
|
return $EVENT_C(ctx, state, "CoffeeScriptBooleanLiteral", CoffeeScriptBooleanLiteral$$);
|
|
6940
7014
|
}
|
|
6941
|
-
var Identifier$0 = $T($S($N(ReservedWord), IdentifierName), function(value) {
|
|
6942
|
-
|
|
7015
|
+
var Identifier$0 = $T($S($EXPECT($R11, "Identifier /(?=\\p{ID_Start}|[_$])/"), $N(ReservedWord), IdentifierName), function(value) {
|
|
7016
|
+
var id = value[2];
|
|
7017
|
+
return id;
|
|
6943
7018
|
});
|
|
6944
7019
|
function Identifier(ctx, state) {
|
|
6945
7020
|
return $EVENT(ctx, state, "Identifier", Identifier$0);
|
|
6946
7021
|
}
|
|
6947
|
-
var IdentifierName$0 = $TR($EXPECT($
|
|
7022
|
+
var IdentifierName$0 = $TR($EXPECT($R12, "IdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
6948
7023
|
return {
|
|
6949
7024
|
type: "Identifier",
|
|
6950
7025
|
name: $0,
|
|
@@ -6966,10 +7041,16 @@ var require_parser = __commonJS({
|
|
|
6966
7041
|
function UpcomingAssignment(ctx, state) {
|
|
6967
7042
|
return $EVENT(ctx, state, "UpcomingAssignment", UpcomingAssignment$0);
|
|
6968
7043
|
}
|
|
6969
|
-
var ArrayLiteral$0 = $T($S(
|
|
7044
|
+
var ArrayLiteral$0 = $T($S($EXPECT($R13, "ArrayLiteral /(?=\\[)/"), _ArrayLiteral), function(value) {
|
|
7045
|
+
return value[1];
|
|
7046
|
+
});
|
|
7047
|
+
function ArrayLiteral(ctx, state) {
|
|
7048
|
+
return $EVENT(ctx, state, "ArrayLiteral", ArrayLiteral$0);
|
|
7049
|
+
}
|
|
7050
|
+
var _ArrayLiteral$0 = $T($S(ArrayBindingPattern, UpcomingAssignment), function(value) {
|
|
6970
7051
|
return value[0];
|
|
6971
7052
|
});
|
|
6972
|
-
var
|
|
7053
|
+
var _ArrayLiteral$1 = $TS($S(OpenBracket, AllowAll, $E($S(ArrayLiteralContent, __, CloseBracket)), RestoreAll), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
6973
7054
|
var open = $1;
|
|
6974
7055
|
if (!$3)
|
|
6975
7056
|
return $skip;
|
|
@@ -6993,9 +7074,9 @@ var require_parser = __commonJS({
|
|
|
6993
7074
|
names
|
|
6994
7075
|
};
|
|
6995
7076
|
});
|
|
6996
|
-
var
|
|
6997
|
-
function
|
|
6998
|
-
return $EVENT_C(ctx, state, "
|
|
7077
|
+
var _ArrayLiteral$$ = [_ArrayLiteral$0, _ArrayLiteral$1];
|
|
7078
|
+
function _ArrayLiteral(ctx, state) {
|
|
7079
|
+
return $EVENT_C(ctx, state, "_ArrayLiteral", _ArrayLiteral$$);
|
|
6999
7080
|
}
|
|
7000
7081
|
var RangeExpression$0 = $TS($S(ExtendedExpression, __, $C(DotDotDot, DotDot), ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
7001
7082
|
var s = $1;
|
|
@@ -7360,7 +7441,7 @@ var require_parser = __commonJS({
|
|
|
7360
7441
|
children: [ws, ...prop.children]
|
|
7361
7442
|
};
|
|
7362
7443
|
});
|
|
7363
|
-
var PropertyDefinition$1 = $TS($S($E(_), $TEXT($EXPECT($
|
|
7444
|
+
var PropertyDefinition$1 = $TS($S($E(_), $TEXT($EXPECT($R14, "PropertyDefinition /[!+-]/")), PropertyName), function($skip, $loc, $0, $1, $2, $3) {
|
|
7364
7445
|
var ws = $1;
|
|
7365
7446
|
var toggle = $2;
|
|
7366
7447
|
var id = $3;
|
|
@@ -7952,7 +8033,7 @@ var require_parser = __commonJS({
|
|
|
7952
8033
|
var BinaryOpSymbol$14 = $T($EXPECT($L66, 'BinaryOpSymbol "\xAB"'), function(value) {
|
|
7953
8034
|
return "<<";
|
|
7954
8035
|
});
|
|
7955
|
-
var BinaryOpSymbol$15 = $TR($EXPECT($
|
|
8036
|
+
var BinaryOpSymbol$15 = $TR($EXPECT($R15, "BinaryOpSymbol /<(?!\\p{ID_Start}|[_$])/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
7956
8037
|
return "<";
|
|
7957
8038
|
});
|
|
7958
8039
|
var BinaryOpSymbol$16 = $EXPECT($L67, 'BinaryOpSymbol ">>>"');
|
|
@@ -7991,36 +8072,33 @@ var require_parser = __commonJS({
|
|
|
7991
8072
|
return "&&";
|
|
7992
8073
|
});
|
|
7993
8074
|
var BinaryOpSymbol$29 = $EXPECT($L83, 'BinaryOpSymbol "&&"');
|
|
7994
|
-
var BinaryOpSymbol$30 = $T($S(
|
|
7995
|
-
return "in";
|
|
7996
|
-
});
|
|
7997
|
-
var BinaryOpSymbol$31 = $T($S($EXPECT($L85, 'BinaryOpSymbol "or"'), NonIdContinue), function(value) {
|
|
8075
|
+
var BinaryOpSymbol$30 = $T($S($EXPECT($L84, 'BinaryOpSymbol "or"'), NonIdContinue), function(value) {
|
|
7998
8076
|
return "||";
|
|
7999
8077
|
});
|
|
8000
|
-
var BinaryOpSymbol$
|
|
8001
|
-
var BinaryOpSymbol$
|
|
8078
|
+
var BinaryOpSymbol$31 = $EXPECT($L85, 'BinaryOpSymbol "||"');
|
|
8079
|
+
var BinaryOpSymbol$32 = $T($EXPECT($L86, 'BinaryOpSymbol "\u2016"'), function(value) {
|
|
8002
8080
|
return "||";
|
|
8003
8081
|
});
|
|
8004
|
-
var BinaryOpSymbol$
|
|
8082
|
+
var BinaryOpSymbol$33 = $TV($C($EXPECT($L87, 'BinaryOpSymbol "^^"'), $S($EXPECT($L88, 'BinaryOpSymbol "xor"'), NonIdContinue)), function($skip, $loc, $0, $1) {
|
|
8005
8083
|
return {
|
|
8006
8084
|
call: module.getRef("xor"),
|
|
8007
8085
|
special: true
|
|
8008
8086
|
};
|
|
8009
8087
|
});
|
|
8010
|
-
var BinaryOpSymbol$
|
|
8088
|
+
var BinaryOpSymbol$34 = $TV($C($EXPECT($R16, "BinaryOpSymbol /!\\^\\^?/"), $S($EXPECT($L89, 'BinaryOpSymbol "xnor"'), NonIdContinue)), function($skip, $loc, $0, $1) {
|
|
8011
8089
|
return {
|
|
8012
8090
|
call: module.getRef("xnor"),
|
|
8013
8091
|
special: true
|
|
8014
8092
|
};
|
|
8015
8093
|
});
|
|
8016
|
-
var BinaryOpSymbol$
|
|
8017
|
-
var BinaryOpSymbol$
|
|
8094
|
+
var BinaryOpSymbol$35 = $EXPECT($L90, 'BinaryOpSymbol "??"');
|
|
8095
|
+
var BinaryOpSymbol$36 = $T($EXPECT($L91, 'BinaryOpSymbol "\u2047"'), function(value) {
|
|
8018
8096
|
return "??";
|
|
8019
8097
|
});
|
|
8020
|
-
var BinaryOpSymbol$
|
|
8098
|
+
var BinaryOpSymbol$37 = $T($S($EXPECT($L5, 'BinaryOpSymbol "?"'), CoffeeBinaryExistentialEnabled), function(value) {
|
|
8021
8099
|
return "??";
|
|
8022
8100
|
});
|
|
8023
|
-
var BinaryOpSymbol$
|
|
8101
|
+
var BinaryOpSymbol$38 = $TS($S($EXPECT($L92, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
8024
8102
|
return {
|
|
8025
8103
|
$loc,
|
|
8026
8104
|
token: $1,
|
|
@@ -8029,24 +8107,15 @@ var require_parser = __commonJS({
|
|
|
8029
8107
|
// for typeof shorthand
|
|
8030
8108
|
};
|
|
8031
8109
|
});
|
|
8032
|
-
var BinaryOpSymbol$
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
token: "instanceof",
|
|
8036
|
-
relational: true,
|
|
8037
|
-
special: true,
|
|
8038
|
-
negated: true
|
|
8039
|
-
};
|
|
8110
|
+
var BinaryOpSymbol$39 = $T($S(CoffeeOfEnabled, CoffeeOfOp), function(value) {
|
|
8111
|
+
var op = value[1];
|
|
8112
|
+
return op;
|
|
8040
8113
|
});
|
|
8041
|
-
var BinaryOpSymbol$
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
token: "in",
|
|
8045
|
-
special: true,
|
|
8046
|
-
negated: true
|
|
8047
|
-
};
|
|
8114
|
+
var BinaryOpSymbol$40 = $TS($S(Not, __, NotOp), function($skip, $loc, $0, $1, $2, $3) {
|
|
8115
|
+
var op = $3;
|
|
8116
|
+
return { ...op, $loc };
|
|
8048
8117
|
});
|
|
8049
|
-
var BinaryOpSymbol$
|
|
8118
|
+
var BinaryOpSymbol$41 = $TV($C($S(Is, __, In), $EXPECT($L93, 'BinaryOpSymbol "\u2208"')), function($skip, $loc, $0, $1) {
|
|
8050
8119
|
return {
|
|
8051
8120
|
method: "includes",
|
|
8052
8121
|
relational: true,
|
|
@@ -8054,14 +8123,14 @@ var require_parser = __commonJS({
|
|
|
8054
8123
|
special: true
|
|
8055
8124
|
};
|
|
8056
8125
|
});
|
|
8057
|
-
var BinaryOpSymbol$
|
|
8126
|
+
var BinaryOpSymbol$42 = $TV($EXPECT($L94, 'BinaryOpSymbol "\u220B"'), function($skip, $loc, $0, $1) {
|
|
8058
8127
|
return {
|
|
8059
8128
|
method: "includes",
|
|
8060
8129
|
relational: true,
|
|
8061
8130
|
special: true
|
|
8062
8131
|
};
|
|
8063
8132
|
});
|
|
8064
|
-
var BinaryOpSymbol$
|
|
8133
|
+
var BinaryOpSymbol$43 = $TV($EXPECT($L95, 'BinaryOpSymbol "\u220C"'), function($skip, $loc, $0, $1) {
|
|
8065
8134
|
return {
|
|
8066
8135
|
method: "includes",
|
|
8067
8136
|
relational: true,
|
|
@@ -8069,16 +8138,7 @@ var require_parser = __commonJS({
|
|
|
8069
8138
|
negated: true
|
|
8070
8139
|
};
|
|
8071
8140
|
});
|
|
8072
|
-
var BinaryOpSymbol$
|
|
8073
|
-
return {
|
|
8074
|
-
call: [module.getRef("indexOf"), ".call"],
|
|
8075
|
-
relational: true,
|
|
8076
|
-
reversed: true,
|
|
8077
|
-
suffix: " >= 0",
|
|
8078
|
-
special: true
|
|
8079
|
-
};
|
|
8080
|
-
});
|
|
8081
|
-
var BinaryOpSymbol$46 = $TV($C($S(Is, __, Not, __, In), $EXPECT($L97, 'BinaryOpSymbol "\u2209"')), function($skip, $loc, $0, $1) {
|
|
8141
|
+
var BinaryOpSymbol$44 = $TV($C($S(Is, __, Not, __, In), $EXPECT($L96, 'BinaryOpSymbol "\u2209"')), function($skip, $loc, $0, $1) {
|
|
8082
8142
|
return {
|
|
8083
8143
|
method: "includes",
|
|
8084
8144
|
relational: true,
|
|
@@ -8087,16 +8147,7 @@ var require_parser = __commonJS({
|
|
|
8087
8147
|
negated: true
|
|
8088
8148
|
};
|
|
8089
8149
|
});
|
|
8090
|
-
var BinaryOpSymbol$
|
|
8091
|
-
return {
|
|
8092
|
-
call: [module.getRef("indexOf"), ".call"],
|
|
8093
|
-
relational: true,
|
|
8094
|
-
reversed: true,
|
|
8095
|
-
suffix: " < 0",
|
|
8096
|
-
special: true
|
|
8097
|
-
};
|
|
8098
|
-
});
|
|
8099
|
-
var BinaryOpSymbol$48 = $TS($S($N(CoffeeNotEnabled), Is, __, Not), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
8150
|
+
var BinaryOpSymbol$45 = $TS($S($N(CoffeeNotEnabled), Is, __, Not), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
8100
8151
|
if (module.config.objectIs) {
|
|
8101
8152
|
return {
|
|
8102
8153
|
call: module.getRef("is"),
|
|
@@ -8108,7 +8159,7 @@ var require_parser = __commonJS({
|
|
|
8108
8159
|
}
|
|
8109
8160
|
return "!==";
|
|
8110
8161
|
});
|
|
8111
|
-
var BinaryOpSymbol$
|
|
8162
|
+
var BinaryOpSymbol$46 = $TS($S(Is), function($skip, $loc, $0, $1) {
|
|
8112
8163
|
if (module.config.objectIs) {
|
|
8113
8164
|
return {
|
|
8114
8165
|
call: module.getRef("is"),
|
|
@@ -8119,34 +8170,86 @@ var require_parser = __commonJS({
|
|
|
8119
8170
|
}
|
|
8120
8171
|
return "===";
|
|
8121
8172
|
});
|
|
8122
|
-
var BinaryOpSymbol$
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
var BinaryOpSymbol$
|
|
8126
|
-
var BinaryOpSymbol
|
|
8127
|
-
var BinaryOpSymbol$53 = $EXPECT($L99, 'BinaryOpSymbol "|"');
|
|
8128
|
-
var BinaryOpSymbol$$ = [BinaryOpSymbol$0, BinaryOpSymbol$1, BinaryOpSymbol$2, BinaryOpSymbol$3, BinaryOpSymbol$4, BinaryOpSymbol$5, BinaryOpSymbol$6, BinaryOpSymbol$7, BinaryOpSymbol$8, BinaryOpSymbol$9, BinaryOpSymbol$10, BinaryOpSymbol$11, BinaryOpSymbol$12, BinaryOpSymbol$13, BinaryOpSymbol$14, BinaryOpSymbol$15, BinaryOpSymbol$16, BinaryOpSymbol$17, BinaryOpSymbol$18, BinaryOpSymbol$19, BinaryOpSymbol$20, BinaryOpSymbol$21, BinaryOpSymbol$22, BinaryOpSymbol$23, BinaryOpSymbol$24, BinaryOpSymbol$25, BinaryOpSymbol$26, BinaryOpSymbol$27, BinaryOpSymbol$28, BinaryOpSymbol$29, BinaryOpSymbol$30, BinaryOpSymbol$31, BinaryOpSymbol$32, BinaryOpSymbol$33, BinaryOpSymbol$34, BinaryOpSymbol$35, BinaryOpSymbol$36, BinaryOpSymbol$37, BinaryOpSymbol$38, BinaryOpSymbol$39, BinaryOpSymbol$40, BinaryOpSymbol$41, BinaryOpSymbol$42, BinaryOpSymbol$43, BinaryOpSymbol$44, BinaryOpSymbol$45, BinaryOpSymbol$46, BinaryOpSymbol$47, BinaryOpSymbol$48, BinaryOpSymbol$49, BinaryOpSymbol$50, BinaryOpSymbol$51, BinaryOpSymbol$52, BinaryOpSymbol$53];
|
|
8173
|
+
var BinaryOpSymbol$47 = In;
|
|
8174
|
+
var BinaryOpSymbol$48 = $EXPECT($L97, 'BinaryOpSymbol "&"');
|
|
8175
|
+
var BinaryOpSymbol$49 = $EXPECT($L17, 'BinaryOpSymbol "^"');
|
|
8176
|
+
var BinaryOpSymbol$50 = $EXPECT($L98, 'BinaryOpSymbol "|"');
|
|
8177
|
+
var BinaryOpSymbol$$ = [BinaryOpSymbol$0, BinaryOpSymbol$1, BinaryOpSymbol$2, BinaryOpSymbol$3, BinaryOpSymbol$4, BinaryOpSymbol$5, BinaryOpSymbol$6, BinaryOpSymbol$7, BinaryOpSymbol$8, BinaryOpSymbol$9, BinaryOpSymbol$10, BinaryOpSymbol$11, BinaryOpSymbol$12, BinaryOpSymbol$13, BinaryOpSymbol$14, BinaryOpSymbol$15, BinaryOpSymbol$16, BinaryOpSymbol$17, BinaryOpSymbol$18, BinaryOpSymbol$19, BinaryOpSymbol$20, BinaryOpSymbol$21, BinaryOpSymbol$22, BinaryOpSymbol$23, BinaryOpSymbol$24, BinaryOpSymbol$25, BinaryOpSymbol$26, BinaryOpSymbol$27, BinaryOpSymbol$28, BinaryOpSymbol$29, BinaryOpSymbol$30, BinaryOpSymbol$31, BinaryOpSymbol$32, BinaryOpSymbol$33, BinaryOpSymbol$34, BinaryOpSymbol$35, BinaryOpSymbol$36, BinaryOpSymbol$37, BinaryOpSymbol$38, BinaryOpSymbol$39, BinaryOpSymbol$40, BinaryOpSymbol$41, BinaryOpSymbol$42, BinaryOpSymbol$43, BinaryOpSymbol$44, BinaryOpSymbol$45, BinaryOpSymbol$46, BinaryOpSymbol$47, BinaryOpSymbol$48, BinaryOpSymbol$49, BinaryOpSymbol$50];
|
|
8129
8178
|
function BinaryOpSymbol(ctx, state) {
|
|
8130
8179
|
return $EVENT_C(ctx, state, "BinaryOpSymbol", BinaryOpSymbol$$);
|
|
8131
8180
|
}
|
|
8132
|
-
var
|
|
8133
|
-
|
|
8181
|
+
var CoffeeOfOp$0 = $T($S(Of), function(value) {
|
|
8182
|
+
return "in";
|
|
8183
|
+
});
|
|
8184
|
+
var CoffeeOfOp$1 = $TS($S(In), function($skip, $loc, $0, $1) {
|
|
8185
|
+
return {
|
|
8186
|
+
call: [module.getRef("indexOf"), ".call"],
|
|
8187
|
+
relational: true,
|
|
8188
|
+
reversed: true,
|
|
8189
|
+
suffix: " >= 0",
|
|
8190
|
+
special: true
|
|
8191
|
+
};
|
|
8192
|
+
});
|
|
8193
|
+
var CoffeeOfOp$2 = $TS($S(Not, __, Of, NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
8194
|
+
return {
|
|
8195
|
+
$loc,
|
|
8196
|
+
token: "in",
|
|
8197
|
+
special: true,
|
|
8198
|
+
negated: true
|
|
8199
|
+
};
|
|
8200
|
+
});
|
|
8201
|
+
var CoffeeOfOp$3 = $TS($S(Not, __, In), function($skip, $loc, $0, $1, $2, $3) {
|
|
8202
|
+
return {
|
|
8203
|
+
call: [module.getRef("indexOf"), ".call"],
|
|
8204
|
+
relational: true,
|
|
8205
|
+
reversed: true,
|
|
8206
|
+
suffix: " < 0",
|
|
8207
|
+
special: true
|
|
8208
|
+
};
|
|
8209
|
+
});
|
|
8210
|
+
var CoffeeOfOp$$ = [CoffeeOfOp$0, CoffeeOfOp$1, CoffeeOfOp$2, CoffeeOfOp$3];
|
|
8211
|
+
function CoffeeOfOp(ctx, state) {
|
|
8212
|
+
return $EVENT_C(ctx, state, "CoffeeOfOp", CoffeeOfOp$$);
|
|
8213
|
+
}
|
|
8214
|
+
var NotOp$0 = $TS($S($EXPECT($L92, 'NotOp "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
8215
|
+
return {
|
|
8216
|
+
$loc,
|
|
8217
|
+
token: "instanceof",
|
|
8218
|
+
relational: true,
|
|
8219
|
+
special: true,
|
|
8220
|
+
negated: true
|
|
8221
|
+
};
|
|
8222
|
+
});
|
|
8223
|
+
var NotOp$1 = $TS($S(In), function($skip, $loc, $0, $1) {
|
|
8224
|
+
return {
|
|
8225
|
+
$loc,
|
|
8226
|
+
token: "in",
|
|
8227
|
+
special: true,
|
|
8228
|
+
negated: true
|
|
8229
|
+
};
|
|
8230
|
+
});
|
|
8231
|
+
var NotOp$$ = [NotOp$0, NotOp$1];
|
|
8232
|
+
function NotOp(ctx, state) {
|
|
8233
|
+
return $EVENT_C(ctx, state, "NotOp", NotOp$$);
|
|
8234
|
+
}
|
|
8235
|
+
var Xor$0 = $EXPECT($L87, 'Xor "^^"');
|
|
8236
|
+
var Xor$1 = $S($EXPECT($L88, 'Xor "xor"'), NonIdContinue);
|
|
8134
8237
|
var Xor$$ = [Xor$0, Xor$1];
|
|
8135
8238
|
function Xor(ctx, state) {
|
|
8136
8239
|
return $EVENT_C(ctx, state, "Xor", Xor$$);
|
|
8137
8240
|
}
|
|
8138
|
-
var Xnor$0 = $R$0($EXPECT($
|
|
8139
|
-
var Xnor$1 = $EXPECT($
|
|
8241
|
+
var Xnor$0 = $R$0($EXPECT($R16, "Xnor /!\\^\\^?/"));
|
|
8242
|
+
var Xnor$1 = $EXPECT($L89, 'Xnor "xnor"');
|
|
8140
8243
|
var Xnor$$ = [Xnor$0, Xnor$1];
|
|
8141
8244
|
function Xnor(ctx, state) {
|
|
8142
8245
|
return $EVENT_C(ctx, state, "Xnor", Xnor$$);
|
|
8143
8246
|
}
|
|
8144
|
-
var UnaryOp$0 = $TR($EXPECT($
|
|
8247
|
+
var UnaryOp$0 = $TR($EXPECT($R17, "UnaryOp /(?!\\+\\+|--)[!~+-](?!\\s|[!~+-]*[&.])/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
8145
8248
|
return { $loc, token: $0 };
|
|
8146
8249
|
});
|
|
8147
8250
|
var UnaryOp$1 = AwaitOp;
|
|
8148
|
-
var UnaryOp$2 = $S($C(Delete, Void, Typeof), $N($EXPECT($
|
|
8149
|
-
var UnaryOp$3 = $T($S(Not, $E($EXPECT($
|
|
8251
|
+
var UnaryOp$2 = $S($C(Delete, Void, Typeof), $N($EXPECT($L11, 'UnaryOp ":"')), $E(_));
|
|
8252
|
+
var UnaryOp$3 = $T($S(Not, $E($EXPECT($L12, 'UnaryOp " "')), $E(_)), function(value) {
|
|
8150
8253
|
return [value[0], value[2]];
|
|
8151
8254
|
});
|
|
8152
8255
|
var UnaryOp$$ = [UnaryOp$0, UnaryOp$1, UnaryOp$2, UnaryOp$3];
|
|
@@ -8212,14 +8315,20 @@ var require_parser = __commonJS({
|
|
|
8212
8315
|
function NonPipelinePostfixedExpression(ctx, state) {
|
|
8213
8316
|
return $EVENT(ctx, state, "NonPipelinePostfixedExpression", NonPipelinePostfixedExpression$0);
|
|
8214
8317
|
}
|
|
8215
|
-
var PostfixStatement$0 =
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
var PostfixStatement$3 = UnlessClause;
|
|
8219
|
-
var PostfixStatement$4 = WhileClause;
|
|
8220
|
-
var PostfixStatement$$ = [PostfixStatement$0, PostfixStatement$1, PostfixStatement$2, PostfixStatement$3, PostfixStatement$4];
|
|
8318
|
+
var PostfixStatement$0 = $T($S($EXPECT($R18, "PostfixStatement /(?=for|if|loop|unless|until|while)/"), _PostfixStatement), function(value) {
|
|
8319
|
+
return value[1];
|
|
8320
|
+
});
|
|
8221
8321
|
function PostfixStatement(ctx, state) {
|
|
8222
|
-
return $
|
|
8322
|
+
return $EVENT(ctx, state, "PostfixStatement", PostfixStatement$0);
|
|
8323
|
+
}
|
|
8324
|
+
var _PostfixStatement$0 = ForClause;
|
|
8325
|
+
var _PostfixStatement$1 = IfClause;
|
|
8326
|
+
var _PostfixStatement$2 = LoopClause;
|
|
8327
|
+
var _PostfixStatement$3 = UnlessClause;
|
|
8328
|
+
var _PostfixStatement$4 = WhileClause;
|
|
8329
|
+
var _PostfixStatement$$ = [_PostfixStatement$0, _PostfixStatement$1, _PostfixStatement$2, _PostfixStatement$3, _PostfixStatement$4];
|
|
8330
|
+
function _PostfixStatement(ctx, state) {
|
|
8331
|
+
return $EVENT_C(ctx, state, "_PostfixStatement", _PostfixStatement$$);
|
|
8223
8332
|
}
|
|
8224
8333
|
var Statement$0 = KeywordStatement;
|
|
8225
8334
|
var Statement$1 = VariableStatement;
|
|
@@ -8240,7 +8349,7 @@ var require_parser = __commonJS({
|
|
|
8240
8349
|
function Statement(ctx, state) {
|
|
8241
8350
|
return $EVENT_C(ctx, state, "Statement", Statement$$);
|
|
8242
8351
|
}
|
|
8243
|
-
var EmptyStatement$0 = $TS($S($E(_), $Y($EXPECT($
|
|
8352
|
+
var EmptyStatement$0 = $TS($S($E(_), $Y($EXPECT($L99, 'EmptyStatement ";"'))), function($skip, $loc, $0, $1, $2) {
|
|
8244
8353
|
return { type: "EmptyStatement", children: $1 || [] };
|
|
8245
8354
|
});
|
|
8246
8355
|
function EmptyStatement(ctx, state) {
|
|
@@ -8262,7 +8371,7 @@ var require_parser = __commonJS({
|
|
|
8262
8371
|
var w = $3;
|
|
8263
8372
|
return [id, colon, w];
|
|
8264
8373
|
});
|
|
8265
|
-
var Label$1 = $S($EXPECT($
|
|
8374
|
+
var Label$1 = $S($EXPECT($L100, 'Label "$:"'), Whitespace);
|
|
8266
8375
|
var Label$$ = [Label$0, Label$1];
|
|
8267
8376
|
function Label(ctx, state) {
|
|
8268
8377
|
return $EVENT_C(ctx, state, "Label", Label$$);
|
|
@@ -8311,10 +8420,10 @@ var require_parser = __commonJS({
|
|
|
8311
8420
|
kind = { ...kind, token: "if" };
|
|
8312
8421
|
kind.token += getTrimmingSpace(condition);
|
|
8313
8422
|
condition = insertTrimmingSpace(condition, "");
|
|
8423
|
+
condition = negateCondition(condition);
|
|
8314
8424
|
return {
|
|
8315
8425
|
type: "IfStatement",
|
|
8316
|
-
|
|
8317
|
-
children: [kind, ["(!", condition, ")"]],
|
|
8426
|
+
children: [kind, condition],
|
|
8318
8427
|
condition
|
|
8319
8428
|
};
|
|
8320
8429
|
});
|
|
@@ -8435,18 +8544,24 @@ var require_parser = __commonJS({
|
|
|
8435
8544
|
function BlockExpressionPart(ctx, state) {
|
|
8436
8545
|
return $EVENT(ctx, state, "BlockExpressionPart", BlockExpressionPart$0);
|
|
8437
8546
|
}
|
|
8438
|
-
var IterationStatement$0 =
|
|
8439
|
-
|
|
8547
|
+
var IterationStatement$0 = $T($S($EXPECT($R19, "IterationStatement /(?=loop|do|for|until|while)/"), _IterationStatement), function(value) {
|
|
8548
|
+
return value[1];
|
|
8549
|
+
});
|
|
8550
|
+
function IterationStatement(ctx, state) {
|
|
8551
|
+
return $EVENT(ctx, state, "IterationStatement", IterationStatement$0);
|
|
8552
|
+
}
|
|
8553
|
+
var _IterationStatement$0 = LoopStatement;
|
|
8554
|
+
var _IterationStatement$1 = $T($S($N(CoffeeDoEnabled), DoWhileStatement), function(value) {
|
|
8440
8555
|
return value[1];
|
|
8441
8556
|
});
|
|
8442
|
-
var
|
|
8557
|
+
var _IterationStatement$2 = $T($S($N(CoffeeDoEnabled), DoStatement), function(value) {
|
|
8443
8558
|
return value[1];
|
|
8444
8559
|
});
|
|
8445
|
-
var
|
|
8446
|
-
var
|
|
8447
|
-
var
|
|
8448
|
-
function
|
|
8449
|
-
return $EVENT_C(ctx, state, "
|
|
8560
|
+
var _IterationStatement$3 = WhileStatement;
|
|
8561
|
+
var _IterationStatement$4 = ForStatement;
|
|
8562
|
+
var _IterationStatement$$ = [_IterationStatement$0, _IterationStatement$1, _IterationStatement$2, _IterationStatement$3, _IterationStatement$4];
|
|
8563
|
+
function _IterationStatement(ctx, state) {
|
|
8564
|
+
return $EVENT_C(ctx, state, "_IterationStatement", _IterationStatement$$);
|
|
8450
8565
|
}
|
|
8451
8566
|
var IterationExpression$0 = $TS($S($E($S(Async, __)), IterationStatement), function($skip, $loc, $0, $1, $2) {
|
|
8452
8567
|
var async = $1;
|
|
@@ -8517,16 +8632,12 @@ var require_parser = __commonJS({
|
|
|
8517
8632
|
var ws = $2;
|
|
8518
8633
|
var condition = $3;
|
|
8519
8634
|
if (kind.token === "until") {
|
|
8520
|
-
kind
|
|
8521
|
-
|
|
8522
|
-
type: "IterationStatement",
|
|
8523
|
-
children: [kind, ...ws, ["(!", ...condition.children, ")"]],
|
|
8524
|
-
condition
|
|
8525
|
-
};
|
|
8635
|
+
kind = { ...kind, token: "while" };
|
|
8636
|
+
condition = negateCondition(condition);
|
|
8526
8637
|
}
|
|
8527
8638
|
return {
|
|
8528
8639
|
type: "IterationStatement",
|
|
8529
|
-
children: [kind,
|
|
8640
|
+
children: [kind, ws, condition],
|
|
8530
8641
|
condition
|
|
8531
8642
|
};
|
|
8532
8643
|
});
|
|
@@ -8785,7 +8896,7 @@ var require_parser = __commonJS({
|
|
|
8785
8896
|
names: binding.names
|
|
8786
8897
|
};
|
|
8787
8898
|
});
|
|
8788
|
-
var ForDeclaration$1 = $TS($S(InsertConst, ForBinding, $EXPECT($
|
|
8899
|
+
var ForDeclaration$1 = $TS($S(InsertConst, ForBinding, $EXPECT($R20, "ForDeclaration /(?=[\\s\\),])/")), function($skip, $loc, $0, $1, $2, $3) {
|
|
8789
8900
|
var c = $1;
|
|
8790
8901
|
var binding = $2;
|
|
8791
8902
|
return {
|
|
@@ -9011,7 +9122,7 @@ var require_parser = __commonJS({
|
|
|
9011
9122
|
function IgnoreColon(ctx, state) {
|
|
9012
9123
|
return $EVENT(ctx, state, "IgnoreColon", IgnoreColon$0);
|
|
9013
9124
|
}
|
|
9014
|
-
var TryStatement$0 = $TS($S(Try, $N($EXPECT($
|
|
9125
|
+
var TryStatement$0 = $TS($S(Try, $N($EXPECT($L11, 'TryStatement ":"')), NoPostfixBracedOrEmptyBlock, $E(CatchClause), $E(FinallyClause)), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
9015
9126
|
var t = $1;
|
|
9016
9127
|
var b = $3;
|
|
9017
9128
|
var c = $4;
|
|
@@ -9319,7 +9430,7 @@ var require_parser = __commonJS({
|
|
|
9319
9430
|
};
|
|
9320
9431
|
});
|
|
9321
9432
|
var KeywordStatement$2 = DebuggerStatement;
|
|
9322
|
-
var KeywordStatement$3 = $T($S(Return, $N($C($EXPECT($
|
|
9433
|
+
var KeywordStatement$3 = $T($S(Return, $N($C($EXPECT($L11, 'KeywordStatement ":"'), $EXPECT($L6, 'KeywordStatement "."'), AfterReturnShorthand)), $E(MaybeNestedExpression)), function(value) {
|
|
9323
9434
|
var expression = value[2];
|
|
9324
9435
|
return { "type": "ReturnStatement", "expression": expression, "children": value };
|
|
9325
9436
|
});
|
|
@@ -9340,19 +9451,19 @@ var require_parser = __commonJS({
|
|
|
9340
9451
|
function ThrowStatement(ctx, state) {
|
|
9341
9452
|
return $EVENT(ctx, state, "ThrowStatement", ThrowStatement$0);
|
|
9342
9453
|
}
|
|
9343
|
-
var Break$0 = $TS($S($EXPECT($
|
|
9454
|
+
var Break$0 = $TS($S($EXPECT($L101, 'Break "break"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9344
9455
|
return { $loc, token: $1 };
|
|
9345
9456
|
});
|
|
9346
9457
|
function Break(ctx, state) {
|
|
9347
9458
|
return $EVENT(ctx, state, "Break", Break$0);
|
|
9348
9459
|
}
|
|
9349
|
-
var Continue$0 = $TS($S($EXPECT($
|
|
9460
|
+
var Continue$0 = $TS($S($EXPECT($L102, 'Continue "continue"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9350
9461
|
return { $loc, token: $1 };
|
|
9351
9462
|
});
|
|
9352
9463
|
function Continue(ctx, state) {
|
|
9353
9464
|
return $EVENT(ctx, state, "Continue", Continue$0);
|
|
9354
9465
|
}
|
|
9355
|
-
var Debugger$0 = $TS($S($EXPECT($
|
|
9466
|
+
var Debugger$0 = $TS($S($EXPECT($L103, 'Debugger "debugger"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9356
9467
|
return { $loc, token: $1 };
|
|
9357
9468
|
});
|
|
9358
9469
|
function Debugger(ctx, state) {
|
|
@@ -9473,7 +9584,7 @@ var require_parser = __commonJS({
|
|
|
9473
9584
|
function FromClause(ctx, state) {
|
|
9474
9585
|
return $EVENT(ctx, state, "FromClause", FromClause$0);
|
|
9475
9586
|
}
|
|
9476
|
-
var ImportAssertion$0 = $S($E(_), $EXPECT($
|
|
9587
|
+
var ImportAssertion$0 = $S($E(_), $EXPECT($L104, 'ImportAssertion "assert"'), NonIdContinue, $E(_), ObjectLiteral);
|
|
9477
9588
|
function ImportAssertion(ctx, state) {
|
|
9478
9589
|
return $EVENT(ctx, state, "ImportAssertion", ImportAssertion$0);
|
|
9479
9590
|
}
|
|
@@ -9521,7 +9632,7 @@ var require_parser = __commonJS({
|
|
|
9521
9632
|
return $EVENT_C(ctx, state, "ImportSpecifier", ImportSpecifier$$);
|
|
9522
9633
|
}
|
|
9523
9634
|
var ImportAsToken$0 = $S(__, As);
|
|
9524
|
-
var ImportAsToken$1 = $TS($S(Loc, __, Colon, $E($EXPECT($
|
|
9635
|
+
var ImportAsToken$1 = $TS($S(Loc, __, Colon, $E($EXPECT($L12, 'ImportAsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
9525
9636
|
var l = $1;
|
|
9526
9637
|
var ws = $2;
|
|
9527
9638
|
var c = $3;
|
|
@@ -9561,7 +9672,7 @@ var require_parser = __commonJS({
|
|
|
9561
9672
|
function UnprocessedModuleSpecifier(ctx, state) {
|
|
9562
9673
|
return $EVENT_C(ctx, state, "UnprocessedModuleSpecifier", UnprocessedModuleSpecifier$$);
|
|
9563
9674
|
}
|
|
9564
|
-
var UnquotedSpecifier$0 = $TV($EXPECT($
|
|
9675
|
+
var UnquotedSpecifier$0 = $TV($EXPECT($R21, 'UnquotedSpecifier /[^;"\\s]+/'), function($skip, $loc, $0, $1) {
|
|
9565
9676
|
var spec = $0;
|
|
9566
9677
|
return { $loc, token: `"${spec}"` };
|
|
9567
9678
|
});
|
|
@@ -9693,13 +9804,13 @@ var require_parser = __commonJS({
|
|
|
9693
9804
|
function LexicalDeclaration(ctx, state) {
|
|
9694
9805
|
return $EVENT_C(ctx, state, "LexicalDeclaration", LexicalDeclaration$$);
|
|
9695
9806
|
}
|
|
9696
|
-
var ConstAssignment$0 = $TV($C($EXPECT($
|
|
9807
|
+
var ConstAssignment$0 = $TV($C($EXPECT($L105, 'ConstAssignment ":="'), $EXPECT($L106, 'ConstAssignment "\u2254"')), function($skip, $loc, $0, $1) {
|
|
9697
9808
|
return { $loc, token: "=" };
|
|
9698
9809
|
});
|
|
9699
9810
|
function ConstAssignment(ctx, state) {
|
|
9700
9811
|
return $EVENT(ctx, state, "ConstAssignment", ConstAssignment$0);
|
|
9701
9812
|
}
|
|
9702
|
-
var LetAssignment$0 = $TV($EXPECT($
|
|
9813
|
+
var LetAssignment$0 = $TV($EXPECT($L107, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
|
|
9703
9814
|
return { $loc, token: "=" };
|
|
9704
9815
|
});
|
|
9705
9816
|
function LetAssignment(ctx, state) {
|
|
@@ -9767,8 +9878,9 @@ var require_parser = __commonJS({
|
|
|
9767
9878
|
function VariableDeclarationList(ctx, state) {
|
|
9768
9879
|
return $EVENT(ctx, state, "VariableDeclarationList", VariableDeclarationList$0);
|
|
9769
9880
|
}
|
|
9770
|
-
var NumericLiteral$0 = $TS($S(NumericLiteralKind), function($skip, $loc, $0, $1) {
|
|
9771
|
-
|
|
9881
|
+
var NumericLiteral$0 = $TS($S($EXPECT($R22, "NumericLiteral /(?=[0-9.])/"), NumericLiteralKind), function($skip, $loc, $0, $1, $2) {
|
|
9882
|
+
var token = $2;
|
|
9883
|
+
return { type: "NumericLiteral", $loc, token };
|
|
9772
9884
|
});
|
|
9773
9885
|
function NumericLiteral(ctx, state) {
|
|
9774
9886
|
return $EVENT(ctx, state, "NumericLiteral", NumericLiteral$0);
|
|
@@ -9782,37 +9894,38 @@ var require_parser = __commonJS({
|
|
|
9782
9894
|
function NumericLiteralKind(ctx, state) {
|
|
9783
9895
|
return $EVENT_C(ctx, state, "NumericLiteralKind", NumericLiteralKind$$);
|
|
9784
9896
|
}
|
|
9785
|
-
var DecimalBigIntegerLiteral$0 = $R$0($EXPECT($
|
|
9897
|
+
var DecimalBigIntegerLiteral$0 = $R$0($EXPECT($R23, "DecimalBigIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)n/"));
|
|
9786
9898
|
function DecimalBigIntegerLiteral(ctx, state) {
|
|
9787
9899
|
return $EVENT(ctx, state, "DecimalBigIntegerLiteral", DecimalBigIntegerLiteral$0);
|
|
9788
9900
|
}
|
|
9789
|
-
var DecimalLiteral$0 = $TV($TEXT($EXPECT($
|
|
9901
|
+
var DecimalLiteral$0 = $TV($TEXT($EXPECT($R24, "DecimalLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))/")), function($skip, $loc, $0, $1) {
|
|
9790
9902
|
return $1 + ".";
|
|
9791
9903
|
});
|
|
9792
|
-
var DecimalLiteral$1 = $TEXT($S($EXPECT($
|
|
9793
|
-
var DecimalLiteral$2 = $TEXT($S($EXPECT($
|
|
9904
|
+
var DecimalLiteral$1 = $TEXT($S($EXPECT($R25, "DecimalLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?/"), $E(ExponentPart)));
|
|
9905
|
+
var DecimalLiteral$2 = $TEXT($S($EXPECT($R26, "DecimalLiteral /(?:\\.[0-9](?:_[0-9]|[0-9])*)/"), $E(ExponentPart)));
|
|
9794
9906
|
var DecimalLiteral$$ = [DecimalLiteral$0, DecimalLiteral$1, DecimalLiteral$2];
|
|
9795
9907
|
function DecimalLiteral(ctx, state) {
|
|
9796
9908
|
return $EVENT_C(ctx, state, "DecimalLiteral", DecimalLiteral$$);
|
|
9797
9909
|
}
|
|
9798
|
-
var ExponentPart$0 = $R$0($EXPECT($
|
|
9910
|
+
var ExponentPart$0 = $R$0($EXPECT($R27, "ExponentPart /(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)/"));
|
|
9799
9911
|
function ExponentPart(ctx, state) {
|
|
9800
9912
|
return $EVENT(ctx, state, "ExponentPart", ExponentPart$0);
|
|
9801
9913
|
}
|
|
9802
|
-
var BinaryIntegerLiteral$0 = $R$0($EXPECT($
|
|
9914
|
+
var BinaryIntegerLiteral$0 = $R$0($EXPECT($R28, "BinaryIntegerLiteral /0[bB][01](?:[01]|_[01])*n?/"));
|
|
9803
9915
|
function BinaryIntegerLiteral(ctx, state) {
|
|
9804
9916
|
return $EVENT(ctx, state, "BinaryIntegerLiteral", BinaryIntegerLiteral$0);
|
|
9805
9917
|
}
|
|
9806
|
-
var OctalIntegerLiteral$0 = $R$0($EXPECT($
|
|
9918
|
+
var OctalIntegerLiteral$0 = $R$0($EXPECT($R29, "OctalIntegerLiteral /0[oO][0-7](?:[0-7]|_[0-7])*n?/"));
|
|
9807
9919
|
function OctalIntegerLiteral(ctx, state) {
|
|
9808
9920
|
return $EVENT(ctx, state, "OctalIntegerLiteral", OctalIntegerLiteral$0);
|
|
9809
9921
|
}
|
|
9810
|
-
var HexIntegerLiteral$0 = $R$0($EXPECT($
|
|
9922
|
+
var HexIntegerLiteral$0 = $R$0($EXPECT($R30, "HexIntegerLiteral /0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?/"));
|
|
9811
9923
|
function HexIntegerLiteral(ctx, state) {
|
|
9812
9924
|
return $EVENT(ctx, state, "HexIntegerLiteral", HexIntegerLiteral$0);
|
|
9813
9925
|
}
|
|
9814
|
-
var IntegerLiteral$0 = $TS($S(IntegerLiteralKind), function($skip, $loc, $0, $1) {
|
|
9815
|
-
|
|
9926
|
+
var IntegerLiteral$0 = $TS($S($EXPECT($R31, "IntegerLiteral /(?=[0-9])/"), IntegerLiteralKind), function($skip, $loc, $0, $1, $2) {
|
|
9927
|
+
var token = $2;
|
|
9928
|
+
return { $loc, token };
|
|
9816
9929
|
});
|
|
9817
9930
|
function IntegerLiteral(ctx, state) {
|
|
9818
9931
|
return $EVENT(ctx, state, "IntegerLiteral", IntegerLiteral$0);
|
|
@@ -9826,7 +9939,7 @@ var require_parser = __commonJS({
|
|
|
9826
9939
|
function IntegerLiteralKind(ctx, state) {
|
|
9827
9940
|
return $EVENT_C(ctx, state, "IntegerLiteralKind", IntegerLiteralKind$$);
|
|
9828
9941
|
}
|
|
9829
|
-
var DecimalIntegerLiteral$0 = $R$0($EXPECT($
|
|
9942
|
+
var DecimalIntegerLiteral$0 = $R$0($EXPECT($R32, "DecimalIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)/"));
|
|
9830
9943
|
function DecimalIntegerLiteral(ctx, state) {
|
|
9831
9944
|
return $EVENT(ctx, state, "DecimalIntegerLiteral", DecimalIntegerLiteral$0);
|
|
9832
9945
|
}
|
|
@@ -9850,25 +9963,25 @@ var require_parser = __commonJS({
|
|
|
9850
9963
|
function StringLiteral(ctx, state) {
|
|
9851
9964
|
return $EVENT_C(ctx, state, "StringLiteral", StringLiteral$$);
|
|
9852
9965
|
}
|
|
9853
|
-
var DoubleStringCharacters$0 = $TR($EXPECT($
|
|
9966
|
+
var DoubleStringCharacters$0 = $TR($EXPECT($R33, 'DoubleStringCharacters /(?:\\\\.|[^"])*/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
9854
9967
|
return { $loc, token: $0 };
|
|
9855
9968
|
});
|
|
9856
9969
|
function DoubleStringCharacters(ctx, state) {
|
|
9857
9970
|
return $EVENT(ctx, state, "DoubleStringCharacters", DoubleStringCharacters$0);
|
|
9858
9971
|
}
|
|
9859
|
-
var SingleStringCharacters$0 = $TR($EXPECT($
|
|
9972
|
+
var SingleStringCharacters$0 = $TR($EXPECT($R34, "SingleStringCharacters /(?:\\\\.|[^'])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
9860
9973
|
return { $loc, token: $0 };
|
|
9861
9974
|
});
|
|
9862
9975
|
function SingleStringCharacters(ctx, state) {
|
|
9863
9976
|
return $EVENT(ctx, state, "SingleStringCharacters", SingleStringCharacters$0);
|
|
9864
9977
|
}
|
|
9865
|
-
var TripleDoubleStringCharacters$0 = $TR($EXPECT($
|
|
9978
|
+
var TripleDoubleStringCharacters$0 = $TR($EXPECT($R35, 'TripleDoubleStringCharacters /(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
9866
9979
|
return { $loc, token: $0 };
|
|
9867
9980
|
});
|
|
9868
9981
|
function TripleDoubleStringCharacters(ctx, state) {
|
|
9869
9982
|
return $EVENT(ctx, state, "TripleDoubleStringCharacters", TripleDoubleStringCharacters$0);
|
|
9870
9983
|
}
|
|
9871
|
-
var TripleSingleStringCharacters$0 = $TR($EXPECT($
|
|
9984
|
+
var TripleSingleStringCharacters$0 = $TR($EXPECT($R36, "TripleSingleStringCharacters /(?:'(?!'')|\\\\.|[^'])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
9872
9985
|
return { $loc, token: $0 };
|
|
9873
9986
|
});
|
|
9874
9987
|
function TripleSingleStringCharacters(ctx, state) {
|
|
@@ -9887,7 +10000,7 @@ var require_parser = __commonJS({
|
|
|
9887
10000
|
function CoffeeInterpolatedDoubleQuotedString(ctx, state) {
|
|
9888
10001
|
return $EVENT(ctx, state, "CoffeeInterpolatedDoubleQuotedString", CoffeeInterpolatedDoubleQuotedString$0);
|
|
9889
10002
|
}
|
|
9890
|
-
var CoffeeDoubleQuotedStringCharacters$0 = $TR($EXPECT($
|
|
10003
|
+
var CoffeeDoubleQuotedStringCharacters$0 = $TR($EXPECT($R37, 'CoffeeDoubleQuotedStringCharacters /(?:\\\\.|#(?!\\{)|[^"#])+/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
9891
10004
|
return { $loc, token: $0 };
|
|
9892
10005
|
});
|
|
9893
10006
|
function CoffeeDoubleQuotedStringCharacters(ctx, state) {
|
|
@@ -9907,7 +10020,7 @@ var require_parser = __commonJS({
|
|
|
9907
10020
|
function RegularExpressionClass(ctx, state) {
|
|
9908
10021
|
return $EVENT(ctx, state, "RegularExpressionClass", RegularExpressionClass$0);
|
|
9909
10022
|
}
|
|
9910
|
-
var RegularExpressionClassCharacters$0 = $TR($EXPECT($
|
|
10023
|
+
var RegularExpressionClassCharacters$0 = $TR($EXPECT($R38, "RegularExpressionClassCharacters /(?:\\\\.|[^\\]])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
9911
10024
|
return { $loc, token: $0 };
|
|
9912
10025
|
});
|
|
9913
10026
|
function RegularExpressionClassCharacters(ctx, state) {
|
|
@@ -9961,7 +10074,7 @@ var require_parser = __commonJS({
|
|
|
9961
10074
|
var HeregexPart$2 = $T($S(TemplateSubstitution), function(value) {
|
|
9962
10075
|
return { "type": "Substitution", "children": value[0] };
|
|
9963
10076
|
});
|
|
9964
|
-
var HeregexPart$3 = $TR($EXPECT($
|
|
10077
|
+
var HeregexPart$3 = $TR($EXPECT($R39, "HeregexPart /(?:\\\\.)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
9965
10078
|
let token = $0;
|
|
9966
10079
|
switch ($0[1]) {
|
|
9967
10080
|
case "\n":
|
|
@@ -9979,13 +10092,13 @@ var require_parser = __commonJS({
|
|
|
9979
10092
|
var HeregexPart$4 = $TS($S(HeregexComment), function($skip, $loc, $0, $1) {
|
|
9980
10093
|
return { $loc, token: "" };
|
|
9981
10094
|
});
|
|
9982
|
-
var HeregexPart$5 = $TR($EXPECT($
|
|
10095
|
+
var HeregexPart$5 = $TR($EXPECT($R40, "HeregexPart /[\\s]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
9983
10096
|
return { $loc, token: "" };
|
|
9984
10097
|
});
|
|
9985
|
-
var HeregexPart$6 = $TR($EXPECT($
|
|
10098
|
+
var HeregexPart$6 = $TR($EXPECT($R41, "HeregexPart /\\/(?!\\/\\/)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
9986
10099
|
return { $loc, token: "\\/" };
|
|
9987
10100
|
});
|
|
9988
|
-
var HeregexPart$7 = $TR($EXPECT($
|
|
10101
|
+
var HeregexPart$7 = $TR($EXPECT($R42, "HeregexPart /[^[\\/\\s#\\\\]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
9989
10102
|
return { $loc, token: $0 };
|
|
9990
10103
|
});
|
|
9991
10104
|
var HeregexPart$$ = [HeregexPart$0, HeregexPart$1, HeregexPart$2, HeregexPart$3, HeregexPart$4, HeregexPart$5, HeregexPart$6, HeregexPart$7];
|
|
@@ -9998,7 +10111,7 @@ var require_parser = __commonJS({
|
|
|
9998
10111
|
function HeregexComment(ctx, state) {
|
|
9999
10112
|
return $EVENT_C(ctx, state, "HeregexComment", HeregexComment$$);
|
|
10000
10113
|
}
|
|
10001
|
-
var RegularExpressionBody$0 = $S($N($R$0($EXPECT($
|
|
10114
|
+
var RegularExpressionBody$0 = $S($N($R$0($EXPECT($R43, "RegularExpressionBody /[*\\/\\r\\n]/"))), $Q(RegExpPart));
|
|
10002
10115
|
function RegularExpressionBody(ctx, state) {
|
|
10003
10116
|
return $EVENT(ctx, state, "RegularExpressionBody", RegularExpressionBody$0);
|
|
10004
10117
|
}
|
|
@@ -10008,27 +10121,33 @@ var require_parser = __commonJS({
|
|
|
10008
10121
|
function RegExpPart(ctx, state) {
|
|
10009
10122
|
return $EVENT_C(ctx, state, "RegExpPart", RegExpPart$$);
|
|
10010
10123
|
}
|
|
10011
|
-
var RegExpCharacter$0 = $R$0($EXPECT($
|
|
10124
|
+
var RegExpCharacter$0 = $R$0($EXPECT($R44, "RegExpCharacter /(?:\\\\.|[^[\\/\\r\\n])+/"));
|
|
10012
10125
|
function RegExpCharacter(ctx, state) {
|
|
10013
10126
|
return $EVENT(ctx, state, "RegExpCharacter", RegExpCharacter$0);
|
|
10014
10127
|
}
|
|
10015
|
-
var RegularExpressionFlags$0 = $R$0($EXPECT($
|
|
10128
|
+
var RegularExpressionFlags$0 = $R$0($EXPECT($R45, "RegularExpressionFlags /(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
|
|
10016
10129
|
function RegularExpressionFlags(ctx, state) {
|
|
10017
10130
|
return $EVENT(ctx, state, "RegularExpressionFlags", RegularExpressionFlags$0);
|
|
10018
10131
|
}
|
|
10019
|
-
var TemplateLiteral$0 = $
|
|
10132
|
+
var TemplateLiteral$0 = $T($S($EXPECT($R46, "TemplateLiteral /(?=[`'\"])/"), _TemplateLiteral), function(value) {
|
|
10133
|
+
return value[1];
|
|
10134
|
+
});
|
|
10135
|
+
function TemplateLiteral(ctx, state) {
|
|
10136
|
+
return $EVENT(ctx, state, "TemplateLiteral", TemplateLiteral$0);
|
|
10137
|
+
}
|
|
10138
|
+
var _TemplateLiteral$0 = $TS($S(TripleTick, $Q($C(TemplateBlockCharacters, TemplateSubstitution)), TripleTick), function($skip, $loc, $0, $1, $2, $3) {
|
|
10020
10139
|
return dedentBlockSubstitutions($0, module.config.tab);
|
|
10021
10140
|
});
|
|
10022
|
-
var
|
|
10141
|
+
var _TemplateLiteral$1 = $TS($S(Backtick, $Q($C(TemplateCharacters, TemplateSubstitution)), Backtick), function($skip, $loc, $0, $1, $2, $3) {
|
|
10023
10142
|
return {
|
|
10024
10143
|
type: "TemplateLiteral",
|
|
10025
10144
|
children: $0
|
|
10026
10145
|
};
|
|
10027
10146
|
});
|
|
10028
|
-
var
|
|
10147
|
+
var _TemplateLiteral$2 = $TS($S(TripleDoubleQuote, $Q($C(TripleDoubleStringCharacters, CoffeeStringSubstitution)), TripleDoubleQuote), function($skip, $loc, $0, $1, $2, $3) {
|
|
10029
10148
|
return dedentBlockSubstitutions($0, module.config.tab);
|
|
10030
10149
|
});
|
|
10031
|
-
var
|
|
10150
|
+
var _TemplateLiteral$3 = $TS($S(TripleSingleQuote, TripleSingleStringCharacters, TripleSingleQuote), function($skip, $loc, $0, $1, $2, $3) {
|
|
10032
10151
|
var s = $1;
|
|
10033
10152
|
var str = $2;
|
|
10034
10153
|
var e = $3;
|
|
@@ -10037,41 +10156,47 @@ var require_parser = __commonJS({
|
|
|
10037
10156
|
children: [s, dedentBlockString(str, module.config.tab), e]
|
|
10038
10157
|
};
|
|
10039
10158
|
});
|
|
10040
|
-
var
|
|
10041
|
-
var
|
|
10042
|
-
function
|
|
10043
|
-
return $EVENT_C(ctx, state, "
|
|
10159
|
+
var _TemplateLiteral$4 = CoffeeInterpolatedDoubleQuotedString;
|
|
10160
|
+
var _TemplateLiteral$$ = [_TemplateLiteral$0, _TemplateLiteral$1, _TemplateLiteral$2, _TemplateLiteral$3, _TemplateLiteral$4];
|
|
10161
|
+
function _TemplateLiteral(ctx, state) {
|
|
10162
|
+
return $EVENT_C(ctx, state, "_TemplateLiteral", _TemplateLiteral$$);
|
|
10044
10163
|
}
|
|
10045
10164
|
var TemplateSubstitution$0 = $S(SubstitutionStart, PostfixedExpression, __, CloseBrace);
|
|
10046
10165
|
function TemplateSubstitution(ctx, state) {
|
|
10047
10166
|
return $EVENT(ctx, state, "TemplateSubstitution", TemplateSubstitution$0);
|
|
10048
10167
|
}
|
|
10049
|
-
var TemplateCharacters$0 = $TR($EXPECT($
|
|
10168
|
+
var TemplateCharacters$0 = $TR($EXPECT($R47, "TemplateCharacters /(?:\\$(?!\\{)|\\\\.|[^$`])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
10050
10169
|
return { $loc, token: $0 };
|
|
10051
10170
|
});
|
|
10052
10171
|
function TemplateCharacters(ctx, state) {
|
|
10053
10172
|
return $EVENT(ctx, state, "TemplateCharacters", TemplateCharacters$0);
|
|
10054
10173
|
}
|
|
10055
|
-
var TemplateBlockCharacters$0 = $TR($EXPECT($
|
|
10174
|
+
var TemplateBlockCharacters$0 = $TR($EXPECT($R48, "TemplateBlockCharacters /(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
10056
10175
|
return { $loc, token: $0 };
|
|
10057
10176
|
});
|
|
10058
10177
|
function TemplateBlockCharacters(ctx, state) {
|
|
10059
10178
|
return $EVENT(ctx, state, "TemplateBlockCharacters", TemplateBlockCharacters$0);
|
|
10060
10179
|
}
|
|
10061
|
-
var ReservedWord$0 = $S(
|
|
10062
|
-
var ReservedWord$1 = $S(
|
|
10063
|
-
var ReservedWord$2 = $S(
|
|
10064
|
-
var ReservedWord$3 = $S(
|
|
10065
|
-
var ReservedWord$4 = $R$0($EXPECT($
|
|
10180
|
+
var ReservedWord$0 = $S($R$0($EXPECT($R49, "ReservedWord /(?:on|off|yes|no)(?!\\p{ID_Continue})/")), CoffeeBooleansEnabled);
|
|
10181
|
+
var ReservedWord$1 = $S($R$0($EXPECT($R50, "ReservedWord /(?:isnt)(?!\\p{ID_Continue})/")), CoffeeIsntEnabled);
|
|
10182
|
+
var ReservedWord$2 = $S($R$0($EXPECT($R51, "ReservedWord /(?:by)(?!\\p{ID_Continue})/")), CoffeeForLoopsEnabled);
|
|
10183
|
+
var ReservedWord$3 = $S($R$0($EXPECT($R52, "ReservedWord /(?:of)(?!\\p{ID_Continue})/")), CoffeeOfEnabled);
|
|
10184
|
+
var ReservedWord$4 = $R$0($EXPECT($R53, "ReservedWord /(?:and|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|not|null|or|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
|
|
10066
10185
|
var ReservedWord$$ = [ReservedWord$0, ReservedWord$1, ReservedWord$2, ReservedWord$3, ReservedWord$4];
|
|
10067
10186
|
function ReservedWord(ctx, state) {
|
|
10068
10187
|
return $EVENT_C(ctx, state, "ReservedWord", ReservedWord$$);
|
|
10069
10188
|
}
|
|
10070
|
-
var Comment$0 =
|
|
10071
|
-
|
|
10072
|
-
|
|
10189
|
+
var Comment$0 = $T($S($EXPECT($R54, "Comment /(?=\\/|#)/"), _Comment), function(value) {
|
|
10190
|
+
return value[1];
|
|
10191
|
+
});
|
|
10073
10192
|
function Comment(ctx, state) {
|
|
10074
|
-
return $
|
|
10193
|
+
return $EVENT(ctx, state, "Comment", Comment$0);
|
|
10194
|
+
}
|
|
10195
|
+
var _Comment$0 = MultiLineComment;
|
|
10196
|
+
var _Comment$1 = SingleLineComment;
|
|
10197
|
+
var _Comment$$ = [_Comment$0, _Comment$1];
|
|
10198
|
+
function _Comment(ctx, state) {
|
|
10199
|
+
return $EVENT_C(ctx, state, "_Comment", _Comment$$);
|
|
10075
10200
|
}
|
|
10076
10201
|
var SingleLineComment$0 = JSSingleLineComment;
|
|
10077
10202
|
var SingleLineComment$1 = $S(CoffeeCommentEnabled, CoffeeSingleLineComment);
|
|
@@ -10079,7 +10204,7 @@ var require_parser = __commonJS({
|
|
|
10079
10204
|
function SingleLineComment(ctx, state) {
|
|
10080
10205
|
return $EVENT_C(ctx, state, "SingleLineComment", SingleLineComment$$);
|
|
10081
10206
|
}
|
|
10082
|
-
var JSSingleLineComment$0 = $TR($EXPECT($
|
|
10207
|
+
var JSSingleLineComment$0 = $TR($EXPECT($R55, "JSSingleLineComment /\\/\\/(?!\\/)[^\\r\\n]*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
10083
10208
|
return { type: "Comment", $loc, token: $0 };
|
|
10084
10209
|
});
|
|
10085
10210
|
function JSSingleLineComment(ctx, state) {
|
|
@@ -10091,30 +10216,30 @@ var require_parser = __commonJS({
|
|
|
10091
10216
|
function MultiLineComment(ctx, state) {
|
|
10092
10217
|
return $EVENT_C(ctx, state, "MultiLineComment", MultiLineComment$$);
|
|
10093
10218
|
}
|
|
10094
|
-
var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($
|
|
10219
|
+
var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L108, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L109, 'JSMultiLineComment "*/"')), $EXPECT($R56, "JSMultiLineComment /./"))), $EXPECT($L109, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
|
|
10095
10220
|
return { type: "Comment", $loc, token: $1 };
|
|
10096
10221
|
});
|
|
10097
10222
|
function JSMultiLineComment(ctx, state) {
|
|
10098
10223
|
return $EVENT(ctx, state, "JSMultiLineComment", JSMultiLineComment$0);
|
|
10099
10224
|
}
|
|
10100
|
-
var CoffeeSingleLineComment$0 = $TR($EXPECT($
|
|
10225
|
+
var CoffeeSingleLineComment$0 = $TR($EXPECT($R57, "CoffeeSingleLineComment /#(?!##(?!#))([^\\r\\n]*)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
10101
10226
|
return { type: "Comment", $loc, token: `//${$1}` };
|
|
10102
10227
|
});
|
|
10103
10228
|
function CoffeeSingleLineComment(ctx, state) {
|
|
10104
10229
|
return $EVENT(ctx, state, "CoffeeSingleLineComment", CoffeeSingleLineComment$0);
|
|
10105
10230
|
}
|
|
10106
|
-
var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($EXPECT($
|
|
10231
|
+
var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($EXPECT($R58, "CoffeeMultiLineComment /[^]*?###/"))), function($skip, $loc, $0, $1, $2) {
|
|
10107
10232
|
$2 = $2.slice(0, $2.length - 3).replace(/\*\//g, "* /");
|
|
10108
10233
|
return { type: "Comment", $loc, token: `/*${$2}*/` };
|
|
10109
10234
|
});
|
|
10110
10235
|
function CoffeeMultiLineComment(ctx, state) {
|
|
10111
10236
|
return $EVENT(ctx, state, "CoffeeMultiLineComment", CoffeeMultiLineComment$0);
|
|
10112
10237
|
}
|
|
10113
|
-
var CoffeeHereCommentStart$0 = $R$0($EXPECT($
|
|
10238
|
+
var CoffeeHereCommentStart$0 = $R$0($EXPECT($R59, "CoffeeHereCommentStart /###(?!#)/"));
|
|
10114
10239
|
function CoffeeHereCommentStart(ctx, state) {
|
|
10115
10240
|
return $EVENT(ctx, state, "CoffeeHereCommentStart", CoffeeHereCommentStart$0);
|
|
10116
10241
|
}
|
|
10117
|
-
var InlineComment$0 = $TR($EXPECT($
|
|
10242
|
+
var InlineComment$0 = $TR($EXPECT($R60, "InlineComment /\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\//"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
10118
10243
|
return { $loc, token: $0 };
|
|
10119
10244
|
});
|
|
10120
10245
|
function InlineComment(ctx, state) {
|
|
@@ -10128,15 +10253,17 @@ var require_parser = __commonJS({
|
|
|
10128
10253
|
function TrailingComment(ctx, state) {
|
|
10129
10254
|
return $EVENT(ctx, state, "TrailingComment", TrailingComment$0);
|
|
10130
10255
|
}
|
|
10131
|
-
var _$0 = $P($C(NonNewlineWhitespace, InlineComment))
|
|
10256
|
+
var _$0 = $T($S($EXPECT($R61, "_ /(?=[ \\t\\/\\\\])/"), $P($C(NonNewlineWhitespace, InlineComment))), function(value) {
|
|
10257
|
+
return value[1];
|
|
10258
|
+
});
|
|
10132
10259
|
function _(ctx, state) {
|
|
10133
10260
|
return $EVENT(ctx, state, "_", _$0);
|
|
10134
10261
|
}
|
|
10135
|
-
var NonNewlineWhitespace$0 = $TR($EXPECT($
|
|
10262
|
+
var NonNewlineWhitespace$0 = $TR($EXPECT($R62, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
10136
10263
|
return { $loc, token: $0 };
|
|
10137
10264
|
});
|
|
10138
|
-
var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($
|
|
10139
|
-
return "";
|
|
10265
|
+
var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L110, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
|
|
10266
|
+
return " ";
|
|
10140
10267
|
});
|
|
10141
10268
|
var NonNewlineWhitespace$$ = [NonNewlineWhitespace$0, NonNewlineWhitespace$1];
|
|
10142
10269
|
function NonNewlineWhitespace(ctx, state) {
|
|
@@ -10149,11 +10276,15 @@ var require_parser = __commonJS({
|
|
|
10149
10276
|
function Trimmed_(ctx, state) {
|
|
10150
10277
|
return $EVENT(ctx, state, "Trimmed_", Trimmed_$0);
|
|
10151
10278
|
}
|
|
10152
|
-
var __$0 = $Q($C(Whitespace, Comment))
|
|
10279
|
+
var __$0 = $T($S($EXPECT($R63, "__ /(?=\\s|\\/|#)/"), $Q($C(Whitespace, Comment))), function(value) {
|
|
10280
|
+
return value[1];
|
|
10281
|
+
});
|
|
10282
|
+
var __$1 = $EXPECT($L0, '__ ""');
|
|
10283
|
+
var __$$ = [__$0, __$1];
|
|
10153
10284
|
function __(ctx, state) {
|
|
10154
|
-
return $
|
|
10285
|
+
return $EVENT_C(ctx, state, "__", __$$);
|
|
10155
10286
|
}
|
|
10156
|
-
var Whitespace$0 = $TR($EXPECT($
|
|
10287
|
+
var Whitespace$0 = $TR($EXPECT($R40, "Whitespace /[\\s]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
10157
10288
|
return { $loc, token: $0 };
|
|
10158
10289
|
});
|
|
10159
10290
|
function Whitespace(ctx, state) {
|
|
@@ -10176,9 +10307,9 @@ var require_parser = __commonJS({
|
|
|
10176
10307
|
return $EVENT_C(ctx, state, "SimpleStatementDelimiter", SimpleStatementDelimiter$$);
|
|
10177
10308
|
}
|
|
10178
10309
|
var StatementDelimiter$0 = SemicolonDelimiter;
|
|
10179
|
-
var StatementDelimiter$1 = $S($Y($S(Nested, $C($EXPECT($L4, 'StatementDelimiter "("'), $EXPECT($
|
|
10310
|
+
var StatementDelimiter$1 = $S($Y($S(Nested, $C($EXPECT($L4, 'StatementDelimiter "("'), $EXPECT($L111, 'StatementDelimiter "["'), $EXPECT($L112, 'StatementDelimiter "`"'), $EXPECT($L58, 'StatementDelimiter "+"'), $EXPECT($L18, 'StatementDelimiter "-"'), $EXPECT($L54, 'StatementDelimiter "*"'), $EXPECT($L55, 'StatementDelimiter "/"'), ObjectLiteral, Arrow, FatArrow, $S(Function, $E($S($E(_), Star)), $E(_), $EXPECT($L4, 'StatementDelimiter "("'))))), InsertSemicolon);
|
|
10180
10311
|
var StatementDelimiter$2 = $Y(EOS);
|
|
10181
|
-
var StatementDelimiter$3 = $Y($S($Q(_), $C($EXPECT($L25, 'StatementDelimiter "}"'), $EXPECT($
|
|
10312
|
+
var StatementDelimiter$3 = $Y($S($Q(_), $C($EXPECT($L25, 'StatementDelimiter "}"'), $EXPECT($L113, 'StatementDelimiter ")"'), $EXPECT($L34, 'StatementDelimiter "]"'))));
|
|
10182
10313
|
var StatementDelimiter$$ = [StatementDelimiter$0, StatementDelimiter$1, StatementDelimiter$2, StatementDelimiter$3];
|
|
10183
10314
|
function StatementDelimiter(ctx, state) {
|
|
10184
10315
|
return $EVENT_C(ctx, state, "StatementDelimiter", StatementDelimiter$$);
|
|
@@ -10192,7 +10323,7 @@ var require_parser = __commonJS({
|
|
|
10192
10323
|
function SemicolonDelimiter(ctx, state) {
|
|
10193
10324
|
return $EVENT(ctx, state, "SemicolonDelimiter", SemicolonDelimiter$0);
|
|
10194
10325
|
}
|
|
10195
|
-
var NonIdContinue$0 = $R$0($EXPECT($
|
|
10326
|
+
var NonIdContinue$0 = $R$0($EXPECT($R64, "NonIdContinue /(?!\\p{ID_Continue})/"));
|
|
10196
10327
|
function NonIdContinue(ctx, state) {
|
|
10197
10328
|
return $EVENT(ctx, state, "NonIdContinue", NonIdContinue$0);
|
|
10198
10329
|
}
|
|
@@ -10202,73 +10333,73 @@ var require_parser = __commonJS({
|
|
|
10202
10333
|
function Loc(ctx, state) {
|
|
10203
10334
|
return $EVENT(ctx, state, "Loc", Loc$0);
|
|
10204
10335
|
}
|
|
10205
|
-
var Abstract$0 = $TV($TEXT($S($EXPECT($
|
|
10336
|
+
var Abstract$0 = $TV($TEXT($S($EXPECT($L114, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L12, 'Abstract " "')))), function($skip, $loc, $0, $1) {
|
|
10206
10337
|
return { $loc, token: $1, ts: true };
|
|
10207
10338
|
});
|
|
10208
10339
|
function Abstract(ctx, state) {
|
|
10209
10340
|
return $EVENT(ctx, state, "Abstract", Abstract$0);
|
|
10210
10341
|
}
|
|
10211
|
-
var Ampersand$0 = $TV($EXPECT($
|
|
10342
|
+
var Ampersand$0 = $TV($EXPECT($L97, 'Ampersand "&"'), function($skip, $loc, $0, $1) {
|
|
10212
10343
|
return { $loc, token: $1 };
|
|
10213
10344
|
});
|
|
10214
10345
|
function Ampersand(ctx, state) {
|
|
10215
10346
|
return $EVENT(ctx, state, "Ampersand", Ampersand$0);
|
|
10216
10347
|
}
|
|
10217
|
-
var As$0 = $TS($S($EXPECT($
|
|
10348
|
+
var As$0 = $TS($S($EXPECT($L115, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10218
10349
|
return { $loc, token: $1 };
|
|
10219
10350
|
});
|
|
10220
10351
|
function As(ctx, state) {
|
|
10221
10352
|
return $EVENT(ctx, state, "As", As$0);
|
|
10222
10353
|
}
|
|
10223
|
-
var At$0 = $TV($EXPECT($
|
|
10354
|
+
var At$0 = $TV($EXPECT($L116, 'At "@"'), function($skip, $loc, $0, $1) {
|
|
10224
10355
|
return { $loc, token: $1 };
|
|
10225
10356
|
});
|
|
10226
10357
|
function At(ctx, state) {
|
|
10227
10358
|
return $EVENT(ctx, state, "At", At$0);
|
|
10228
10359
|
}
|
|
10229
|
-
var AtAt$0 = $TV($EXPECT($
|
|
10360
|
+
var AtAt$0 = $TV($EXPECT($L117, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
|
|
10230
10361
|
return { $loc, token: "@" };
|
|
10231
10362
|
});
|
|
10232
10363
|
function AtAt(ctx, state) {
|
|
10233
10364
|
return $EVENT(ctx, state, "AtAt", AtAt$0);
|
|
10234
10365
|
}
|
|
10235
|
-
var Async$0 = $TS($S($EXPECT($
|
|
10366
|
+
var Async$0 = $TS($S($EXPECT($L118, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10236
10367
|
return { $loc, token: $1, type: "Async" };
|
|
10237
10368
|
});
|
|
10238
10369
|
function Async(ctx, state) {
|
|
10239
10370
|
return $EVENT(ctx, state, "Async", Async$0);
|
|
10240
10371
|
}
|
|
10241
|
-
var Await$0 = $TS($S($EXPECT($
|
|
10372
|
+
var Await$0 = $TS($S($EXPECT($L119, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10242
10373
|
return { $loc, token: $1, type: "Await" };
|
|
10243
10374
|
});
|
|
10244
10375
|
function Await(ctx, state) {
|
|
10245
10376
|
return $EVENT(ctx, state, "Await", Await$0);
|
|
10246
10377
|
}
|
|
10247
|
-
var Backtick$0 = $TV($EXPECT($
|
|
10378
|
+
var Backtick$0 = $TV($EXPECT($L112, 'Backtick "`"'), function($skip, $loc, $0, $1) {
|
|
10248
10379
|
return { $loc, token: $1 };
|
|
10249
10380
|
});
|
|
10250
10381
|
function Backtick(ctx, state) {
|
|
10251
10382
|
return $EVENT(ctx, state, "Backtick", Backtick$0);
|
|
10252
10383
|
}
|
|
10253
|
-
var By$0 = $TS($S($EXPECT($
|
|
10384
|
+
var By$0 = $TS($S($EXPECT($L120, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10254
10385
|
return { $loc, token: $1 };
|
|
10255
10386
|
});
|
|
10256
10387
|
function By(ctx, state) {
|
|
10257
10388
|
return $EVENT(ctx, state, "By", By$0);
|
|
10258
10389
|
}
|
|
10259
|
-
var Case$0 = $TS($S($EXPECT($
|
|
10390
|
+
var Case$0 = $TS($S($EXPECT($L121, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10260
10391
|
return { $loc, token: $1 };
|
|
10261
10392
|
});
|
|
10262
10393
|
function Case(ctx, state) {
|
|
10263
10394
|
return $EVENT(ctx, state, "Case", Case$0);
|
|
10264
10395
|
}
|
|
10265
|
-
var Catch$0 = $TS($S($EXPECT($
|
|
10396
|
+
var Catch$0 = $TS($S($EXPECT($L122, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10266
10397
|
return { $loc, token: $1 };
|
|
10267
10398
|
});
|
|
10268
10399
|
function Catch(ctx, state) {
|
|
10269
10400
|
return $EVENT(ctx, state, "Catch", Catch$0);
|
|
10270
10401
|
}
|
|
10271
|
-
var Class$0 = $TS($S($EXPECT($
|
|
10402
|
+
var Class$0 = $TS($S($EXPECT($L123, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10272
10403
|
return { $loc, token: $1 };
|
|
10273
10404
|
});
|
|
10274
10405
|
function Class(ctx, state) {
|
|
@@ -10286,19 +10417,19 @@ var require_parser = __commonJS({
|
|
|
10286
10417
|
function CloseBracket(ctx, state) {
|
|
10287
10418
|
return $EVENT(ctx, state, "CloseBracket", CloseBracket$0);
|
|
10288
10419
|
}
|
|
10289
|
-
var CloseParen$0 = $TV($EXPECT($
|
|
10420
|
+
var CloseParen$0 = $TV($EXPECT($L113, 'CloseParen ")"'), function($skip, $loc, $0, $1) {
|
|
10290
10421
|
return { $loc, token: $1 };
|
|
10291
10422
|
});
|
|
10292
10423
|
function CloseParen(ctx, state) {
|
|
10293
10424
|
return $EVENT(ctx, state, "CloseParen", CloseParen$0);
|
|
10294
10425
|
}
|
|
10295
|
-
var CoffeeSubstitutionStart$0 = $TV($EXPECT($
|
|
10426
|
+
var CoffeeSubstitutionStart$0 = $TV($EXPECT($L124, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
|
|
10296
10427
|
return { $loc, token: "${" };
|
|
10297
10428
|
});
|
|
10298
10429
|
function CoffeeSubstitutionStart(ctx, state) {
|
|
10299
10430
|
return $EVENT(ctx, state, "CoffeeSubstitutionStart", CoffeeSubstitutionStart$0);
|
|
10300
10431
|
}
|
|
10301
|
-
var Colon$0 = $TS($S($EXPECT($
|
|
10432
|
+
var Colon$0 = $TS($S($EXPECT($L11, 'Colon ":"'), $N($EXPECT($L3, 'Colon "="'))), function($skip, $loc, $0, $1, $2) {
|
|
10302
10433
|
return { $loc, token: $1 };
|
|
10303
10434
|
});
|
|
10304
10435
|
function Colon(ctx, state) {
|
|
@@ -10310,31 +10441,31 @@ var require_parser = __commonJS({
|
|
|
10310
10441
|
function Comma(ctx, state) {
|
|
10311
10442
|
return $EVENT(ctx, state, "Comma", Comma$0);
|
|
10312
10443
|
}
|
|
10313
|
-
var ConstructorShorthand$0 = $TV($EXPECT($
|
|
10444
|
+
var ConstructorShorthand$0 = $TV($EXPECT($L116, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
|
|
10314
10445
|
return { $loc, token: "constructor" };
|
|
10315
10446
|
});
|
|
10316
10447
|
function ConstructorShorthand(ctx, state) {
|
|
10317
10448
|
return $EVENT(ctx, state, "ConstructorShorthand", ConstructorShorthand$0);
|
|
10318
10449
|
}
|
|
10319
|
-
var Declare$0 = $TS($S($EXPECT($
|
|
10450
|
+
var Declare$0 = $TS($S($EXPECT($L125, 'Declare "declare"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10320
10451
|
return { $loc, token: $1 };
|
|
10321
10452
|
});
|
|
10322
10453
|
function Declare(ctx, state) {
|
|
10323
10454
|
return $EVENT(ctx, state, "Declare", Declare$0);
|
|
10324
10455
|
}
|
|
10325
|
-
var Default$0 = $TS($S($EXPECT($
|
|
10456
|
+
var Default$0 = $TS($S($EXPECT($L126, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10326
10457
|
return { $loc, token: $1 };
|
|
10327
10458
|
});
|
|
10328
10459
|
function Default(ctx, state) {
|
|
10329
10460
|
return $EVENT(ctx, state, "Default", Default$0);
|
|
10330
10461
|
}
|
|
10331
|
-
var Delete$0 = $TS($S($EXPECT($
|
|
10462
|
+
var Delete$0 = $TS($S($EXPECT($L127, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10332
10463
|
return { $loc, token: $1 };
|
|
10333
10464
|
});
|
|
10334
10465
|
function Delete(ctx, state) {
|
|
10335
10466
|
return $EVENT(ctx, state, "Delete", Delete$0);
|
|
10336
10467
|
}
|
|
10337
|
-
var Do$0 = $TS($S($EXPECT($
|
|
10468
|
+
var Do$0 = $TS($S($EXPECT($L128, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10338
10469
|
return { $loc, token: $1 };
|
|
10339
10470
|
});
|
|
10340
10471
|
function Do(ctx, state) {
|
|
@@ -10343,7 +10474,7 @@ var require_parser = __commonJS({
|
|
|
10343
10474
|
var Dot$0 = $TV($EXPECT($L6, 'Dot "."'), function($skip, $loc, $0, $1) {
|
|
10344
10475
|
return { $loc, token: $1 };
|
|
10345
10476
|
});
|
|
10346
|
-
var Dot$1 = $TS($S($EXPECT($
|
|
10477
|
+
var Dot$1 = $TS($S($EXPECT($R65, "Dot /['\u2019]s/"), _), function($skip, $loc, $0, $1, $2) {
|
|
10347
10478
|
var ws = $2;
|
|
10348
10479
|
return [
|
|
10349
10480
|
{ $loc, token: "." },
|
|
@@ -10354,45 +10485,45 @@ var require_parser = __commonJS({
|
|
|
10354
10485
|
function Dot(ctx, state) {
|
|
10355
10486
|
return $EVENT_C(ctx, state, "Dot", Dot$$);
|
|
10356
10487
|
}
|
|
10357
|
-
var DotDot$0 = $TS($S($EXPECT($
|
|
10488
|
+
var DotDot$0 = $TS($S($EXPECT($L129, 'DotDot ".."'), $N($EXPECT($L6, 'DotDot "."'))), function($skip, $loc, $0, $1, $2) {
|
|
10358
10489
|
return { $loc, token: $1 };
|
|
10359
10490
|
});
|
|
10360
|
-
var DotDot$1 = $TV($EXPECT($
|
|
10491
|
+
var DotDot$1 = $TV($EXPECT($L130, 'DotDot "\u2025"'), function($skip, $loc, $0, $1) {
|
|
10361
10492
|
return { $loc, token: ".." };
|
|
10362
10493
|
});
|
|
10363
10494
|
var DotDot$$ = [DotDot$0, DotDot$1];
|
|
10364
10495
|
function DotDot(ctx, state) {
|
|
10365
10496
|
return $EVENT_C(ctx, state, "DotDot", DotDot$$);
|
|
10366
10497
|
}
|
|
10367
|
-
var DotDotDot$0 = $TV($EXPECT($
|
|
10498
|
+
var DotDotDot$0 = $TV($EXPECT($L131, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
|
|
10368
10499
|
return { $loc, token: $1 };
|
|
10369
10500
|
});
|
|
10370
|
-
var DotDotDot$1 = $TV($EXPECT($
|
|
10501
|
+
var DotDotDot$1 = $TV($EXPECT($L132, 'DotDotDot "\u2026"'), function($skip, $loc, $0, $1) {
|
|
10371
10502
|
return { $loc, token: "..." };
|
|
10372
10503
|
});
|
|
10373
10504
|
var DotDotDot$$ = [DotDotDot$0, DotDotDot$1];
|
|
10374
10505
|
function DotDotDot(ctx, state) {
|
|
10375
10506
|
return $EVENT_C(ctx, state, "DotDotDot", DotDotDot$$);
|
|
10376
10507
|
}
|
|
10377
|
-
var DoubleColon$0 = $TV($EXPECT($
|
|
10508
|
+
var DoubleColon$0 = $TV($EXPECT($L133, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
|
|
10378
10509
|
return { $loc, token: $1 };
|
|
10379
10510
|
});
|
|
10380
10511
|
function DoubleColon(ctx, state) {
|
|
10381
10512
|
return $EVENT(ctx, state, "DoubleColon", DoubleColon$0);
|
|
10382
10513
|
}
|
|
10383
|
-
var DoubleQuote$0 = $TV($EXPECT($
|
|
10514
|
+
var DoubleQuote$0 = $TV($EXPECT($L134, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
|
|
10384
10515
|
return { $loc, token: $1 };
|
|
10385
10516
|
});
|
|
10386
10517
|
function DoubleQuote(ctx, state) {
|
|
10387
10518
|
return $EVENT(ctx, state, "DoubleQuote", DoubleQuote$0);
|
|
10388
10519
|
}
|
|
10389
|
-
var Each$0 = $TS($S($EXPECT($
|
|
10520
|
+
var Each$0 = $TS($S($EXPECT($L135, 'Each "each"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10390
10521
|
return { $loc, token: $1 };
|
|
10391
10522
|
});
|
|
10392
10523
|
function Each(ctx, state) {
|
|
10393
10524
|
return $EVENT(ctx, state, "Each", Each$0);
|
|
10394
10525
|
}
|
|
10395
|
-
var Else$0 = $TS($S($EXPECT($
|
|
10526
|
+
var Else$0 = $TS($S($EXPECT($L136, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10396
10527
|
return { $loc, token: $1 };
|
|
10397
10528
|
});
|
|
10398
10529
|
function Else(ctx, state) {
|
|
@@ -10404,85 +10535,85 @@ var require_parser = __commonJS({
|
|
|
10404
10535
|
function Equals(ctx, state) {
|
|
10405
10536
|
return $EVENT(ctx, state, "Equals", Equals$0);
|
|
10406
10537
|
}
|
|
10407
|
-
var Export$0 = $TS($S($EXPECT($
|
|
10538
|
+
var Export$0 = $TS($S($EXPECT($L137, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10408
10539
|
return { $loc, token: $1 };
|
|
10409
10540
|
});
|
|
10410
10541
|
function Export(ctx, state) {
|
|
10411
10542
|
return $EVENT(ctx, state, "Export", Export$0);
|
|
10412
10543
|
}
|
|
10413
|
-
var Extends$0 = $TS($S($EXPECT($
|
|
10544
|
+
var Extends$0 = $TS($S($EXPECT($L138, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10414
10545
|
return { $loc, token: $1 };
|
|
10415
10546
|
});
|
|
10416
10547
|
function Extends(ctx, state) {
|
|
10417
10548
|
return $EVENT(ctx, state, "Extends", Extends$0);
|
|
10418
10549
|
}
|
|
10419
|
-
var Finally$0 = $TS($S($EXPECT($
|
|
10550
|
+
var Finally$0 = $TS($S($EXPECT($L139, 'Finally "finally"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10420
10551
|
return { $loc, token: $1 };
|
|
10421
10552
|
});
|
|
10422
10553
|
function Finally(ctx, state) {
|
|
10423
10554
|
return $EVENT(ctx, state, "Finally", Finally$0);
|
|
10424
10555
|
}
|
|
10425
|
-
var For$0 = $TS($S($EXPECT($
|
|
10556
|
+
var For$0 = $TS($S($EXPECT($L140, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10426
10557
|
return { $loc, token: $1 };
|
|
10427
10558
|
});
|
|
10428
10559
|
function For(ctx, state) {
|
|
10429
10560
|
return $EVENT(ctx, state, "For", For$0);
|
|
10430
10561
|
}
|
|
10431
|
-
var From$0 = $TS($S($EXPECT($
|
|
10562
|
+
var From$0 = $TS($S($EXPECT($L141, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10432
10563
|
return { $loc, token: $1 };
|
|
10433
10564
|
});
|
|
10434
10565
|
function From(ctx, state) {
|
|
10435
10566
|
return $EVENT(ctx, state, "From", From$0);
|
|
10436
10567
|
}
|
|
10437
|
-
var Function$0 = $TS($S($EXPECT($
|
|
10568
|
+
var Function$0 = $TS($S($EXPECT($L142, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10438
10569
|
return { $loc, token: $1 };
|
|
10439
10570
|
});
|
|
10440
10571
|
function Function(ctx, state) {
|
|
10441
10572
|
return $EVENT(ctx, state, "Function", Function$0);
|
|
10442
10573
|
}
|
|
10443
|
-
var GetOrSet$0 = $TS($S($C($EXPECT($
|
|
10574
|
+
var GetOrSet$0 = $TS($S($C($EXPECT($L143, 'GetOrSet "get"'), $EXPECT($L144, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10444
10575
|
return { $loc, token: $1, type: "GetOrSet" };
|
|
10445
10576
|
});
|
|
10446
10577
|
function GetOrSet(ctx, state) {
|
|
10447
10578
|
return $EVENT(ctx, state, "GetOrSet", GetOrSet$0);
|
|
10448
10579
|
}
|
|
10449
|
-
var Hash$0 = $TV($EXPECT($
|
|
10580
|
+
var Hash$0 = $TV($EXPECT($L145, 'Hash "#"'), function($skip, $loc, $0, $1) {
|
|
10450
10581
|
return { $loc, token: $1 };
|
|
10451
10582
|
});
|
|
10452
10583
|
function Hash(ctx, state) {
|
|
10453
10584
|
return $EVENT(ctx, state, "Hash", Hash$0);
|
|
10454
10585
|
}
|
|
10455
|
-
var If$0 = $TV($TEXT($S($EXPECT($
|
|
10586
|
+
var If$0 = $TV($TEXT($S($EXPECT($L146, 'If "if"'), NonIdContinue, $E($EXPECT($L12, 'If " "')))), function($skip, $loc, $0, $1) {
|
|
10456
10587
|
return { $loc, token: $1 };
|
|
10457
10588
|
});
|
|
10458
10589
|
function If(ctx, state) {
|
|
10459
10590
|
return $EVENT(ctx, state, "If", If$0);
|
|
10460
10591
|
}
|
|
10461
|
-
var Import$0 = $TS($S($EXPECT($L15, 'Import "import"'), $Y($EXPECT($
|
|
10592
|
+
var Import$0 = $TS($S($EXPECT($L15, 'Import "import"'), $Y($EXPECT($R66, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
|
|
10462
10593
|
return { $loc, token: $1 };
|
|
10463
10594
|
});
|
|
10464
10595
|
function Import(ctx, state) {
|
|
10465
10596
|
return $EVENT(ctx, state, "Import", Import$0);
|
|
10466
10597
|
}
|
|
10467
|
-
var In$0 = $TS($S($EXPECT($
|
|
10598
|
+
var In$0 = $TS($S($EXPECT($L147, 'In "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10468
10599
|
return { $loc, token: $1 };
|
|
10469
10600
|
});
|
|
10470
10601
|
function In(ctx, state) {
|
|
10471
10602
|
return $EVENT(ctx, state, "In", In$0);
|
|
10472
10603
|
}
|
|
10473
|
-
var LetOrConst$0 = $TS($S($C($EXPECT($
|
|
10604
|
+
var LetOrConst$0 = $TS($S($C($EXPECT($L148, 'LetOrConst "let"'), $EXPECT($L149, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10474
10605
|
return { $loc, token: $1 };
|
|
10475
10606
|
});
|
|
10476
10607
|
function LetOrConst(ctx, state) {
|
|
10477
10608
|
return $EVENT(ctx, state, "LetOrConst", LetOrConst$0);
|
|
10478
10609
|
}
|
|
10479
|
-
var Const$0 = $TS($S($EXPECT($
|
|
10610
|
+
var Const$0 = $TS($S($EXPECT($L149, 'Const "const"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10480
10611
|
return { $loc, token: $1 };
|
|
10481
10612
|
});
|
|
10482
10613
|
function Const(ctx, state) {
|
|
10483
10614
|
return $EVENT(ctx, state, "Const", Const$0);
|
|
10484
10615
|
}
|
|
10485
|
-
var Is$0 = $TS($S($EXPECT($
|
|
10616
|
+
var Is$0 = $TS($S($EXPECT($L150, 'Is "is"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10486
10617
|
return { $loc, token: $1 };
|
|
10487
10618
|
});
|
|
10488
10619
|
function Is(ctx, state) {
|
|
@@ -10494,25 +10625,25 @@ var require_parser = __commonJS({
|
|
|
10494
10625
|
function LetOrConstOrVar(ctx, state) {
|
|
10495
10626
|
return $EVENT_C(ctx, state, "LetOrConstOrVar", LetOrConstOrVar$$);
|
|
10496
10627
|
}
|
|
10497
|
-
var Loop$0 = $TS($S($EXPECT($
|
|
10628
|
+
var Loop$0 = $TS($S($EXPECT($L151, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10498
10629
|
return { $loc, token: "while(true)" };
|
|
10499
10630
|
});
|
|
10500
10631
|
function Loop(ctx, state) {
|
|
10501
10632
|
return $EVENT(ctx, state, "Loop", Loop$0);
|
|
10502
10633
|
}
|
|
10503
|
-
var New$0 = $TS($S($EXPECT($
|
|
10634
|
+
var New$0 = $TS($S($EXPECT($L152, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10504
10635
|
return { $loc, token: $1 };
|
|
10505
10636
|
});
|
|
10506
10637
|
function New(ctx, state) {
|
|
10507
10638
|
return $EVENT(ctx, state, "New", New$0);
|
|
10508
10639
|
}
|
|
10509
|
-
var Not$0 = $TS($S($EXPECT($
|
|
10640
|
+
var Not$0 = $TS($S($EXPECT($L153, 'Not "not"'), NonIdContinue, $N($S($E(_), $EXPECT($L11, 'Not ":"')))), function($skip, $loc, $0, $1, $2, $3) {
|
|
10510
10641
|
return { $loc, token: "!" };
|
|
10511
10642
|
});
|
|
10512
10643
|
function Not(ctx, state) {
|
|
10513
10644
|
return $EVENT(ctx, state, "Not", Not$0);
|
|
10514
10645
|
}
|
|
10515
|
-
var Of$0 = $TS($S($EXPECT($
|
|
10646
|
+
var Of$0 = $TS($S($EXPECT($L154, 'Of "of"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10516
10647
|
return { $loc, token: $1 };
|
|
10517
10648
|
});
|
|
10518
10649
|
function Of(ctx, state) {
|
|
@@ -10530,7 +10661,7 @@ var require_parser = __commonJS({
|
|
|
10530
10661
|
function OpenBrace(ctx, state) {
|
|
10531
10662
|
return $EVENT(ctx, state, "OpenBrace", OpenBrace$0);
|
|
10532
10663
|
}
|
|
10533
|
-
var OpenBracket$0 = $TV($EXPECT($
|
|
10664
|
+
var OpenBracket$0 = $TV($EXPECT($L111, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
|
|
10534
10665
|
return { $loc, token: $1 };
|
|
10535
10666
|
});
|
|
10536
10667
|
function OpenBracket(ctx, state) {
|
|
@@ -10609,7 +10740,7 @@ var require_parser = __commonJS({
|
|
|
10609
10740
|
function Satisfies(ctx, state) {
|
|
10610
10741
|
return $EVENT(ctx, state, "Satisfies", Satisfies$0);
|
|
10611
10742
|
}
|
|
10612
|
-
var Semicolon$0 = $TV($EXPECT($
|
|
10743
|
+
var Semicolon$0 = $TV($EXPECT($L99, 'Semicolon ";"'), function($skip, $loc, $0, $1) {
|
|
10613
10744
|
return { $loc, token: $1 };
|
|
10614
10745
|
});
|
|
10615
10746
|
function Semicolon(ctx, state) {
|
|
@@ -10630,7 +10761,7 @@ var require_parser = __commonJS({
|
|
|
10630
10761
|
var Static$0 = $TS($S($EXPECT($L171, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10631
10762
|
return { $loc, token: $1 };
|
|
10632
10763
|
});
|
|
10633
|
-
var Static$1 = $TS($S($EXPECT($
|
|
10764
|
+
var Static$1 = $TS($S($EXPECT($L116, 'Static "@"'), $N($C($EXPECT($L4, 'Static "("'), $EXPECT($L116, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
|
|
10634
10765
|
return { $loc, token: "static " };
|
|
10635
10766
|
});
|
|
10636
10767
|
var Static$$ = [Static$0, Static$1];
|
|
@@ -10919,7 +11050,7 @@ var require_parser = __commonJS({
|
|
|
10919
11050
|
function JSXClosingFragment(ctx, state) {
|
|
10920
11051
|
return $EVENT(ctx, state, "JSXClosingFragment", JSXClosingFragment$0);
|
|
10921
11052
|
}
|
|
10922
|
-
var JSXElementName$0 = $TV($Y($S($C($EXPECT($
|
|
11053
|
+
var JSXElementName$0 = $TV($Y($S($C($EXPECT($L145, 'JSXElementName "#"'), Dot), JSXShorthandString)), function($skip, $loc, $0, $1) {
|
|
10923
11054
|
return module.config.defaultElement;
|
|
10924
11055
|
});
|
|
10925
11056
|
var JSXElementName$1 = $TEXT($S(JSXIdentifierName, $C($S(Colon, JSXIdentifierName), $Q($S(Dot, JSXIdentifierName)))));
|
|
@@ -10927,7 +11058,7 @@ var require_parser = __commonJS({
|
|
|
10927
11058
|
function JSXElementName(ctx, state) {
|
|
10928
11059
|
return $EVENT_C(ctx, state, "JSXElementName", JSXElementName$$);
|
|
10929
11060
|
}
|
|
10930
|
-
var JSXIdentifierName$0 = $R$0($EXPECT($
|
|
11061
|
+
var JSXIdentifierName$0 = $R$0($EXPECT($R67, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
|
|
10931
11062
|
function JSXIdentifierName(ctx, state) {
|
|
10932
11063
|
return $EVENT(ctx, state, "JSXIdentifierName", JSXIdentifierName$0);
|
|
10933
11064
|
}
|
|
@@ -11091,7 +11222,7 @@ var require_parser = __commonJS({
|
|
|
11091
11222
|
}
|
|
11092
11223
|
return $skip;
|
|
11093
11224
|
});
|
|
11094
|
-
var JSXAttribute$5 = $TS($S($EXPECT($
|
|
11225
|
+
var JSXAttribute$5 = $TS($S($EXPECT($L145, 'JSXAttribute "#"'), JSXShorthandString), function($skip, $loc, $0, $1, $2) {
|
|
11095
11226
|
return [" ", "id=", $2];
|
|
11096
11227
|
});
|
|
11097
11228
|
var JSXAttribute$6 = $TS($S(Dot, JSXShorthandString), function($skip, $loc, $0, $1, $2) {
|
|
@@ -11100,7 +11231,7 @@ var require_parser = __commonJS({
|
|
|
11100
11231
|
class: $2
|
|
11101
11232
|
};
|
|
11102
11233
|
});
|
|
11103
|
-
var JSXAttribute$7 = $TS($S($TEXT($EXPECT($
|
|
11234
|
+
var JSXAttribute$7 = $TS($S($TEXT($EXPECT($R14, "JSXAttribute /[!+-]/")), JSXAttributeName, $Y(JSXAttributeSpace)), function($skip, $loc, $0, $1, $2, $3) {
|
|
11104
11235
|
var toggle = $1;
|
|
11105
11236
|
var id = $2;
|
|
11106
11237
|
const value = toggle === "+" ? "true" : "false";
|
|
@@ -11110,11 +11241,11 @@ var require_parser = __commonJS({
|
|
|
11110
11241
|
function JSXAttribute(ctx, state) {
|
|
11111
11242
|
return $EVENT_C(ctx, state, "JSXAttribute", JSXAttribute$$);
|
|
11112
11243
|
}
|
|
11113
|
-
var JSXAttributeSpace$0 = $R$0($EXPECT($
|
|
11244
|
+
var JSXAttributeSpace$0 = $R$0($EXPECT($R68, "JSXAttributeSpace /[\\s>]|\\/>/"));
|
|
11114
11245
|
function JSXAttributeSpace(ctx, state) {
|
|
11115
11246
|
return $EVENT(ctx, state, "JSXAttributeSpace", JSXAttributeSpace$0);
|
|
11116
11247
|
}
|
|
11117
|
-
var JSXShorthandString$0 = $TR($EXPECT($
|
|
11248
|
+
var JSXShorthandString$0 = $TR($EXPECT($R69, "JSXShorthandString /(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
11118
11249
|
return quoteString($0);
|
|
11119
11250
|
});
|
|
11120
11251
|
var JSXShorthandString$1 = $TS($S(TemplateLiteral), function($skip, $loc, $0, $1) {
|
|
@@ -11148,7 +11279,7 @@ var require_parser = __commonJS({
|
|
|
11148
11279
|
}
|
|
11149
11280
|
return [open, value, close];
|
|
11150
11281
|
});
|
|
11151
|
-
var JSXAttributeValue$4 = $R$0($EXPECT($
|
|
11282
|
+
var JSXAttributeValue$4 = $R$0($EXPECT($R70, `JSXAttributeValue /"[^"]*"|'[^']*'/`));
|
|
11152
11283
|
var JSXAttributeValue$$ = [JSXAttributeValue$0, JSXAttributeValue$1, JSXAttributeValue$2, JSXAttributeValue$3, JSXAttributeValue$4];
|
|
11153
11284
|
function JSXAttributeValue(ctx, state) {
|
|
11154
11285
|
return $EVENT_C(ctx, state, "JSXAttributeValue", JSXAttributeValue$$);
|
|
@@ -11161,7 +11292,7 @@ var require_parser = __commonJS({
|
|
|
11161
11292
|
function InlineJSXAttributeValue(ctx, state) {
|
|
11162
11293
|
return $EVENT(ctx, state, "InlineJSXAttributeValue", InlineJSXAttributeValue$0);
|
|
11163
11294
|
}
|
|
11164
|
-
var InlineJSXBinaryOpRHS$0 = $TS($S($N($EXPECT($
|
|
11295
|
+
var InlineJSXBinaryOpRHS$0 = $TS($S($N($EXPECT($R71, "InlineJSXBinaryOpRHS /[<>]/")), BinaryOp, InlineJSXUnaryExpression), function($skip, $loc, $0, $1, $2, $3) {
|
|
11165
11296
|
var op = $2;
|
|
11166
11297
|
var rhs = $3;
|
|
11167
11298
|
return [[], op, [], rhs];
|
|
@@ -11178,7 +11309,7 @@ var require_parser = __commonJS({
|
|
|
11178
11309
|
function InlineJSXUnaryExpression(ctx, state) {
|
|
11179
11310
|
return $EVENT(ctx, state, "InlineJSXUnaryExpression", InlineJSXUnaryExpression$0);
|
|
11180
11311
|
}
|
|
11181
|
-
var InlineJSXUnaryOp$0 = $TR($EXPECT($
|
|
11312
|
+
var InlineJSXUnaryOp$0 = $TR($EXPECT($R72, "InlineJSXUnaryOp /[!~+-](?!\\s|[!~+-]*&)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
11182
11313
|
return { $loc, token: $0 };
|
|
11183
11314
|
});
|
|
11184
11315
|
function InlineJSXUnaryOp(ctx, state) {
|
|
@@ -11245,7 +11376,7 @@ var require_parser = __commonJS({
|
|
|
11245
11376
|
}
|
|
11246
11377
|
return $1;
|
|
11247
11378
|
});
|
|
11248
|
-
var InlineJSXCallExpressionRest$2 = $TS($S($E(
|
|
11379
|
+
var InlineJSXCallExpressionRest$2 = $TS($S($E(OptionalShorthand), ExplicitArguments), function($skip, $loc, $0, $1, $2) {
|
|
11249
11380
|
var args = $2;
|
|
11250
11381
|
args = { type: "Call", children: args };
|
|
11251
11382
|
if (!$1)
|
|
@@ -11269,7 +11400,7 @@ var require_parser = __commonJS({
|
|
|
11269
11400
|
function InlineJSXMemberExpression(ctx, state) {
|
|
11270
11401
|
return $EVENT(ctx, state, "InlineJSXMemberExpression", InlineJSXMemberExpression$0);
|
|
11271
11402
|
}
|
|
11272
|
-
var InlineJSXMemberExpressionRest$0 = $TS($S($E(
|
|
11403
|
+
var InlineJSXMemberExpressionRest$0 = $TS($S($E(OptionalShorthand), MemberBracketContent), function($skip, $loc, $0, $1, $2) {
|
|
11273
11404
|
if ($1) {
|
|
11274
11405
|
if ($1.type === "Optional" && $2.type === "SliceExpression") {
|
|
11275
11406
|
return [$1.children[0], $2];
|
|
@@ -11390,13 +11521,13 @@ var require_parser = __commonJS({
|
|
|
11390
11521
|
function JSXComment(ctx, state) {
|
|
11391
11522
|
return $EVENT(ctx, state, "JSXComment", JSXComment$0);
|
|
11392
11523
|
}
|
|
11393
|
-
var JSXCommentContent$0 = $TR($EXPECT($
|
|
11524
|
+
var JSXCommentContent$0 = $TR($EXPECT($R73, "JSXCommentContent /(?:-[^-]|[^-]*)*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
11394
11525
|
return { $loc, token: $0.replace(/\*\//g, "* /") };
|
|
11395
11526
|
});
|
|
11396
11527
|
function JSXCommentContent(ctx, state) {
|
|
11397
11528
|
return $EVENT(ctx, state, "JSXCommentContent", JSXCommentContent$0);
|
|
11398
11529
|
}
|
|
11399
|
-
var JSXText$0 = $TR($EXPECT($
|
|
11530
|
+
var JSXText$0 = $TR($EXPECT($R74, "JSXText /[^{}<>\\r\\n]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
11400
11531
|
return {
|
|
11401
11532
|
type: "JSXText",
|
|
11402
11533
|
token: $0,
|
|
@@ -11761,7 +11892,7 @@ var require_parser = __commonJS({
|
|
|
11761
11892
|
function TypeProperty(ctx, state) {
|
|
11762
11893
|
return $EVENT(ctx, state, "TypeProperty", TypeProperty$0);
|
|
11763
11894
|
}
|
|
11764
|
-
var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($
|
|
11895
|
+
var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R75, "TypeIndexSignature /[+-]?/")), Readonly, NotDedented)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R76, "TypeIndexSignature /[+-]/")), $Y($S($E(_), QuestionMark)))));
|
|
11765
11896
|
function TypeIndexSignature(ctx, state) {
|
|
11766
11897
|
return $EVENT(ctx, state, "TypeIndexSignature", TypeIndexSignature$0);
|
|
11767
11898
|
}
|
|
@@ -11812,7 +11943,7 @@ var require_parser = __commonJS({
|
|
|
11812
11943
|
function ReturnType(ctx, state) {
|
|
11813
11944
|
return $EVENT(ctx, state, "ReturnType", ReturnType$0);
|
|
11814
11945
|
}
|
|
11815
|
-
var TypePredicate$0 = $TS($S(Type, $E($S(__, $EXPECT($
|
|
11946
|
+
var TypePredicate$0 = $TS($S(Type, $E($S(__, $EXPECT($L150, 'TypePredicate "is"'), NonIdContinue, Type))), function($skip, $loc, $0, $1, $2) {
|
|
11816
11947
|
var lhs = $1;
|
|
11817
11948
|
var rhs = $2;
|
|
11818
11949
|
if (!rhs)
|
|
@@ -11974,7 +12105,7 @@ var require_parser = __commonJS({
|
|
|
11974
12105
|
function NestedType(ctx, state) {
|
|
11975
12106
|
return $EVENT(ctx, state, "NestedType", NestedType$0);
|
|
11976
12107
|
}
|
|
11977
|
-
var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($
|
|
12108
|
+
var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L138, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
|
|
11978
12109
|
if ($2)
|
|
11979
12110
|
return $0;
|
|
11980
12111
|
return $1;
|
|
@@ -12034,16 +12165,16 @@ var require_parser = __commonJS({
|
|
|
12034
12165
|
var InlineInterfacePropertyDelimiter$1 = $T($S($Y($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertComma), function(value) {
|
|
12035
12166
|
return value[1];
|
|
12036
12167
|
});
|
|
12037
|
-
var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($
|
|
12168
|
+
var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L11, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L113, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L34, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L25, 'InlineInterfacePropertyDelimiter "}"'))));
|
|
12038
12169
|
var InlineInterfacePropertyDelimiter$3 = $Y(EOS);
|
|
12039
12170
|
var InlineInterfacePropertyDelimiter$$ = [InlineInterfacePropertyDelimiter$0, InlineInterfacePropertyDelimiter$1, InlineInterfacePropertyDelimiter$2, InlineInterfacePropertyDelimiter$3];
|
|
12040
12171
|
function InlineInterfacePropertyDelimiter(ctx, state) {
|
|
12041
12172
|
return $EVENT_C(ctx, state, "InlineInterfacePropertyDelimiter", InlineInterfacePropertyDelimiter$$);
|
|
12042
12173
|
}
|
|
12043
|
-
var TypeBinaryOp$0 = $TV($EXPECT($
|
|
12174
|
+
var TypeBinaryOp$0 = $TV($EXPECT($L98, 'TypeBinaryOp "|"'), function($skip, $loc, $0, $1) {
|
|
12044
12175
|
return { $loc, token: "|" };
|
|
12045
12176
|
});
|
|
12046
|
-
var TypeBinaryOp$1 = $TV($EXPECT($
|
|
12177
|
+
var TypeBinaryOp$1 = $TV($EXPECT($L97, 'TypeBinaryOp "&"'), function($skip, $loc, $0, $1) {
|
|
12047
12178
|
return { $loc, token: "&" };
|
|
12048
12179
|
});
|
|
12049
12180
|
var TypeBinaryOp$$ = [TypeBinaryOp$0, TypeBinaryOp$1];
|
|
@@ -12093,11 +12224,11 @@ var require_parser = __commonJS({
|
|
|
12093
12224
|
function TypeParameters(ctx, state) {
|
|
12094
12225
|
return $EVENT(ctx, state, "TypeParameters", TypeParameters$0);
|
|
12095
12226
|
}
|
|
12096
|
-
var TypeParameter$0 = $S(__, $E($S($EXPECT($
|
|
12227
|
+
var TypeParameter$0 = $S(__, $E($S($EXPECT($L149, 'TypeParameter "const"'), $E(_))), Identifier, $E(TypeConstraint), $E(TypeInitializer), TypeParameterDelimiter);
|
|
12097
12228
|
function TypeParameter(ctx, state) {
|
|
12098
12229
|
return $EVENT(ctx, state, "TypeParameter", TypeParameter$0);
|
|
12099
12230
|
}
|
|
12100
|
-
var TypeConstraint$0 = $S(__, $EXPECT($
|
|
12231
|
+
var TypeConstraint$0 = $S(__, $EXPECT($L138, 'TypeConstraint "extends"'), NonIdContinue, Type);
|
|
12101
12232
|
function TypeConstraint(ctx, state) {
|
|
12102
12233
|
return $EVENT(ctx, state, "TypeConstraint", TypeConstraint$0);
|
|
12103
12234
|
}
|
|
@@ -12120,15 +12251,15 @@ var require_parser = __commonJS({
|
|
|
12120
12251
|
function ThisType(ctx, state) {
|
|
12121
12252
|
return $EVENT(ctx, state, "ThisType", ThisType$0);
|
|
12122
12253
|
}
|
|
12123
|
-
var Shebang$0 = $S($R$0($EXPECT($
|
|
12254
|
+
var Shebang$0 = $S($R$0($EXPECT($R77, "Shebang /#![^\\r\\n]*/")), EOL);
|
|
12124
12255
|
function Shebang(ctx, state) {
|
|
12125
12256
|
return $EVENT(ctx, state, "Shebang", Shebang$0);
|
|
12126
12257
|
}
|
|
12127
|
-
var CivetPrologue$0 = $T($S($EXPECT($
|
|
12258
|
+
var CivetPrologue$0 = $T($S($EXPECT($R78, "CivetPrologue /[\\t ]*/"), DoubleQuote, CivetPrologueContent, DoubleQuote, SimpleStatementDelimiter, $E(EOS)), function(value) {
|
|
12128
12259
|
var content = value[2];
|
|
12129
12260
|
return content;
|
|
12130
12261
|
});
|
|
12131
|
-
var CivetPrologue$1 = $T($S($EXPECT($
|
|
12262
|
+
var CivetPrologue$1 = $T($S($EXPECT($R78, "CivetPrologue /[\\t ]*/"), SingleQuote, CivetPrologueContent, SingleQuote, SimpleStatementDelimiter, $E(EOS)), function(value) {
|
|
12132
12263
|
var content = value[2];
|
|
12133
12264
|
return content;
|
|
12134
12265
|
});
|
|
@@ -12136,7 +12267,7 @@ var require_parser = __commonJS({
|
|
|
12136
12267
|
function CivetPrologue(ctx, state) {
|
|
12137
12268
|
return $EVENT_C(ctx, state, "CivetPrologue", CivetPrologue$$);
|
|
12138
12269
|
}
|
|
12139
|
-
var CivetPrologueContent$0 = $TS($S($EXPECT($L210, 'CivetPrologueContent "civet"'), NonIdContinue, $Q(CivetOption), $EXPECT($
|
|
12270
|
+
var CivetPrologueContent$0 = $TS($S($EXPECT($L210, 'CivetPrologueContent "civet"'), NonIdContinue, $Q(CivetOption), $EXPECT($R79, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
12140
12271
|
var options = $3;
|
|
12141
12272
|
return {
|
|
12142
12273
|
type: "CivetPrologue",
|
|
@@ -12147,7 +12278,7 @@ var require_parser = __commonJS({
|
|
|
12147
12278
|
function CivetPrologueContent(ctx, state) {
|
|
12148
12279
|
return $EVENT(ctx, state, "CivetPrologueContent", CivetPrologueContent$0);
|
|
12149
12280
|
}
|
|
12150
|
-
var CivetOption$0 = $TR($EXPECT($
|
|
12281
|
+
var CivetOption$0 = $TR($EXPECT($R80, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
12151
12282
|
const optionName = $2.replace(/-+([a-z]?)/g, (_2, l) => {
|
|
12152
12283
|
if (l)
|
|
12153
12284
|
return l.toUpperCase();
|
|
@@ -12164,11 +12295,11 @@ var require_parser = __commonJS({
|
|
|
12164
12295
|
function CivetOption(ctx, state) {
|
|
12165
12296
|
return $EVENT(ctx, state, "CivetOption", CivetOption$0);
|
|
12166
12297
|
}
|
|
12167
|
-
var UnknownPrologue$0 = $S($R$0($EXPECT($
|
|
12298
|
+
var UnknownPrologue$0 = $S($R$0($EXPECT($R78, "UnknownPrologue /[\\t ]*/")), StringLiteral, $TEXT(SimpleStatementDelimiter), EOS);
|
|
12168
12299
|
function UnknownPrologue(ctx, state) {
|
|
12169
12300
|
return $EVENT(ctx, state, "UnknownPrologue", UnknownPrologue$0);
|
|
12170
12301
|
}
|
|
12171
|
-
var TripleSlashDirective$0 = $S($R$0($EXPECT($
|
|
12302
|
+
var TripleSlashDirective$0 = $S($R$0($EXPECT($R81, "TripleSlashDirective /\\/\\/\\/[^\\r\\n]*/")), $E(EOS));
|
|
12172
12303
|
function TripleSlashDirective(ctx, state) {
|
|
12173
12304
|
return $EVENT(ctx, state, "TripleSlashDirective", TripleSlashDirective$0);
|
|
12174
12305
|
}
|
|
@@ -12182,11 +12313,13 @@ var require_parser = __commonJS({
|
|
|
12182
12313
|
function PrologueString(ctx, state) {
|
|
12183
12314
|
return $EVENT_C(ctx, state, "PrologueString", PrologueString$$);
|
|
12184
12315
|
}
|
|
12185
|
-
var EOS$0 = $P(RestOfLine)
|
|
12316
|
+
var EOS$0 = $T($S($EXPECT($R82, "EOS /(?=[ \\t\\r\\n\\/#]|$)/"), $P(RestOfLine)), function(value) {
|
|
12317
|
+
return value[1];
|
|
12318
|
+
});
|
|
12186
12319
|
function EOS(ctx, state) {
|
|
12187
12320
|
return $EVENT(ctx, state, "EOS", EOS$0);
|
|
12188
12321
|
}
|
|
12189
|
-
var EOL$0 = $TR($EXPECT($
|
|
12322
|
+
var EOL$0 = $TR($EXPECT($R83, "EOL /\\r\\n|\\n|\\r|$/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
12190
12323
|
return { $loc, token: $0 };
|
|
12191
12324
|
});
|
|
12192
12325
|
function EOL(ctx, state) {
|
|
@@ -12680,7 +12813,7 @@ var require_parser = __commonJS({
|
|
|
12680
12813
|
function Init(ctx, state) {
|
|
12681
12814
|
return $EVENT(ctx, state, "Init", Init$0);
|
|
12682
12815
|
}
|
|
12683
|
-
var Indent$0 = $TR($EXPECT($
|
|
12816
|
+
var Indent$0 = $TR($EXPECT($R84, "Indent /[ \\t]*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
12684
12817
|
const level = getIndentLevel($0, module.config.tab);
|
|
12685
12818
|
return {
|
|
12686
12819
|
$loc,
|
|
@@ -12802,6 +12935,7 @@ var require_parser = __commonJS({
|
|
|
12802
12935
|
exports.NestedNonAssignmentExtendedExpression = NestedNonAssignmentExtendedExpression;
|
|
12803
12936
|
exports.ExpressionizedStatementWithTrailingCallExpressions = ExpressionizedStatementWithTrailingCallExpressions;
|
|
12804
12937
|
exports.ExpressionizedStatement = ExpressionizedStatement;
|
|
12938
|
+
exports._ExpressionizedStatement = _ExpressionizedStatement;
|
|
12805
12939
|
exports.Expression = Expression;
|
|
12806
12940
|
exports.Arguments = Arguments;
|
|
12807
12941
|
exports.ImplicitArguments = ImplicitArguments;
|
|
@@ -12893,6 +13027,7 @@ var require_parser = __commonJS({
|
|
|
12893
13027
|
exports.MemberBracketContent = MemberBracketContent;
|
|
12894
13028
|
exports.SliceParameters = SliceParameters;
|
|
12895
13029
|
exports.AccessStart = AccessStart;
|
|
13030
|
+
exports.PropertyAccessModifier = PropertyAccessModifier;
|
|
12896
13031
|
exports.PropertyAccess = PropertyAccess;
|
|
12897
13032
|
exports.PropertyGlob = PropertyGlob;
|
|
12898
13033
|
exports.PropertyBind = PropertyBind;
|
|
@@ -12963,12 +13098,14 @@ var require_parser = __commonJS({
|
|
|
12963
13098
|
exports.LiteralContent = LiteralContent;
|
|
12964
13099
|
exports.NullLiteral = NullLiteral;
|
|
12965
13100
|
exports.BooleanLiteral = BooleanLiteral;
|
|
13101
|
+
exports._BooleanLiteral = _BooleanLiteral;
|
|
12966
13102
|
exports.CoffeeScriptBooleanLiteral = CoffeeScriptBooleanLiteral;
|
|
12967
13103
|
exports.Identifier = Identifier;
|
|
12968
13104
|
exports.IdentifierName = IdentifierName;
|
|
12969
13105
|
exports.IdentifierReference = IdentifierReference;
|
|
12970
13106
|
exports.UpcomingAssignment = UpcomingAssignment;
|
|
12971
13107
|
exports.ArrayLiteral = ArrayLiteral;
|
|
13108
|
+
exports._ArrayLiteral = _ArrayLiteral;
|
|
12972
13109
|
exports.RangeExpression = RangeExpression;
|
|
12973
13110
|
exports.ArrayLiteralContent = ArrayLiteralContent;
|
|
12974
13111
|
exports.NestedElementList = NestedElementList;
|
|
@@ -13010,6 +13147,8 @@ var require_parser = __commonJS({
|
|
|
13010
13147
|
exports.IdentifierBinaryOp = IdentifierBinaryOp;
|
|
13011
13148
|
exports.BinaryOp = BinaryOp;
|
|
13012
13149
|
exports.BinaryOpSymbol = BinaryOpSymbol;
|
|
13150
|
+
exports.CoffeeOfOp = CoffeeOfOp;
|
|
13151
|
+
exports.NotOp = NotOp;
|
|
13013
13152
|
exports.Xor = Xor;
|
|
13014
13153
|
exports.Xnor = Xnor;
|
|
13015
13154
|
exports.UnaryOp = UnaryOp;
|
|
@@ -13020,6 +13159,7 @@ var require_parser = __commonJS({
|
|
|
13020
13159
|
exports.PostfixedExpression = PostfixedExpression;
|
|
13021
13160
|
exports.NonPipelinePostfixedExpression = NonPipelinePostfixedExpression;
|
|
13022
13161
|
exports.PostfixStatement = PostfixStatement;
|
|
13162
|
+
exports._PostfixStatement = _PostfixStatement;
|
|
13023
13163
|
exports.Statement = Statement;
|
|
13024
13164
|
exports.EmptyStatement = EmptyStatement;
|
|
13025
13165
|
exports.BlockStatement = BlockStatement;
|
|
@@ -13039,6 +13179,7 @@ var require_parser = __commonJS({
|
|
|
13039
13179
|
exports.NestedBlockExpression = NestedBlockExpression;
|
|
13040
13180
|
exports.BlockExpressionPart = BlockExpressionPart;
|
|
13041
13181
|
exports.IterationStatement = IterationStatement;
|
|
13182
|
+
exports._IterationStatement = _IterationStatement;
|
|
13042
13183
|
exports.IterationExpression = IterationExpression;
|
|
13043
13184
|
exports.LoopStatement = LoopStatement;
|
|
13044
13185
|
exports.LoopClause = LoopClause;
|
|
@@ -13175,11 +13316,13 @@ var require_parser = __commonJS({
|
|
|
13175
13316
|
exports.RegExpCharacter = RegExpCharacter;
|
|
13176
13317
|
exports.RegularExpressionFlags = RegularExpressionFlags;
|
|
13177
13318
|
exports.TemplateLiteral = TemplateLiteral;
|
|
13319
|
+
exports._TemplateLiteral = _TemplateLiteral;
|
|
13178
13320
|
exports.TemplateSubstitution = TemplateSubstitution;
|
|
13179
13321
|
exports.TemplateCharacters = TemplateCharacters;
|
|
13180
13322
|
exports.TemplateBlockCharacters = TemplateBlockCharacters;
|
|
13181
13323
|
exports.ReservedWord = ReservedWord;
|
|
13182
13324
|
exports.Comment = Comment;
|
|
13325
|
+
exports._Comment = _Comment;
|
|
13183
13326
|
exports.SingleLineComment = SingleLineComment;
|
|
13184
13327
|
exports.JSSingleLineComment = JSSingleLineComment;
|
|
13185
13328
|
exports.MultiLineComment = MultiLineComment;
|
|
@@ -13494,6 +13637,7 @@ var require_parser = __commonJS({
|
|
|
13494
13637
|
makeRef,
|
|
13495
13638
|
maybeRef,
|
|
13496
13639
|
modifyString,
|
|
13640
|
+
negateCondition,
|
|
13497
13641
|
processAssignmentDeclaration,
|
|
13498
13642
|
processBinaryOpExpression,
|
|
13499
13643
|
processCallMemberExpression,
|
|
@@ -14119,7 +14263,8 @@ function makeCache({ hits, trace } = {}) {
|
|
|
14119
14263
|
return;
|
|
14120
14264
|
}
|
|
14121
14265
|
;
|
|
14122
|
-
const
|
|
14266
|
+
const [stateKey, tagKey] = getStateKey();
|
|
14267
|
+
const key = [tagKey, stateKey, state.pos, ruleName];
|
|
14123
14268
|
if (stateCache.has(key)) {
|
|
14124
14269
|
if (trace) {
|
|
14125
14270
|
logs.push("".padStart(stack.length * 2, " ") + ruleName + ":" + state.pos + "\u{1F4B0}");
|
|
@@ -14140,12 +14285,9 @@ function makeCache({ hits, trace } = {}) {
|
|
|
14140
14285
|
({ getStateKey } = result.value);
|
|
14141
14286
|
}
|
|
14142
14287
|
if (!uncacheable.has(ruleName)) {
|
|
14143
|
-
const
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
} else {
|
|
14147
|
-
stateCache.set(key, result);
|
|
14148
|
-
}
|
|
14288
|
+
const [stateKey, tagKey] = getStateKey();
|
|
14289
|
+
const key = [tagKey, stateKey, state.pos, ruleName];
|
|
14290
|
+
stateCache.set(key, result);
|
|
14149
14291
|
}
|
|
14150
14292
|
if (parse.config.verbose && result) {
|
|
14151
14293
|
console.log(`Parsed ${JSON.stringify(state.input.slice(state.pos, result.pos))} [pos ${state.pos}-${result.pos}] as ${ruleName}`);
|