@putout/babel 4.5.1 → 4.5.3
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/bundle/index.js +24 -330
- package/package.json +1 -1
package/bundle/index.js
CHANGED
|
@@ -642,13 +642,6 @@ var require_js_tokens_BABEL_8_BREAKING_true = __commonJS({
|
|
|
642
642
|
// ../babel-babel/node_modules/js-tokens-BABEL_8_BREAKING-false/index.js
|
|
643
643
|
var require_js_tokens = __commonJS({
|
|
644
644
|
'../babel-babel/node_modules/js-tokens/index.js'(exports2, module2) {
|
|
645
|
-
function bool2(value) {
|
|
646
|
-
if (value == null)
|
|
647
|
-
return false;
|
|
648
|
-
|
|
649
|
-
return value && value !== 'false' && value !== '0';
|
|
650
|
-
}
|
|
651
|
-
|
|
652
645
|
module2.exports = require_js_tokens_BABEL_8_BREAKING_true();
|
|
653
646
|
},
|
|
654
647
|
});
|
|
@@ -1003,196 +996,12 @@ var require_jsesc = __commonJS({
|
|
|
1003
996
|
});
|
|
1004
997
|
|
|
1005
998
|
// ../babel-babel/node_modules/ms/index.js
|
|
1006
|
-
var require_ms = () => () => {};
|
|
1007
|
-
|
|
1008
999
|
// ../babel-babel/node_modules/debug/src/common.js
|
|
1009
|
-
var require_common = () => () => ({
|
|
1010
|
-
enabled: false,
|
|
1011
|
-
});
|
|
1012
|
-
|
|
1013
|
-
// ../babel-babel/node_modules/debug/src/browser.js
|
|
1014
1000
|
var require_browser = () => () => ({
|
|
1015
1001
|
enabled: false,
|
|
1016
1002
|
});
|
|
1017
1003
|
|
|
1018
1004
|
// ../babel-babel/node_modules/has-flag/index.js
|
|
1019
|
-
var require_has_flag = __commonJS({
|
|
1020
|
-
'../babel-babel/node_modules/has-flag/index.js'(exports2, module2) {
|
|
1021
|
-
"use strict";
|
|
1022
|
-
|
|
1023
|
-
module2.exports = (flag, argv = process.argv) => {
|
|
1024
|
-
const prefix2 = flag.startsWith('-') ? '' : flag.length === 1 ? '-' : '--';
|
|
1025
|
-
const position = argv.indexOf(prefix2 + flag);
|
|
1026
|
-
const terminatorPosition = argv.indexOf('--');
|
|
1027
|
-
|
|
1028
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
1029
|
-
};
|
|
1030
|
-
},
|
|
1031
|
-
});
|
|
1032
|
-
|
|
1033
|
-
// ../babel-babel/node_modules/supports-color/index.js
|
|
1034
|
-
var require_supports_color = __commonJS({
|
|
1035
|
-
'../babel-babel/node_modules/supports-color/index.js'(exports2, module2) {
|
|
1036
|
-
"use strict";
|
|
1037
|
-
|
|
1038
|
-
var os = require('os');
|
|
1039
|
-
var tty = require('tty');
|
|
1040
|
-
var hasFlag = require_has_flag();
|
|
1041
|
-
var {env} = process;
|
|
1042
|
-
var flagForceColor;
|
|
1043
|
-
|
|
1044
|
-
if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) {
|
|
1045
|
-
flagForceColor = 0;
|
|
1046
|
-
} else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) {
|
|
1047
|
-
flagForceColor = 1;
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
function envForceColor() {
|
|
1051
|
-
if ('FORCE_COLOR' in env) {
|
|
1052
|
-
if (env.FORCE_COLOR === 'true') {
|
|
1053
|
-
return 1;
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
if (env.FORCE_COLOR === 'false') {
|
|
1057
|
-
return 0;
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
function translateLevel(level) {
|
|
1065
|
-
if (level === 0) {
|
|
1066
|
-
return false;
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
return {
|
|
1070
|
-
level,
|
|
1071
|
-
hasBasic: true,
|
|
1072
|
-
has256: level >= 2,
|
|
1073
|
-
has16m: level >= 3,
|
|
1074
|
-
};
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
function supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
|
|
1078
|
-
const noFlagForceColor = envForceColor();
|
|
1079
|
-
|
|
1080
|
-
if (noFlagForceColor !== void 0) {
|
|
1081
|
-
flagForceColor = noFlagForceColor;
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
1085
|
-
|
|
1086
|
-
if (forceColor === 0) {
|
|
1087
|
-
return 0;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
if (sniffFlags) {
|
|
1091
|
-
if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) {
|
|
1092
|
-
return 3;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
if (hasFlag('color=256')) {
|
|
1096
|
-
return 2;
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
1101
|
-
return 0;
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
const min = forceColor || 0;
|
|
1105
|
-
|
|
1106
|
-
if (env.TERM === 'dumb') {
|
|
1107
|
-
return min;
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
if (process.platform === 'win32') {
|
|
1111
|
-
const osRelease = os
|
|
1112
|
-
.release()
|
|
1113
|
-
.split('.');
|
|
1114
|
-
|
|
1115
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
1116
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
return 1;
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
if ('CI' in env) {
|
|
1123
|
-
if ([
|
|
1124
|
-
'TRAVIS',
|
|
1125
|
-
'CIRCLECI',
|
|
1126
|
-
'APPVEYOR',
|
|
1127
|
-
'GITLAB_CI',
|
|
1128
|
-
'GITHUB_ACTIONS',
|
|
1129
|
-
'BUILDKITE',
|
|
1130
|
-
'DRONE',
|
|
1131
|
-
].some((sign) => sign in env) || env.CI_NAME === 'codeship') {
|
|
1132
|
-
return 1;
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
return min;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
if ('TEAMCITY_VERSION' in env) {
|
|
1139
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
if (env.COLORTERM === 'truecolor') {
|
|
1143
|
-
return 3;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
if ('TERM_PROGRAM' in env) {
|
|
1147
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '')
|
|
1148
|
-
.split('.')[0], 10);
|
|
1149
|
-
|
|
1150
|
-
switch(env.TERM_PROGRAM) {
|
|
1151
|
-
case 'iTerm.app':
|
|
1152
|
-
return version >= 3 ? 3 : 2;
|
|
1153
|
-
|
|
1154
|
-
case 'Apple_Terminal':
|
|
1155
|
-
return 2;
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
1160
|
-
return 2;
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
1164
|
-
return 1;
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
if ('COLORTERM' in env) {
|
|
1168
|
-
return 1;
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
return min;
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
function getSupportLevel(stream, options = {}) {
|
|
1175
|
-
const level = supportsColor(stream, {
|
|
1176
|
-
streamIsTTY: stream && stream.isTTY,
|
|
1177
|
-
...options,
|
|
1178
|
-
});
|
|
1179
|
-
|
|
1180
|
-
return translateLevel(level);
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
module2.exports = {
|
|
1184
|
-
supportsColor: getSupportLevel,
|
|
1185
|
-
stdout: getSupportLevel({
|
|
1186
|
-
isTTY: tty.isatty(1),
|
|
1187
|
-
}),
|
|
1188
|
-
stderr: getSupportLevel({
|
|
1189
|
-
isTTY: tty.isatty(2),
|
|
1190
|
-
}),
|
|
1191
|
-
};
|
|
1192
|
-
},
|
|
1193
|
-
});
|
|
1194
|
-
|
|
1195
|
-
// ../babel-babel/node_modules/debug/src/node.js
|
|
1196
1005
|
var require_node = () => () => ({
|
|
1197
1006
|
enabled: false,
|
|
1198
1007
|
});
|
|
@@ -3590,7 +3399,6 @@ var reservedWords = {
|
|
|
3590
3399
|
|
|
3591
3400
|
var keywords = new Set(reservedWords.keyword);
|
|
3592
3401
|
var reservedWordsStrictSet = new Set(reservedWords.strict);
|
|
3593
|
-
var reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
|
|
3594
3402
|
|
|
3595
3403
|
function isReservedWord(word, inModule) {
|
|
3596
3404
|
return inModule && word === 'await' || word === 'enum';
|
|
@@ -19143,7 +18951,7 @@ var estree = (superClass) => class ESTreeParserMixin extends superClass {
|
|
|
19143
18951
|
|
|
19144
18952
|
try {
|
|
19145
18953
|
regex = new RegExp(pattern, flags);
|
|
19146
|
-
} catch
|
|
18954
|
+
} catch {}
|
|
19147
18955
|
|
|
19148
18956
|
|
|
19149
18957
|
const node = this.estreeParseLiteral(regex);
|
|
@@ -19220,7 +19028,7 @@ var estree = (superClass) => class ESTreeParserMixin extends superClass {
|
|
|
19220
19028
|
return stmt;
|
|
19221
19029
|
}
|
|
19222
19030
|
|
|
19223
|
-
fillOptionalPropertiesForTSESLint(
|
|
19031
|
+
fillOptionalPropertiesForTSESLint() {}
|
|
19224
19032
|
|
|
19225
19033
|
cloneEstreeStringLiteral(node) {
|
|
19226
19034
|
const {
|
|
@@ -20113,10 +19921,6 @@ function tokenIsAssignment(token) {
|
|
|
20113
19921
|
return token >= 29 && token <= 33;
|
|
20114
19922
|
}
|
|
20115
19923
|
|
|
20116
|
-
function tokenIsFlowInterfaceOrTypeOrOpaque(token) {
|
|
20117
|
-
return token >= 129 && token <= 131;
|
|
20118
|
-
}
|
|
20119
|
-
|
|
20120
19924
|
function tokenIsLoop(token) {
|
|
20121
19925
|
return token >= 90 && token <= 92;
|
|
20122
19926
|
}
|
|
@@ -21265,10 +21069,6 @@ function isKeyword2(word) {
|
|
|
21265
21069
|
return keywords2.has(word);
|
|
21266
21070
|
}
|
|
21267
21071
|
|
|
21268
|
-
function isIteratorStart(current, next, next2) {
|
|
21269
|
-
return current === 64 && next === 64 && isIdentifierStart2(next2);
|
|
21270
|
-
}
|
|
21271
|
-
|
|
21272
21072
|
var reservedWordLikeSet = /* @__PURE__ */new Set([
|
|
21273
21073
|
'break',
|
|
21274
21074
|
'case',
|
|
@@ -21521,101 +21321,6 @@ var ScopeHandler = class {
|
|
|
21521
21321
|
}
|
|
21522
21322
|
};
|
|
21523
21323
|
|
|
21524
|
-
var FlowScope = class extends Scope {
|
|
21525
|
-
constructor() {
|
|
21526
|
-
super(...arguments);
|
|
21527
|
-
__publicField(this, 'declareFunctions', /* @__PURE__ */new Set());
|
|
21528
|
-
}
|
|
21529
|
-
};
|
|
21530
|
-
|
|
21531
|
-
var FlowScopeHandler = class extends ScopeHandler {
|
|
21532
|
-
createScope(flags) {
|
|
21533
|
-
return new FlowScope(flags);
|
|
21534
|
-
}
|
|
21535
|
-
|
|
21536
|
-
declareName(name, bindingType, loc) {
|
|
21537
|
-
const scope2 = this.currentScope();
|
|
21538
|
-
|
|
21539
|
-
if (bindingType & 2048) {
|
|
21540
|
-
this.checkRedeclarationInScope(scope2, name, bindingType, loc);
|
|
21541
|
-
this.maybeExportDefined(scope2, name);
|
|
21542
|
-
scope2.declareFunctions.add(name);
|
|
21543
|
-
return;
|
|
21544
|
-
}
|
|
21545
|
-
|
|
21546
|
-
super.declareName(name, bindingType, loc);
|
|
21547
|
-
}
|
|
21548
|
-
|
|
21549
|
-
isRedeclaredInScope(scope2, name, bindingType) {
|
|
21550
|
-
if (super.isRedeclaredInScope(scope2, name, bindingType))
|
|
21551
|
-
return true;
|
|
21552
|
-
|
|
21553
|
-
if (bindingType & 2048 && !scope2.declareFunctions.has(name)) {
|
|
21554
|
-
const type = scope2.names.get(name);
|
|
21555
|
-
return (type & 4) > 0 || (type & 2) > 0;
|
|
21556
|
-
}
|
|
21557
|
-
|
|
21558
|
-
return false;
|
|
21559
|
-
}
|
|
21560
|
-
|
|
21561
|
-
checkLocalExport(id) {
|
|
21562
|
-
if (!this.scopeStack[0].declareFunctions.has(id.name)) {
|
|
21563
|
-
super.checkLocalExport(id);
|
|
21564
|
-
}
|
|
21565
|
-
}
|
|
21566
|
-
};
|
|
21567
|
-
|
|
21568
|
-
var reservedTypes = /* @__PURE__ */new Set([
|
|
21569
|
-
'_',
|
|
21570
|
-
'any',
|
|
21571
|
-
'bool',
|
|
21572
|
-
'boolean',
|
|
21573
|
-
'empty',
|
|
21574
|
-
'extends',
|
|
21575
|
-
'false',
|
|
21576
|
-
'interface',
|
|
21577
|
-
'mixed',
|
|
21578
|
-
'null',
|
|
21579
|
-
'number',
|
|
21580
|
-
'static',
|
|
21581
|
-
'string',
|
|
21582
|
-
'true',
|
|
21583
|
-
'typeof',
|
|
21584
|
-
'void',
|
|
21585
|
-
]);
|
|
21586
|
-
|
|
21587
|
-
function isEsModuleType(bodyElement) {
|
|
21588
|
-
return bodyElement.type === 'DeclareExportAllDeclaration'
|
|
21589
|
-
|| bodyElement.type === 'DeclareExportDeclaration'
|
|
21590
|
-
&& (!bodyElement.declaration
|
|
21591
|
-
|| bodyElement.declaration.type !== 'TypeAlias'
|
|
21592
|
-
&& bodyElement.declaration.type !== 'InterfaceDeclaration');
|
|
21593
|
-
}
|
|
21594
|
-
|
|
21595
|
-
function hasTypeImportKind(node) {
|
|
21596
|
-
return node.importKind === 'type' || node.importKind === 'typeof';
|
|
21597
|
-
}
|
|
21598
|
-
|
|
21599
|
-
var exportSuggestions = {
|
|
21600
|
-
const: 'declare export var',
|
|
21601
|
-
let: 'declare export var',
|
|
21602
|
-
type: 'export type',
|
|
21603
|
-
interface: 'export interface',
|
|
21604
|
-
};
|
|
21605
|
-
|
|
21606
|
-
function partition(list, test) {
|
|
21607
|
-
const list1 = [];
|
|
21608
|
-
const list2 = [];
|
|
21609
|
-
|
|
21610
|
-
for (let i = 0; i < list.length; i++) {
|
|
21611
|
-
(test(list[i], i, list) ? list1 : list2).push(list[i]);
|
|
21612
|
-
}
|
|
21613
|
-
|
|
21614
|
-
return [list1, list2];
|
|
21615
|
-
}
|
|
21616
|
-
|
|
21617
|
-
var FLOW_PRAGMA_REGEX = /\*?\s*@((?:no)?flow)\b/;
|
|
21618
|
-
|
|
21619
21324
|
var entities = {
|
|
21620
21325
|
__proto__: null,
|
|
21621
21326
|
quot: '"',
|
|
@@ -24655,7 +24360,7 @@ var Tokenizer = class extends CommentsParser {
|
|
|
24655
24360
|
return this.raise(toParseError, at, details);
|
|
24656
24361
|
}
|
|
24657
24362
|
|
|
24658
|
-
updateContext(
|
|
24363
|
+
updateContext() {}
|
|
24659
24364
|
|
|
24660
24365
|
unexpected(loc, type) {
|
|
24661
24366
|
throw this.raise(Errors.UnexpectedToken, loc != null ? loc : this.state.startLoc, {
|
|
@@ -25526,7 +25231,7 @@ var LValParser = class extends NodeUtils {
|
|
|
25526
25231
|
}
|
|
25527
25232
|
}
|
|
25528
25233
|
|
|
25529
|
-
toReferencedList(exprList
|
|
25234
|
+
toReferencedList(exprList) {
|
|
25530
25235
|
return exprList;
|
|
25531
25236
|
}
|
|
25532
25237
|
|
|
@@ -25702,7 +25407,7 @@ var LValParser = class extends NodeUtils {
|
|
|
25702
25407
|
return this.finishNode(node, 'AssignmentPattern');
|
|
25703
25408
|
}
|
|
25704
25409
|
|
|
25705
|
-
isValidLVal(type, disallowCallExpression
|
|
25410
|
+
isValidLVal(type, disallowCallExpression) {
|
|
25706
25411
|
switch(type) {
|
|
25707
25412
|
case 'AssignmentPattern':
|
|
25708
25413
|
return 'left';
|
|
@@ -27566,7 +27271,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
27566
27271
|
return this.finishNode(node, 'TSModuleBlock');
|
|
27567
27272
|
}
|
|
27568
27273
|
|
|
27569
|
-
tsParseModuleOrNamespaceDeclaration(node
|
|
27274
|
+
tsParseModuleOrNamespaceDeclaration(node) {
|
|
27570
27275
|
node.id = this.tsParseEntityName(1);
|
|
27571
27276
|
|
|
27572
27277
|
if (node.id.type === 'Identifier') {
|
|
@@ -27608,7 +27313,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
27608
27313
|
return this.finishNode(node, 'TSModuleDeclaration');
|
|
27609
27314
|
}
|
|
27610
27315
|
|
|
27611
|
-
tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier
|
|
27316
|
+
tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier) {
|
|
27612
27317
|
node.id = maybeDefaultIdentifier || this.parseIdentifier();
|
|
27613
27318
|
this.checkIdentifier(node.id, 4096);
|
|
27614
27319
|
this.expect(29);
|
|
@@ -27987,7 +27692,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
27987
27692
|
});
|
|
27988
27693
|
}
|
|
27989
27694
|
|
|
27990
|
-
toReferencedList(exprList
|
|
27695
|
+
toReferencedList(exprList) {
|
|
27991
27696
|
this.tsCheckForInvalidTypeCasts(exprList);
|
|
27992
27697
|
return exprList;
|
|
27993
27698
|
}
|
|
@@ -28593,7 +28298,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
28593
28298
|
return declaration;
|
|
28594
28299
|
}
|
|
28595
28300
|
|
|
28596
|
-
parseClassId(node, isStatement5, optionalId
|
|
28301
|
+
parseClassId(node, isStatement5, optionalId) {
|
|
28597
28302
|
if ((!isStatement5 || optionalId) && this.isContextual(113)) {
|
|
28598
28303
|
return;
|
|
28599
28304
|
}
|
|
@@ -29262,7 +28967,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
29262
28967
|
return super.parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly);
|
|
29263
28968
|
}
|
|
29264
28969
|
|
|
29265
|
-
parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly
|
|
28970
|
+
parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly) {
|
|
29266
28971
|
if (!importedIsString && isMaybeTypeOnly) {
|
|
29267
28972
|
this.parseTypeOnlyImportExportSpecifier(specifier, true, isInTypeOnlyImport);
|
|
29268
28973
|
return this.finishNode(specifier, 'ImportSpecifier');
|
|
@@ -30207,7 +29912,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
30207
29912
|
return this.parseConditional(expr, startLoc, refExpressionErrors);
|
|
30208
29913
|
}
|
|
30209
29914
|
|
|
30210
|
-
parseConditional(expr, startLoc
|
|
29915
|
+
parseConditional(expr, startLoc) {
|
|
30211
29916
|
if (this.eat(17)) {
|
|
30212
29917
|
const node = this.startNodeAt(startLoc);
|
|
30213
29918
|
|
|
@@ -31242,7 +30947,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
31242
30947
|
return this.finishNode(parenExpression, 'ParenthesizedExpression');
|
|
31243
30948
|
}
|
|
31244
30949
|
|
|
31245
|
-
shouldParseArrow(
|
|
30950
|
+
shouldParseArrow() {
|
|
31246
30951
|
return !this.canInsertSemicolon();
|
|
31247
30952
|
}
|
|
31248
30953
|
|
|
@@ -31252,7 +30957,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
31252
30957
|
}
|
|
31253
30958
|
}
|
|
31254
30959
|
|
|
31255
|
-
parseParenItem(node
|
|
30960
|
+
parseParenItem(node) {
|
|
31256
30961
|
return node;
|
|
31257
30962
|
}
|
|
31258
30963
|
|
|
@@ -32203,7 +31908,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
32203
31908
|
return this.parseMaybeAssignAllowIn(refExpressionErrors, afterLeftParse);
|
|
32204
31909
|
}
|
|
32205
31910
|
|
|
32206
|
-
parsePropertyNamePrefixOperator(
|
|
31911
|
+
parsePropertyNamePrefixOperator() {}
|
|
32207
31912
|
};
|
|
32208
31913
|
|
|
32209
31914
|
var loopLabel = {
|
|
@@ -32217,7 +31922,7 @@ var switchLabel = {
|
|
|
32217
31922
|
var loneSurrogate = /[\uD800-\uDFFF]/u;
|
|
32218
31923
|
var keywordRelationalOperator = /in(?:stanceof)?/y;
|
|
32219
31924
|
|
|
32220
|
-
function babel7CompatTokens(tokens
|
|
31925
|
+
function babel7CompatTokens(tokens) {
|
|
32221
31926
|
for (let i = 0; i < tokens.length; i++) {
|
|
32222
31927
|
const token = tokens[i];
|
|
32223
31928
|
const {type} = token;
|
|
@@ -33094,7 +32799,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
33094
32799
|
return this.finishNode(node, 'LabeledStatement');
|
|
33095
32800
|
}
|
|
33096
32801
|
|
|
33097
|
-
parseExpressionStatement(node, expr
|
|
32802
|
+
parseExpressionStatement(node, expr) {
|
|
33098
32803
|
node.expression = expr;
|
|
33099
32804
|
this.semicolon();
|
|
33100
32805
|
return this.finishNode(node, 'ExpressionStatement');
|
|
@@ -33679,7 +33384,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
33679
33384
|
this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), kind, node.key.loc.start);
|
|
33680
33385
|
}
|
|
33681
33386
|
|
|
33682
|
-
parsePostMemberNameModifiers(
|
|
33387
|
+
parsePostMemberNameModifiers() {}
|
|
33683
33388
|
|
|
33684
33389
|
parseClassPrivateProperty(node) {
|
|
33685
33390
|
this.parseInitializer(node);
|
|
@@ -33809,7 +33514,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
33809
33514
|
throw this.unexpected(null, 5);
|
|
33810
33515
|
}
|
|
33811
33516
|
|
|
33812
|
-
eatExportStar(
|
|
33517
|
+
eatExportStar() {
|
|
33813
33518
|
return this.eat(55);
|
|
33814
33519
|
}
|
|
33815
33520
|
|
|
@@ -33918,7 +33623,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
33918
33623
|
return res;
|
|
33919
33624
|
}
|
|
33920
33625
|
|
|
33921
|
-
parseExportDeclaration(
|
|
33626
|
+
parseExportDeclaration() {
|
|
33922
33627
|
if (this.match(80)) {
|
|
33923
33628
|
const node2 = this.parseClass(this.startNode(), true, false);
|
|
33924
33629
|
return node2;
|
|
@@ -34132,7 +33837,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
34132
33837
|
return nodes2;
|
|
34133
33838
|
}
|
|
34134
33839
|
|
|
34135
|
-
parseExportSpecifier(node, isString
|
|
33840
|
+
parseExportSpecifier(node, isString) {
|
|
34136
33841
|
if (this.eatContextual(93)) {
|
|
34137
33842
|
node.exported = this.parseModuleExportName();
|
|
34138
33843
|
} else if (isString) {
|
|
@@ -34272,7 +33977,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
34272
33977
|
}
|
|
34273
33978
|
}
|
|
34274
33979
|
|
|
34275
|
-
isPrecedingIdImportPhase(
|
|
33980
|
+
isPrecedingIdImportPhase() {
|
|
34276
33981
|
const {type} = this.state;
|
|
34277
33982
|
|
|
34278
33983
|
return tokenIsIdentifier(type) ? type !== 98 || this.lookaheadCharCode() === 102 : type !== 12;
|
|
@@ -36625,7 +36330,7 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
|
|
|
36625
36330
|
]);
|
|
36626
36331
|
}
|
|
36627
36332
|
|
|
36628
|
-
function assert3(
|
|
36333
|
+
function assert3() {}
|
|
36629
36334
|
|
|
36630
36335
|
function getIndex(arr, index2) {
|
|
36631
36336
|
for (let i = arr.length; i <= index2; i++) {
|
|
@@ -39820,10 +39525,7 @@ function VoidPattern2() {
|
|
|
39820
39525
|
this.word('void');
|
|
39821
39526
|
}
|
|
39822
39527
|
|
|
39823
|
-
var {
|
|
39824
|
-
isDeclareExportDeclaration: isDeclareExportDeclaration2,
|
|
39825
|
-
isStatement: isStatement$12,
|
|
39826
|
-
} = lib_exports;
|
|
39528
|
+
var {isDeclareExportDeclaration: isDeclareExportDeclaration2} = lib_exports;
|
|
39827
39529
|
|
|
39828
39530
|
function AnyTypeAnnotation2() {
|
|
39829
39531
|
this.word('any');
|
|
@@ -41303,11 +41005,7 @@ function TSEnumMember2(node) {
|
|
|
41303
41005
|
}
|
|
41304
41006
|
|
|
41305
41007
|
function TSModuleDeclaration2(node) {
|
|
41306
|
-
const {
|
|
41307
|
-
declare,
|
|
41308
|
-
id,
|
|
41309
|
-
kind,
|
|
41310
|
-
} = node;
|
|
41008
|
+
const {declare, kind} = node;
|
|
41311
41009
|
|
|
41312
41010
|
if (declare) {
|
|
41313
41011
|
this.word('declare');
|
|
@@ -43828,7 +43526,6 @@ var cache = /* @__PURE__ */Object.freeze({
|
|
|
43828
43526
|
|
|
43829
43527
|
var {
|
|
43830
43528
|
assignmentExpression: assignmentExpression$3,
|
|
43831
|
-
callExpression: callExpression$3,
|
|
43832
43529
|
cloneNode: cloneNode$3,
|
|
43833
43530
|
getBindingIdentifiers: getBindingIdentifiers$2,
|
|
43834
43531
|
identifier: identifier$3,
|
|
@@ -43861,8 +43558,6 @@ var {
|
|
|
43861
43558
|
isVariableDeclaration: isVariableDeclaration$1,
|
|
43862
43559
|
expressionStatement: expressionStatement$3,
|
|
43863
43560
|
matchesPattern: matchesPattern$1,
|
|
43864
|
-
memberExpression: memberExpression$1,
|
|
43865
|
-
numericLiteral: numericLiteral$2,
|
|
43866
43561
|
toIdentifier: toIdentifier2,
|
|
43867
43562
|
variableDeclaration: variableDeclaration$1,
|
|
43868
43563
|
variableDeclarator: variableDeclarator$1,
|
|
@@ -45191,7 +44886,6 @@ function inType(...candidateTypes) {
|
|
|
45191
44886
|
var {
|
|
45192
44887
|
createFlowUnionType: createFlowUnionType2,
|
|
45193
44888
|
createTSUnionType: createTSUnionType2,
|
|
45194
|
-
createUnionTypeAnnotation,
|
|
45195
44889
|
isFlowType: isFlowType2,
|
|
45196
44890
|
isTSType: isTSType2,
|
|
45197
44891
|
} = lib_exports;
|