@danielx/civet 0.5.78 → 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 +416 -179
- package/dist/civet +2 -1
- package/dist/main.js +416 -179
- package/dist/main.mjs +416 -179
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -424,6 +424,9 @@ ${input.slice(result.pos)}
|
|
|
424
424
|
exports.parserState = parserState;
|
|
425
425
|
var { parse: parse2 } = parserState({
|
|
426
426
|
Program,
|
|
427
|
+
TopLevelStatements,
|
|
428
|
+
NestedTopLevelStatements,
|
|
429
|
+
TopLevelSingleLineStatements,
|
|
427
430
|
TopLevelStatement,
|
|
428
431
|
ExtendedExpression,
|
|
429
432
|
SingleLineExtendedExpression,
|
|
@@ -695,6 +698,9 @@ ${input.slice(result.pos)}
|
|
|
695
698
|
CatchParameter,
|
|
696
699
|
Condition,
|
|
697
700
|
ExpressionWithIndentedApplicationForbidden,
|
|
701
|
+
ForbidClassImplicitCall,
|
|
702
|
+
AllowClassImplicitCall,
|
|
703
|
+
RestoreClassImplicitCall,
|
|
698
704
|
ForbidIndentedApplication,
|
|
699
705
|
AllowIndentedApplication,
|
|
700
706
|
RestoreIndentedApplication,
|
|
@@ -1050,26 +1056,26 @@ ${input.slice(result.pos)}
|
|
|
1050
1056
|
PopIndent,
|
|
1051
1057
|
Nested
|
|
1052
1058
|
});
|
|
1053
|
-
var $L0 = $L("
|
|
1054
|
-
var $L1 = $L("
|
|
1055
|
-
var $L2 = $L("
|
|
1056
|
-
var $L3 = $L("
|
|
1057
|
-
var $L4 = $L("
|
|
1058
|
-
var $L5 = $L("
|
|
1059
|
-
var $L6 = $L("
|
|
1060
|
-
var $L7 = $L("
|
|
1061
|
-
var $L8 = $L("
|
|
1062
|
-
var $L9 = $L("
|
|
1063
|
-
var $L10 = $L("
|
|
1064
|
-
var $L11 = $L("
|
|
1065
|
-
var $L12 = $L("
|
|
1066
|
-
var $L13 = $L("
|
|
1067
|
-
var $L14 = $L("
|
|
1068
|
-
var $L15 = $L("
|
|
1069
|
-
var $L16 = $L("
|
|
1070
|
-
var $L17 = $L("
|
|
1071
|
-
var $L18 = $L("
|
|
1072
|
-
var $L19 = $L("");
|
|
1059
|
+
var $L0 = $L("");
|
|
1060
|
+
var $L1 = $L("/ ");
|
|
1061
|
+
var $L2 = $L("=");
|
|
1062
|
+
var $L3 = $L("(");
|
|
1063
|
+
var $L4 = $L("?");
|
|
1064
|
+
var $L5 = $L(".");
|
|
1065
|
+
var $L6 = $L("++");
|
|
1066
|
+
var $L7 = $L("--");
|
|
1067
|
+
var $L8 = $L("=>");
|
|
1068
|
+
var $L9 = $L(" ");
|
|
1069
|
+
var $L10 = $L("implements");
|
|
1070
|
+
var $L11 = $L("<:");
|
|
1071
|
+
var $L12 = $L("#");
|
|
1072
|
+
var $L13 = $L("super");
|
|
1073
|
+
var $L14 = $L("import");
|
|
1074
|
+
var $L15 = $L("return.value");
|
|
1075
|
+
var $L16 = $L("!");
|
|
1076
|
+
var $L17 = $L("^");
|
|
1077
|
+
var $L18 = $L("-");
|
|
1078
|
+
var $L19 = $L("import.meta");
|
|
1073
1079
|
var $L20 = $L(",");
|
|
1074
1080
|
var $L21 = $L("->");
|
|
1075
1081
|
var $L22 = $L("}");
|
|
@@ -1298,7 +1304,7 @@ ${input.slice(result.pos)}
|
|
|
1298
1304
|
var $R63 = $R(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?", "suy"));
|
|
1299
1305
|
var $R64 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
|
|
1300
1306
|
var $R65 = $R(new RegExp("[ \\t]*", "suy"));
|
|
1301
|
-
var Program$0 = $TS($S(Reset, Init,
|
|
1307
|
+
var Program$0 = $TS($S(Reset, Init, $E(EOS), TopLevelStatements, __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
1302
1308
|
var statements = $4;
|
|
1303
1309
|
module.processProgram(statements);
|
|
1304
1310
|
return $0;
|
|
@@ -1325,7 +1331,117 @@ ${input.slice(result.pos)}
|
|
|
1325
1331
|
return result;
|
|
1326
1332
|
}
|
|
1327
1333
|
}
|
|
1328
|
-
var
|
|
1334
|
+
var TopLevelStatements$0 = $TS($S(TrackIndented, TopLevelSingleLineStatements, $Q(NestedTopLevelStatements), PopIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
1335
|
+
var indent = $1;
|
|
1336
|
+
var first = $2;
|
|
1337
|
+
var rest = $3;
|
|
1338
|
+
return [
|
|
1339
|
+
[indent, ...first[0]],
|
|
1340
|
+
...first.slice(1).map((s) => ["", ...s]),
|
|
1341
|
+
...rest.flat()
|
|
1342
|
+
];
|
|
1343
|
+
});
|
|
1344
|
+
var TopLevelStatements$1 = $TS($S(TopLevelSingleLineStatements, $Q(NestedTopLevelStatements)), function($skip, $loc, $0, $1, $2) {
|
|
1345
|
+
var first = $1;
|
|
1346
|
+
var rest = $2;
|
|
1347
|
+
return [
|
|
1348
|
+
...first.map((s) => ["", ...s]),
|
|
1349
|
+
...rest.flat()
|
|
1350
|
+
];
|
|
1351
|
+
});
|
|
1352
|
+
var TopLevelStatements$2 = $T($EXPECT($L0, fail, 'TopLevelStatements ""'), function(value) {
|
|
1353
|
+
return [];
|
|
1354
|
+
});
|
|
1355
|
+
function TopLevelStatements(state) {
|
|
1356
|
+
let eventData;
|
|
1357
|
+
if (state.events) {
|
|
1358
|
+
const result = state.events.enter?.("TopLevelStatements", state);
|
|
1359
|
+
if (result) {
|
|
1360
|
+
if (result.cache)
|
|
1361
|
+
return result.cache;
|
|
1362
|
+
eventData = result.data;
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
if (state.tokenize) {
|
|
1366
|
+
const result = $TOKEN("TopLevelStatements", state, TopLevelStatements$0(state) || TopLevelStatements$1(state) || TopLevelStatements$2(state));
|
|
1367
|
+
if (state.events)
|
|
1368
|
+
state.events.exit?.("TopLevelStatements", state, result, eventData);
|
|
1369
|
+
return result;
|
|
1370
|
+
} else {
|
|
1371
|
+
const result = TopLevelStatements$0(state) || TopLevelStatements$1(state) || TopLevelStatements$2(state);
|
|
1372
|
+
if (state.events)
|
|
1373
|
+
state.events.exit?.("TopLevelStatements", state, result, eventData);
|
|
1374
|
+
return result;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
var NestedTopLevelStatements$0 = $TS($S(Nested, TopLevelSingleLineStatements), function($skip, $loc, $0, $1, $2) {
|
|
1378
|
+
var nested = $1;
|
|
1379
|
+
var statements = $2;
|
|
1380
|
+
return [
|
|
1381
|
+
[nested, ...statements[0]],
|
|
1382
|
+
...statements.slice(1).map((s) => ["", ...s])
|
|
1383
|
+
];
|
|
1384
|
+
});
|
|
1385
|
+
function NestedTopLevelStatements(state) {
|
|
1386
|
+
let eventData;
|
|
1387
|
+
if (state.events) {
|
|
1388
|
+
const result = state.events.enter?.("NestedTopLevelStatements", state);
|
|
1389
|
+
if (result) {
|
|
1390
|
+
if (result.cache)
|
|
1391
|
+
return result.cache;
|
|
1392
|
+
eventData = result.data;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
if (state.tokenize) {
|
|
1396
|
+
const result = $TOKEN("NestedTopLevelStatements", state, NestedTopLevelStatements$0(state));
|
|
1397
|
+
if (state.events)
|
|
1398
|
+
state.events.exit?.("NestedTopLevelStatements", state, result, eventData);
|
|
1399
|
+
return result;
|
|
1400
|
+
} else {
|
|
1401
|
+
const result = NestedTopLevelStatements$0(state);
|
|
1402
|
+
if (state.events)
|
|
1403
|
+
state.events.exit?.("NestedTopLevelStatements", state, result, eventData);
|
|
1404
|
+
return result;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
var TopLevelSingleLineStatements$0 = $TV($P($S($N(EOS), TopLevelStatement)), function($skip, $loc, $0, $1) {
|
|
1408
|
+
var statements = $0;
|
|
1409
|
+
return statements.map(([, statement]) => statement);
|
|
1410
|
+
});
|
|
1411
|
+
function TopLevelSingleLineStatements(state) {
|
|
1412
|
+
let eventData;
|
|
1413
|
+
if (state.events) {
|
|
1414
|
+
const result = state.events.enter?.("TopLevelSingleLineStatements", state);
|
|
1415
|
+
if (result) {
|
|
1416
|
+
if (result.cache)
|
|
1417
|
+
return result.cache;
|
|
1418
|
+
eventData = result.data;
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
if (state.tokenize) {
|
|
1422
|
+
const result = $TOKEN("TopLevelSingleLineStatements", state, TopLevelSingleLineStatements$0(state));
|
|
1423
|
+
if (state.events)
|
|
1424
|
+
state.events.exit?.("TopLevelSingleLineStatements", state, result, eventData);
|
|
1425
|
+
return result;
|
|
1426
|
+
} else {
|
|
1427
|
+
const result = TopLevelSingleLineStatements$0(state);
|
|
1428
|
+
if (state.events)
|
|
1429
|
+
state.events.exit?.("TopLevelSingleLineStatements", state, result, eventData);
|
|
1430
|
+
return result;
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
var TopLevelStatement$0 = $TS($S($E(_), ModuleItem, StatementDelimiter), function($skip, $loc, $0, $1, $2, $3) {
|
|
1434
|
+
var ws = $1;
|
|
1435
|
+
var statement = $2;
|
|
1436
|
+
var delimiter = $3;
|
|
1437
|
+
if (ws) {
|
|
1438
|
+
statement = {
|
|
1439
|
+
...statement,
|
|
1440
|
+
children: [ws, ...statement.children]
|
|
1441
|
+
};
|
|
1442
|
+
}
|
|
1443
|
+
return [statement, delimiter];
|
|
1444
|
+
});
|
|
1329
1445
|
function TopLevelStatement(state) {
|
|
1330
1446
|
let eventData;
|
|
1331
1447
|
if (state.events) {
|
|
@@ -1620,10 +1736,11 @@ ${input.slice(result.pos)}
|
|
|
1620
1736
|
}
|
|
1621
1737
|
}
|
|
1622
1738
|
var ForbiddenImplicitCalls$0 = $R$0($EXPECT($R0, fail, "ForbiddenImplicitCalls /(as|of|satisfies|then|when|implements|xor|xnor)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
|
|
1623
|
-
var ForbiddenImplicitCalls$1 = $EXPECT($
|
|
1624
|
-
var ForbiddenImplicitCalls$2 =
|
|
1625
|
-
var ForbiddenImplicitCalls$3 =
|
|
1626
|
-
var ForbiddenImplicitCalls$4 = $
|
|
1739
|
+
var ForbiddenImplicitCalls$1 = $EXPECT($L1, fail, 'ForbiddenImplicitCalls "/ "');
|
|
1740
|
+
var ForbiddenImplicitCalls$2 = $S(ForbidClassImplicitCall, Class);
|
|
1741
|
+
var ForbiddenImplicitCalls$3 = AtAt;
|
|
1742
|
+
var ForbiddenImplicitCalls$4 = $S(Identifier, $EXPECT($L2, fail, 'ForbiddenImplicitCalls "="'), Whitespace);
|
|
1743
|
+
var ForbiddenImplicitCalls$5 = $TS($S(Identifier, $N($EXPECT($L3, fail, 'ForbiddenImplicitCalls "("'))), function($skip, $loc, $0, $1, $2) {
|
|
1627
1744
|
if (module.operators.has($1.name))
|
|
1628
1745
|
return $1;
|
|
1629
1746
|
return $skip;
|
|
@@ -1639,12 +1756,12 @@ ${input.slice(result.pos)}
|
|
|
1639
1756
|
}
|
|
1640
1757
|
}
|
|
1641
1758
|
if (state.tokenize) {
|
|
1642
|
-
const result = $TOKEN("ForbiddenImplicitCalls", state, ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state) || ForbiddenImplicitCalls$4(state));
|
|
1759
|
+
const result = $TOKEN("ForbiddenImplicitCalls", state, ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state) || ForbiddenImplicitCalls$4(state) || ForbiddenImplicitCalls$5(state));
|
|
1643
1760
|
if (state.events)
|
|
1644
1761
|
state.events.exit?.("ForbiddenImplicitCalls", state, result, eventData);
|
|
1645
1762
|
return result;
|
|
1646
1763
|
} else {
|
|
1647
|
-
const result = ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state) || ForbiddenImplicitCalls$4(state);
|
|
1764
|
+
const result = ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state) || ForbiddenImplicitCalls$4(state) || ForbiddenImplicitCalls$5(state);
|
|
1648
1765
|
if (state.events)
|
|
1649
1766
|
state.events.exit?.("ForbiddenImplicitCalls", state, result, eventData);
|
|
1650
1767
|
return result;
|
|
@@ -1681,7 +1798,7 @@ ${input.slice(result.pos)}
|
|
|
1681
1798
|
return result;
|
|
1682
1799
|
}
|
|
1683
1800
|
}
|
|
1684
|
-
var TrailingMemberExpressions$0 = $TS($S($Q(MemberExpressionRest), $Q($S($C(Samedent, IndentedFurther), $Y($S($E($EXPECT($
|
|
1801
|
+
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) {
|
|
1685
1802
|
return $1.concat($2);
|
|
1686
1803
|
});
|
|
1687
1804
|
function TrailingMemberExpressions(state) {
|
|
@@ -2151,7 +2268,7 @@ ${input.slice(result.pos)}
|
|
|
2151
2268
|
return result;
|
|
2152
2269
|
}
|
|
2153
2270
|
}
|
|
2154
|
-
var UpdateExpressionSymbol$0 = $TV($C($EXPECT($
|
|
2271
|
+
var UpdateExpressionSymbol$0 = $TV($C($EXPECT($L6, fail, 'UpdateExpressionSymbol "++"'), $EXPECT($L7, fail, 'UpdateExpressionSymbol "--"')), function($skip, $loc, $0, $1) {
|
|
2155
2272
|
return { $loc, token: $1 };
|
|
2156
2273
|
});
|
|
2157
2274
|
function UpdateExpressionSymbol(state) {
|
|
@@ -2433,7 +2550,7 @@ ${input.slice(result.pos)}
|
|
|
2433
2550
|
return result;
|
|
2434
2551
|
}
|
|
2435
2552
|
}
|
|
2436
|
-
var FatArrow$0 = $TS($S(__, $EXPECT($
|
|
2553
|
+
var FatArrow$0 = $TS($S(__, $EXPECT($L8, fail, 'FatArrow "=>"')), function($skip, $loc, $0, $1, $2) {
|
|
2437
2554
|
var ws = $1;
|
|
2438
2555
|
if (!ws.length)
|
|
2439
2556
|
return " =>";
|
|
@@ -2517,7 +2634,7 @@ ${input.slice(result.pos)}
|
|
|
2517
2634
|
}
|
|
2518
2635
|
}
|
|
2519
2636
|
var TernaryRest$0 = NestedTernaryRest;
|
|
2520
|
-
var TernaryRest$1 = $TS($S($N(CoffeeBinaryExistentialEnabled), $Y($EXPECT($
|
|
2637
|
+
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) {
|
|
2521
2638
|
return $0.slice(2);
|
|
2522
2639
|
});
|
|
2523
2640
|
function TernaryRest(state) {
|
|
@@ -2861,7 +2978,7 @@ ${input.slice(result.pos)}
|
|
|
2861
2978
|
return result;
|
|
2862
2979
|
}
|
|
2863
2980
|
}
|
|
2864
|
-
var ExtendsToken$0 = $TS($S(Loc, __, OpenAngleBracket, $E($EXPECT($
|
|
2981
|
+
var ExtendsToken$0 = $TS($S(Loc, __, OpenAngleBracket, $E($EXPECT($L9, fail, 'ExtendsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
2865
2982
|
var l = $1;
|
|
2866
2983
|
var ws = $2;
|
|
2867
2984
|
var lt = $3;
|
|
@@ -2955,7 +3072,7 @@ ${input.slice(result.pos)}
|
|
|
2955
3072
|
return result;
|
|
2956
3073
|
}
|
|
2957
3074
|
}
|
|
2958
|
-
var ImplementsToken$0 = $TS($S(Loc, __, ImplementsShorthand, $E($EXPECT($
|
|
3075
|
+
var ImplementsToken$0 = $TS($S(Loc, __, ImplementsShorthand, $E($EXPECT($L9, fail, 'ImplementsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
2959
3076
|
var l = $1;
|
|
2960
3077
|
var ws = $2;
|
|
2961
3078
|
var token = $3;
|
|
@@ -2965,7 +3082,7 @@ ${input.slice(result.pos)}
|
|
|
2965
3082
|
}
|
|
2966
3083
|
return { children };
|
|
2967
3084
|
});
|
|
2968
|
-
var ImplementsToken$1 = $TS($S(__, $EXPECT($
|
|
3085
|
+
var ImplementsToken$1 = $TS($S(__, $EXPECT($L10, fail, 'ImplementsToken "implements"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
2969
3086
|
$2 = { $loc, token: $2 };
|
|
2970
3087
|
return [$1, $2];
|
|
2971
3088
|
});
|
|
@@ -2991,7 +3108,7 @@ ${input.slice(result.pos)}
|
|
|
2991
3108
|
return result;
|
|
2992
3109
|
}
|
|
2993
3110
|
}
|
|
2994
|
-
var ImplementsShorthand$0 = $TV($EXPECT($
|
|
3111
|
+
var ImplementsShorthand$0 = $TV($EXPECT($L11, fail, 'ImplementsShorthand "<:"'), function($skip, $loc, $0, $1) {
|
|
2995
3112
|
return { $loc, token: "implements " };
|
|
2996
3113
|
});
|
|
2997
3114
|
function ImplementsShorthand(state) {
|
|
@@ -3364,7 +3481,7 @@ ${input.slice(result.pos)}
|
|
|
3364
3481
|
}
|
|
3365
3482
|
}
|
|
3366
3483
|
var ThisLiteral$0 = This;
|
|
3367
|
-
var ThisLiteral$1 = $TS($S(AtThis, $TEXT($S($E($EXPECT($
|
|
3484
|
+
var ThisLiteral$1 = $TS($S(AtThis, $TEXT($S($E($EXPECT($L12, fail, 'ThisLiteral "#"')), IdentifierName))), function($skip, $loc, $0, $1, $2) {
|
|
3368
3485
|
var at = $1;
|
|
3369
3486
|
var id = $2;
|
|
3370
3487
|
return [at, ".", id];
|
|
@@ -3418,7 +3535,7 @@ ${input.slice(result.pos)}
|
|
|
3418
3535
|
return result;
|
|
3419
3536
|
}
|
|
3420
3537
|
}
|
|
3421
|
-
var LeftHandSideExpression$0 = $TS($S($Q($S(New, $N($EXPECT($
|
|
3538
|
+
var LeftHandSideExpression$0 = $TS($S($Q($S(New, $N($EXPECT($L5, fail, 'LeftHandSideExpression "."')), __)), CallExpression), function($skip, $loc, $0, $1, $2) {
|
|
3422
3539
|
if ($1.length)
|
|
3423
3540
|
return $0;
|
|
3424
3541
|
return $2;
|
|
@@ -3445,14 +3562,14 @@ ${input.slice(result.pos)}
|
|
|
3445
3562
|
return result;
|
|
3446
3563
|
}
|
|
3447
3564
|
}
|
|
3448
|
-
var CallExpression$0 = $TS($S($EXPECT($
|
|
3565
|
+
var CallExpression$0 = $TS($S($EXPECT($L13, fail, 'CallExpression "super"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
|
|
3449
3566
|
var rest = $3;
|
|
3450
3567
|
return module.processGlob({
|
|
3451
3568
|
type: "CallExpression",
|
|
3452
3569
|
children: [$1, ...$2, ...rest.flat()]
|
|
3453
3570
|
});
|
|
3454
3571
|
});
|
|
3455
|
-
var CallExpression$1 = $TS($S($EXPECT($
|
|
3572
|
+
var CallExpression$1 = $TS($S($EXPECT($L14, fail, 'CallExpression "import"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
|
|
3456
3573
|
var rest = $3;
|
|
3457
3574
|
return module.processGlob({
|
|
3458
3575
|
type: "CallExpression",
|
|
@@ -3495,7 +3612,7 @@ ${input.slice(result.pos)}
|
|
|
3495
3612
|
return result;
|
|
3496
3613
|
}
|
|
3497
3614
|
}
|
|
3498
|
-
var ReturnValue$0 = $TV($C($S($EXPECT($
|
|
3615
|
+
var ReturnValue$0 = $TV($C($S($EXPECT($L15, fail, 'ReturnValue "return.value"'), NonIdContinue), $S(Return, $Y(AfterReturnShorthand))), function($skip, $loc, $0, $1) {
|
|
3499
3616
|
return { type: "ReturnValue", children: [$1[0]] };
|
|
3500
3617
|
});
|
|
3501
3618
|
function ReturnValue(state) {
|
|
@@ -3633,7 +3750,7 @@ ${input.slice(result.pos)}
|
|
|
3633
3750
|
return result;
|
|
3634
3751
|
}
|
|
3635
3752
|
}
|
|
3636
|
-
var NonNullAssertion$0 = $T($S($EXPECT($
|
|
3753
|
+
var NonNullAssertion$0 = $T($S($EXPECT($L16, fail, 'NonNullAssertion "!"'), $N($EXPECT($L17, fail, 'NonNullAssertion "^"'))), function(value) {
|
|
3637
3754
|
return { "type": "NonNullAssertion", "ts": true, "children": value[0] };
|
|
3638
3755
|
});
|
|
3639
3756
|
function NonNullAssertion(state) {
|
|
@@ -3771,7 +3888,7 @@ ${input.slice(result.pos)}
|
|
|
3771
3888
|
]
|
|
3772
3889
|
};
|
|
3773
3890
|
});
|
|
3774
|
-
var MemberBracketContent$3 = $TS($S(Dot, $EXPECT($
|
|
3891
|
+
var MemberBracketContent$3 = $TS($S(Dot, $EXPECT($L18, fail, 'MemberBracketContent "-"'), IntegerLiteral), function($skip, $loc, $0, $1, $2, $3) {
|
|
3775
3892
|
var dot = $1;
|
|
3776
3893
|
var neg = $2;
|
|
3777
3894
|
var num = $3;
|
|
@@ -3957,8 +4074,8 @@ ${input.slice(result.pos)}
|
|
|
3957
4074
|
return result;
|
|
3958
4075
|
}
|
|
3959
4076
|
}
|
|
3960
|
-
var SuperProperty$0 = $S($EXPECT($
|
|
3961
|
-
var SuperProperty$1 = $S($EXPECT($
|
|
4077
|
+
var SuperProperty$0 = $S($EXPECT($L13, fail, 'SuperProperty "super"'), MemberBracketContent);
|
|
4078
|
+
var SuperProperty$1 = $S($EXPECT($L13, fail, 'SuperProperty "super"'), $N($C(QuestionMark, NonNullAssertion)), PropertyAccess);
|
|
3962
4079
|
function SuperProperty(state) {
|
|
3963
4080
|
let eventData;
|
|
3964
4081
|
if (state.events) {
|
|
@@ -3982,7 +4099,7 @@ ${input.slice(result.pos)}
|
|
|
3982
4099
|
}
|
|
3983
4100
|
}
|
|
3984
4101
|
var MetaProperty$0 = $S(New, Dot, Target);
|
|
3985
|
-
var MetaProperty$1 = $TS($S($EXPECT($
|
|
4102
|
+
var MetaProperty$1 = $TS($S($EXPECT($L19, fail, 'MetaProperty "import.meta"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
3986
4103
|
return { $loc, token: $1 };
|
|
3987
4104
|
});
|
|
3988
4105
|
function MetaProperty(state) {
|
|
@@ -4008,7 +4125,7 @@ ${input.slice(result.pos)}
|
|
|
4008
4125
|
}
|
|
4009
4126
|
}
|
|
4010
4127
|
var Parameters$0 = NonEmptyParameters;
|
|
4011
|
-
var Parameters$1 = $TV($EXPECT($
|
|
4128
|
+
var Parameters$1 = $TV($EXPECT($L0, fail, 'Parameters ""'), function($skip, $loc, $0, $1) {
|
|
4012
4129
|
return {
|
|
4013
4130
|
type: "Parameters",
|
|
4014
4131
|
children: [{ $loc, token: "()" }],
|
|
@@ -4865,7 +4982,7 @@ ${input.slice(result.pos)}
|
|
|
4865
4982
|
return result;
|
|
4866
4983
|
}
|
|
4867
4984
|
}
|
|
4868
|
-
var EmptyBindingPattern$0 = $TV($EXPECT($
|
|
4985
|
+
var EmptyBindingPattern$0 = $TV($EXPECT($L0, fail, 'EmptyBindingPattern ""'), function($skip, $loc, $0, $1) {
|
|
4869
4986
|
const ref = {
|
|
4870
4987
|
type: "Ref",
|
|
4871
4988
|
base: "ref",
|
|
@@ -5773,10 +5890,11 @@ ${input.slice(result.pos)}
|
|
|
5773
5890
|
});
|
|
5774
5891
|
var ExplicitBlock$1 = $TS($S(__, OpenBrace, NestedBlockStatements, __, CloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
5775
5892
|
var block = $3;
|
|
5776
|
-
return
|
|
5893
|
+
return {
|
|
5894
|
+
...block,
|
|
5777
5895
|
children: [$1, $2, ...block.children, $4, $5],
|
|
5778
5896
|
bare: false
|
|
5779
|
-
}
|
|
5897
|
+
};
|
|
5780
5898
|
});
|
|
5781
5899
|
function ExplicitBlock(state) {
|
|
5782
5900
|
let eventData;
|
|
@@ -5836,7 +5954,7 @@ ${input.slice(result.pos)}
|
|
|
5836
5954
|
var Block$0 = ExplicitBlock;
|
|
5837
5955
|
var Block$1 = ImplicitNestedBlock;
|
|
5838
5956
|
var Block$2 = ThenClause;
|
|
5839
|
-
var Block$3 = $TS($S($
|
|
5957
|
+
var Block$3 = $TS($S($E(_), $N(EOS), Statement), function($skip, $loc, $0, $1, $2, $3) {
|
|
5840
5958
|
var ws = $1;
|
|
5841
5959
|
var s = $3;
|
|
5842
5960
|
const expressions = [[ws, s]];
|
|
@@ -5974,7 +6092,7 @@ ${input.slice(result.pos)}
|
|
|
5974
6092
|
return result;
|
|
5975
6093
|
}
|
|
5976
6094
|
}
|
|
5977
|
-
var EmptyBareBlock$0 = $TV($EXPECT($
|
|
6095
|
+
var EmptyBareBlock$0 = $TV($EXPECT($L0, fail, 'EmptyBareBlock ""'), function($skip, $loc, $0, $1) {
|
|
5978
6096
|
const expressions = [];
|
|
5979
6097
|
return {
|
|
5980
6098
|
type: "BlockStatement",
|
|
@@ -6237,8 +6355,11 @@ ${input.slice(result.pos)}
|
|
|
6237
6355
|
return $skip;
|
|
6238
6356
|
const first = statements[0];
|
|
6239
6357
|
const ws = first[0];
|
|
6240
|
-
const
|
|
6241
|
-
|
|
6358
|
+
const indent = ws.at(-1);
|
|
6359
|
+
statements = [
|
|
6360
|
+
[indent, ...first.slice(1)],
|
|
6361
|
+
...statements.slice(1)
|
|
6362
|
+
];
|
|
6242
6363
|
return {
|
|
6243
6364
|
type: "BlockStatement",
|
|
6244
6365
|
expressions: statements,
|
|
@@ -6268,7 +6389,16 @@ ${input.slice(result.pos)}
|
|
|
6268
6389
|
return result;
|
|
6269
6390
|
}
|
|
6270
6391
|
}
|
|
6271
|
-
var NestedBlockStatement$0 = $S(Nested, StatementListItem, StatementDelimiter)
|
|
6392
|
+
var NestedBlockStatement$0 = $TS($S(Nested, $E(_), StatementListItem, StatementDelimiter), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
6393
|
+
var nested = $1;
|
|
6394
|
+
var ws = $2;
|
|
6395
|
+
var statement = $3;
|
|
6396
|
+
var delimiter = $4;
|
|
6397
|
+
if (ws) {
|
|
6398
|
+
statement = { ...statement, children: [ws, ...statement.children] };
|
|
6399
|
+
}
|
|
6400
|
+
return [nested, statement, delimiter];
|
|
6401
|
+
});
|
|
6272
6402
|
function NestedBlockStatement(state) {
|
|
6273
6403
|
let eventData;
|
|
6274
6404
|
if (state.events) {
|
|
@@ -6509,7 +6639,7 @@ ${input.slice(result.pos)}
|
|
|
6509
6639
|
return result;
|
|
6510
6640
|
}
|
|
6511
6641
|
}
|
|
6512
|
-
var UpcomingAssignment$0 = $Y($S(__, $EXPECT($
|
|
6642
|
+
var UpcomingAssignment$0 = $Y($S(__, $EXPECT($L2, fail, 'UpcomingAssignment "="'), $N($C($EXPECT($L2, fail, 'UpcomingAssignment "="'), $EXPECT($L30, fail, 'UpcomingAssignment ">"')))));
|
|
6513
6643
|
function UpcomingAssignment(state) {
|
|
6514
6644
|
let eventData;
|
|
6515
6645
|
if (state.events) {
|
|
@@ -7568,7 +7698,7 @@ ${input.slice(result.pos)}
|
|
|
7568
7698
|
expression
|
|
7569
7699
|
};
|
|
7570
7700
|
});
|
|
7571
|
-
var ComputedPropertyName$2 = $TS($S(InsertOpenBracket, $EXPECT($
|
|
7701
|
+
var ComputedPropertyName$2 = $TS($S(InsertOpenBracket, $EXPECT($L18, fail, 'ComputedPropertyName "-"'), NumericLiteral, InsertCloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
7572
7702
|
return {
|
|
7573
7703
|
type: "ComputedPropertyName",
|
|
7574
7704
|
children: $0
|
|
@@ -7596,7 +7726,7 @@ ${input.slice(result.pos)}
|
|
|
7596
7726
|
return result;
|
|
7597
7727
|
}
|
|
7598
7728
|
}
|
|
7599
|
-
var Decorator$0 = $S(AtAt,
|
|
7729
|
+
var Decorator$0 = $S(AtAt, CallExpression);
|
|
7600
7730
|
function Decorator(state) {
|
|
7601
7731
|
let eventData;
|
|
7602
7732
|
if (state.events) {
|
|
@@ -7619,7 +7749,12 @@ ${input.slice(result.pos)}
|
|
|
7619
7749
|
return result;
|
|
7620
7750
|
}
|
|
7621
7751
|
}
|
|
7622
|
-
var Decorators$0 = $S($
|
|
7752
|
+
var Decorators$0 = $TS($S(ForbidClassImplicitCall, $Q($S(__, Decorator)), __, RestoreClassImplicitCall), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
7753
|
+
var decorators = $2;
|
|
7754
|
+
if (!decorators.length)
|
|
7755
|
+
return $skip;
|
|
7756
|
+
return $0;
|
|
7757
|
+
});
|
|
7623
7758
|
function Decorators(state) {
|
|
7624
7759
|
let eventData;
|
|
7625
7760
|
if (state.events) {
|
|
@@ -7786,7 +7921,7 @@ ${input.slice(result.pos)}
|
|
|
7786
7921
|
return result;
|
|
7787
7922
|
}
|
|
7788
7923
|
}
|
|
7789
|
-
var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($
|
|
7924
|
+
var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($L12, fail, 'PrivateIdentifier "#"'), IdentifierName)), function($skip, $loc, $0, $1) {
|
|
7790
7925
|
return {
|
|
7791
7926
|
type: "Identifier",
|
|
7792
7927
|
name: $0,
|
|
@@ -7874,21 +8009,21 @@ ${input.slice(result.pos)}
|
|
|
7874
8009
|
return result;
|
|
7875
8010
|
}
|
|
7876
8011
|
}
|
|
7877
|
-
var OperatorAssignmentOp$0 = $TS($S(Xor, $EXPECT($
|
|
8012
|
+
var OperatorAssignmentOp$0 = $TS($S(Xor, $EXPECT($L2, fail, 'OperatorAssignmentOp "="'), $Y(Whitespace), $Q(TrailingComment)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
7878
8013
|
return {
|
|
7879
8014
|
special: true,
|
|
7880
8015
|
call: module.getRef("xor"),
|
|
7881
8016
|
children: [$2, ...$4]
|
|
7882
8017
|
};
|
|
7883
8018
|
});
|
|
7884
|
-
var OperatorAssignmentOp$1 = $TS($S(Xnor, $EXPECT($
|
|
8019
|
+
var OperatorAssignmentOp$1 = $TS($S(Xnor, $EXPECT($L2, fail, 'OperatorAssignmentOp "="'), $Y(Whitespace), $Q(TrailingComment)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
7885
8020
|
return {
|
|
7886
8021
|
special: true,
|
|
7887
8022
|
call: module.getRef("xnor"),
|
|
7888
8023
|
children: [$2, ...$4]
|
|
7889
8024
|
};
|
|
7890
8025
|
});
|
|
7891
|
-
var OperatorAssignmentOp$2 = $TS($S(Identifier, $EXPECT($
|
|
8026
|
+
var OperatorAssignmentOp$2 = $TS($S(Identifier, $EXPECT($L2, fail, 'OperatorAssignmentOp "="'), $Y(Whitespace), $Q(TrailingComment)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
7892
8027
|
return {
|
|
7893
8028
|
special: true,
|
|
7894
8029
|
call: $1,
|
|
@@ -7935,7 +8070,7 @@ ${input.slice(result.pos)}
|
|
|
7935
8070
|
var AssignmentOpSymbol$15 = $T($EXPECT($L49, fail, 'AssignmentOpSymbol "?="'), function(value) {
|
|
7936
8071
|
return "??=";
|
|
7937
8072
|
});
|
|
7938
|
-
var AssignmentOpSymbol$16 = $T($S($EXPECT($
|
|
8073
|
+
var AssignmentOpSymbol$16 = $T($S($EXPECT($L2, fail, 'AssignmentOpSymbol "="'), $N($EXPECT($L2, fail, 'AssignmentOpSymbol "="'))), function(value) {
|
|
7939
8074
|
return value[0];
|
|
7940
8075
|
});
|
|
7941
8076
|
var AssignmentOpSymbol$17 = $T($S(CoffeeWordAssignmentOp), function(value) {
|
|
@@ -8048,7 +8183,7 @@ ${input.slice(result.pos)}
|
|
|
8048
8183
|
});
|
|
8049
8184
|
var BinaryOpSymbol$4 = $EXPECT($L57, fail, 'BinaryOpSymbol "%"');
|
|
8050
8185
|
var BinaryOpSymbol$5 = $EXPECT($L58, fail, 'BinaryOpSymbol "+"');
|
|
8051
|
-
var BinaryOpSymbol$6 = $EXPECT($
|
|
8186
|
+
var BinaryOpSymbol$6 = $EXPECT($L18, fail, 'BinaryOpSymbol "-"');
|
|
8052
8187
|
var BinaryOpSymbol$7 = $EXPECT($L59, fail, 'BinaryOpSymbol "<="');
|
|
8053
8188
|
var BinaryOpSymbol$8 = $EXPECT($L60, fail, 'BinaryOpSymbol ">="');
|
|
8054
8189
|
var BinaryOpSymbol$9 = $TV($EXPECT($L61, fail, 'BinaryOpSymbol "<?"'), function($skip, $loc, $0, $1) {
|
|
@@ -8116,7 +8251,7 @@ ${input.slice(result.pos)}
|
|
|
8116
8251
|
};
|
|
8117
8252
|
});
|
|
8118
8253
|
var BinaryOpSymbol$28 = $EXPECT($L79, fail, 'BinaryOpSymbol "??"');
|
|
8119
|
-
var BinaryOpSymbol$29 = $T($S(CoffeeBinaryExistentialEnabled, $EXPECT($
|
|
8254
|
+
var BinaryOpSymbol$29 = $T($S(CoffeeBinaryExistentialEnabled, $EXPECT($L4, fail, 'BinaryOpSymbol "?"')), function(value) {
|
|
8120
8255
|
return "??";
|
|
8121
8256
|
});
|
|
8122
8257
|
var BinaryOpSymbol$30 = $TS($S($EXPECT($L80, fail, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
@@ -8206,7 +8341,7 @@ ${input.slice(result.pos)}
|
|
|
8206
8341
|
return $1;
|
|
8207
8342
|
});
|
|
8208
8343
|
var BinaryOpSymbol$40 = $EXPECT($L83, fail, 'BinaryOpSymbol "&"');
|
|
8209
|
-
var BinaryOpSymbol$41 = $EXPECT($
|
|
8344
|
+
var BinaryOpSymbol$41 = $EXPECT($L17, fail, 'BinaryOpSymbol "^"');
|
|
8210
8345
|
var BinaryOpSymbol$42 = $EXPECT($L84, fail, 'BinaryOpSymbol "|"');
|
|
8211
8346
|
function BinaryOpSymbol(state) {
|
|
8212
8347
|
let eventData;
|
|
@@ -8530,7 +8665,7 @@ ${input.slice(result.pos)}
|
|
|
8530
8665
|
return result;
|
|
8531
8666
|
}
|
|
8532
8667
|
}
|
|
8533
|
-
var BlockStatement$0 = $T($S(ExplicitBlock, $N($S(__, $EXPECT($
|
|
8668
|
+
var BlockStatement$0 = $T($S(ExplicitBlock, $N($S(__, $EXPECT($L2, fail, 'BlockStatement "="')))), function(value) {
|
|
8534
8669
|
return value[0];
|
|
8535
8670
|
});
|
|
8536
8671
|
function BlockStatement(state) {
|
|
@@ -9293,11 +9428,17 @@ ${input.slice(result.pos)}
|
|
|
9293
9428
|
if ($3) {
|
|
9294
9429
|
const indent = module.currentIndent.token + " ";
|
|
9295
9430
|
const block = "continue\n";
|
|
9296
|
-
$2
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9431
|
+
$2 = {
|
|
9432
|
+
...$2,
|
|
9433
|
+
blockPrefix: [
|
|
9434
|
+
...$2.blockPrefix,
|
|
9435
|
+
[indent, {
|
|
9436
|
+
type: "IfStatement",
|
|
9437
|
+
then: block,
|
|
9438
|
+
children: ["if (!(", module.insertTrimmingSpace($3, ""), ")) ", block]
|
|
9439
|
+
}]
|
|
9440
|
+
]
|
|
9441
|
+
};
|
|
9301
9442
|
}
|
|
9302
9443
|
return $2;
|
|
9303
9444
|
});
|
|
@@ -10060,7 +10201,7 @@ ${input.slice(result.pos)}
|
|
|
10060
10201
|
}
|
|
10061
10202
|
}
|
|
10062
10203
|
var ImpliedColon$0 = $S($E(_), Colon);
|
|
10063
|
-
var ImpliedColon$1 = $TV($EXPECT($
|
|
10204
|
+
var ImpliedColon$1 = $TV($EXPECT($L0, fail, 'ImpliedColon ""'), function($skip, $loc, $0, $1) {
|
|
10064
10205
|
return { $loc, token: ":" };
|
|
10065
10206
|
});
|
|
10066
10207
|
function ImpliedColon(state) {
|
|
@@ -10338,7 +10479,82 @@ ${input.slice(result.pos)}
|
|
|
10338
10479
|
return result;
|
|
10339
10480
|
}
|
|
10340
10481
|
}
|
|
10341
|
-
var
|
|
10482
|
+
var ForbidClassImplicitCall$0 = $TV($EXPECT($L0, fail, 'ForbidClassImplicitCall ""'), function($skip, $loc, $0, $1) {
|
|
10483
|
+
module.forbidIndentedApplication.push(true);
|
|
10484
|
+
});
|
|
10485
|
+
function ForbidClassImplicitCall(state) {
|
|
10486
|
+
let eventData;
|
|
10487
|
+
if (state.events) {
|
|
10488
|
+
const result = state.events.enter?.("ForbidClassImplicitCall", state);
|
|
10489
|
+
if (result) {
|
|
10490
|
+
if (result.cache)
|
|
10491
|
+
return result.cache;
|
|
10492
|
+
eventData = result.data;
|
|
10493
|
+
}
|
|
10494
|
+
}
|
|
10495
|
+
if (state.tokenize) {
|
|
10496
|
+
const result = $TOKEN("ForbidClassImplicitCall", state, ForbidClassImplicitCall$0(state));
|
|
10497
|
+
if (state.events)
|
|
10498
|
+
state.events.exit?.("ForbidClassImplicitCall", state, result, eventData);
|
|
10499
|
+
return result;
|
|
10500
|
+
} else {
|
|
10501
|
+
const result = ForbidClassImplicitCall$0(state);
|
|
10502
|
+
if (state.events)
|
|
10503
|
+
state.events.exit?.("ForbidClassImplicitCall", state, result, eventData);
|
|
10504
|
+
return result;
|
|
10505
|
+
}
|
|
10506
|
+
}
|
|
10507
|
+
var AllowClassImplicitCall$0 = $TV($EXPECT($L0, fail, 'AllowClassImplicitCall ""'), function($skip, $loc, $0, $1) {
|
|
10508
|
+
module.forbidIndentedApplication.push(false);
|
|
10509
|
+
});
|
|
10510
|
+
function AllowClassImplicitCall(state) {
|
|
10511
|
+
let eventData;
|
|
10512
|
+
if (state.events) {
|
|
10513
|
+
const result = state.events.enter?.("AllowClassImplicitCall", state);
|
|
10514
|
+
if (result) {
|
|
10515
|
+
if (result.cache)
|
|
10516
|
+
return result.cache;
|
|
10517
|
+
eventData = result.data;
|
|
10518
|
+
}
|
|
10519
|
+
}
|
|
10520
|
+
if (state.tokenize) {
|
|
10521
|
+
const result = $TOKEN("AllowClassImplicitCall", state, AllowClassImplicitCall$0(state));
|
|
10522
|
+
if (state.events)
|
|
10523
|
+
state.events.exit?.("AllowClassImplicitCall", state, result, eventData);
|
|
10524
|
+
return result;
|
|
10525
|
+
} else {
|
|
10526
|
+
const result = AllowClassImplicitCall$0(state);
|
|
10527
|
+
if (state.events)
|
|
10528
|
+
state.events.exit?.("AllowClassImplicitCall", state, result, eventData);
|
|
10529
|
+
return result;
|
|
10530
|
+
}
|
|
10531
|
+
}
|
|
10532
|
+
var RestoreClassImplicitCall$0 = $TV($EXPECT($L0, fail, 'RestoreClassImplicitCall ""'), function($skip, $loc, $0, $1) {
|
|
10533
|
+
module.forbidIndentedApplication.pop();
|
|
10534
|
+
});
|
|
10535
|
+
function RestoreClassImplicitCall(state) {
|
|
10536
|
+
let eventData;
|
|
10537
|
+
if (state.events) {
|
|
10538
|
+
const result = state.events.enter?.("RestoreClassImplicitCall", state);
|
|
10539
|
+
if (result) {
|
|
10540
|
+
if (result.cache)
|
|
10541
|
+
return result.cache;
|
|
10542
|
+
eventData = result.data;
|
|
10543
|
+
}
|
|
10544
|
+
}
|
|
10545
|
+
if (state.tokenize) {
|
|
10546
|
+
const result = $TOKEN("RestoreClassImplicitCall", state, RestoreClassImplicitCall$0(state));
|
|
10547
|
+
if (state.events)
|
|
10548
|
+
state.events.exit?.("RestoreClassImplicitCall", state, result, eventData);
|
|
10549
|
+
return result;
|
|
10550
|
+
} else {
|
|
10551
|
+
const result = RestoreClassImplicitCall$0(state);
|
|
10552
|
+
if (state.events)
|
|
10553
|
+
state.events.exit?.("RestoreClassImplicitCall", state, result, eventData);
|
|
10554
|
+
return result;
|
|
10555
|
+
}
|
|
10556
|
+
}
|
|
10557
|
+
var ForbidIndentedApplication$0 = $TV($EXPECT($L0, fail, 'ForbidIndentedApplication ""'), function($skip, $loc, $0, $1) {
|
|
10342
10558
|
module.forbidIndentedApplication.push(true);
|
|
10343
10559
|
});
|
|
10344
10560
|
function ForbidIndentedApplication(state) {
|
|
@@ -10363,7 +10579,7 @@ ${input.slice(result.pos)}
|
|
|
10363
10579
|
return result;
|
|
10364
10580
|
}
|
|
10365
10581
|
}
|
|
10366
|
-
var AllowIndentedApplication$0 = $TV($EXPECT($
|
|
10582
|
+
var AllowIndentedApplication$0 = $TV($EXPECT($L0, fail, 'AllowIndentedApplication ""'), function($skip, $loc, $0, $1) {
|
|
10367
10583
|
module.forbidIndentedApplication.push(false);
|
|
10368
10584
|
});
|
|
10369
10585
|
function AllowIndentedApplication(state) {
|
|
@@ -10388,7 +10604,7 @@ ${input.slice(result.pos)}
|
|
|
10388
10604
|
return result;
|
|
10389
10605
|
}
|
|
10390
10606
|
}
|
|
10391
|
-
var RestoreIndentedApplication$0 = $TV($EXPECT($
|
|
10607
|
+
var RestoreIndentedApplication$0 = $TV($EXPECT($L0, fail, 'RestoreIndentedApplication ""'), function($skip, $loc, $0, $1) {
|
|
10392
10608
|
module.forbidIndentedApplication.pop();
|
|
10393
10609
|
});
|
|
10394
10610
|
function RestoreIndentedApplication(state) {
|
|
@@ -10413,7 +10629,7 @@ ${input.slice(result.pos)}
|
|
|
10413
10629
|
return result;
|
|
10414
10630
|
}
|
|
10415
10631
|
}
|
|
10416
|
-
var IndentedApplicationAllowed$0 = $TV($EXPECT($
|
|
10632
|
+
var IndentedApplicationAllowed$0 = $TV($EXPECT($L0, fail, 'IndentedApplicationAllowed ""'), function($skip, $loc, $0, $1) {
|
|
10417
10633
|
if (module.config.verbose) {
|
|
10418
10634
|
console.log("forbidIndentedApplication:", module.forbidIndentedApplication);
|
|
10419
10635
|
}
|
|
@@ -10443,7 +10659,7 @@ ${input.slice(result.pos)}
|
|
|
10443
10659
|
return result;
|
|
10444
10660
|
}
|
|
10445
10661
|
}
|
|
10446
|
-
var ForbidTrailingMemberProperty$0 = $TV($EXPECT($
|
|
10662
|
+
var ForbidTrailingMemberProperty$0 = $TV($EXPECT($L0, fail, 'ForbidTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
|
|
10447
10663
|
module.forbidTrailingMemberProperty.push(true);
|
|
10448
10664
|
});
|
|
10449
10665
|
function ForbidTrailingMemberProperty(state) {
|
|
@@ -10468,7 +10684,7 @@ ${input.slice(result.pos)}
|
|
|
10468
10684
|
return result;
|
|
10469
10685
|
}
|
|
10470
10686
|
}
|
|
10471
|
-
var AllowTrailingMemberProperty$0 = $TV($EXPECT($
|
|
10687
|
+
var AllowTrailingMemberProperty$0 = $TV($EXPECT($L0, fail, 'AllowTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
|
|
10472
10688
|
module.forbidTrailingMemberProperty.push(false);
|
|
10473
10689
|
});
|
|
10474
10690
|
function AllowTrailingMemberProperty(state) {
|
|
@@ -10493,7 +10709,7 @@ ${input.slice(result.pos)}
|
|
|
10493
10709
|
return result;
|
|
10494
10710
|
}
|
|
10495
10711
|
}
|
|
10496
|
-
var RestoreTrailingMemberProperty$0 = $TV($EXPECT($
|
|
10712
|
+
var RestoreTrailingMemberProperty$0 = $TV($EXPECT($L0, fail, 'RestoreTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
|
|
10497
10713
|
module.forbidTrailingMemberProperty.pop();
|
|
10498
10714
|
});
|
|
10499
10715
|
function RestoreTrailingMemberProperty(state) {
|
|
@@ -10518,7 +10734,7 @@ ${input.slice(result.pos)}
|
|
|
10518
10734
|
return result;
|
|
10519
10735
|
}
|
|
10520
10736
|
}
|
|
10521
|
-
var TrailingMemberPropertyAllowed$0 = $TV($EXPECT($
|
|
10737
|
+
var TrailingMemberPropertyAllowed$0 = $TV($EXPECT($L0, fail, 'TrailingMemberPropertyAllowed ""'), function($skip, $loc, $0, $1) {
|
|
10522
10738
|
if (module.config.verbose) {
|
|
10523
10739
|
console.log("forbidTrailingMemberProperty:", module.forbidTrailingMemberProperty);
|
|
10524
10740
|
}
|
|
@@ -10547,7 +10763,7 @@ ${input.slice(result.pos)}
|
|
|
10547
10763
|
return result;
|
|
10548
10764
|
}
|
|
10549
10765
|
}
|
|
10550
|
-
var ForbidMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($
|
|
10766
|
+
var ForbidMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($L0, fail, 'ForbidMultiLineImplicitObjectLiteral ""'), function($skip, $loc, $0, $1) {
|
|
10551
10767
|
module.forbidMultiLineImplicitObjectLiteral.push(true);
|
|
10552
10768
|
});
|
|
10553
10769
|
function ForbidMultiLineImplicitObjectLiteral(state) {
|
|
@@ -10572,7 +10788,7 @@ ${input.slice(result.pos)}
|
|
|
10572
10788
|
return result;
|
|
10573
10789
|
}
|
|
10574
10790
|
}
|
|
10575
|
-
var AllowMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($
|
|
10791
|
+
var AllowMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($L0, fail, 'AllowMultiLineImplicitObjectLiteral ""'), function($skip, $loc, $0, $1) {
|
|
10576
10792
|
module.forbidMultiLineImplicitObjectLiteral.push(false);
|
|
10577
10793
|
});
|
|
10578
10794
|
function AllowMultiLineImplicitObjectLiteral(state) {
|
|
@@ -10597,7 +10813,7 @@ ${input.slice(result.pos)}
|
|
|
10597
10813
|
return result;
|
|
10598
10814
|
}
|
|
10599
10815
|
}
|
|
10600
|
-
var RestoreMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($
|
|
10816
|
+
var RestoreMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($L0, fail, 'RestoreMultiLineImplicitObjectLiteral ""'), function($skip, $loc, $0, $1) {
|
|
10601
10817
|
module.forbidMultiLineImplicitObjectLiteral.pop();
|
|
10602
10818
|
});
|
|
10603
10819
|
function RestoreMultiLineImplicitObjectLiteral(state) {
|
|
@@ -10622,7 +10838,7 @@ ${input.slice(result.pos)}
|
|
|
10622
10838
|
return result;
|
|
10623
10839
|
}
|
|
10624
10840
|
}
|
|
10625
|
-
var MultiLineImplicitObjectLiteralAllowed$0 = $TV($EXPECT($
|
|
10841
|
+
var MultiLineImplicitObjectLiteralAllowed$0 = $TV($EXPECT($L0, fail, 'MultiLineImplicitObjectLiteralAllowed ""'), function($skip, $loc, $0, $1) {
|
|
10626
10842
|
if (module.config.verbose) {
|
|
10627
10843
|
console.log("forbidMultiLineImplicitObjectLiteral:", module.forbidMultiLineImplicitObjectLiteral);
|
|
10628
10844
|
}
|
|
@@ -10651,7 +10867,7 @@ ${input.slice(result.pos)}
|
|
|
10651
10867
|
return result;
|
|
10652
10868
|
}
|
|
10653
10869
|
}
|
|
10654
|
-
var AllowAll$0 = $S(AllowTrailingMemberProperty, AllowIndentedApplication, AllowMultiLineImplicitObjectLiteral);
|
|
10870
|
+
var AllowAll$0 = $S(AllowTrailingMemberProperty, AllowIndentedApplication, AllowMultiLineImplicitObjectLiteral, AllowClassImplicitCall);
|
|
10655
10871
|
function AllowAll(state) {
|
|
10656
10872
|
let eventData;
|
|
10657
10873
|
if (state.events) {
|
|
@@ -10674,7 +10890,7 @@ ${input.slice(result.pos)}
|
|
|
10674
10890
|
return result;
|
|
10675
10891
|
}
|
|
10676
10892
|
}
|
|
10677
|
-
var RestoreAll$0 = $S(RestoreTrailingMemberProperty, RestoreIndentedApplication, RestoreMultiLineImplicitObjectLiteral);
|
|
10893
|
+
var RestoreAll$0 = $S(RestoreTrailingMemberProperty, RestoreIndentedApplication, RestoreMultiLineImplicitObjectLiteral, RestoreClassImplicitCall);
|
|
10678
10894
|
function RestoreAll(state) {
|
|
10679
10895
|
let eventData;
|
|
10680
10896
|
if (state.events) {
|
|
@@ -10736,7 +10952,7 @@ ${input.slice(result.pos)}
|
|
|
10736
10952
|
var KeywordStatement$2 = $T($S(Debugger), function(value) {
|
|
10737
10953
|
return { "type": "DebuggerStatement", "children": value };
|
|
10738
10954
|
});
|
|
10739
|
-
var KeywordStatement$3 = $T($S(Return, $N($C($EXPECT($
|
|
10955
|
+
var KeywordStatement$3 = $T($S(Return, $N($C($EXPECT($L5, fail, 'KeywordStatement "."'), AfterReturnShorthand)), $E(MaybeNestedExpression)), function(value) {
|
|
10740
10956
|
var expression = value[2];
|
|
10741
10957
|
return { "type": "ReturnStatement", "expression": expression, "children": value };
|
|
10742
10958
|
});
|
|
@@ -10926,10 +11142,14 @@ ${input.slice(result.pos)}
|
|
|
10926
11142
|
}
|
|
10927
11143
|
}
|
|
10928
11144
|
var ImportDeclaration$0 = $T($S(Import, __, TypeKeyword, __, ImportClause, __, FromClause, $E(ImportAssertion)), function(value) {
|
|
10929
|
-
return { "ts": true, "children": value };
|
|
11145
|
+
return { "type": "ImportDeclaration", "ts": true, "children": value };
|
|
11146
|
+
});
|
|
11147
|
+
var ImportDeclaration$1 = $T($S(Import, __, ImportClause, __, FromClause, $E(ImportAssertion)), function(value) {
|
|
11148
|
+
return { "type": "ImportDeclaration", "children": value };
|
|
11149
|
+
});
|
|
11150
|
+
var ImportDeclaration$2 = $T($S(Import, __, ModuleSpecifier, $E(ImportAssertion)), function(value) {
|
|
11151
|
+
return { "type": "ImportDeclaration", "children": value };
|
|
10930
11152
|
});
|
|
10931
|
-
var ImportDeclaration$1 = $S(Import, __, ImportClause, __, FromClause, $E(ImportAssertion));
|
|
10932
|
-
var ImportDeclaration$2 = $S(Import, __, ModuleSpecifier, $E(ImportAssertion));
|
|
10933
11153
|
var ImportDeclaration$3 = $TS($S(ImpliedImport, $E($S(TypeKeyword, __)), ImportClause, __, FromClause, $E(ImportAssertion)), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
10934
11154
|
var i = $1;
|
|
10935
11155
|
var t = $2;
|
|
@@ -10944,7 +11164,7 @@ ${input.slice(result.pos)}
|
|
|
10944
11164
|
const children = [i, t, c, w, f, a];
|
|
10945
11165
|
if (!t)
|
|
10946
11166
|
return children;
|
|
10947
|
-
return { ts: true, children };
|
|
11167
|
+
return { type: "ImportDeclaration", ts: true, children };
|
|
10948
11168
|
});
|
|
10949
11169
|
function ImportDeclaration(state) {
|
|
10950
11170
|
let eventData;
|
|
@@ -10968,7 +11188,7 @@ ${input.slice(result.pos)}
|
|
|
10968
11188
|
return result;
|
|
10969
11189
|
}
|
|
10970
11190
|
}
|
|
10971
|
-
var ImpliedImport$0 = $TV($EXPECT($
|
|
11191
|
+
var ImpliedImport$0 = $TV($EXPECT($L0, fail, 'ImpliedImport ""'), function($skip, $loc, $0, $1) {
|
|
10972
11192
|
return { $loc, token: "import " };
|
|
10973
11193
|
});
|
|
10974
11194
|
function ImpliedImport(state) {
|
|
@@ -11220,7 +11440,7 @@ ${input.slice(result.pos)}
|
|
|
11220
11440
|
}
|
|
11221
11441
|
}
|
|
11222
11442
|
var ImportAsToken$0 = $S(__, As);
|
|
11223
|
-
var ImportAsToken$1 = $TS($S(Loc, __, Colon, $E($EXPECT($
|
|
11443
|
+
var ImportAsToken$1 = $TS($S(Loc, __, Colon, $E($EXPECT($L9, fail, 'ImportAsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
11224
11444
|
var l = $1;
|
|
11225
11445
|
var ws = $2;
|
|
11226
11446
|
var c = $3;
|
|
@@ -11382,16 +11602,15 @@ ${input.slice(result.pos)}
|
|
|
11382
11602
|
return result;
|
|
11383
11603
|
}
|
|
11384
11604
|
}
|
|
11385
|
-
var ExportDeclaration$0 = $S(Export, __, Default, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression))
|
|
11605
|
+
var ExportDeclaration$0 = $TS($S(Export, __, Default, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression)), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
11606
|
+
return { type: "ExportDeclaration", children: $0 };
|
|
11607
|
+
});
|
|
11386
11608
|
var ExportDeclaration$1 = $TS($S(Export, __, ExportFromClause, __, FromClause), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
11387
|
-
|
|
11388
|
-
return $0;
|
|
11389
|
-
return { ts: true, children: $0 };
|
|
11609
|
+
return { type: "ExportDeclaration", ts: $3.ts, children: $0 };
|
|
11390
11610
|
});
|
|
11391
|
-
var ExportDeclaration$2 = $TS($S(Export, __, $C(Declaration, VariableStatement, TypeAndNamedExports, ExportVarDec)), function($skip, $loc, $0, $1, $2, $3) {
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
return { ts: true, children: $0 };
|
|
11611
|
+
var ExportDeclaration$2 = $TS($S($E(Decorators), Export, __, $C(Declaration, VariableStatement, TypeAndNamedExports, ExportVarDec)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
11612
|
+
var decl = $4;
|
|
11613
|
+
return { type: "ExportDeclaration", ts: decl.ts, children: $0 };
|
|
11395
11614
|
});
|
|
11396
11615
|
function ExportDeclaration(state) {
|
|
11397
11616
|
let eventData;
|
|
@@ -13362,7 +13581,7 @@ ${input.slice(result.pos)}
|
|
|
13362
13581
|
}
|
|
13363
13582
|
}
|
|
13364
13583
|
var StatementDelimiter$0 = SemicolonDelimiter;
|
|
13365
|
-
var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($
|
|
13584
|
+
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);
|
|
13366
13585
|
var StatementDelimiter$2 = $Y(EOS);
|
|
13367
13586
|
function StatementDelimiter(state) {
|
|
13368
13587
|
let eventData;
|
|
@@ -13437,7 +13656,7 @@ ${input.slice(result.pos)}
|
|
|
13437
13656
|
return result;
|
|
13438
13657
|
}
|
|
13439
13658
|
}
|
|
13440
|
-
var Loc$0 = $TV($EXPECT($
|
|
13659
|
+
var Loc$0 = $TV($EXPECT($L0, fail, 'Loc ""'), function($skip, $loc, $0, $1) {
|
|
13441
13660
|
return { $loc, token: "" };
|
|
13442
13661
|
});
|
|
13443
13662
|
function Loc(state) {
|
|
@@ -13462,7 +13681,7 @@ ${input.slice(result.pos)}
|
|
|
13462
13681
|
return result;
|
|
13463
13682
|
}
|
|
13464
13683
|
}
|
|
13465
|
-
var Abstract$0 = $TV($TEXT($S($EXPECT($L99, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($
|
|
13684
|
+
var Abstract$0 = $TV($TEXT($S($EXPECT($L99, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L9, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
|
|
13466
13685
|
return { $loc, token: $1, ts: true };
|
|
13467
13686
|
});
|
|
13468
13687
|
function Abstract(state) {
|
|
@@ -14037,7 +14256,7 @@ ${input.slice(result.pos)}
|
|
|
14037
14256
|
return result;
|
|
14038
14257
|
}
|
|
14039
14258
|
}
|
|
14040
|
-
var Dot$0 = $TV($EXPECT($
|
|
14259
|
+
var Dot$0 = $TV($EXPECT($L5, fail, 'Dot "."'), function($skip, $loc, $0, $1) {
|
|
14041
14260
|
return { $loc, token: $1 };
|
|
14042
14261
|
});
|
|
14043
14262
|
function Dot(state) {
|
|
@@ -14062,7 +14281,7 @@ ${input.slice(result.pos)}
|
|
|
14062
14281
|
return result;
|
|
14063
14282
|
}
|
|
14064
14283
|
}
|
|
14065
|
-
var DotDot$0 = $TS($S($EXPECT($L114, fail, 'DotDot ".."'), $N($EXPECT($
|
|
14284
|
+
var DotDot$0 = $TS($S($EXPECT($L114, fail, 'DotDot ".."'), $N($EXPECT($L5, fail, 'DotDot "."'))), function($skip, $loc, $0, $1, $2) {
|
|
14066
14285
|
return { $loc, token: $1 };
|
|
14067
14286
|
});
|
|
14068
14287
|
function DotDot(state) {
|
|
@@ -14187,7 +14406,7 @@ ${input.slice(result.pos)}
|
|
|
14187
14406
|
return result;
|
|
14188
14407
|
}
|
|
14189
14408
|
}
|
|
14190
|
-
var Equals$0 = $TV($EXPECT($
|
|
14409
|
+
var Equals$0 = $TV($EXPECT($L2, fail, 'Equals "="'), function($skip, $loc, $0, $1) {
|
|
14191
14410
|
return { $loc, token: $1 };
|
|
14192
14411
|
});
|
|
14193
14412
|
function Equals(state) {
|
|
@@ -14387,7 +14606,7 @@ ${input.slice(result.pos)}
|
|
|
14387
14606
|
return result;
|
|
14388
14607
|
}
|
|
14389
14608
|
}
|
|
14390
|
-
var If$0 = $TV($TEXT($S($EXPECT($L127, fail, 'If "if"'), NonIdContinue, $E($EXPECT($
|
|
14609
|
+
var If$0 = $TV($TEXT($S($EXPECT($L127, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L9, fail, 'If " "')))), function($skip, $loc, $0, $1) {
|
|
14391
14610
|
return { $loc, token: $1 };
|
|
14392
14611
|
});
|
|
14393
14612
|
function If(state) {
|
|
@@ -14412,7 +14631,7 @@ ${input.slice(result.pos)}
|
|
|
14412
14631
|
return result;
|
|
14413
14632
|
}
|
|
14414
14633
|
}
|
|
14415
|
-
var Import$0 = $TS($S($EXPECT($
|
|
14634
|
+
var Import$0 = $TS($S($EXPECT($L14, fail, 'Import "import"'), $Y($EXPECT($R49, fail, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
|
|
14416
14635
|
return { $loc, token: $1 };
|
|
14417
14636
|
});
|
|
14418
14637
|
function Import(state) {
|
|
@@ -14586,7 +14805,7 @@ ${input.slice(result.pos)}
|
|
|
14586
14805
|
return result;
|
|
14587
14806
|
}
|
|
14588
14807
|
}
|
|
14589
|
-
var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L52, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($
|
|
14808
|
+
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) {
|
|
14590
14809
|
return { $loc, token: "!" };
|
|
14591
14810
|
});
|
|
14592
14811
|
function Not(state) {
|
|
@@ -14711,7 +14930,7 @@ ${input.slice(result.pos)}
|
|
|
14711
14930
|
return result;
|
|
14712
14931
|
}
|
|
14713
14932
|
}
|
|
14714
|
-
var OpenParen$0 = $TV($EXPECT($
|
|
14933
|
+
var OpenParen$0 = $TV($EXPECT($L3, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
|
|
14715
14934
|
return { $loc, token: $1 };
|
|
14716
14935
|
});
|
|
14717
14936
|
function OpenParen(state) {
|
|
@@ -14867,7 +15086,7 @@ ${input.slice(result.pos)}
|
|
|
14867
15086
|
return result;
|
|
14868
15087
|
}
|
|
14869
15088
|
}
|
|
14870
|
-
var QuestionMark$0 = $TV($EXPECT($
|
|
15089
|
+
var QuestionMark$0 = $TV($EXPECT($L4, fail, 'QuestionMark "?"'), function($skip, $loc, $0, $1) {
|
|
14871
15090
|
return { $loc, token: $1 };
|
|
14872
15091
|
});
|
|
14873
15092
|
function QuestionMark(state) {
|
|
@@ -15045,7 +15264,7 @@ ${input.slice(result.pos)}
|
|
|
15045
15264
|
var Static$0 = $TS($S($EXPECT($L145, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
15046
15265
|
return { $loc, token: $1 };
|
|
15047
15266
|
});
|
|
15048
|
-
var Static$1 = $TS($S($EXPECT($L101, fail, 'Static "@"'), $N($C($EXPECT($
|
|
15267
|
+
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) {
|
|
15049
15268
|
return { $loc, token: "static " };
|
|
15050
15269
|
});
|
|
15051
15270
|
function Static(state) {
|
|
@@ -15716,7 +15935,7 @@ ${input.slice(result.pos)}
|
|
|
15716
15935
|
return result;
|
|
15717
15936
|
}
|
|
15718
15937
|
}
|
|
15719
|
-
var PopJSXStack$0 = $TV($EXPECT($
|
|
15938
|
+
var PopJSXStack$0 = $TV($EXPECT($L0, fail, 'PopJSXStack ""'), function($skip, $loc, $0, $1) {
|
|
15720
15939
|
module.JSXTagStack.pop();
|
|
15721
15940
|
});
|
|
15722
15941
|
function PopJSXStack(state) {
|
|
@@ -15770,7 +15989,7 @@ ${input.slice(result.pos)}
|
|
|
15770
15989
|
return $skip;
|
|
15771
15990
|
return $0;
|
|
15772
15991
|
});
|
|
15773
|
-
var JSXOptionalClosingElement$1 = $EXPECT($
|
|
15992
|
+
var JSXOptionalClosingElement$1 = $EXPECT($L0, fail, 'JSXOptionalClosingElement ""');
|
|
15774
15993
|
function JSXOptionalClosingElement(state) {
|
|
15775
15994
|
let eventData;
|
|
15776
15995
|
if (state.events) {
|
|
@@ -15893,7 +16112,7 @@ ${input.slice(result.pos)}
|
|
|
15893
16112
|
return $skip;
|
|
15894
16113
|
return $0;
|
|
15895
16114
|
});
|
|
15896
|
-
var JSXOptionalClosingFragment$1 = $EXPECT($
|
|
16115
|
+
var JSXOptionalClosingFragment$1 = $EXPECT($L0, fail, 'JSXOptionalClosingFragment ""');
|
|
15897
16116
|
function JSXOptionalClosingFragment(state) {
|
|
15898
16117
|
let eventData;
|
|
15899
16118
|
if (state.events) {
|
|
@@ -16141,7 +16360,7 @@ ${input.slice(result.pos)}
|
|
|
16141
16360
|
}
|
|
16142
16361
|
});
|
|
16143
16362
|
var JSXAttribute$2 = $S(InsertInlineOpenBrace, DotDotDot, InlineJSXAttributeValue, InsertCloseBrace, $Y(JSXAttributeSpace));
|
|
16144
|
-
var JSXAttribute$3 = $TS($S($EXPECT($
|
|
16363
|
+
var JSXAttribute$3 = $TS($S($EXPECT($L12, fail, 'JSXAttribute "#"'), JSXShorthandString), function($skip, $loc, $0, $1, $2) {
|
|
16145
16364
|
return [" ", "id=", $2];
|
|
16146
16365
|
});
|
|
16147
16366
|
var JSXAttribute$4 = $TS($S(Dot, JSXShorthandString), function($skip, $loc, $0, $1, $2) {
|
|
@@ -16468,8 +16687,8 @@ ${input.slice(result.pos)}
|
|
|
16468
16687
|
return result;
|
|
16469
16688
|
}
|
|
16470
16689
|
}
|
|
16471
|
-
var InlineJSXCallExpression$0 = $S($EXPECT($
|
|
16472
|
-
var InlineJSXCallExpression$1 = $S($EXPECT($
|
|
16690
|
+
var InlineJSXCallExpression$0 = $S($EXPECT($L13, fail, 'InlineJSXCallExpression "super"'), ExplicitArguments);
|
|
16691
|
+
var InlineJSXCallExpression$1 = $S($EXPECT($L14, fail, 'InlineJSXCallExpression "import"'), OpenParen, PostfixedExpression, __, CloseParen);
|
|
16473
16692
|
var InlineJSXCallExpression$2 = $TS($S(InlineJSXMemberExpression, $Q(InlineJSXCallExpressionRest)), function($skip, $loc, $0, $1, $2) {
|
|
16474
16693
|
if ($2.length)
|
|
16475
16694
|
return $0;
|
|
@@ -17565,7 +17784,7 @@ ${input.slice(result.pos)}
|
|
|
17565
17784
|
return result;
|
|
17566
17785
|
}
|
|
17567
17786
|
}
|
|
17568
|
-
var DeclareElement$0 = $T($S($E($S(Export, $E(_))), TypeLexicalDeclaration), function(value) {
|
|
17787
|
+
var DeclareElement$0 = $T($S($E(Decorators), $E($S(Export, $E(_))), TypeLexicalDeclaration), function(value) {
|
|
17569
17788
|
return { "ts": true, "children": value };
|
|
17570
17789
|
});
|
|
17571
17790
|
var DeclareElement$1 = $T($S($E($S(Export, $E(_))), TypeDeclarationRest), function(value) {
|
|
@@ -17614,7 +17833,7 @@ ${input.slice(result.pos)}
|
|
|
17614
17833
|
let init, isString;
|
|
17615
17834
|
if (property.init) {
|
|
17616
17835
|
init = module.replaceNodes(
|
|
17617
|
-
|
|
17836
|
+
module.deepCopy(property.init),
|
|
17618
17837
|
(n) => n.type === "Identifier" && names.has(n.name),
|
|
17619
17838
|
(n) => [id, '["', n.name, '"]']
|
|
17620
17839
|
);
|
|
@@ -18153,8 +18372,8 @@ ${input.slice(result.pos)}
|
|
|
18153
18372
|
return result;
|
|
18154
18373
|
}
|
|
18155
18374
|
}
|
|
18156
|
-
var ImportType$0 = $S($EXPECT($
|
|
18157
|
-
var ImportType$1 = $S($EXPECT($
|
|
18375
|
+
var ImportType$0 = $S($EXPECT($L14, fail, 'ImportType "import"'), OpenParen, __, StringLiteral, __, CloseParen, $E($S(Dot, IdentifierName)), $E(TypeArguments));
|
|
18376
|
+
var ImportType$1 = $S($EXPECT($L14, fail, 'ImportType "import"'), InsertOpenParen, Trimmed_, StringLiteral, InsertCloseParen);
|
|
18158
18377
|
function ImportType(state) {
|
|
18159
18378
|
let eventData;
|
|
18160
18379
|
if (state.events) {
|
|
@@ -18463,7 +18682,7 @@ ${input.slice(result.pos)}
|
|
|
18463
18682
|
return result;
|
|
18464
18683
|
}
|
|
18465
18684
|
}
|
|
18466
|
-
var TypeArrowFunction$0 = $TV($EXPECT($
|
|
18685
|
+
var TypeArrowFunction$0 = $TV($EXPECT($L8, fail, 'TypeArrowFunction "=>"'), function($skip, $loc, $0, $1) {
|
|
18467
18686
|
return { $loc, token: "=>" };
|
|
18468
18687
|
});
|
|
18469
18688
|
var TypeArrowFunction$1 = $TV($EXPECT($L21, fail, 'TypeArrowFunction "->"'), function($skip, $loc, $0, $1) {
|
|
@@ -18639,7 +18858,7 @@ ${input.slice(result.pos)}
|
|
|
18639
18858
|
return result;
|
|
18640
18859
|
}
|
|
18641
18860
|
}
|
|
18642
|
-
var TypeInitializer$0 = $S(__, $EXPECT($
|
|
18861
|
+
var TypeInitializer$0 = $S(__, $EXPECT($L2, fail, 'TypeInitializer "="'), Type);
|
|
18643
18862
|
function TypeInitializer(state) {
|
|
18644
18863
|
let eventData;
|
|
18645
18864
|
if (state.events) {
|
|
@@ -18928,7 +19147,7 @@ ${input.slice(result.pos)}
|
|
|
18928
19147
|
return result;
|
|
18929
19148
|
}
|
|
18930
19149
|
}
|
|
18931
|
-
var DebugHere$0 = $TV($EXPECT($
|
|
19150
|
+
var DebugHere$0 = $TV($EXPECT($L0, fail, 'DebugHere ""'), function($skip, $loc, $0, $1) {
|
|
18932
19151
|
debugger;
|
|
18933
19152
|
});
|
|
18934
19153
|
function DebugHere(state) {
|
|
@@ -18953,7 +19172,7 @@ ${input.slice(result.pos)}
|
|
|
18953
19172
|
return result;
|
|
18954
19173
|
}
|
|
18955
19174
|
}
|
|
18956
|
-
var InsertSemicolon$0 = $TV($EXPECT($
|
|
19175
|
+
var InsertSemicolon$0 = $TV($EXPECT($L0, fail, 'InsertSemicolon ""'), function($skip, $loc, $0, $1) {
|
|
18957
19176
|
return { $loc, token: ";" };
|
|
18958
19177
|
});
|
|
18959
19178
|
function InsertSemicolon(state) {
|
|
@@ -18978,7 +19197,7 @@ ${input.slice(result.pos)}
|
|
|
18978
19197
|
return result;
|
|
18979
19198
|
}
|
|
18980
19199
|
}
|
|
18981
|
-
var InsertOpenParen$0 = $TV($EXPECT($
|
|
19200
|
+
var InsertOpenParen$0 = $TV($EXPECT($L0, fail, 'InsertOpenParen ""'), function($skip, $loc, $0, $1) {
|
|
18982
19201
|
return { $loc, token: "(" };
|
|
18983
19202
|
});
|
|
18984
19203
|
function InsertOpenParen(state) {
|
|
@@ -19003,7 +19222,7 @@ ${input.slice(result.pos)}
|
|
|
19003
19222
|
return result;
|
|
19004
19223
|
}
|
|
19005
19224
|
}
|
|
19006
|
-
var InsertCloseParen$0 = $TV($EXPECT($
|
|
19225
|
+
var InsertCloseParen$0 = $TV($EXPECT($L0, fail, 'InsertCloseParen ""'), function($skip, $loc, $0, $1) {
|
|
19007
19226
|
return { $loc, token: ")" };
|
|
19008
19227
|
});
|
|
19009
19228
|
function InsertCloseParen(state) {
|
|
@@ -19028,7 +19247,7 @@ ${input.slice(result.pos)}
|
|
|
19028
19247
|
return result;
|
|
19029
19248
|
}
|
|
19030
19249
|
}
|
|
19031
|
-
var InsertOpenBrace$0 = $TV($EXPECT($
|
|
19250
|
+
var InsertOpenBrace$0 = $TV($EXPECT($L0, fail, 'InsertOpenBrace ""'), function($skip, $loc, $0, $1) {
|
|
19032
19251
|
return [{ $loc, token: " " }, { $loc, token: "{" }];
|
|
19033
19252
|
});
|
|
19034
19253
|
function InsertOpenBrace(state) {
|
|
@@ -19053,7 +19272,7 @@ ${input.slice(result.pos)}
|
|
|
19053
19272
|
return result;
|
|
19054
19273
|
}
|
|
19055
19274
|
}
|
|
19056
|
-
var InsertInlineOpenBrace$0 = $TV($EXPECT($
|
|
19275
|
+
var InsertInlineOpenBrace$0 = $TV($EXPECT($L0, fail, 'InsertInlineOpenBrace ""'), function($skip, $loc, $0, $1) {
|
|
19057
19276
|
return { $loc, token: "{" };
|
|
19058
19277
|
});
|
|
19059
19278
|
function InsertInlineOpenBrace(state) {
|
|
@@ -19078,7 +19297,7 @@ ${input.slice(result.pos)}
|
|
|
19078
19297
|
return result;
|
|
19079
19298
|
}
|
|
19080
19299
|
}
|
|
19081
|
-
var InsertCloseBrace$0 = $TV($EXPECT($
|
|
19300
|
+
var InsertCloseBrace$0 = $TV($EXPECT($L0, fail, 'InsertCloseBrace ""'), function($skip, $loc, $0, $1) {
|
|
19082
19301
|
return { $loc, token: "}" };
|
|
19083
19302
|
});
|
|
19084
19303
|
function InsertCloseBrace(state) {
|
|
@@ -19103,7 +19322,7 @@ ${input.slice(result.pos)}
|
|
|
19103
19322
|
return result;
|
|
19104
19323
|
}
|
|
19105
19324
|
}
|
|
19106
|
-
var InsertOpenBracket$0 = $TV($EXPECT($
|
|
19325
|
+
var InsertOpenBracket$0 = $TV($EXPECT($L0, fail, 'InsertOpenBracket ""'), function($skip, $loc, $0, $1) {
|
|
19107
19326
|
return { $loc, token: "[" };
|
|
19108
19327
|
});
|
|
19109
19328
|
function InsertOpenBracket(state) {
|
|
@@ -19128,7 +19347,7 @@ ${input.slice(result.pos)}
|
|
|
19128
19347
|
return result;
|
|
19129
19348
|
}
|
|
19130
19349
|
}
|
|
19131
|
-
var InsertCloseBracket$0 = $TV($EXPECT($
|
|
19350
|
+
var InsertCloseBracket$0 = $TV($EXPECT($L0, fail, 'InsertCloseBracket ""'), function($skip, $loc, $0, $1) {
|
|
19132
19351
|
return { $loc, token: "]" };
|
|
19133
19352
|
});
|
|
19134
19353
|
function InsertCloseBracket(state) {
|
|
@@ -19153,7 +19372,7 @@ ${input.slice(result.pos)}
|
|
|
19153
19372
|
return result;
|
|
19154
19373
|
}
|
|
19155
19374
|
}
|
|
19156
|
-
var InsertComma$0 = $TV($EXPECT($
|
|
19375
|
+
var InsertComma$0 = $TV($EXPECT($L0, fail, 'InsertComma ""'), function($skip, $loc, $0, $1) {
|
|
19157
19376
|
return { $loc, token: "," };
|
|
19158
19377
|
});
|
|
19159
19378
|
function InsertComma(state) {
|
|
@@ -19178,7 +19397,7 @@ ${input.slice(result.pos)}
|
|
|
19178
19397
|
return result;
|
|
19179
19398
|
}
|
|
19180
19399
|
}
|
|
19181
|
-
var InsertConst$0 = $TV($EXPECT($
|
|
19400
|
+
var InsertConst$0 = $TV($EXPECT($L0, fail, 'InsertConst ""'), function($skip, $loc, $0, $1) {
|
|
19182
19401
|
return { $loc, token: "const " };
|
|
19183
19402
|
});
|
|
19184
19403
|
function InsertConst(state) {
|
|
@@ -19203,7 +19422,7 @@ ${input.slice(result.pos)}
|
|
|
19203
19422
|
return result;
|
|
19204
19423
|
}
|
|
19205
19424
|
}
|
|
19206
|
-
var InsertLet$0 = $TV($EXPECT($
|
|
19425
|
+
var InsertLet$0 = $TV($EXPECT($L0, fail, 'InsertLet ""'), function($skip, $loc, $0, $1) {
|
|
19207
19426
|
return { $loc, token: "let " };
|
|
19208
19427
|
});
|
|
19209
19428
|
function InsertLet(state) {
|
|
@@ -19228,7 +19447,7 @@ ${input.slice(result.pos)}
|
|
|
19228
19447
|
return result;
|
|
19229
19448
|
}
|
|
19230
19449
|
}
|
|
19231
|
-
var InsertReadonly$0 = $TV($EXPECT($
|
|
19450
|
+
var InsertReadonly$0 = $TV($EXPECT($L0, fail, 'InsertReadonly ""'), function($skip, $loc, $0, $1) {
|
|
19232
19451
|
return { ts: true, children: [{ $loc, token: "readonly " }] };
|
|
19233
19452
|
});
|
|
19234
19453
|
function InsertReadonly(state) {
|
|
@@ -19253,7 +19472,7 @@ ${input.slice(result.pos)}
|
|
|
19253
19472
|
return result;
|
|
19254
19473
|
}
|
|
19255
19474
|
}
|
|
19256
|
-
var InsertNewline$0 = $TV($EXPECT($
|
|
19475
|
+
var InsertNewline$0 = $TV($EXPECT($L0, fail, 'InsertNewline ""'), function($skip, $loc, $0, $1) {
|
|
19257
19476
|
return "\n";
|
|
19258
19477
|
});
|
|
19259
19478
|
function InsertNewline(state) {
|
|
@@ -19278,7 +19497,7 @@ ${input.slice(result.pos)}
|
|
|
19278
19497
|
return result;
|
|
19279
19498
|
}
|
|
19280
19499
|
}
|
|
19281
|
-
var InsertIndent$0 = $TV($EXPECT($
|
|
19500
|
+
var InsertIndent$0 = $TV($EXPECT($L0, fail, 'InsertIndent ""'), function($skip, $loc, $0, $1) {
|
|
19282
19501
|
return module.currentIndent.token;
|
|
19283
19502
|
});
|
|
19284
19503
|
function InsertIndent(state) {
|
|
@@ -19303,7 +19522,7 @@ ${input.slice(result.pos)}
|
|
|
19303
19522
|
return result;
|
|
19304
19523
|
}
|
|
19305
19524
|
}
|
|
19306
|
-
var InsertSpace$0 = $TV($EXPECT($
|
|
19525
|
+
var InsertSpace$0 = $TV($EXPECT($L0, fail, 'InsertSpace ""'), function($skip, $loc, $0, $1) {
|
|
19307
19526
|
return { $loc, token: " " };
|
|
19308
19527
|
});
|
|
19309
19528
|
function InsertSpace(state) {
|
|
@@ -19328,7 +19547,7 @@ ${input.slice(result.pos)}
|
|
|
19328
19547
|
return result;
|
|
19329
19548
|
}
|
|
19330
19549
|
}
|
|
19331
|
-
var InsertDot$0 = $TV($EXPECT($
|
|
19550
|
+
var InsertDot$0 = $TV($EXPECT($L0, fail, 'InsertDot ""'), function($skip, $loc, $0, $1) {
|
|
19332
19551
|
return { $loc, token: "." };
|
|
19333
19552
|
});
|
|
19334
19553
|
function InsertDot(state) {
|
|
@@ -19353,7 +19572,7 @@ ${input.slice(result.pos)}
|
|
|
19353
19572
|
return result;
|
|
19354
19573
|
}
|
|
19355
19574
|
}
|
|
19356
|
-
var InsertBreak$0 = $TV($EXPECT($
|
|
19575
|
+
var InsertBreak$0 = $TV($EXPECT($L0, fail, 'InsertBreak ""'), function($skip, $loc, $0, $1) {
|
|
19357
19576
|
return { $loc, token: ";break;" };
|
|
19358
19577
|
});
|
|
19359
19578
|
function InsertBreak(state) {
|
|
@@ -19378,7 +19597,7 @@ ${input.slice(result.pos)}
|
|
|
19378
19597
|
return result;
|
|
19379
19598
|
}
|
|
19380
19599
|
}
|
|
19381
|
-
var InsertVar$0 = $TV($EXPECT($
|
|
19600
|
+
var InsertVar$0 = $TV($EXPECT($L0, fail, 'InsertVar ""'), function($skip, $loc, $0, $1) {
|
|
19382
19601
|
return { $loc, token: "var " };
|
|
19383
19602
|
});
|
|
19384
19603
|
function InsertVar(state) {
|
|
@@ -19403,7 +19622,7 @@ ${input.slice(result.pos)}
|
|
|
19403
19622
|
return result;
|
|
19404
19623
|
}
|
|
19405
19624
|
}
|
|
19406
|
-
var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($
|
|
19625
|
+
var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeBinaryExistentialEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19407
19626
|
if (module.config.coffeeBinaryExistential)
|
|
19408
19627
|
return;
|
|
19409
19628
|
return $skip;
|
|
@@ -19430,7 +19649,7 @@ ${input.slice(result.pos)}
|
|
|
19430
19649
|
return result;
|
|
19431
19650
|
}
|
|
19432
19651
|
}
|
|
19433
|
-
var CoffeeBooleansEnabled$0 = $TV($EXPECT($
|
|
19652
|
+
var CoffeeBooleansEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeBooleansEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19434
19653
|
if (module.config.coffeeBooleans)
|
|
19435
19654
|
return;
|
|
19436
19655
|
return $skip;
|
|
@@ -19457,7 +19676,7 @@ ${input.slice(result.pos)}
|
|
|
19457
19676
|
return result;
|
|
19458
19677
|
}
|
|
19459
19678
|
}
|
|
19460
|
-
var CoffeeClassesEnabled$0 = $TV($EXPECT($
|
|
19679
|
+
var CoffeeClassesEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeClassesEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19461
19680
|
if (module.config.coffeeClasses)
|
|
19462
19681
|
return;
|
|
19463
19682
|
return $skip;
|
|
@@ -19484,7 +19703,7 @@ ${input.slice(result.pos)}
|
|
|
19484
19703
|
return result;
|
|
19485
19704
|
}
|
|
19486
19705
|
}
|
|
19487
|
-
var CoffeeCommentEnabled$0 = $TV($EXPECT($
|
|
19706
|
+
var CoffeeCommentEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeCommentEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19488
19707
|
if (module.config.coffeeComment)
|
|
19489
19708
|
return;
|
|
19490
19709
|
return $skip;
|
|
@@ -19511,7 +19730,7 @@ ${input.slice(result.pos)}
|
|
|
19511
19730
|
return result;
|
|
19512
19731
|
}
|
|
19513
19732
|
}
|
|
19514
|
-
var CoffeeDoEnabled$0 = $TV($EXPECT($
|
|
19733
|
+
var CoffeeDoEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeDoEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19515
19734
|
if (module.config.coffeeDo)
|
|
19516
19735
|
return;
|
|
19517
19736
|
return $skip;
|
|
@@ -19538,7 +19757,7 @@ ${input.slice(result.pos)}
|
|
|
19538
19757
|
return result;
|
|
19539
19758
|
}
|
|
19540
19759
|
}
|
|
19541
|
-
var CoffeeForLoopsEnabled$0 = $TV($EXPECT($
|
|
19760
|
+
var CoffeeForLoopsEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeForLoopsEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19542
19761
|
if (module.config.coffeeForLoops)
|
|
19543
19762
|
return;
|
|
19544
19763
|
return $skip;
|
|
@@ -19565,7 +19784,7 @@ ${input.slice(result.pos)}
|
|
|
19565
19784
|
return result;
|
|
19566
19785
|
}
|
|
19567
19786
|
}
|
|
19568
|
-
var CoffeeInterpolationEnabled$0 = $TV($EXPECT($
|
|
19787
|
+
var CoffeeInterpolationEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeInterpolationEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19569
19788
|
if (module.config.coffeeInterpolation)
|
|
19570
19789
|
return;
|
|
19571
19790
|
return $skip;
|
|
@@ -19592,7 +19811,7 @@ ${input.slice(result.pos)}
|
|
|
19592
19811
|
return result;
|
|
19593
19812
|
}
|
|
19594
19813
|
}
|
|
19595
|
-
var CoffeeIsntEnabled$0 = $TV($EXPECT($
|
|
19814
|
+
var CoffeeIsntEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeIsntEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19596
19815
|
if (module.config.coffeeIsnt)
|
|
19597
19816
|
return;
|
|
19598
19817
|
return $skip;
|
|
@@ -19619,7 +19838,7 @@ ${input.slice(result.pos)}
|
|
|
19619
19838
|
return result;
|
|
19620
19839
|
}
|
|
19621
19840
|
}
|
|
19622
|
-
var CoffeeJSXEnabled$0 = $TV($EXPECT($
|
|
19841
|
+
var CoffeeJSXEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeJSXEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19623
19842
|
if (module.config.coffeeJSX)
|
|
19624
19843
|
return;
|
|
19625
19844
|
return $skip;
|
|
@@ -19646,7 +19865,7 @@ ${input.slice(result.pos)}
|
|
|
19646
19865
|
return result;
|
|
19647
19866
|
}
|
|
19648
19867
|
}
|
|
19649
|
-
var CoffeeLineContinuationEnabled$0 = $TV($EXPECT($
|
|
19868
|
+
var CoffeeLineContinuationEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeLineContinuationEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19650
19869
|
if (module.config.coffeeLineContinuation)
|
|
19651
19870
|
return;
|
|
19652
19871
|
return $skip;
|
|
@@ -19673,7 +19892,7 @@ ${input.slice(result.pos)}
|
|
|
19673
19892
|
return result;
|
|
19674
19893
|
}
|
|
19675
19894
|
}
|
|
19676
|
-
var CoffeeNotEnabled$0 = $TV($EXPECT($
|
|
19895
|
+
var CoffeeNotEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeNotEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19677
19896
|
if (module.config.coffeeNot)
|
|
19678
19897
|
return;
|
|
19679
19898
|
return $skip;
|
|
@@ -19700,7 +19919,7 @@ ${input.slice(result.pos)}
|
|
|
19700
19919
|
return result;
|
|
19701
19920
|
}
|
|
19702
19921
|
}
|
|
19703
|
-
var CoffeeOfEnabled$0 = $TV($EXPECT($
|
|
19922
|
+
var CoffeeOfEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeOfEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19704
19923
|
if (module.config.coffeeOf)
|
|
19705
19924
|
return;
|
|
19706
19925
|
return $skip;
|
|
@@ -19727,7 +19946,7 @@ ${input.slice(result.pos)}
|
|
|
19727
19946
|
return result;
|
|
19728
19947
|
}
|
|
19729
19948
|
}
|
|
19730
|
-
var CoffeePrototypeEnabled$0 = $TV($EXPECT($
|
|
19949
|
+
var CoffeePrototypeEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeePrototypeEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19731
19950
|
if (module.config.coffeePrototype)
|
|
19732
19951
|
return;
|
|
19733
19952
|
return $skip;
|
|
@@ -19754,7 +19973,7 @@ ${input.slice(result.pos)}
|
|
|
19754
19973
|
return result;
|
|
19755
19974
|
}
|
|
19756
19975
|
}
|
|
19757
|
-
var ObjectIsEnabled$0 = $TV($EXPECT($
|
|
19976
|
+
var ObjectIsEnabled$0 = $TV($EXPECT($L0, fail, 'ObjectIsEnabled ""'), function($skip, $loc, $0, $1) {
|
|
19758
19977
|
if (module.config.objectIs)
|
|
19759
19978
|
return;
|
|
19760
19979
|
return $skip;
|
|
@@ -19781,11 +20000,12 @@ ${input.slice(result.pos)}
|
|
|
19781
20000
|
return result;
|
|
19782
20001
|
}
|
|
19783
20002
|
}
|
|
19784
|
-
var Reset$0 = $TV($EXPECT($
|
|
20003
|
+
var Reset$0 = $TV($EXPECT($L0, fail, 'Reset ""'), function($skip, $loc, $0, $1) {
|
|
19785
20004
|
module.indentLevels = [{
|
|
19786
20005
|
level: 0,
|
|
19787
20006
|
token: ""
|
|
19788
20007
|
}];
|
|
20008
|
+
module.forbidClassImplicitCall = [false];
|
|
19789
20009
|
module.forbidIndentedApplication = [false];
|
|
19790
20010
|
module.forbidTrailingMemberProperty = [false];
|
|
19791
20011
|
module.forbidMultiLineImplicitObjectLiteral = [false];
|
|
@@ -19800,6 +20020,12 @@ ${input.slice(result.pos)}
|
|
|
19800
20020
|
return l[l.length - 1];
|
|
19801
20021
|
}
|
|
19802
20022
|
},
|
|
20023
|
+
classImplicitCallForbidden: {
|
|
20024
|
+
get() {
|
|
20025
|
+
const { forbidClassImplicitCall: s } = module;
|
|
20026
|
+
return s[s.length - 1];
|
|
20027
|
+
}
|
|
20028
|
+
},
|
|
19803
20029
|
indentedApplicationForbidden: {
|
|
19804
20030
|
get() {
|
|
19805
20031
|
const { forbidIndentedApplication: s } = module;
|
|
@@ -20091,7 +20317,7 @@ ${input.slice(result.pos)}
|
|
|
20091
20317
|
return result;
|
|
20092
20318
|
}
|
|
20093
20319
|
}
|
|
20094
|
-
var Init$0 = $TS($S($E(Shebang), $Q(DirectivePrologue), $EXPECT($
|
|
20320
|
+
var Init$0 = $TS($S($E(Shebang), $Q(DirectivePrologue), $EXPECT($L0, fail, 'Init ""')), function($skip, $loc, $0, $1, $2, $3) {
|
|
20095
20321
|
var directives = $2;
|
|
20096
20322
|
directives.forEach((directive) => {
|
|
20097
20323
|
if (directive.type === "CivetPrologue") {
|
|
@@ -20402,9 +20628,7 @@ ${input.slice(result.pos)}
|
|
|
20402
20628
|
const [, exp] = node;
|
|
20403
20629
|
if (!exp)
|
|
20404
20630
|
return;
|
|
20405
|
-
|
|
20406
|
-
if (Array.isArray(indent))
|
|
20407
|
-
indent = indent[indent.length - 1];
|
|
20631
|
+
const indent = getIndent(node);
|
|
20408
20632
|
switch (exp.type) {
|
|
20409
20633
|
case "BreakStatement":
|
|
20410
20634
|
case "ContinueStatement":
|
|
@@ -20805,7 +21029,12 @@ ${input.slice(result.pos)}
|
|
|
20805
21029
|
if (trim) {
|
|
20806
21030
|
str = str.replace(/^(\r?\n|\n)/, "").replace(/(\r?\n|\n)[ \t]*$/, "");
|
|
20807
21031
|
}
|
|
20808
|
-
str = str.replace(/(
|
|
21032
|
+
str = str.replace(/(\\.|`|\$\{)/g, (s) => {
|
|
21033
|
+
if (s[0] === "\\") {
|
|
21034
|
+
return s;
|
|
21035
|
+
}
|
|
21036
|
+
return `\\${s}`;
|
|
21037
|
+
});
|
|
20809
21038
|
return {
|
|
20810
21039
|
$loc: $loc2,
|
|
20811
21040
|
token: str
|
|
@@ -20999,8 +21228,23 @@ ${input.slice(result.pos)}
|
|
|
20999
21228
|
}
|
|
21000
21229
|
function clone(node) {
|
|
21001
21230
|
removeParentPointers(node);
|
|
21002
|
-
return
|
|
21231
|
+
return deepCopy(node);
|
|
21003
21232
|
}
|
|
21233
|
+
function deepCopy(node) {
|
|
21234
|
+
if (node == null)
|
|
21235
|
+
return node;
|
|
21236
|
+
if (typeof node !== "object")
|
|
21237
|
+
return node;
|
|
21238
|
+
if (Array.isArray(node)) {
|
|
21239
|
+
return node.map(deepCopy);
|
|
21240
|
+
}
|
|
21241
|
+
return Object.fromEntries(
|
|
21242
|
+
Object.entries(node).map(([key, value]) => {
|
|
21243
|
+
return [key, deepCopy(value)];
|
|
21244
|
+
})
|
|
21245
|
+
);
|
|
21246
|
+
}
|
|
21247
|
+
module.deepCopy = deepCopy;
|
|
21004
21248
|
function findAncestor(node, predicate, stopPredicate) {
|
|
21005
21249
|
node = node.parent;
|
|
21006
21250
|
while (node && !stopPredicate?.(node)) {
|
|
@@ -21785,11 +22029,7 @@ ${input.slice(result.pos)}
|
|
|
21785
22029
|
adjustAtBindings(statements);
|
|
21786
22030
|
};
|
|
21787
22031
|
function findDecs(statements) {
|
|
21788
|
-
const declarationNames = gatherNodes(statements, (
|
|
21789
|
-
if (node.type === "Declaration") {
|
|
21790
|
-
return true;
|
|
21791
|
-
}
|
|
21792
|
-
}).flatMap((d) => d.names);
|
|
22032
|
+
const declarationNames = gatherNodes(statements, ({ type }) => type === "Declaration").flatMap((d) => d.names);
|
|
21793
22033
|
return new Set(declarationNames);
|
|
21794
22034
|
}
|
|
21795
22035
|
function populateRefs(statements) {
|
|
@@ -21836,9 +22076,7 @@ ${input.slice(result.pos)}
|
|
|
21836
22076
|
scopes.push(decs);
|
|
21837
22077
|
const varIds = [];
|
|
21838
22078
|
const assignmentStatements = findAssignments(statements, scopes);
|
|
21839
|
-
const undeclaredIdentifiers = assignmentStatements.flatMap((a) =>
|
|
21840
|
-
return a.names;
|
|
21841
|
-
});
|
|
22079
|
+
const undeclaredIdentifiers = assignmentStatements.flatMap((a) => a.names);
|
|
21842
22080
|
undeclaredIdentifiers.filter((x, i, a) => {
|
|
21843
22081
|
if (!hasDec(x))
|
|
21844
22082
|
return a.indexOf(x) === i;
|
|
@@ -21862,9 +22100,7 @@ ${input.slice(result.pos)}
|
|
|
21862
22100
|
scopes.pop();
|
|
21863
22101
|
});
|
|
21864
22102
|
if (varIds.length) {
|
|
21865
|
-
|
|
21866
|
-
if (Array.isArray(indent))
|
|
21867
|
-
indent = indent[indent.length - 1];
|
|
22103
|
+
const indent = getIndent(statements[0]);
|
|
21868
22104
|
statements.unshift([indent, "var ", varIds.join(", "), "\n"]);
|
|
21869
22105
|
}
|
|
21870
22106
|
scopes.pop();
|
|
@@ -22097,6 +22333,7 @@ ${input.slice(result.pos)}
|
|
|
22097
22333
|
console.log("pushing indent", indent);
|
|
22098
22334
|
}
|
|
22099
22335
|
module.indentLevels.push(indent);
|
|
22336
|
+
return $1;
|
|
22100
22337
|
});
|
|
22101
22338
|
function TrackIndented(state) {
|
|
22102
22339
|
let eventData;
|
|
@@ -22235,7 +22472,7 @@ ${input.slice(result.pos)}
|
|
|
22235
22472
|
return result;
|
|
22236
22473
|
}
|
|
22237
22474
|
}
|
|
22238
|
-
var PopIndent$0 = $TV($EXPECT($
|
|
22475
|
+
var PopIndent$0 = $TV($EXPECT($L0, fail, 'PopIndent ""'), function($skip, $loc, $0, $1) {
|
|
22239
22476
|
if (module.config.verbose) {
|
|
22240
22477
|
console.log("popping indent", module.indentLevels[module.indentLevels.length - 1], "->", module.indentLevels[module.indentLevels.length - 2]);
|
|
22241
22478
|
}
|