@danielx/civet 0.5.79 → 0.5.80
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 +415 -178
- package/dist/civet +2 -1
- package/dist/main.js +415 -178
- package/dist/main.mjs +415 -178
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -426,6 +426,9 @@ ${input.slice(result.pos)}
|
|
|
426
426
|
exports.parserState = parserState;
|
|
427
427
|
var { parse: parse2 } = parserState({
|
|
428
428
|
Program,
|
|
429
|
+
TopLevelStatements,
|
|
430
|
+
NestedTopLevelStatements,
|
|
431
|
+
TopLevelSingleLineStatements,
|
|
429
432
|
TopLevelStatement,
|
|
430
433
|
ExtendedExpression,
|
|
431
434
|
SingleLineExtendedExpression,
|
|
@@ -697,6 +700,9 @@ ${input.slice(result.pos)}
|
|
|
697
700
|
CatchParameter,
|
|
698
701
|
Condition,
|
|
699
702
|
ExpressionWithIndentedApplicationForbidden,
|
|
703
|
+
ForbidClassImplicitCall,
|
|
704
|
+
AllowClassImplicitCall,
|
|
705
|
+
RestoreClassImplicitCall,
|
|
700
706
|
ForbidIndentedApplication,
|
|
701
707
|
AllowIndentedApplication,
|
|
702
708
|
RestoreIndentedApplication,
|
|
@@ -1052,26 +1058,26 @@ ${input.slice(result.pos)}
|
|
|
1052
1058
|
PopIndent,
|
|
1053
1059
|
Nested
|
|
1054
1060
|
});
|
|
1055
|
-
var $L0 = $L("
|
|
1056
|
-
var $L1 = $L("
|
|
1057
|
-
var $L2 = $L("
|
|
1058
|
-
var $L3 = $L("
|
|
1059
|
-
var $L4 = $L("
|
|
1060
|
-
var $L5 = $L("
|
|
1061
|
-
var $L6 = $L("
|
|
1062
|
-
var $L7 = $L("
|
|
1063
|
-
var $L8 = $L("
|
|
1064
|
-
var $L9 = $L("
|
|
1065
|
-
var $L10 = $L("
|
|
1066
|
-
var $L11 = $L("
|
|
1067
|
-
var $L12 = $L("
|
|
1068
|
-
var $L13 = $L("
|
|
1069
|
-
var $L14 = $L("
|
|
1070
|
-
var $L15 = $L("
|
|
1071
|
-
var $L16 = $L("
|
|
1072
|
-
var $L17 = $L("
|
|
1073
|
-
var $L18 = $L("
|
|
1074
|
-
var $L19 = $L("");
|
|
1061
|
+
var $L0 = $L("");
|
|
1062
|
+
var $L1 = $L("/ ");
|
|
1063
|
+
var $L2 = $L("=");
|
|
1064
|
+
var $L3 = $L("(");
|
|
1065
|
+
var $L4 = $L("?");
|
|
1066
|
+
var $L5 = $L(".");
|
|
1067
|
+
var $L6 = $L("++");
|
|
1068
|
+
var $L7 = $L("--");
|
|
1069
|
+
var $L8 = $L("=>");
|
|
1070
|
+
var $L9 = $L(" ");
|
|
1071
|
+
var $L10 = $L("implements");
|
|
1072
|
+
var $L11 = $L("<:");
|
|
1073
|
+
var $L12 = $L("#");
|
|
1074
|
+
var $L13 = $L("super");
|
|
1075
|
+
var $L14 = $L("import");
|
|
1076
|
+
var $L15 = $L("return.value");
|
|
1077
|
+
var $L16 = $L("!");
|
|
1078
|
+
var $L17 = $L("^");
|
|
1079
|
+
var $L18 = $L("-");
|
|
1080
|
+
var $L19 = $L("import.meta");
|
|
1075
1081
|
var $L20 = $L(",");
|
|
1076
1082
|
var $L21 = $L("->");
|
|
1077
1083
|
var $L22 = $L("}");
|
|
@@ -1300,7 +1306,7 @@ ${input.slice(result.pos)}
|
|
|
1300
1306
|
var $R63 = $R(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?", "suy"));
|
|
1301
1307
|
var $R64 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
|
|
1302
1308
|
var $R65 = $R(new RegExp("[ \\t]*", "suy"));
|
|
1303
|
-
var Program$0 = $TS($S(Reset, Init,
|
|
1309
|
+
var Program$0 = $TS($S(Reset, Init, $E(EOS), TopLevelStatements, __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
1304
1310
|
var statements = $4;
|
|
1305
1311
|
module2.processProgram(statements);
|
|
1306
1312
|
return $0;
|
|
@@ -1327,7 +1333,117 @@ ${input.slice(result.pos)}
|
|
|
1327
1333
|
return result;
|
|
1328
1334
|
}
|
|
1329
1335
|
}
|
|
1330
|
-
var
|
|
1336
|
+
var TopLevelStatements$0 = $TS($S(TrackIndented, TopLevelSingleLineStatements, $Q(NestedTopLevelStatements), PopIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
1337
|
+
var indent = $1;
|
|
1338
|
+
var first = $2;
|
|
1339
|
+
var rest = $3;
|
|
1340
|
+
return [
|
|
1341
|
+
[indent, ...first[0]],
|
|
1342
|
+
...first.slice(1).map((s) => ["", ...s]),
|
|
1343
|
+
...rest.flat()
|
|
1344
|
+
];
|
|
1345
|
+
});
|
|
1346
|
+
var TopLevelStatements$1 = $TS($S(TopLevelSingleLineStatements, $Q(NestedTopLevelStatements)), function($skip, $loc, $0, $1, $2) {
|
|
1347
|
+
var first = $1;
|
|
1348
|
+
var rest = $2;
|
|
1349
|
+
return [
|
|
1350
|
+
...first.map((s) => ["", ...s]),
|
|
1351
|
+
...rest.flat()
|
|
1352
|
+
];
|
|
1353
|
+
});
|
|
1354
|
+
var TopLevelStatements$2 = $T($EXPECT($L0, fail, 'TopLevelStatements ""'), function(value) {
|
|
1355
|
+
return [];
|
|
1356
|
+
});
|
|
1357
|
+
function TopLevelStatements(state) {
|
|
1358
|
+
let eventData;
|
|
1359
|
+
if (state.events) {
|
|
1360
|
+
const result = state.events.enter?.("TopLevelStatements", state);
|
|
1361
|
+
if (result) {
|
|
1362
|
+
if (result.cache)
|
|
1363
|
+
return result.cache;
|
|
1364
|
+
eventData = result.data;
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
if (state.tokenize) {
|
|
1368
|
+
const result = $TOKEN("TopLevelStatements", state, TopLevelStatements$0(state) || TopLevelStatements$1(state) || TopLevelStatements$2(state));
|
|
1369
|
+
if (state.events)
|
|
1370
|
+
state.events.exit?.("TopLevelStatements", state, result, eventData);
|
|
1371
|
+
return result;
|
|
1372
|
+
} else {
|
|
1373
|
+
const result = TopLevelStatements$0(state) || TopLevelStatements$1(state) || TopLevelStatements$2(state);
|
|
1374
|
+
if (state.events)
|
|
1375
|
+
state.events.exit?.("TopLevelStatements", state, result, eventData);
|
|
1376
|
+
return result;
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
var NestedTopLevelStatements$0 = $TS($S(Nested, TopLevelSingleLineStatements), function($skip, $loc, $0, $1, $2) {
|
|
1380
|
+
var nested = $1;
|
|
1381
|
+
var statements = $2;
|
|
1382
|
+
return [
|
|
1383
|
+
[nested, ...statements[0]],
|
|
1384
|
+
...statements.slice(1).map((s) => ["", ...s])
|
|
1385
|
+
];
|
|
1386
|
+
});
|
|
1387
|
+
function NestedTopLevelStatements(state) {
|
|
1388
|
+
let eventData;
|
|
1389
|
+
if (state.events) {
|
|
1390
|
+
const result = state.events.enter?.("NestedTopLevelStatements", state);
|
|
1391
|
+
if (result) {
|
|
1392
|
+
if (result.cache)
|
|
1393
|
+
return result.cache;
|
|
1394
|
+
eventData = result.data;
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
if (state.tokenize) {
|
|
1398
|
+
const result = $TOKEN("NestedTopLevelStatements", state, NestedTopLevelStatements$0(state));
|
|
1399
|
+
if (state.events)
|
|
1400
|
+
state.events.exit?.("NestedTopLevelStatements", state, result, eventData);
|
|
1401
|
+
return result;
|
|
1402
|
+
} else {
|
|
1403
|
+
const result = NestedTopLevelStatements$0(state);
|
|
1404
|
+
if (state.events)
|
|
1405
|
+
state.events.exit?.("NestedTopLevelStatements", state, result, eventData);
|
|
1406
|
+
return result;
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
var TopLevelSingleLineStatements$0 = $TV($P($S($N(EOS), TopLevelStatement)), function($skip, $loc, $0, $1) {
|
|
1410
|
+
var statements = $0;
|
|
1411
|
+
return statements.map(([, statement]) => statement);
|
|
1412
|
+
});
|
|
1413
|
+
function TopLevelSingleLineStatements(state) {
|
|
1414
|
+
let eventData;
|
|
1415
|
+
if (state.events) {
|
|
1416
|
+
const result = state.events.enter?.("TopLevelSingleLineStatements", state);
|
|
1417
|
+
if (result) {
|
|
1418
|
+
if (result.cache)
|
|
1419
|
+
return result.cache;
|
|
1420
|
+
eventData = result.data;
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
if (state.tokenize) {
|
|
1424
|
+
const result = $TOKEN("TopLevelSingleLineStatements", state, TopLevelSingleLineStatements$0(state));
|
|
1425
|
+
if (state.events)
|
|
1426
|
+
state.events.exit?.("TopLevelSingleLineStatements", state, result, eventData);
|
|
1427
|
+
return result;
|
|
1428
|
+
} else {
|
|
1429
|
+
const result = TopLevelSingleLineStatements$0(state);
|
|
1430
|
+
if (state.events)
|
|
1431
|
+
state.events.exit?.("TopLevelSingleLineStatements", state, result, eventData);
|
|
1432
|
+
return result;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
var TopLevelStatement$0 = $TS($S($E(_), ModuleItem, StatementDelimiter), function($skip, $loc, $0, $1, $2, $3) {
|
|
1436
|
+
var ws = $1;
|
|
1437
|
+
var statement = $2;
|
|
1438
|
+
var delimiter = $3;
|
|
1439
|
+
if (ws) {
|
|
1440
|
+
statement = {
|
|
1441
|
+
...statement,
|
|
1442
|
+
children: [ws, ...statement.children]
|
|
1443
|
+
};
|
|
1444
|
+
}
|
|
1445
|
+
return [statement, delimiter];
|
|
1446
|
+
});
|
|
1331
1447
|
function TopLevelStatement(state) {
|
|
1332
1448
|
let eventData;
|
|
1333
1449
|
if (state.events) {
|
|
@@ -1622,10 +1738,11 @@ ${input.slice(result.pos)}
|
|
|
1622
1738
|
}
|
|
1623
1739
|
}
|
|
1624
1740
|
var ForbiddenImplicitCalls$0 = $R$0($EXPECT($R0, fail, "ForbiddenImplicitCalls /(as|of|satisfies|then|when|implements|xor|xnor)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
|
|
1625
|
-
var ForbiddenImplicitCalls$1 = $EXPECT($
|
|
1626
|
-
var ForbiddenImplicitCalls$2 =
|
|
1627
|
-
var ForbiddenImplicitCalls$3 =
|
|
1628
|
-
var ForbiddenImplicitCalls$4 = $
|
|
1741
|
+
var ForbiddenImplicitCalls$1 = $EXPECT($L1, fail, 'ForbiddenImplicitCalls "/ "');
|
|
1742
|
+
var ForbiddenImplicitCalls$2 = $S(ForbidClassImplicitCall, Class);
|
|
1743
|
+
var ForbiddenImplicitCalls$3 = AtAt;
|
|
1744
|
+
var ForbiddenImplicitCalls$4 = $S(Identifier, $EXPECT($L2, fail, 'ForbiddenImplicitCalls "="'), Whitespace);
|
|
1745
|
+
var ForbiddenImplicitCalls$5 = $TS($S(Identifier, $N($EXPECT($L3, fail, 'ForbiddenImplicitCalls "("'))), function($skip, $loc, $0, $1, $2) {
|
|
1629
1746
|
if (module2.operators.has($1.name))
|
|
1630
1747
|
return $1;
|
|
1631
1748
|
return $skip;
|
|
@@ -1641,12 +1758,12 @@ ${input.slice(result.pos)}
|
|
|
1641
1758
|
}
|
|
1642
1759
|
}
|
|
1643
1760
|
if (state.tokenize) {
|
|
1644
|
-
const result = $TOKEN("ForbiddenImplicitCalls", state, ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state) || ForbiddenImplicitCalls$4(state));
|
|
1761
|
+
const result = $TOKEN("ForbiddenImplicitCalls", state, ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state) || ForbiddenImplicitCalls$4(state) || ForbiddenImplicitCalls$5(state));
|
|
1645
1762
|
if (state.events)
|
|
1646
1763
|
state.events.exit?.("ForbiddenImplicitCalls", state, result, eventData);
|
|
1647
1764
|
return result;
|
|
1648
1765
|
} else {
|
|
1649
|
-
const result = ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state) || ForbiddenImplicitCalls$4(state);
|
|
1766
|
+
const result = ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state) || ForbiddenImplicitCalls$4(state) || ForbiddenImplicitCalls$5(state);
|
|
1650
1767
|
if (state.events)
|
|
1651
1768
|
state.events.exit?.("ForbiddenImplicitCalls", state, result, eventData);
|
|
1652
1769
|
return result;
|
|
@@ -1683,7 +1800,7 @@ ${input.slice(result.pos)}
|
|
|
1683
1800
|
return result;
|
|
1684
1801
|
}
|
|
1685
1802
|
}
|
|
1686
|
-
var TrailingMemberExpressions$0 = $TS($S($Q(MemberExpressionRest), $Q($S($C(Samedent, IndentedFurther), $Y($S($E($EXPECT($
|
|
1803
|
+
var TrailingMemberExpressions$0 = $TS($S($Q(MemberExpressionRest), $Q($S($C(Samedent, IndentedFurther), $Y($S($E($EXPECT($L4, fail, 'TrailingMemberExpressions "?"')), $EXPECT($L5, fail, 'TrailingMemberExpressions "."'), $N($EXPECT($R1, fail, "TrailingMemberExpressions /[0-9]/")))), MemberExpressionRest))), function($skip, $loc, $0, $1, $2) {
|
|
1687
1804
|
return $1.concat($2);
|
|
1688
1805
|
});
|
|
1689
1806
|
function TrailingMemberExpressions(state) {
|
|
@@ -2153,7 +2270,7 @@ ${input.slice(result.pos)}
|
|
|
2153
2270
|
return result;
|
|
2154
2271
|
}
|
|
2155
2272
|
}
|
|
2156
|
-
var UpdateExpressionSymbol$0 = $TV($C($EXPECT($
|
|
2273
|
+
var UpdateExpressionSymbol$0 = $TV($C($EXPECT($L6, fail, 'UpdateExpressionSymbol "++"'), $EXPECT($L7, fail, 'UpdateExpressionSymbol "--"')), function($skip, $loc, $0, $1) {
|
|
2157
2274
|
return { $loc, token: $1 };
|
|
2158
2275
|
});
|
|
2159
2276
|
function UpdateExpressionSymbol(state) {
|
|
@@ -2435,7 +2552,7 @@ ${input.slice(result.pos)}
|
|
|
2435
2552
|
return result;
|
|
2436
2553
|
}
|
|
2437
2554
|
}
|
|
2438
|
-
var FatArrow$0 = $TS($S(__, $EXPECT($
|
|
2555
|
+
var FatArrow$0 = $TS($S(__, $EXPECT($L8, fail, 'FatArrow "=>"')), function($skip, $loc, $0, $1, $2) {
|
|
2439
2556
|
var ws = $1;
|
|
2440
2557
|
if (!ws.length)
|
|
2441
2558
|
return " =>";
|
|
@@ -2519,7 +2636,7 @@ ${input.slice(result.pos)}
|
|
|
2519
2636
|
}
|
|
2520
2637
|
}
|
|
2521
2638
|
var TernaryRest$0 = NestedTernaryRest;
|
|
2522
|
-
var TernaryRest$1 = $TS($S($N(CoffeeBinaryExistentialEnabled), $Y($EXPECT($
|
|
2639
|
+
var TernaryRest$1 = $TS($S($N(CoffeeBinaryExistentialEnabled), $Y($EXPECT($L9, fail, 'TernaryRest " "')), $Q(TrailingComment), QuestionMark, ExtendedExpression, __, Colon, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
2523
2640
|
return $0.slice(2);
|
|
2524
2641
|
});
|
|
2525
2642
|
function TernaryRest(state) {
|
|
@@ -2863,7 +2980,7 @@ ${input.slice(result.pos)}
|
|
|
2863
2980
|
return result;
|
|
2864
2981
|
}
|
|
2865
2982
|
}
|
|
2866
|
-
var ExtendsToken$0 = $TS($S(Loc, __, OpenAngleBracket, $E($EXPECT($
|
|
2983
|
+
var ExtendsToken$0 = $TS($S(Loc, __, OpenAngleBracket, $E($EXPECT($L9, fail, 'ExtendsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
2867
2984
|
var l = $1;
|
|
2868
2985
|
var ws = $2;
|
|
2869
2986
|
var lt = $3;
|
|
@@ -2957,7 +3074,7 @@ ${input.slice(result.pos)}
|
|
|
2957
3074
|
return result;
|
|
2958
3075
|
}
|
|
2959
3076
|
}
|
|
2960
|
-
var ImplementsToken$0 = $TS($S(Loc, __, ImplementsShorthand, $E($EXPECT($
|
|
3077
|
+
var ImplementsToken$0 = $TS($S(Loc, __, ImplementsShorthand, $E($EXPECT($L9, fail, 'ImplementsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
2961
3078
|
var l = $1;
|
|
2962
3079
|
var ws = $2;
|
|
2963
3080
|
var token = $3;
|
|
@@ -2967,7 +3084,7 @@ ${input.slice(result.pos)}
|
|
|
2967
3084
|
}
|
|
2968
3085
|
return { children };
|
|
2969
3086
|
});
|
|
2970
|
-
var ImplementsToken$1 = $TS($S(__, $EXPECT($
|
|
3087
|
+
var ImplementsToken$1 = $TS($S(__, $EXPECT($L10, fail, 'ImplementsToken "implements"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
2971
3088
|
$2 = { $loc, token: $2 };
|
|
2972
3089
|
return [$1, $2];
|
|
2973
3090
|
});
|
|
@@ -2993,7 +3110,7 @@ ${input.slice(result.pos)}
|
|
|
2993
3110
|
return result;
|
|
2994
3111
|
}
|
|
2995
3112
|
}
|
|
2996
|
-
var ImplementsShorthand$0 = $TV($EXPECT($
|
|
3113
|
+
var ImplementsShorthand$0 = $TV($EXPECT($L11, fail, 'ImplementsShorthand "<:"'), function($skip, $loc, $0, $1) {
|
|
2997
3114
|
return { $loc, token: "implements " };
|
|
2998
3115
|
});
|
|
2999
3116
|
function ImplementsShorthand(state) {
|
|
@@ -3366,7 +3483,7 @@ ${input.slice(result.pos)}
|
|
|
3366
3483
|
}
|
|
3367
3484
|
}
|
|
3368
3485
|
var ThisLiteral$0 = This;
|
|
3369
|
-
var ThisLiteral$1 = $TS($S(AtThis, $TEXT($S($E($EXPECT($
|
|
3486
|
+
var ThisLiteral$1 = $TS($S(AtThis, $TEXT($S($E($EXPECT($L12, fail, 'ThisLiteral "#"')), IdentifierName))), function($skip, $loc, $0, $1, $2) {
|
|
3370
3487
|
var at = $1;
|
|
3371
3488
|
var id = $2;
|
|
3372
3489
|
return [at, ".", id];
|
|
@@ -3420,7 +3537,7 @@ ${input.slice(result.pos)}
|
|
|
3420
3537
|
return result;
|
|
3421
3538
|
}
|
|
3422
3539
|
}
|
|
3423
|
-
var LeftHandSideExpression$0 = $TS($S($Q($S(New, $N($EXPECT($
|
|
3540
|
+
var LeftHandSideExpression$0 = $TS($S($Q($S(New, $N($EXPECT($L5, fail, 'LeftHandSideExpression "."')), __)), CallExpression), function($skip, $loc, $0, $1, $2) {
|
|
3424
3541
|
if ($1.length)
|
|
3425
3542
|
return $0;
|
|
3426
3543
|
return $2;
|
|
@@ -3447,14 +3564,14 @@ ${input.slice(result.pos)}
|
|
|
3447
3564
|
return result;
|
|
3448
3565
|
}
|
|
3449
3566
|
}
|
|
3450
|
-
var CallExpression$0 = $TS($S($EXPECT($
|
|
3567
|
+
var CallExpression$0 = $TS($S($EXPECT($L13, fail, 'CallExpression "super"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
|
|
3451
3568
|
var rest = $3;
|
|
3452
3569
|
return module2.processGlob({
|
|
3453
3570
|
type: "CallExpression",
|
|
3454
3571
|
children: [$1, ...$2, ...rest.flat()]
|
|
3455
3572
|
});
|
|
3456
3573
|
});
|
|
3457
|
-
var CallExpression$1 = $TS($S($EXPECT($
|
|
3574
|
+
var CallExpression$1 = $TS($S($EXPECT($L14, fail, 'CallExpression "import"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
|
|
3458
3575
|
var rest = $3;
|
|
3459
3576
|
return module2.processGlob({
|
|
3460
3577
|
type: "CallExpression",
|
|
@@ -3497,7 +3614,7 @@ ${input.slice(result.pos)}
|
|
|
3497
3614
|
return result;
|
|
3498
3615
|
}
|
|
3499
3616
|
}
|
|
3500
|
-
var ReturnValue$0 = $TV($C($S($EXPECT($
|
|
3617
|
+
var ReturnValue$0 = $TV($C($S($EXPECT($L15, fail, 'ReturnValue "return.value"'), NonIdContinue), $S(Return, $Y(AfterReturnShorthand))), function($skip, $loc, $0, $1) {
|
|
3501
3618
|
return { type: "ReturnValue", children: [$1[0]] };
|
|
3502
3619
|
});
|
|
3503
3620
|
function ReturnValue(state) {
|
|
@@ -3635,7 +3752,7 @@ ${input.slice(result.pos)}
|
|
|
3635
3752
|
return result;
|
|
3636
3753
|
}
|
|
3637
3754
|
}
|
|
3638
|
-
var NonNullAssertion$0 = $T($S($EXPECT($
|
|
3755
|
+
var NonNullAssertion$0 = $T($S($EXPECT($L16, fail, 'NonNullAssertion "!"'), $N($EXPECT($L17, fail, 'NonNullAssertion "^"'))), function(value) {
|
|
3639
3756
|
return { "type": "NonNullAssertion", "ts": true, "children": value[0] };
|
|
3640
3757
|
});
|
|
3641
3758
|
function NonNullAssertion(state) {
|
|
@@ -3773,7 +3890,7 @@ ${input.slice(result.pos)}
|
|
|
3773
3890
|
]
|
|
3774
3891
|
};
|
|
3775
3892
|
});
|
|
3776
|
-
var MemberBracketContent$3 = $TS($S(Dot, $EXPECT($
|
|
3893
|
+
var MemberBracketContent$3 = $TS($S(Dot, $EXPECT($L18, fail, 'MemberBracketContent "-"'), IntegerLiteral), function($skip, $loc, $0, $1, $2, $3) {
|
|
3777
3894
|
var dot = $1;
|
|
3778
3895
|
var neg = $2;
|
|
3779
3896
|
var num = $3;
|
|
@@ -3959,8 +4076,8 @@ ${input.slice(result.pos)}
|
|
|
3959
4076
|
return result;
|
|
3960
4077
|
}
|
|
3961
4078
|
}
|
|
3962
|
-
var SuperProperty$0 = $S($EXPECT($
|
|
3963
|
-
var SuperProperty$1 = $S($EXPECT($
|
|
4079
|
+
var SuperProperty$0 = $S($EXPECT($L13, fail, 'SuperProperty "super"'), MemberBracketContent);
|
|
4080
|
+
var SuperProperty$1 = $S($EXPECT($L13, fail, 'SuperProperty "super"'), $N($C(QuestionMark, NonNullAssertion)), PropertyAccess);
|
|
3964
4081
|
function SuperProperty(state) {
|
|
3965
4082
|
let eventData;
|
|
3966
4083
|
if (state.events) {
|
|
@@ -3984,7 +4101,7 @@ ${input.slice(result.pos)}
|
|
|
3984
4101
|
}
|
|
3985
4102
|
}
|
|
3986
4103
|
var MetaProperty$0 = $S(New, Dot, Target);
|
|
3987
|
-
var MetaProperty$1 = $TS($S($EXPECT($
|
|
4104
|
+
var MetaProperty$1 = $TS($S($EXPECT($L19, fail, 'MetaProperty "import.meta"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
3988
4105
|
return { $loc, token: $1 };
|
|
3989
4106
|
});
|
|
3990
4107
|
function MetaProperty(state) {
|
|
@@ -4010,7 +4127,7 @@ ${input.slice(result.pos)}
|
|
|
4010
4127
|
}
|
|
4011
4128
|
}
|
|
4012
4129
|
var Parameters$0 = NonEmptyParameters;
|
|
4013
|
-
var Parameters$1 = $TV($EXPECT($
|
|
4130
|
+
var Parameters$1 = $TV($EXPECT($L0, fail, 'Parameters ""'), function($skip, $loc, $0, $1) {
|
|
4014
4131
|
return {
|
|
4015
4132
|
type: "Parameters",
|
|
4016
4133
|
children: [{ $loc, token: "()" }],
|
|
@@ -4867,7 +4984,7 @@ ${input.slice(result.pos)}
|
|
|
4867
4984
|
return result;
|
|
4868
4985
|
}
|
|
4869
4986
|
}
|
|
4870
|
-
var EmptyBindingPattern$0 = $TV($EXPECT($
|
|
4987
|
+
var EmptyBindingPattern$0 = $TV($EXPECT($L0, fail, 'EmptyBindingPattern ""'), function($skip, $loc, $0, $1) {
|
|
4871
4988
|
const ref = {
|
|
4872
4989
|
type: "Ref",
|
|
4873
4990
|
base: "ref",
|
|
@@ -5775,10 +5892,11 @@ ${input.slice(result.pos)}
|
|
|
5775
5892
|
});
|
|
5776
5893
|
var ExplicitBlock$1 = $TS($S(__, OpenBrace, NestedBlockStatements, __, CloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
5777
5894
|
var block = $3;
|
|
5778
|
-
return
|
|
5895
|
+
return {
|
|
5896
|
+
...block,
|
|
5779
5897
|
children: [$1, $2, ...block.children, $4, $5],
|
|
5780
5898
|
bare: false
|
|
5781
|
-
}
|
|
5899
|
+
};
|
|
5782
5900
|
});
|
|
5783
5901
|
function ExplicitBlock(state) {
|
|
5784
5902
|
let eventData;
|
|
@@ -5838,7 +5956,7 @@ ${input.slice(result.pos)}
|
|
|
5838
5956
|
var Block$0 = ExplicitBlock;
|
|
5839
5957
|
var Block$1 = ImplicitNestedBlock;
|
|
5840
5958
|
var Block$2 = ThenClause;
|
|
5841
|
-
var Block$3 = $TS($S($
|
|
5959
|
+
var Block$3 = $TS($S($E(_), $N(EOS), Statement), function($skip, $loc, $0, $1, $2, $3) {
|
|
5842
5960
|
var ws = $1;
|
|
5843
5961
|
var s = $3;
|
|
5844
5962
|
const expressions = [[ws, s]];
|
|
@@ -5976,7 +6094,7 @@ ${input.slice(result.pos)}
|
|
|
5976
6094
|
return result;
|
|
5977
6095
|
}
|
|
5978
6096
|
}
|
|
5979
|
-
var EmptyBareBlock$0 = $TV($EXPECT($
|
|
6097
|
+
var EmptyBareBlock$0 = $TV($EXPECT($L0, fail, 'EmptyBareBlock ""'), function($skip, $loc, $0, $1) {
|
|
5980
6098
|
const expressions = [];
|
|
5981
6099
|
return {
|
|
5982
6100
|
type: "BlockStatement",
|
|
@@ -6239,8 +6357,11 @@ ${input.slice(result.pos)}
|
|
|
6239
6357
|
return $skip;
|
|
6240
6358
|
const first = statements[0];
|
|
6241
6359
|
const ws = first[0];
|
|
6242
|
-
const
|
|
6243
|
-
|
|
6360
|
+
const indent = ws.at(-1);
|
|
6361
|
+
statements = [
|
|
6362
|
+
[indent, ...first.slice(1)],
|
|
6363
|
+
...statements.slice(1)
|
|
6364
|
+
];
|
|
6244
6365
|
return {
|
|
6245
6366
|
type: "BlockStatement",
|
|
6246
6367
|
expressions: statements,
|
|
@@ -6270,7 +6391,16 @@ ${input.slice(result.pos)}
|
|
|
6270
6391
|
return result;
|
|
6271
6392
|
}
|
|
6272
6393
|
}
|
|
6273
|
-
var NestedBlockStatement$0 = $S(Nested, StatementListItem, StatementDelimiter)
|
|
6394
|
+
var NestedBlockStatement$0 = $TS($S(Nested, $E(_), StatementListItem, StatementDelimiter), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
6395
|
+
var nested = $1;
|
|
6396
|
+
var ws = $2;
|
|
6397
|
+
var statement = $3;
|
|
6398
|
+
var delimiter = $4;
|
|
6399
|
+
if (ws) {
|
|
6400
|
+
statement = { ...statement, children: [ws, ...statement.children] };
|
|
6401
|
+
}
|
|
6402
|
+
return [nested, statement, delimiter];
|
|
6403
|
+
});
|
|
6274
6404
|
function NestedBlockStatement(state) {
|
|
6275
6405
|
let eventData;
|
|
6276
6406
|
if (state.events) {
|
|
@@ -6511,7 +6641,7 @@ ${input.slice(result.pos)}
|
|
|
6511
6641
|
return result;
|
|
6512
6642
|
}
|
|
6513
6643
|
}
|
|
6514
|
-
var UpcomingAssignment$0 = $Y($S(__, $EXPECT($
|
|
6644
|
+
var UpcomingAssignment$0 = $Y($S(__, $EXPECT($L2, fail, 'UpcomingAssignment "="'), $N($C($EXPECT($L2, fail, 'UpcomingAssignment "="'), $EXPECT($L30, fail, 'UpcomingAssignment ">"')))));
|
|
6515
6645
|
function UpcomingAssignment(state) {
|
|
6516
6646
|
let eventData;
|
|
6517
6647
|
if (state.events) {
|
|
@@ -7570,7 +7700,7 @@ ${input.slice(result.pos)}
|
|
|
7570
7700
|
expression
|
|
7571
7701
|
};
|
|
7572
7702
|
});
|
|
7573
|
-
var ComputedPropertyName$2 = $TS($S(InsertOpenBracket, $EXPECT($
|
|
7703
|
+
var ComputedPropertyName$2 = $TS($S(InsertOpenBracket, $EXPECT($L18, fail, 'ComputedPropertyName "-"'), NumericLiteral, InsertCloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
7574
7704
|
return {
|
|
7575
7705
|
type: "ComputedPropertyName",
|
|
7576
7706
|
children: $0
|
|
@@ -7621,7 +7751,12 @@ ${input.slice(result.pos)}
|
|
|
7621
7751
|
return result;
|
|
7622
7752
|
}
|
|
7623
7753
|
}
|
|
7624
|
-
var Decorators$0 = $S($
|
|
7754
|
+
var Decorators$0 = $TS($S(ForbidClassImplicitCall, $Q($S(__, Decorator)), __, RestoreClassImplicitCall), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
7755
|
+
var decorators = $2;
|
|
7756
|
+
if (!decorators.length)
|
|
7757
|
+
return $skip;
|
|
7758
|
+
return $0;
|
|
7759
|
+
});
|
|
7625
7760
|
function Decorators(state) {
|
|
7626
7761
|
let eventData;
|
|
7627
7762
|
if (state.events) {
|
|
@@ -7788,7 +7923,7 @@ ${input.slice(result.pos)}
|
|
|
7788
7923
|
return result;
|
|
7789
7924
|
}
|
|
7790
7925
|
}
|
|
7791
|
-
var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($
|
|
7926
|
+
var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($L12, fail, 'PrivateIdentifier "#"'), IdentifierName)), function($skip, $loc, $0, $1) {
|
|
7792
7927
|
return {
|
|
7793
7928
|
type: "Identifier",
|
|
7794
7929
|
name: $0,
|
|
@@ -7876,21 +8011,21 @@ ${input.slice(result.pos)}
|
|
|
7876
8011
|
return result;
|
|
7877
8012
|
}
|
|
7878
8013
|
}
|
|
7879
|
-
var OperatorAssignmentOp$0 = $TS($S(Xor, $EXPECT($
|
|
8014
|
+
var OperatorAssignmentOp$0 = $TS($S(Xor, $EXPECT($L2, fail, 'OperatorAssignmentOp "="'), $Y(Whitespace), $Q(TrailingComment)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
7880
8015
|
return {
|
|
7881
8016
|
special: true,
|
|
7882
8017
|
call: module2.getRef("xor"),
|
|
7883
8018
|
children: [$2, ...$4]
|
|
7884
8019
|
};
|
|
7885
8020
|
});
|
|
7886
|
-
var OperatorAssignmentOp$1 = $TS($S(Xnor, $EXPECT($
|
|
8021
|
+
var OperatorAssignmentOp$1 = $TS($S(Xnor, $EXPECT($L2, fail, 'OperatorAssignmentOp "="'), $Y(Whitespace), $Q(TrailingComment)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
7887
8022
|
return {
|
|
7888
8023
|
special: true,
|
|
7889
8024
|
call: module2.getRef("xnor"),
|
|
7890
8025
|
children: [$2, ...$4]
|
|
7891
8026
|
};
|
|
7892
8027
|
});
|
|
7893
|
-
var OperatorAssignmentOp$2 = $TS($S(Identifier, $EXPECT($
|
|
8028
|
+
var OperatorAssignmentOp$2 = $TS($S(Identifier, $EXPECT($L2, fail, 'OperatorAssignmentOp "="'), $Y(Whitespace), $Q(TrailingComment)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
7894
8029
|
return {
|
|
7895
8030
|
special: true,
|
|
7896
8031
|
call: $1,
|
|
@@ -7937,7 +8072,7 @@ ${input.slice(result.pos)}
|
|
|
7937
8072
|
var AssignmentOpSymbol$15 = $T($EXPECT($L49, fail, 'AssignmentOpSymbol "?="'), function(value) {
|
|
7938
8073
|
return "??=";
|
|
7939
8074
|
});
|
|
7940
|
-
var AssignmentOpSymbol$16 = $T($S($EXPECT($
|
|
8075
|
+
var AssignmentOpSymbol$16 = $T($S($EXPECT($L2, fail, 'AssignmentOpSymbol "="'), $N($EXPECT($L2, fail, 'AssignmentOpSymbol "="'))), function(value) {
|
|
7941
8076
|
return value[0];
|
|
7942
8077
|
});
|
|
7943
8078
|
var AssignmentOpSymbol$17 = $T($S(CoffeeWordAssignmentOp), function(value) {
|
|
@@ -8050,7 +8185,7 @@ ${input.slice(result.pos)}
|
|
|
8050
8185
|
});
|
|
8051
8186
|
var BinaryOpSymbol$4 = $EXPECT($L57, fail, 'BinaryOpSymbol "%"');
|
|
8052
8187
|
var BinaryOpSymbol$5 = $EXPECT($L58, fail, 'BinaryOpSymbol "+"');
|
|
8053
|
-
var BinaryOpSymbol$6 = $EXPECT($
|
|
8188
|
+
var BinaryOpSymbol$6 = $EXPECT($L18, fail, 'BinaryOpSymbol "-"');
|
|
8054
8189
|
var BinaryOpSymbol$7 = $EXPECT($L59, fail, 'BinaryOpSymbol "<="');
|
|
8055
8190
|
var BinaryOpSymbol$8 = $EXPECT($L60, fail, 'BinaryOpSymbol ">="');
|
|
8056
8191
|
var BinaryOpSymbol$9 = $TV($EXPECT($L61, fail, 'BinaryOpSymbol "<?"'), function($skip, $loc, $0, $1) {
|
|
@@ -8118,7 +8253,7 @@ ${input.slice(result.pos)}
|
|
|
8118
8253
|
};
|
|
8119
8254
|
});
|
|
8120
8255
|
var BinaryOpSymbol$28 = $EXPECT($L79, fail, 'BinaryOpSymbol "??"');
|
|
8121
|
-
var BinaryOpSymbol$29 = $T($S(CoffeeBinaryExistentialEnabled, $EXPECT($
|
|
8256
|
+
var BinaryOpSymbol$29 = $T($S(CoffeeBinaryExistentialEnabled, $EXPECT($L4, fail, 'BinaryOpSymbol "?"')), function(value) {
|
|
8122
8257
|
return "??";
|
|
8123
8258
|
});
|
|
8124
8259
|
var BinaryOpSymbol$30 = $TS($S($EXPECT($L80, fail, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
@@ -8208,7 +8343,7 @@ ${input.slice(result.pos)}
|
|
|
8208
8343
|
return $1;
|
|
8209
8344
|
});
|
|
8210
8345
|
var BinaryOpSymbol$40 = $EXPECT($L83, fail, 'BinaryOpSymbol "&"');
|
|
8211
|
-
var BinaryOpSymbol$41 = $EXPECT($
|
|
8346
|
+
var BinaryOpSymbol$41 = $EXPECT($L17, fail, 'BinaryOpSymbol "^"');
|
|
8212
8347
|
var BinaryOpSymbol$42 = $EXPECT($L84, fail, 'BinaryOpSymbol "|"');
|
|
8213
8348
|
function BinaryOpSymbol(state) {
|
|
8214
8349
|
let eventData;
|
|
@@ -8532,7 +8667,7 @@ ${input.slice(result.pos)}
|
|
|
8532
8667
|
return result;
|
|
8533
8668
|
}
|
|
8534
8669
|
}
|
|
8535
|
-
var BlockStatement$0 = $T($S(ExplicitBlock, $N($S(__, $EXPECT($
|
|
8670
|
+
var BlockStatement$0 = $T($S(ExplicitBlock, $N($S(__, $EXPECT($L2, fail, 'BlockStatement "="')))), function(value) {
|
|
8536
8671
|
return value[0];
|
|
8537
8672
|
});
|
|
8538
8673
|
function BlockStatement(state) {
|
|
@@ -9295,11 +9430,17 @@ ${input.slice(result.pos)}
|
|
|
9295
9430
|
if ($3) {
|
|
9296
9431
|
const indent = module2.currentIndent.token + " ";
|
|
9297
9432
|
const block = "continue\n";
|
|
9298
|
-
$2
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9433
|
+
$2 = {
|
|
9434
|
+
...$2,
|
|
9435
|
+
blockPrefix: [
|
|
9436
|
+
...$2.blockPrefix,
|
|
9437
|
+
[indent, {
|
|
9438
|
+
type: "IfStatement",
|
|
9439
|
+
then: block,
|
|
9440
|
+
children: ["if (!(", module2.insertTrimmingSpace($3, ""), ")) ", block]
|
|
9441
|
+
}]
|
|
9442
|
+
]
|
|
9443
|
+
};
|
|
9303
9444
|
}
|
|
9304
9445
|
return $2;
|
|
9305
9446
|
});
|
|
@@ -10062,7 +10203,7 @@ ${input.slice(result.pos)}
|
|
|
10062
10203
|
}
|
|
10063
10204
|
}
|
|
10064
10205
|
var ImpliedColon$0 = $S($E(_), Colon);
|
|
10065
|
-
var ImpliedColon$1 = $TV($EXPECT($
|
|
10206
|
+
var ImpliedColon$1 = $TV($EXPECT($L0, fail, 'ImpliedColon ""'), function($skip, $loc, $0, $1) {
|
|
10066
10207
|
return { $loc, token: ":" };
|
|
10067
10208
|
});
|
|
10068
10209
|
function ImpliedColon(state) {
|
|
@@ -10340,7 +10481,82 @@ ${input.slice(result.pos)}
|
|
|
10340
10481
|
return result;
|
|
10341
10482
|
}
|
|
10342
10483
|
}
|
|
10343
|
-
var
|
|
10484
|
+
var ForbidClassImplicitCall$0 = $TV($EXPECT($L0, fail, 'ForbidClassImplicitCall ""'), function($skip, $loc, $0, $1) {
|
|
10485
|
+
module2.forbidIndentedApplication.push(true);
|
|
10486
|
+
});
|
|
10487
|
+
function ForbidClassImplicitCall(state) {
|
|
10488
|
+
let eventData;
|
|
10489
|
+
if (state.events) {
|
|
10490
|
+
const result = state.events.enter?.("ForbidClassImplicitCall", state);
|
|
10491
|
+
if (result) {
|
|
10492
|
+
if (result.cache)
|
|
10493
|
+
return result.cache;
|
|
10494
|
+
eventData = result.data;
|
|
10495
|
+
}
|
|
10496
|
+
}
|
|
10497
|
+
if (state.tokenize) {
|
|
10498
|
+
const result = $TOKEN("ForbidClassImplicitCall", state, ForbidClassImplicitCall$0(state));
|
|
10499
|
+
if (state.events)
|
|
10500
|
+
state.events.exit?.("ForbidClassImplicitCall", state, result, eventData);
|
|
10501
|
+
return result;
|
|
10502
|
+
} else {
|
|
10503
|
+
const result = ForbidClassImplicitCall$0(state);
|
|
10504
|
+
if (state.events)
|
|
10505
|
+
state.events.exit?.("ForbidClassImplicitCall", state, result, eventData);
|
|
10506
|
+
return result;
|
|
10507
|
+
}
|
|
10508
|
+
}
|
|
10509
|
+
var AllowClassImplicitCall$0 = $TV($EXPECT($L0, fail, 'AllowClassImplicitCall ""'), function($skip, $loc, $0, $1) {
|
|
10510
|
+
module2.forbidIndentedApplication.push(false);
|
|
10511
|
+
});
|
|
10512
|
+
function AllowClassImplicitCall(state) {
|
|
10513
|
+
let eventData;
|
|
10514
|
+
if (state.events) {
|
|
10515
|
+
const result = state.events.enter?.("AllowClassImplicitCall", state);
|
|
10516
|
+
if (result) {
|
|
10517
|
+
if (result.cache)
|
|
10518
|
+
return result.cache;
|
|
10519
|
+
eventData = result.data;
|
|
10520
|
+
}
|
|
10521
|
+
}
|
|
10522
|
+
if (state.tokenize) {
|
|
10523
|
+
const result = $TOKEN("AllowClassImplicitCall", state, AllowClassImplicitCall$0(state));
|
|
10524
|
+
if (state.events)
|
|
10525
|
+
state.events.exit?.("AllowClassImplicitCall", state, result, eventData);
|
|
10526
|
+
return result;
|
|
10527
|
+
} else {
|
|
10528
|
+
const result = AllowClassImplicitCall$0(state);
|
|
10529
|
+
if (state.events)
|
|
10530
|
+
state.events.exit?.("AllowClassImplicitCall", state, result, eventData);
|
|
10531
|
+
return result;
|
|
10532
|
+
}
|
|
10533
|
+
}
|
|
10534
|
+
var RestoreClassImplicitCall$0 = $TV($EXPECT($L0, fail, 'RestoreClassImplicitCall ""'), function($skip, $loc, $0, $1) {
|
|
10535
|
+
module2.forbidIndentedApplication.pop();
|
|
10536
|
+
});
|
|
10537
|
+
function RestoreClassImplicitCall(state) {
|
|
10538
|
+
let eventData;
|
|
10539
|
+
if (state.events) {
|
|
10540
|
+
const result = state.events.enter?.("RestoreClassImplicitCall", state);
|
|
10541
|
+
if (result) {
|
|
10542
|
+
if (result.cache)
|
|
10543
|
+
return result.cache;
|
|
10544
|
+
eventData = result.data;
|
|
10545
|
+
}
|
|
10546
|
+
}
|
|
10547
|
+
if (state.tokenize) {
|
|
10548
|
+
const result = $TOKEN("RestoreClassImplicitCall", state, RestoreClassImplicitCall$0(state));
|
|
10549
|
+
if (state.events)
|
|
10550
|
+
state.events.exit?.("RestoreClassImplicitCall", state, result, eventData);
|
|
10551
|
+
return result;
|
|
10552
|
+
} else {
|
|
10553
|
+
const result = RestoreClassImplicitCall$0(state);
|
|
10554
|
+
if (state.events)
|
|
10555
|
+
state.events.exit?.("RestoreClassImplicitCall", state, result, eventData);
|
|
10556
|
+
return result;
|
|
10557
|
+
}
|
|
10558
|
+
}
|
|
10559
|
+
var ForbidIndentedApplication$0 = $TV($EXPECT($L0, fail, 'ForbidIndentedApplication ""'), function($skip, $loc, $0, $1) {
|
|
10344
10560
|
module2.forbidIndentedApplication.push(true);
|
|
10345
10561
|
});
|
|
10346
10562
|
function ForbidIndentedApplication(state) {
|
|
@@ -10365,7 +10581,7 @@ ${input.slice(result.pos)}
|
|
|
10365
10581
|
return result;
|
|
10366
10582
|
}
|
|
10367
10583
|
}
|
|
10368
|
-
var AllowIndentedApplication$0 = $TV($EXPECT($
|
|
10584
|
+
var AllowIndentedApplication$0 = $TV($EXPECT($L0, fail, 'AllowIndentedApplication ""'), function($skip, $loc, $0, $1) {
|
|
10369
10585
|
module2.forbidIndentedApplication.push(false);
|
|
10370
10586
|
});
|
|
10371
10587
|
function AllowIndentedApplication(state) {
|
|
@@ -10390,7 +10606,7 @@ ${input.slice(result.pos)}
|
|
|
10390
10606
|
return result;
|
|
10391
10607
|
}
|
|
10392
10608
|
}
|
|
10393
|
-
var RestoreIndentedApplication$0 = $TV($EXPECT($
|
|
10609
|
+
var RestoreIndentedApplication$0 = $TV($EXPECT($L0, fail, 'RestoreIndentedApplication ""'), function($skip, $loc, $0, $1) {
|
|
10394
10610
|
module2.forbidIndentedApplication.pop();
|
|
10395
10611
|
});
|
|
10396
10612
|
function RestoreIndentedApplication(state) {
|
|
@@ -10415,7 +10631,7 @@ ${input.slice(result.pos)}
|
|
|
10415
10631
|
return result;
|
|
10416
10632
|
}
|
|
10417
10633
|
}
|
|
10418
|
-
var IndentedApplicationAllowed$0 = $TV($EXPECT($
|
|
10634
|
+
var IndentedApplicationAllowed$0 = $TV($EXPECT($L0, fail, 'IndentedApplicationAllowed ""'), function($skip, $loc, $0, $1) {
|
|
10419
10635
|
if (module2.config.verbose) {
|
|
10420
10636
|
console.log("forbidIndentedApplication:", module2.forbidIndentedApplication);
|
|
10421
10637
|
}
|
|
@@ -10445,7 +10661,7 @@ ${input.slice(result.pos)}
|
|
|
10445
10661
|
return result;
|
|
10446
10662
|
}
|
|
10447
10663
|
}
|
|
10448
|
-
var ForbidTrailingMemberProperty$0 = $TV($EXPECT($
|
|
10664
|
+
var ForbidTrailingMemberProperty$0 = $TV($EXPECT($L0, fail, 'ForbidTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
|
|
10449
10665
|
module2.forbidTrailingMemberProperty.push(true);
|
|
10450
10666
|
});
|
|
10451
10667
|
function ForbidTrailingMemberProperty(state) {
|
|
@@ -10470,7 +10686,7 @@ ${input.slice(result.pos)}
|
|
|
10470
10686
|
return result;
|
|
10471
10687
|
}
|
|
10472
10688
|
}
|
|
10473
|
-
var AllowTrailingMemberProperty$0 = $TV($EXPECT($
|
|
10689
|
+
var AllowTrailingMemberProperty$0 = $TV($EXPECT($L0, fail, 'AllowTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
|
|
10474
10690
|
module2.forbidTrailingMemberProperty.push(false);
|
|
10475
10691
|
});
|
|
10476
10692
|
function AllowTrailingMemberProperty(state) {
|
|
@@ -10495,7 +10711,7 @@ ${input.slice(result.pos)}
|
|
|
10495
10711
|
return result;
|
|
10496
10712
|
}
|
|
10497
10713
|
}
|
|
10498
|
-
var RestoreTrailingMemberProperty$0 = $TV($EXPECT($
|
|
10714
|
+
var RestoreTrailingMemberProperty$0 = $TV($EXPECT($L0, fail, 'RestoreTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
|
|
10499
10715
|
module2.forbidTrailingMemberProperty.pop();
|
|
10500
10716
|
});
|
|
10501
10717
|
function RestoreTrailingMemberProperty(state) {
|
|
@@ -10520,7 +10736,7 @@ ${input.slice(result.pos)}
|
|
|
10520
10736
|
return result;
|
|
10521
10737
|
}
|
|
10522
10738
|
}
|
|
10523
|
-
var TrailingMemberPropertyAllowed$0 = $TV($EXPECT($
|
|
10739
|
+
var TrailingMemberPropertyAllowed$0 = $TV($EXPECT($L0, fail, 'TrailingMemberPropertyAllowed ""'), function($skip, $loc, $0, $1) {
|
|
10524
10740
|
if (module2.config.verbose) {
|
|
10525
10741
|
console.log("forbidTrailingMemberProperty:", module2.forbidTrailingMemberProperty);
|
|
10526
10742
|
}
|
|
@@ -10549,7 +10765,7 @@ ${input.slice(result.pos)}
|
|
|
10549
10765
|
return result;
|
|
10550
10766
|
}
|
|
10551
10767
|
}
|
|
10552
|
-
var ForbidMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($
|
|
10768
|
+
var ForbidMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($L0, fail, 'ForbidMultiLineImplicitObjectLiteral ""'), function($skip, $loc, $0, $1) {
|
|
10553
10769
|
module2.forbidMultiLineImplicitObjectLiteral.push(true);
|
|
10554
10770
|
});
|
|
10555
10771
|
function ForbidMultiLineImplicitObjectLiteral(state) {
|
|
@@ -10574,7 +10790,7 @@ ${input.slice(result.pos)}
|
|
|
10574
10790
|
return result;
|
|
10575
10791
|
}
|
|
10576
10792
|
}
|
|
10577
|
-
var AllowMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($
|
|
10793
|
+
var AllowMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($L0, fail, 'AllowMultiLineImplicitObjectLiteral ""'), function($skip, $loc, $0, $1) {
|
|
10578
10794
|
module2.forbidMultiLineImplicitObjectLiteral.push(false);
|
|
10579
10795
|
});
|
|
10580
10796
|
function AllowMultiLineImplicitObjectLiteral(state) {
|
|
@@ -10599,7 +10815,7 @@ ${input.slice(result.pos)}
|
|
|
10599
10815
|
return result;
|
|
10600
10816
|
}
|
|
10601
10817
|
}
|
|
10602
|
-
var RestoreMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($
|
|
10818
|
+
var RestoreMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($L0, fail, 'RestoreMultiLineImplicitObjectLiteral ""'), function($skip, $loc, $0, $1) {
|
|
10603
10819
|
module2.forbidMultiLineImplicitObjectLiteral.pop();
|
|
10604
10820
|
});
|
|
10605
10821
|
function RestoreMultiLineImplicitObjectLiteral(state) {
|
|
@@ -10624,7 +10840,7 @@ ${input.slice(result.pos)}
|
|
|
10624
10840
|
return result;
|
|
10625
10841
|
}
|
|
10626
10842
|
}
|
|
10627
|
-
var MultiLineImplicitObjectLiteralAllowed$0 = $TV($EXPECT($
|
|
10843
|
+
var MultiLineImplicitObjectLiteralAllowed$0 = $TV($EXPECT($L0, fail, 'MultiLineImplicitObjectLiteralAllowed ""'), function($skip, $loc, $0, $1) {
|
|
10628
10844
|
if (module2.config.verbose) {
|
|
10629
10845
|
console.log("forbidMultiLineImplicitObjectLiteral:", module2.forbidMultiLineImplicitObjectLiteral);
|
|
10630
10846
|
}
|
|
@@ -10653,7 +10869,7 @@ ${input.slice(result.pos)}
|
|
|
10653
10869
|
return result;
|
|
10654
10870
|
}
|
|
10655
10871
|
}
|
|
10656
|
-
var AllowAll$0 = $S(AllowTrailingMemberProperty, AllowIndentedApplication, AllowMultiLineImplicitObjectLiteral);
|
|
10872
|
+
var AllowAll$0 = $S(AllowTrailingMemberProperty, AllowIndentedApplication, AllowMultiLineImplicitObjectLiteral, AllowClassImplicitCall);
|
|
10657
10873
|
function AllowAll(state) {
|
|
10658
10874
|
let eventData;
|
|
10659
10875
|
if (state.events) {
|
|
@@ -10676,7 +10892,7 @@ ${input.slice(result.pos)}
|
|
|
10676
10892
|
return result;
|
|
10677
10893
|
}
|
|
10678
10894
|
}
|
|
10679
|
-
var RestoreAll$0 = $S(RestoreTrailingMemberProperty, RestoreIndentedApplication, RestoreMultiLineImplicitObjectLiteral);
|
|
10895
|
+
var RestoreAll$0 = $S(RestoreTrailingMemberProperty, RestoreIndentedApplication, RestoreMultiLineImplicitObjectLiteral, RestoreClassImplicitCall);
|
|
10680
10896
|
function RestoreAll(state) {
|
|
10681
10897
|
let eventData;
|
|
10682
10898
|
if (state.events) {
|
|
@@ -10738,7 +10954,7 @@ ${input.slice(result.pos)}
|
|
|
10738
10954
|
var KeywordStatement$2 = $T($S(Debugger), function(value) {
|
|
10739
10955
|
return { "type": "DebuggerStatement", "children": value };
|
|
10740
10956
|
});
|
|
10741
|
-
var KeywordStatement$3 = $T($S(Return, $N($C($EXPECT($
|
|
10957
|
+
var KeywordStatement$3 = $T($S(Return, $N($C($EXPECT($L5, fail, 'KeywordStatement "."'), AfterReturnShorthand)), $E(MaybeNestedExpression)), function(value) {
|
|
10742
10958
|
var expression = value[2];
|
|
10743
10959
|
return { "type": "ReturnStatement", "expression": expression, "children": value };
|
|
10744
10960
|
});
|
|
@@ -10928,10 +11144,14 @@ ${input.slice(result.pos)}
|
|
|
10928
11144
|
}
|
|
10929
11145
|
}
|
|
10930
11146
|
var ImportDeclaration$0 = $T($S(Import, __, TypeKeyword, __, ImportClause, __, FromClause, $E(ImportAssertion)), function(value) {
|
|
10931
|
-
return { "ts": true, "children": value };
|
|
11147
|
+
return { "type": "ImportDeclaration", "ts": true, "children": value };
|
|
11148
|
+
});
|
|
11149
|
+
var ImportDeclaration$1 = $T($S(Import, __, ImportClause, __, FromClause, $E(ImportAssertion)), function(value) {
|
|
11150
|
+
return { "type": "ImportDeclaration", "children": value };
|
|
11151
|
+
});
|
|
11152
|
+
var ImportDeclaration$2 = $T($S(Import, __, ModuleSpecifier, $E(ImportAssertion)), function(value) {
|
|
11153
|
+
return { "type": "ImportDeclaration", "children": value };
|
|
10932
11154
|
});
|
|
10933
|
-
var ImportDeclaration$1 = $S(Import, __, ImportClause, __, FromClause, $E(ImportAssertion));
|
|
10934
|
-
var ImportDeclaration$2 = $S(Import, __, ModuleSpecifier, $E(ImportAssertion));
|
|
10935
11155
|
var ImportDeclaration$3 = $TS($S(ImpliedImport, $E($S(TypeKeyword, __)), ImportClause, __, FromClause, $E(ImportAssertion)), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
10936
11156
|
var i = $1;
|
|
10937
11157
|
var t = $2;
|
|
@@ -10946,7 +11166,7 @@ ${input.slice(result.pos)}
|
|
|
10946
11166
|
const children = [i, t, c, w, f, a];
|
|
10947
11167
|
if (!t)
|
|
10948
11168
|
return children;
|
|
10949
|
-
return { ts: true, children };
|
|
11169
|
+
return { type: "ImportDeclaration", ts: true, children };
|
|
10950
11170
|
});
|
|
10951
11171
|
function ImportDeclaration(state) {
|
|
10952
11172
|
let eventData;
|
|
@@ -10970,7 +11190,7 @@ ${input.slice(result.pos)}
|
|
|
10970
11190
|
return result;
|
|
10971
11191
|
}
|
|
10972
11192
|
}
|
|
10973
|
-
var ImpliedImport$0 = $TV($EXPECT($
|
|
11193
|
+
var ImpliedImport$0 = $TV($EXPECT($L0, fail, 'ImpliedImport ""'), function($skip, $loc, $0, $1) {
|
|
10974
11194
|
return { $loc, token: "import " };
|
|
10975
11195
|
});
|
|
10976
11196
|
function ImpliedImport(state) {
|
|
@@ -11222,7 +11442,7 @@ ${input.slice(result.pos)}
|
|
|
11222
11442
|
}
|
|
11223
11443
|
}
|
|
11224
11444
|
var ImportAsToken$0 = $S(__, As);
|
|
11225
|
-
var ImportAsToken$1 = $TS($S(Loc, __, Colon, $E($EXPECT($
|
|
11445
|
+
var ImportAsToken$1 = $TS($S(Loc, __, Colon, $E($EXPECT($L9, fail, 'ImportAsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
11226
11446
|
var l = $1;
|
|
11227
11447
|
var ws = $2;
|
|
11228
11448
|
var c = $3;
|
|
@@ -11384,16 +11604,15 @@ ${input.slice(result.pos)}
|
|
|
11384
11604
|
return result;
|
|
11385
11605
|
}
|
|
11386
11606
|
}
|
|
11387
|
-
var ExportDeclaration$0 = $S(Export, __, Default, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression))
|
|
11607
|
+
var ExportDeclaration$0 = $TS($S(Export, __, Default, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression)), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
11608
|
+
return { type: "ExportDeclaration", children: $0 };
|
|
11609
|
+
});
|
|
11388
11610
|
var ExportDeclaration$1 = $TS($S(Export, __, ExportFromClause, __, FromClause), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
11389
|
-
|
|
11390
|
-
return $0;
|
|
11391
|
-
return { ts: true, children: $0 };
|
|
11611
|
+
return { type: "ExportDeclaration", ts: $3.ts, children: $0 };
|
|
11392
11612
|
});
|
|
11393
|
-
var ExportDeclaration$2 = $TS($S(Export, __, $C(Declaration, VariableStatement, TypeAndNamedExports, ExportVarDec)), function($skip, $loc, $0, $1, $2, $3) {
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
return { ts: true, children: $0 };
|
|
11613
|
+
var ExportDeclaration$2 = $TS($S($E(Decorators), Export, __, $C(Declaration, VariableStatement, TypeAndNamedExports, ExportVarDec)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
11614
|
+
var decl = $4;
|
|
11615
|
+
return { type: "ExportDeclaration", ts: decl.ts, children: $0 };
|
|
11397
11616
|
});
|
|
11398
11617
|
function ExportDeclaration(state) {
|
|
11399
11618
|
let eventData;
|
|
@@ -13364,7 +13583,7 @@ ${input.slice(result.pos)}
|
|
|
13364
13583
|
}
|
|
13365
13584
|
}
|
|
13366
13585
|
var StatementDelimiter$0 = SemicolonDelimiter;
|
|
13367
|
-
var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($
|
|
13586
|
+
var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L3, fail, 'StatementDelimiter "("'), $EXPECT($L97, fail, 'StatementDelimiter "["'), $EXPECT($L98, fail, 'StatementDelimiter "`"'), $EXPECT($L58, fail, 'StatementDelimiter "+"'), $EXPECT($L18, fail, 'StatementDelimiter "-"'), $EXPECT($L54, fail, 'StatementDelimiter "*"'), $EXPECT($L55, fail, 'StatementDelimiter "/"'), ObjectLiteral, Arrow, FatArrow, $S(Function, $E($S($E(_), Star)), $E(_), $EXPECT($L3, fail, 'StatementDelimiter "("'))))), InsertSemicolon);
|
|
13368
13587
|
var StatementDelimiter$2 = $Y(EOS);
|
|
13369
13588
|
function StatementDelimiter(state) {
|
|
13370
13589
|
let eventData;
|
|
@@ -13439,7 +13658,7 @@ ${input.slice(result.pos)}
|
|
|
13439
13658
|
return result;
|
|
13440
13659
|
}
|
|
13441
13660
|
}
|
|
13442
|
-
var Loc$0 = $TV($EXPECT($
|
|
13661
|
+
var Loc$0 = $TV($EXPECT($L0, fail, 'Loc ""'), function($skip, $loc, $0, $1) {
|
|
13443
13662
|
return { $loc, token: "" };
|
|
13444
13663
|
});
|
|
13445
13664
|
function Loc(state) {
|
|
@@ -13464,7 +13683,7 @@ ${input.slice(result.pos)}
|
|
|
13464
13683
|
return result;
|
|
13465
13684
|
}
|
|
13466
13685
|
}
|
|
13467
|
-
var Abstract$0 = $TV($TEXT($S($EXPECT($L99, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($
|
|
13686
|
+
var Abstract$0 = $TV($TEXT($S($EXPECT($L99, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L9, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
|
|
13468
13687
|
return { $loc, token: $1, ts: true };
|
|
13469
13688
|
});
|
|
13470
13689
|
function Abstract(state) {
|
|
@@ -14039,7 +14258,7 @@ ${input.slice(result.pos)}
|
|
|
14039
14258
|
return result;
|
|
14040
14259
|
}
|
|
14041
14260
|
}
|
|
14042
|
-
var Dot$0 = $TV($EXPECT($
|
|
14261
|
+
var Dot$0 = $TV($EXPECT($L5, fail, 'Dot "."'), function($skip, $loc, $0, $1) {
|
|
14043
14262
|
return { $loc, token: $1 };
|
|
14044
14263
|
});
|
|
14045
14264
|
function Dot(state) {
|
|
@@ -14064,7 +14283,7 @@ ${input.slice(result.pos)}
|
|
|
14064
14283
|
return result;
|
|
14065
14284
|
}
|
|
14066
14285
|
}
|
|
14067
|
-
var DotDot$0 = $TS($S($EXPECT($L114, fail, 'DotDot ".."'), $N($EXPECT($
|
|
14286
|
+
var DotDot$0 = $TS($S($EXPECT($L114, fail, 'DotDot ".."'), $N($EXPECT($L5, fail, 'DotDot "."'))), function($skip, $loc, $0, $1, $2) {
|
|
14068
14287
|
return { $loc, token: $1 };
|
|
14069
14288
|
});
|
|
14070
14289
|
function DotDot(state) {
|
|
@@ -14189,7 +14408,7 @@ ${input.slice(result.pos)}
|
|
|
14189
14408
|
return result;
|
|
14190
14409
|
}
|
|
14191
14410
|
}
|
|
14192
|
-
var Equals$0 = $TV($EXPECT($
|
|
14411
|
+
var Equals$0 = $TV($EXPECT($L2, fail, 'Equals "="'), function($skip, $loc, $0, $1) {
|
|
14193
14412
|
return { $loc, token: $1 };
|
|
14194
14413
|
});
|
|
14195
14414
|
function Equals(state) {
|
|
@@ -14389,7 +14608,7 @@ ${input.slice(result.pos)}
|
|
|
14389
14608
|
return result;
|
|
14390
14609
|
}
|
|
14391
14610
|
}
|
|
14392
|
-
var If$0 = $TV($TEXT($S($EXPECT($L127, fail, 'If "if"'), NonIdContinue, $E($EXPECT($
|
|
14611
|
+
var If$0 = $TV($TEXT($S($EXPECT($L127, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L9, fail, 'If " "')))), function($skip, $loc, $0, $1) {
|
|
14393
14612
|
return { $loc, token: $1 };
|
|
14394
14613
|
});
|
|
14395
14614
|
function If(state) {
|
|
@@ -14414,7 +14633,7 @@ ${input.slice(result.pos)}
|
|
|
14414
14633
|
return result;
|
|
14415
14634
|
}
|
|
14416
14635
|
}
|
|
14417
|
-
var Import$0 = $TS($S($EXPECT($
|
|
14636
|
+
var Import$0 = $TS($S($EXPECT($L14, fail, 'Import "import"'), $Y($EXPECT($R49, fail, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
|
|
14418
14637
|
return { $loc, token: $1 };
|
|
14419
14638
|
});
|
|
14420
14639
|
function Import(state) {
|
|
@@ -14588,7 +14807,7 @@ ${input.slice(result.pos)}
|
|
|
14588
14807
|
return result;
|
|
14589
14808
|
}
|
|
14590
14809
|
}
|
|
14591
|
-
var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L52, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($
|
|
14810
|
+
var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L52, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($L9, fail, 'Not " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
14592
14811
|
return { $loc, token: "!" };
|
|
14593
14812
|
});
|
|
14594
14813
|
function Not(state) {
|
|
@@ -14713,7 +14932,7 @@ ${input.slice(result.pos)}
|
|
|
14713
14932
|
return result;
|
|
14714
14933
|
}
|
|
14715
14934
|
}
|
|
14716
|
-
var OpenParen$0 = $TV($EXPECT($
|
|
14935
|
+
var OpenParen$0 = $TV($EXPECT($L3, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
|
|
14717
14936
|
return { $loc, token: $1 };
|
|
14718
14937
|
});
|
|
14719
14938
|
function OpenParen(state) {
|
|
@@ -14869,7 +15088,7 @@ ${input.slice(result.pos)}
|
|
|
14869
15088
|
return result;
|
|
14870
15089
|
}
|
|
14871
15090
|
}
|
|
14872
|
-
var QuestionMark$0 = $TV($EXPECT($
|
|
15091
|
+
var QuestionMark$0 = $TV($EXPECT($L4, fail, 'QuestionMark "?"'), function($skip, $loc, $0, $1) {
|
|
14873
15092
|
return { $loc, token: $1 };
|
|
14874
15093
|
});
|
|
14875
15094
|
function QuestionMark(state) {
|
|
@@ -15047,7 +15266,7 @@ ${input.slice(result.pos)}
|
|
|
15047
15266
|
var Static$0 = $TS($S($EXPECT($L145, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
15048
15267
|
return { $loc, token: $1 };
|
|
15049
15268
|
});
|
|
15050
|
-
var Static$1 = $TS($S($EXPECT($L101, fail, 'Static "@"'), $N($C($EXPECT($
|
|
15269
|
+
var Static$1 = $TS($S($EXPECT($L101, fail, 'Static "@"'), $N($C($EXPECT($L3, fail, 'Static "("'), $EXPECT($L101, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
|
|
15051
15270
|
return { $loc, token: "static " };
|
|
15052
15271
|
});
|
|
15053
15272
|
function Static(state) {
|
|
@@ -15718,7 +15937,7 @@ ${input.slice(result.pos)}
|
|
|
15718
15937
|
return result;
|
|
15719
15938
|
}
|
|
15720
15939
|
}
|
|
15721
|
-
var PopJSXStack$0 = $TV($EXPECT($
|
|
15940
|
+
var PopJSXStack$0 = $TV($EXPECT($L0, fail, 'PopJSXStack ""'), function($skip, $loc, $0, $1) {
|
|
15722
15941
|
module2.JSXTagStack.pop();
|
|
15723
15942
|
});
|
|
15724
15943
|
function PopJSXStack(state) {
|
|
@@ -15772,7 +15991,7 @@ ${input.slice(result.pos)}
|
|
|
15772
15991
|
return $skip;
|
|
15773
15992
|
return $0;
|
|
15774
15993
|
});
|
|
15775
|
-
var JSXOptionalClosingElement$1 = $EXPECT($
|
|
15994
|
+
var JSXOptionalClosingElement$1 = $EXPECT($L0, fail, 'JSXOptionalClosingElement ""');
|
|
15776
15995
|
function JSXOptionalClosingElement(state) {
|
|
15777
15996
|
let eventData;
|
|
15778
15997
|
if (state.events) {
|
|
@@ -15895,7 +16114,7 @@ ${input.slice(result.pos)}
|
|
|
15895
16114
|
return $skip;
|
|
15896
16115
|
return $0;
|
|
15897
16116
|
});
|
|
15898
|
-
var JSXOptionalClosingFragment$1 = $EXPECT($
|
|
16117
|
+
var JSXOptionalClosingFragment$1 = $EXPECT($L0, fail, 'JSXOptionalClosingFragment ""');
|
|
15899
16118
|
function JSXOptionalClosingFragment(state) {
|
|
15900
16119
|
let eventData;
|
|
15901
16120
|
if (state.events) {
|
|
@@ -16143,7 +16362,7 @@ ${input.slice(result.pos)}
|
|
|
16143
16362
|
}
|
|
16144
16363
|
});
|
|
16145
16364
|
var JSXAttribute$2 = $S(InsertInlineOpenBrace, DotDotDot, InlineJSXAttributeValue, InsertCloseBrace, $Y(JSXAttributeSpace));
|
|
16146
|
-
var JSXAttribute$3 = $TS($S($EXPECT($
|
|
16365
|
+
var JSXAttribute$3 = $TS($S($EXPECT($L12, fail, 'JSXAttribute "#"'), JSXShorthandString), function($skip, $loc, $0, $1, $2) {
|
|
16147
16366
|
return [" ", "id=", $2];
|
|
16148
16367
|
});
|
|
16149
16368
|
var JSXAttribute$4 = $TS($S(Dot, JSXShorthandString), function($skip, $loc, $0, $1, $2) {
|
|
@@ -16470,8 +16689,8 @@ ${input.slice(result.pos)}
|
|
|
16470
16689
|
return result;
|
|
16471
16690
|
}
|
|
16472
16691
|
}
|
|
16473
|
-
var InlineJSXCallExpression$0 = $S($EXPECT($
|
|
16474
|
-
var InlineJSXCallExpression$1 = $S($EXPECT($
|
|
16692
|
+
var InlineJSXCallExpression$0 = $S($EXPECT($L13, fail, 'InlineJSXCallExpression "super"'), ExplicitArguments);
|
|
16693
|
+
var InlineJSXCallExpression$1 = $S($EXPECT($L14, fail, 'InlineJSXCallExpression "import"'), OpenParen, PostfixedExpression, __, CloseParen);
|
|
16475
16694
|
var InlineJSXCallExpression$2 = $TS($S(InlineJSXMemberExpression, $Q(InlineJSXCallExpressionRest)), function($skip, $loc, $0, $1, $2) {
|
|
16476
16695
|
if ($2.length)
|
|
16477
16696
|
return $0;
|
|
@@ -17567,7 +17786,7 @@ ${input.slice(result.pos)}
|
|
|
17567
17786
|
return result;
|
|
17568
17787
|
}
|
|
17569
17788
|
}
|
|
17570
|
-
var DeclareElement$0 = $T($S($E($S(Export, $E(_))), TypeLexicalDeclaration), function(value) {
|
|
17789
|
+
var DeclareElement$0 = $T($S($E(Decorators), $E($S(Export, $E(_))), TypeLexicalDeclaration), function(value) {
|
|
17571
17790
|
return { "ts": true, "children": value };
|
|
17572
17791
|
});
|
|
17573
17792
|
var DeclareElement$1 = $T($S($E($S(Export, $E(_))), TypeDeclarationRest), function(value) {
|
|
@@ -17616,7 +17835,7 @@ ${input.slice(result.pos)}
|
|
|
17616
17835
|
let init, isString;
|
|
17617
17836
|
if (property.init) {
|
|
17618
17837
|
init = module2.replaceNodes(
|
|
17619
|
-
|
|
17838
|
+
module2.deepCopy(property.init),
|
|
17620
17839
|
(n) => n.type === "Identifier" && names.has(n.name),
|
|
17621
17840
|
(n) => [id, '["', n.name, '"]']
|
|
17622
17841
|
);
|
|
@@ -18155,8 +18374,8 @@ ${input.slice(result.pos)}
|
|
|
18155
18374
|
return result;
|
|
18156
18375
|
}
|
|
18157
18376
|
}
|
|
18158
|
-
var ImportType$0 = $S($EXPECT($
|
|
18159
|
-
var ImportType$1 = $S($EXPECT($
|
|
18377
|
+
var ImportType$0 = $S($EXPECT($L14, fail, 'ImportType "import"'), OpenParen, __, StringLiteral, __, CloseParen, $E($S(Dot, IdentifierName)), $E(TypeArguments));
|
|
18378
|
+
var ImportType$1 = $S($EXPECT($L14, fail, 'ImportType "import"'), InsertOpenParen, Trimmed_, StringLiteral, InsertCloseParen);
|
|
18160
18379
|
function ImportType(state) {
|
|
18161
18380
|
let eventData;
|
|
18162
18381
|
if (state.events) {
|
|
@@ -18465,7 +18684,7 @@ ${input.slice(result.pos)}
|
|
|
18465
18684
|
return result;
|
|
18466
18685
|
}
|
|
18467
18686
|
}
|
|
18468
|
-
var TypeArrowFunction$0 = $TV($EXPECT($
|
|
18687
|
+
var TypeArrowFunction$0 = $TV($EXPECT($L8, fail, 'TypeArrowFunction "=>"'), function($skip, $loc, $0, $1) {
|
|
18469
18688
|
return { $loc, token: "=>" };
|
|
18470
18689
|
});
|
|
18471
18690
|
var TypeArrowFunction$1 = $TV($EXPECT($L21, fail, 'TypeArrowFunction "->"'), function($skip, $loc, $0, $1) {
|
|
@@ -18641,7 +18860,7 @@ ${input.slice(result.pos)}
|
|
|
18641
18860
|
return result;
|
|
18642
18861
|
}
|
|
18643
18862
|
}
|
|
18644
|
-
var TypeInitializer$0 = $S(__, $EXPECT($
|
|
18863
|
+
var TypeInitializer$0 = $S(__, $EXPECT($L2, fail, 'TypeInitializer "="'), Type);
|
|
18645
18864
|
function TypeInitializer(state) {
|
|
18646
18865
|
let eventData;
|
|
18647
18866
|
if (state.events) {
|
|
@@ -18930,7 +19149,7 @@ ${input.slice(result.pos)}
|
|
|
18930
19149
|
return result;
|
|
18931
19150
|
}
|
|
18932
19151
|
}
|
|
18933
|
-
var DebugHere$0 = $TV($EXPECT($
|
|
19152
|
+
var DebugHere$0 = $TV($EXPECT($L0, fail, 'DebugHere ""'), function($skip, $loc, $0, $1) {
|
|
18934
19153
|
debugger;
|
|
18935
19154
|
});
|
|
18936
19155
|
function DebugHere(state) {
|
|
@@ -18955,7 +19174,7 @@ ${input.slice(result.pos)}
|
|
|
18955
19174
|
return result;
|
|
18956
19175
|
}
|
|
18957
19176
|
}
|
|
18958
|
-
var InsertSemicolon$0 = $TV($EXPECT($
|
|
19177
|
+
var InsertSemicolon$0 = $TV($EXPECT($L0, fail, 'InsertSemicolon ""'), function($skip, $loc, $0, $1) {
|
|
18959
19178
|
return { $loc, token: ";" };
|
|
18960
19179
|
});
|
|
18961
19180
|
function InsertSemicolon(state) {
|
|
@@ -18980,7 +19199,7 @@ ${input.slice(result.pos)}
|
|
|
18980
19199
|
return result;
|
|
18981
19200
|
}
|
|
18982
19201
|
}
|
|
18983
|
-
var InsertOpenParen$0 = $TV($EXPECT($
|
|
19202
|
+
var InsertOpenParen$0 = $TV($EXPECT($L0, fail, 'InsertOpenParen ""'), function($skip, $loc, $0, $1) {
|
|
18984
19203
|
return { $loc, token: "(" };
|
|
18985
19204
|
});
|
|
18986
19205
|
function InsertOpenParen(state) {
|
|
@@ -19005,7 +19224,7 @@ ${input.slice(result.pos)}
|
|
|
19005
19224
|
return result;
|
|
19006
19225
|
}
|
|
19007
19226
|
}
|
|
19008
|
-
var InsertCloseParen$0 = $TV($EXPECT($
|
|
19227
|
+
var InsertCloseParen$0 = $TV($EXPECT($L0, fail, 'InsertCloseParen ""'), function($skip, $loc, $0, $1) {
|
|
19009
19228
|
return { $loc, token: ")" };
|
|
19010
19229
|
});
|
|
19011
19230
|
function InsertCloseParen(state) {
|
|
@@ -19030,7 +19249,7 @@ ${input.slice(result.pos)}
|
|
|
19030
19249
|
return result;
|
|
19031
19250
|
}
|
|
19032
19251
|
}
|
|
19033
|
-
var InsertOpenBrace$0 = $TV($EXPECT($
|
|
19252
|
+
var InsertOpenBrace$0 = $TV($EXPECT($L0, fail, 'InsertOpenBrace ""'), function($skip, $loc, $0, $1) {
|
|
19034
19253
|
return [{ $loc, token: " " }, { $loc, token: "{" }];
|
|
19035
19254
|
});
|
|
19036
19255
|
function InsertOpenBrace(state) {
|
|
@@ -19055,7 +19274,7 @@ ${input.slice(result.pos)}
|
|
|
19055
19274
|
return result;
|
|
19056
19275
|
}
|
|
19057
19276
|
}
|
|
19058
|
-
var InsertInlineOpenBrace$0 = $TV($EXPECT($
|
|
19277
|
+
var InsertInlineOpenBrace$0 = $TV($EXPECT($L0, fail, 'InsertInlineOpenBrace ""'), function($skip, $loc, $0, $1) {
|
|
19059
19278
|
return { $loc, token: "{" };
|
|
19060
19279
|
});
|
|
19061
19280
|
function InsertInlineOpenBrace(state) {
|
|
@@ -19080,7 +19299,7 @@ ${input.slice(result.pos)}
|
|
|
19080
19299
|
return result;
|
|
19081
19300
|
}
|
|
19082
19301
|
}
|
|
19083
|
-
var InsertCloseBrace$0 = $TV($EXPECT($
|
|
19302
|
+
var InsertCloseBrace$0 = $TV($EXPECT($L0, fail, 'InsertCloseBrace ""'), function($skip, $loc, $0, $1) {
|
|
19084
19303
|
return { $loc, token: "}" };
|
|
19085
19304
|
});
|
|
19086
19305
|
function InsertCloseBrace(state) {
|
|
@@ -19105,7 +19324,7 @@ ${input.slice(result.pos)}
|
|
|
19105
19324
|
return result;
|
|
19106
19325
|
}
|
|
19107
19326
|
}
|
|
19108
|
-
var InsertOpenBracket$0 = $TV($EXPECT($
|
|
19327
|
+
var InsertOpenBracket$0 = $TV($EXPECT($L0, fail, 'InsertOpenBracket ""'), function($skip, $loc, $0, $1) {
|
|
19109
19328
|
return { $loc, token: "[" };
|
|
19110
19329
|
});
|
|
19111
19330
|
function InsertOpenBracket(state) {
|
|
@@ -19130,7 +19349,7 @@ ${input.slice(result.pos)}
|
|
|
19130
19349
|
return result;
|
|
19131
19350
|
}
|
|
19132
19351
|
}
|
|
19133
|
-
var InsertCloseBracket$0 = $TV($EXPECT($
|
|
19352
|
+
var InsertCloseBracket$0 = $TV($EXPECT($L0, fail, 'InsertCloseBracket ""'), function($skip, $loc, $0, $1) {
|
|
19134
19353
|
return { $loc, token: "]" };
|
|
19135
19354
|
});
|
|
19136
19355
|
function InsertCloseBracket(state) {
|
|
@@ -19155,7 +19374,7 @@ ${input.slice(result.pos)}
|
|
|
19155
19374
|
return result;
|
|
19156
19375
|
}
|
|
19157
19376
|
}
|
|
19158
|
-
var InsertComma$0 = $TV($EXPECT($
|
|
19377
|
+
var InsertComma$0 = $TV($EXPECT($L0, fail, 'InsertComma ""'), function($skip, $loc, $0, $1) {
|
|
19159
19378
|
return { $loc, token: "," };
|
|
19160
19379
|
});
|
|
19161
19380
|
function InsertComma(state) {
|
|
@@ -19180,7 +19399,7 @@ ${input.slice(result.pos)}
|
|
|
19180
19399
|
return result;
|
|
19181
19400
|
}
|
|
19182
19401
|
}
|
|
19183
|
-
var InsertConst$0 = $TV($EXPECT($
|
|
19402
|
+
var InsertConst$0 = $TV($EXPECT($L0, fail, 'InsertConst ""'), function($skip, $loc, $0, $1) {
|
|
19184
19403
|
return { $loc, token: "const " };
|
|
19185
19404
|
});
|
|
19186
19405
|
function InsertConst(state) {
|
|
@@ -19205,7 +19424,7 @@ ${input.slice(result.pos)}
|
|
|
19205
19424
|
return result;
|
|
19206
19425
|
}
|
|
19207
19426
|
}
|
|
19208
|
-
var InsertLet$0 = $TV($EXPECT($
|
|
19427
|
+
var InsertLet$0 = $TV($EXPECT($L0, fail, 'InsertLet ""'), function($skip, $loc, $0, $1) {
|
|
19209
19428
|
return { $loc, token: "let " };
|
|
19210
19429
|
});
|
|
19211
19430
|
function InsertLet(state) {
|
|
@@ -19230,7 +19449,7 @@ ${input.slice(result.pos)}
|
|
|
19230
19449
|
return result;
|
|
19231
19450
|
}
|
|
19232
19451
|
}
|
|
19233
|
-
var InsertReadonly$0 = $TV($EXPECT($
|
|
19452
|
+
var InsertReadonly$0 = $TV($EXPECT($L0, fail, 'InsertReadonly ""'), function($skip, $loc, $0, $1) {
|
|
19234
19453
|
return { ts: true, children: [{ $loc, token: "readonly " }] };
|
|
19235
19454
|
});
|
|
19236
19455
|
function InsertReadonly(state) {
|
|
@@ -19255,7 +19474,7 @@ ${input.slice(result.pos)}
|
|
|
19255
19474
|
return result;
|
|
19256
19475
|
}
|
|
19257
19476
|
}
|
|
19258
|
-
var InsertNewline$0 = $TV($EXPECT($
|
|
19477
|
+
var InsertNewline$0 = $TV($EXPECT($L0, fail, 'InsertNewline ""'), function($skip, $loc, $0, $1) {
|
|
19259
19478
|
return "\n";
|
|
19260
19479
|
});
|
|
19261
19480
|
function InsertNewline(state) {
|
|
@@ -19280,7 +19499,7 @@ ${input.slice(result.pos)}
|
|
|
19280
19499
|
return result;
|
|
19281
19500
|
}
|
|
19282
19501
|
}
|
|
19283
|
-
var InsertIndent$0 = $TV($EXPECT($
|
|
19502
|
+
var InsertIndent$0 = $TV($EXPECT($L0, fail, 'InsertIndent ""'), function($skip, $loc, $0, $1) {
|
|
19284
19503
|
return module2.currentIndent.token;
|
|
19285
19504
|
});
|
|
19286
19505
|
function InsertIndent(state) {
|
|
@@ -19305,7 +19524,7 @@ ${input.slice(result.pos)}
|
|
|
19305
19524
|
return result;
|
|
19306
19525
|
}
|
|
19307
19526
|
}
|
|
19308
|
-
var InsertSpace$0 = $TV($EXPECT($
|
|
19527
|
+
var InsertSpace$0 = $TV($EXPECT($L0, fail, 'InsertSpace ""'), function($skip, $loc, $0, $1) {
|
|
19309
19528
|
return { $loc, token: " " };
|
|
19310
19529
|
});
|
|
19311
19530
|
function InsertSpace(state) {
|
|
@@ -19330,7 +19549,7 @@ ${input.slice(result.pos)}
|
|
|
19330
19549
|
return result;
|
|
19331
19550
|
}
|
|
19332
19551
|
}
|
|
19333
|
-
var InsertDot$0 = $TV($EXPECT($
|
|
19552
|
+
var InsertDot$0 = $TV($EXPECT($L0, fail, 'InsertDot ""'), function($skip, $loc, $0, $1) {
|
|
19334
19553
|
return { $loc, token: "." };
|
|
19335
19554
|
});
|
|
19336
19555
|
function InsertDot(state) {
|
|
@@ -19355,7 +19574,7 @@ ${input.slice(result.pos)}
|
|
|
19355
19574
|
return result;
|
|
19356
19575
|
}
|
|
19357
19576
|
}
|
|
19358
|
-
var InsertBreak$0 = $TV($EXPECT($
|
|
19577
|
+
var InsertBreak$0 = $TV($EXPECT($L0, fail, 'InsertBreak ""'), function($skip, $loc, $0, $1) {
|
|
19359
19578
|
return { $loc, token: ";break;" };
|
|
19360
19579
|
});
|
|
19361
19580
|
function InsertBreak(state) {
|
|
@@ -19380,7 +19599,7 @@ ${input.slice(result.pos)}
|
|
|
19380
19599
|
return result;
|
|
19381
19600
|
}
|
|
19382
19601
|
}
|
|
19383
|
-
var InsertVar$0 = $TV($EXPECT($
|
|
19602
|
+
var InsertVar$0 = $TV($EXPECT($L0, fail, 'InsertVar ""'), function($skip, $loc, $0, $1) {
|
|
19384
19603
|
return { $loc, token: "var " };
|
|
19385
19604
|
});
|
|
19386
19605
|
function InsertVar(state) {
|
|
@@ -19405,7 +19624,7 @@ ${input.slice(result.pos)}
|
|
|
19405
19624
|
return result;
|
|
19406
19625
|
}
|
|
19407
19626
|
}
|
|
19408
|
-
var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($
|
|
19627
|
+
var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeBinaryExistentialEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19409
19628
|
if (module2.config.coffeeBinaryExistential)
|
|
19410
19629
|
return;
|
|
19411
19630
|
return $skip;
|
|
@@ -19432,7 +19651,7 @@ ${input.slice(result.pos)}
|
|
|
19432
19651
|
return result;
|
|
19433
19652
|
}
|
|
19434
19653
|
}
|
|
19435
|
-
var CoffeeBooleansEnabled$0 = $TV($EXPECT($
|
|
19654
|
+
var CoffeeBooleansEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeBooleansEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19436
19655
|
if (module2.config.coffeeBooleans)
|
|
19437
19656
|
return;
|
|
19438
19657
|
return $skip;
|
|
@@ -19459,7 +19678,7 @@ ${input.slice(result.pos)}
|
|
|
19459
19678
|
return result;
|
|
19460
19679
|
}
|
|
19461
19680
|
}
|
|
19462
|
-
var CoffeeClassesEnabled$0 = $TV($EXPECT($
|
|
19681
|
+
var CoffeeClassesEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeClassesEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19463
19682
|
if (module2.config.coffeeClasses)
|
|
19464
19683
|
return;
|
|
19465
19684
|
return $skip;
|
|
@@ -19486,7 +19705,7 @@ ${input.slice(result.pos)}
|
|
|
19486
19705
|
return result;
|
|
19487
19706
|
}
|
|
19488
19707
|
}
|
|
19489
|
-
var CoffeeCommentEnabled$0 = $TV($EXPECT($
|
|
19708
|
+
var CoffeeCommentEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeCommentEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19490
19709
|
if (module2.config.coffeeComment)
|
|
19491
19710
|
return;
|
|
19492
19711
|
return $skip;
|
|
@@ -19513,7 +19732,7 @@ ${input.slice(result.pos)}
|
|
|
19513
19732
|
return result;
|
|
19514
19733
|
}
|
|
19515
19734
|
}
|
|
19516
|
-
var CoffeeDoEnabled$0 = $TV($EXPECT($
|
|
19735
|
+
var CoffeeDoEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeDoEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19517
19736
|
if (module2.config.coffeeDo)
|
|
19518
19737
|
return;
|
|
19519
19738
|
return $skip;
|
|
@@ -19540,7 +19759,7 @@ ${input.slice(result.pos)}
|
|
|
19540
19759
|
return result;
|
|
19541
19760
|
}
|
|
19542
19761
|
}
|
|
19543
|
-
var CoffeeForLoopsEnabled$0 = $TV($EXPECT($
|
|
19762
|
+
var CoffeeForLoopsEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeForLoopsEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19544
19763
|
if (module2.config.coffeeForLoops)
|
|
19545
19764
|
return;
|
|
19546
19765
|
return $skip;
|
|
@@ -19567,7 +19786,7 @@ ${input.slice(result.pos)}
|
|
|
19567
19786
|
return result;
|
|
19568
19787
|
}
|
|
19569
19788
|
}
|
|
19570
|
-
var CoffeeInterpolationEnabled$0 = $TV($EXPECT($
|
|
19789
|
+
var CoffeeInterpolationEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeInterpolationEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19571
19790
|
if (module2.config.coffeeInterpolation)
|
|
19572
19791
|
return;
|
|
19573
19792
|
return $skip;
|
|
@@ -19594,7 +19813,7 @@ ${input.slice(result.pos)}
|
|
|
19594
19813
|
return result;
|
|
19595
19814
|
}
|
|
19596
19815
|
}
|
|
19597
|
-
var CoffeeIsntEnabled$0 = $TV($EXPECT($
|
|
19816
|
+
var CoffeeIsntEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeIsntEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19598
19817
|
if (module2.config.coffeeIsnt)
|
|
19599
19818
|
return;
|
|
19600
19819
|
return $skip;
|
|
@@ -19621,7 +19840,7 @@ ${input.slice(result.pos)}
|
|
|
19621
19840
|
return result;
|
|
19622
19841
|
}
|
|
19623
19842
|
}
|
|
19624
|
-
var CoffeeJSXEnabled$0 = $TV($EXPECT($
|
|
19843
|
+
var CoffeeJSXEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeJSXEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19625
19844
|
if (module2.config.coffeeJSX)
|
|
19626
19845
|
return;
|
|
19627
19846
|
return $skip;
|
|
@@ -19648,7 +19867,7 @@ ${input.slice(result.pos)}
|
|
|
19648
19867
|
return result;
|
|
19649
19868
|
}
|
|
19650
19869
|
}
|
|
19651
|
-
var CoffeeLineContinuationEnabled$0 = $TV($EXPECT($
|
|
19870
|
+
var CoffeeLineContinuationEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeLineContinuationEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19652
19871
|
if (module2.config.coffeeLineContinuation)
|
|
19653
19872
|
return;
|
|
19654
19873
|
return $skip;
|
|
@@ -19675,7 +19894,7 @@ ${input.slice(result.pos)}
|
|
|
19675
19894
|
return result;
|
|
19676
19895
|
}
|
|
19677
19896
|
}
|
|
19678
|
-
var CoffeeNotEnabled$0 = $TV($EXPECT($
|
|
19897
|
+
var CoffeeNotEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeNotEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19679
19898
|
if (module2.config.coffeeNot)
|
|
19680
19899
|
return;
|
|
19681
19900
|
return $skip;
|
|
@@ -19702,7 +19921,7 @@ ${input.slice(result.pos)}
|
|
|
19702
19921
|
return result;
|
|
19703
19922
|
}
|
|
19704
19923
|
}
|
|
19705
|
-
var CoffeeOfEnabled$0 = $TV($EXPECT($
|
|
19924
|
+
var CoffeeOfEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeOfEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19706
19925
|
if (module2.config.coffeeOf)
|
|
19707
19926
|
return;
|
|
19708
19927
|
return $skip;
|
|
@@ -19729,7 +19948,7 @@ ${input.slice(result.pos)}
|
|
|
19729
19948
|
return result;
|
|
19730
19949
|
}
|
|
19731
19950
|
}
|
|
19732
|
-
var CoffeePrototypeEnabled$0 = $TV($EXPECT($
|
|
19951
|
+
var CoffeePrototypeEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeePrototypeEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19733
19952
|
if (module2.config.coffeePrototype)
|
|
19734
19953
|
return;
|
|
19735
19954
|
return $skip;
|
|
@@ -19756,7 +19975,7 @@ ${input.slice(result.pos)}
|
|
|
19756
19975
|
return result;
|
|
19757
19976
|
}
|
|
19758
19977
|
}
|
|
19759
|
-
var ObjectIsEnabled$0 = $TV($EXPECT($
|
|
19978
|
+
var ObjectIsEnabled$0 = $TV($EXPECT($L0, fail, 'ObjectIsEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19760
19979
|
if (module2.config.objectIs)
|
|
19761
19980
|
return;
|
|
19762
19981
|
return $skip;
|
|
@@ -19783,11 +20002,12 @@ ${input.slice(result.pos)}
|
|
|
19783
20002
|
return result;
|
|
19784
20003
|
}
|
|
19785
20004
|
}
|
|
19786
|
-
var Reset$0 = $TV($EXPECT($
|
|
20005
|
+
var Reset$0 = $TV($EXPECT($L0, fail, 'Reset ""'), function($skip, $loc, $0, $1) {
|
|
19787
20006
|
module2.indentLevels = [{
|
|
19788
20007
|
level: 0,
|
|
19789
20008
|
token: ""
|
|
19790
20009
|
}];
|
|
20010
|
+
module2.forbidClassImplicitCall = [false];
|
|
19791
20011
|
module2.forbidIndentedApplication = [false];
|
|
19792
20012
|
module2.forbidTrailingMemberProperty = [false];
|
|
19793
20013
|
module2.forbidMultiLineImplicitObjectLiteral = [false];
|
|
@@ -19802,6 +20022,12 @@ ${input.slice(result.pos)}
|
|
|
19802
20022
|
return l[l.length - 1];
|
|
19803
20023
|
}
|
|
19804
20024
|
},
|
|
20025
|
+
classImplicitCallForbidden: {
|
|
20026
|
+
get() {
|
|
20027
|
+
const { forbidClassImplicitCall: s } = module2;
|
|
20028
|
+
return s[s.length - 1];
|
|
20029
|
+
}
|
|
20030
|
+
},
|
|
19805
20031
|
indentedApplicationForbidden: {
|
|
19806
20032
|
get() {
|
|
19807
20033
|
const { forbidIndentedApplication: s } = module2;
|
|
@@ -20093,7 +20319,7 @@ ${input.slice(result.pos)}
|
|
|
20093
20319
|
return result;
|
|
20094
20320
|
}
|
|
20095
20321
|
}
|
|
20096
|
-
var Init$0 = $TS($S($E(Shebang), $Q(DirectivePrologue), $EXPECT($
|
|
20322
|
+
var Init$0 = $TS($S($E(Shebang), $Q(DirectivePrologue), $EXPECT($L0, fail, 'Init ""')), function($skip, $loc, $0, $1, $2, $3) {
|
|
20097
20323
|
var directives = $2;
|
|
20098
20324
|
directives.forEach((directive) => {
|
|
20099
20325
|
if (directive.type === "CivetPrologue") {
|
|
@@ -20404,9 +20630,7 @@ ${input.slice(result.pos)}
|
|
|
20404
20630
|
const [, exp] = node;
|
|
20405
20631
|
if (!exp)
|
|
20406
20632
|
return;
|
|
20407
|
-
|
|
20408
|
-
if (Array.isArray(indent))
|
|
20409
|
-
indent = indent[indent.length - 1];
|
|
20633
|
+
const indent = getIndent(node);
|
|
20410
20634
|
switch (exp.type) {
|
|
20411
20635
|
case "BreakStatement":
|
|
20412
20636
|
case "ContinueStatement":
|
|
@@ -20807,7 +21031,12 @@ ${input.slice(result.pos)}
|
|
|
20807
21031
|
if (trim) {
|
|
20808
21032
|
str = str.replace(/^(\r?\n|\n)/, "").replace(/(\r?\n|\n)[ \t]*$/, "");
|
|
20809
21033
|
}
|
|
20810
|
-
str = str.replace(/(
|
|
21034
|
+
str = str.replace(/(\\.|`|\$\{)/g, (s) => {
|
|
21035
|
+
if (s[0] === "\\") {
|
|
21036
|
+
return s;
|
|
21037
|
+
}
|
|
21038
|
+
return `\\${s}`;
|
|
21039
|
+
});
|
|
20811
21040
|
return {
|
|
20812
21041
|
$loc: $loc2,
|
|
20813
21042
|
token: str
|
|
@@ -21001,8 +21230,23 @@ ${input.slice(result.pos)}
|
|
|
21001
21230
|
}
|
|
21002
21231
|
function clone(node) {
|
|
21003
21232
|
removeParentPointers(node);
|
|
21004
|
-
return
|
|
21233
|
+
return deepCopy(node);
|
|
21005
21234
|
}
|
|
21235
|
+
function deepCopy(node) {
|
|
21236
|
+
if (node == null)
|
|
21237
|
+
return node;
|
|
21238
|
+
if (typeof node !== "object")
|
|
21239
|
+
return node;
|
|
21240
|
+
if (Array.isArray(node)) {
|
|
21241
|
+
return node.map(deepCopy);
|
|
21242
|
+
}
|
|
21243
|
+
return Object.fromEntries(
|
|
21244
|
+
Object.entries(node).map(([key, value]) => {
|
|
21245
|
+
return [key, deepCopy(value)];
|
|
21246
|
+
})
|
|
21247
|
+
);
|
|
21248
|
+
}
|
|
21249
|
+
module2.deepCopy = deepCopy;
|
|
21006
21250
|
function findAncestor(node, predicate, stopPredicate) {
|
|
21007
21251
|
node = node.parent;
|
|
21008
21252
|
while (node && !stopPredicate?.(node)) {
|
|
@@ -21787,11 +22031,7 @@ ${input.slice(result.pos)}
|
|
|
21787
22031
|
adjustAtBindings(statements);
|
|
21788
22032
|
};
|
|
21789
22033
|
function findDecs(statements) {
|
|
21790
|
-
const declarationNames = gatherNodes(statements, (
|
|
21791
|
-
if (node.type === "Declaration") {
|
|
21792
|
-
return true;
|
|
21793
|
-
}
|
|
21794
|
-
}).flatMap((d) => d.names);
|
|
22034
|
+
const declarationNames = gatherNodes(statements, ({ type }) => type === "Declaration").flatMap((d) => d.names);
|
|
21795
22035
|
return new Set(declarationNames);
|
|
21796
22036
|
}
|
|
21797
22037
|
function populateRefs(statements) {
|
|
@@ -21838,9 +22078,7 @@ ${input.slice(result.pos)}
|
|
|
21838
22078
|
scopes.push(decs);
|
|
21839
22079
|
const varIds = [];
|
|
21840
22080
|
const assignmentStatements = findAssignments(statements, scopes);
|
|
21841
|
-
const undeclaredIdentifiers = assignmentStatements.flatMap((a) =>
|
|
21842
|
-
return a.names;
|
|
21843
|
-
});
|
|
22081
|
+
const undeclaredIdentifiers = assignmentStatements.flatMap((a) => a.names);
|
|
21844
22082
|
undeclaredIdentifiers.filter((x, i, a) => {
|
|
21845
22083
|
if (!hasDec(x))
|
|
21846
22084
|
return a.indexOf(x) === i;
|
|
@@ -21864,9 +22102,7 @@ ${input.slice(result.pos)}
|
|
|
21864
22102
|
scopes.pop();
|
|
21865
22103
|
});
|
|
21866
22104
|
if (varIds.length) {
|
|
21867
|
-
|
|
21868
|
-
if (Array.isArray(indent))
|
|
21869
|
-
indent = indent[indent.length - 1];
|
|
22105
|
+
const indent = getIndent(statements[0]);
|
|
21870
22106
|
statements.unshift([indent, "var ", varIds.join(", "), "\n"]);
|
|
21871
22107
|
}
|
|
21872
22108
|
scopes.pop();
|
|
@@ -22099,6 +22335,7 @@ ${input.slice(result.pos)}
|
|
|
22099
22335
|
console.log("pushing indent", indent);
|
|
22100
22336
|
}
|
|
22101
22337
|
module2.indentLevels.push(indent);
|
|
22338
|
+
return $1;
|
|
22102
22339
|
});
|
|
22103
22340
|
function TrackIndented(state) {
|
|
22104
22341
|
let eventData;
|
|
@@ -22237,7 +22474,7 @@ ${input.slice(result.pos)}
|
|
|
22237
22474
|
return result;
|
|
22238
22475
|
}
|
|
22239
22476
|
}
|
|
22240
|
-
var PopIndent$0 = $TV($EXPECT($
|
|
22477
|
+
var PopIndent$0 = $TV($EXPECT($L0, fail, 'PopIndent ""'), function($skip, $loc, $0, $1) {
|
|
22241
22478
|
if (module2.config.verbose) {
|
|
22242
22479
|
console.log("popping indent", module2.indentLevels[module2.indentLevels.length - 1], "->", module2.indentLevels[module2.indentLevels.length - 2]);
|
|
22243
22480
|
}
|