@putout/babel 5.3.6 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -8
- package/bundle/index.js +351 -167
- package/bundle/metafile-esm.json +1 -1
- package/package.json +9 -9
package/bundle/index.js
CHANGED
|
@@ -40,13 +40,14 @@ isNodeMode || !mod || !mod.__esModule ? __defProp(target, 'default', {
|
|
|
40
40
|
enumerable: true,
|
|
41
41
|
}) : target, mod));
|
|
42
42
|
|
|
43
|
-
//
|
|
43
|
+
// node_modules/jsesc/jsesc.js
|
|
44
44
|
var require_jsesc = __commonJS({
|
|
45
|
-
'
|
|
45
|
+
'node_modules/jsesc/jsesc.js'(exports, module) {
|
|
46
46
|
"use strict";
|
|
47
47
|
|
|
48
48
|
var object = {};
|
|
49
49
|
var hasOwnProperty = object.hasOwnProperty;
|
|
50
|
+
|
|
50
51
|
var forOwn = (object2, callback) => {
|
|
51
52
|
for (const key in object2) {
|
|
52
53
|
if (hasOwnProperty.call(object2, key)) {
|
|
@@ -63,6 +64,7 @@ var require_jsesc = __commonJS({
|
|
|
63
64
|
forOwn(source, (key, value) => {
|
|
64
65
|
destination[key] = value;
|
|
65
66
|
});
|
|
67
|
+
|
|
66
68
|
return destination;
|
|
67
69
|
};
|
|
68
70
|
|
|
@@ -107,6 +109,10 @@ var require_jsesc = __commonJS({
|
|
|
107
109
|
return typeof value == 'number' || toString.call(value) == '[object Number]';
|
|
108
110
|
};
|
|
109
111
|
|
|
112
|
+
var isBigInt = (value) => {
|
|
113
|
+
return typeof value == 'bigint';
|
|
114
|
+
};
|
|
115
|
+
|
|
110
116
|
var isFunction5 = (value) => {
|
|
111
117
|
return typeof value == 'function';
|
|
112
118
|
};
|
|
@@ -255,32 +261,41 @@ var require_jsesc = __commonJS({
|
|
|
255
261
|
}
|
|
256
262
|
|
|
257
263
|
return '[' + newLine + result.join(',' + newLine) + newLine + (compact ? '' : oldIndent) + ']';
|
|
258
|
-
} else if (isNumber2(argument)) {
|
|
264
|
+
} else if (isNumber2(argument) || isBigInt(argument)) {
|
|
259
265
|
if (json) {
|
|
260
|
-
return JSON.stringify(argument);
|
|
266
|
+
return JSON.stringify(Number(argument));
|
|
261
267
|
}
|
|
262
268
|
|
|
263
|
-
|
|
264
|
-
return String(argument);
|
|
265
|
-
}
|
|
269
|
+
let result2;
|
|
266
270
|
|
|
267
|
-
if (
|
|
271
|
+
if (useDecNumbers) {
|
|
272
|
+
result2 = String(argument);
|
|
273
|
+
} else if (useHexNumbers) {
|
|
268
274
|
let hexadecimal2 = argument.toString(16);
|
|
269
275
|
|
|
270
276
|
if (!lowercaseHex) {
|
|
271
277
|
hexadecimal2 = hexadecimal2.toUpperCase();
|
|
272
278
|
}
|
|
273
279
|
|
|
274
|
-
|
|
280
|
+
result2 = '0x' + hexadecimal2;
|
|
281
|
+
} else if (useBinNumbers) {
|
|
282
|
+
result2 = '0b' + argument.toString(2);
|
|
283
|
+
} else if (useOctNumbers) {
|
|
284
|
+
result2 = '0o' + argument.toString(8);
|
|
275
285
|
}
|
|
286
|
+
|
|
276
287
|
|
|
277
|
-
if (
|
|
278
|
-
return
|
|
288
|
+
if (isBigInt(argument)) {
|
|
289
|
+
return result2 + 'n';
|
|
279
290
|
}
|
|
280
291
|
|
|
281
|
-
|
|
282
|
-
|
|
292
|
+
return result2;
|
|
293
|
+
} else if (isBigInt(argument)) {
|
|
294
|
+
if (json) {
|
|
295
|
+
return JSON.stringify(Number(argument));
|
|
283
296
|
}
|
|
297
|
+
|
|
298
|
+
return argument + 'n';
|
|
284
299
|
} else if (!isObject(argument)) {
|
|
285
300
|
if (json) {
|
|
286
301
|
return JSON.stringify(argument) || 'null';
|
|
@@ -303,6 +318,7 @@ var require_jsesc = __commonJS({
|
|
|
303
318
|
return '{' + newLine + result.join(',' + newLine) + newLine + (compact ? '' : oldIndent) + '}';
|
|
304
319
|
}
|
|
305
320
|
|
|
321
|
+
|
|
306
322
|
}
|
|
307
323
|
|
|
308
324
|
const regex = options.escapeEverything ? escapeEverythingRegex : escapeNonAsciiRegex;
|
|
@@ -389,7 +405,7 @@ var require_jsesc = __commonJS({
|
|
|
389
405
|
},
|
|
390
406
|
});
|
|
391
407
|
|
|
392
|
-
//
|
|
408
|
+
// node_modules/@babel/types/lib/index.js
|
|
393
409
|
var lib_exports = {};
|
|
394
410
|
|
|
395
411
|
__export(lib_exports, {
|
|
@@ -1642,7 +1658,7 @@ __export(lib_exports, {
|
|
|
1642
1658
|
yieldExpression: () => yieldExpression,
|
|
1643
1659
|
});
|
|
1644
1660
|
|
|
1645
|
-
//
|
|
1661
|
+
// node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
1646
1662
|
var nonASCIIidentifierStartChars = '\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC';
|
|
1647
1663
|
var nonASCIIidentifierChars = '\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65';
|
|
1648
1664
|
var nonASCIIidentifierStart = new RegExp('[' + nonASCIIidentifierStartChars + ']');
|
|
@@ -2759,7 +2775,7 @@ function isKeyword(word) {
|
|
|
2759
2775
|
return keywords.has(word);
|
|
2760
2776
|
}
|
|
2761
2777
|
|
|
2762
|
-
//
|
|
2778
|
+
// node_modules/@babel/helper-string-parser/lib/index.js
|
|
2763
2779
|
var _isDigit = function isDigit(code2) {
|
|
2764
2780
|
return code2 >= 48 && code2 <= 57;
|
|
2765
2781
|
};
|
|
@@ -3114,7 +3130,7 @@ function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
|
|
|
3114
3130
|
};
|
|
3115
3131
|
}
|
|
3116
3132
|
|
|
3117
|
-
//
|
|
3133
|
+
// node_modules/@babel/types/lib/index.js
|
|
3118
3134
|
function shallowEqual(actual, expected) {
|
|
3119
3135
|
const keys2 = Object.keys(expected);
|
|
3120
3136
|
|
|
@@ -7135,24 +7151,14 @@ var STATEMENT_OR_BLOCK_KEYS = [
|
|
|
7135
7151
|
'alternate',
|
|
7136
7152
|
];
|
|
7137
7153
|
var FLATTENABLE_KEYS = ['body', 'expressions'];
|
|
7138
|
-
var FOR_INIT_KEYS = [
|
|
7139
|
-
'left',
|
|
7140
|
-
'init',
|
|
7141
|
-
];
|
|
7154
|
+
var FOR_INIT_KEYS = ['left', 'init'];
|
|
7142
7155
|
var COMMENT_KEYS = [
|
|
7143
7156
|
'leadingComments',
|
|
7144
7157
|
'trailingComments',
|
|
7145
7158
|
'innerComments',
|
|
7146
7159
|
];
|
|
7147
|
-
var LOGICAL_OPERATORS = [
|
|
7148
|
-
|
|
7149
|
-
'&&',
|
|
7150
|
-
'??',
|
|
7151
|
-
];
|
|
7152
|
-
var UPDATE_OPERATORS = [
|
|
7153
|
-
'++',
|
|
7154
|
-
'--',
|
|
7155
|
-
];
|
|
7160
|
+
var LOGICAL_OPERATORS = ['||', '&&', '??'];
|
|
7161
|
+
var UPDATE_OPERATORS = ['++', '--'];
|
|
7156
7162
|
var BOOLEAN_NUMBER_BINARY_OPERATORS = [
|
|
7157
7163
|
'>',
|
|
7158
7164
|
'<',
|
|
@@ -7170,10 +7176,7 @@ var COMPARISON_BINARY_OPERATORS = [
|
|
|
7170
7176
|
'in',
|
|
7171
7177
|
'instanceof',
|
|
7172
7178
|
];
|
|
7173
|
-
var BOOLEAN_BINARY_OPERATORS = [
|
|
7174
|
-
...COMPARISON_BINARY_OPERATORS,
|
|
7175
|
-
...BOOLEAN_NUMBER_BINARY_OPERATORS,
|
|
7176
|
-
];
|
|
7179
|
+
var BOOLEAN_BINARY_OPERATORS = [...COMPARISON_BINARY_OPERATORS, ...BOOLEAN_NUMBER_BINARY_OPERATORS];
|
|
7177
7180
|
var NUMBER_BINARY_OPERATORS = [
|
|
7178
7181
|
'-',
|
|
7179
7182
|
'/',
|
|
@@ -7203,11 +7206,7 @@ var BOOLEAN_UNARY_OPERATORS = [
|
|
|
7203
7206
|
'delete',
|
|
7204
7207
|
'!',
|
|
7205
7208
|
];
|
|
7206
|
-
var NUMBER_UNARY_OPERATORS = [
|
|
7207
|
-
'+',
|
|
7208
|
-
'-',
|
|
7209
|
-
'~',
|
|
7210
|
-
];
|
|
7209
|
+
var NUMBER_UNARY_OPERATORS = ['+', '-', '~'];
|
|
7211
7210
|
var STRING_UNARY_OPERATORS = ['typeof'];
|
|
7212
7211
|
var UNARY_OPERATORS = [
|
|
7213
7212
|
'void',
|
|
@@ -7301,6 +7300,7 @@ function assertEach(callback) {
|
|
|
7301
7300
|
return;
|
|
7302
7301
|
|
|
7303
7302
|
let i = 0;
|
|
7303
|
+
|
|
7304
7304
|
const subKey = {
|
|
7305
7305
|
toString() {
|
|
7306
7306
|
return `${key}[${i}]`;
|
|
@@ -7361,7 +7361,6 @@ function assertNodeType(...types2) {
|
|
|
7361
7361
|
}
|
|
7362
7362
|
|
|
7363
7363
|
validate4.oneOfNodeTypes = types2;
|
|
7364
|
-
|
|
7365
7364
|
return validate4;
|
|
7366
7365
|
}
|
|
7367
7366
|
|
|
@@ -7380,7 +7379,6 @@ function assertNodeOrValueType(...types2) {
|
|
|
7380
7379
|
}
|
|
7381
7380
|
|
|
7382
7381
|
validate4.oneOfNodeOrValueTypes = types2;
|
|
7383
|
-
|
|
7384
7382
|
return validate4;
|
|
7385
7383
|
}
|
|
7386
7384
|
|
|
@@ -7394,7 +7392,6 @@ function assertValueType(type) {
|
|
|
7394
7392
|
}
|
|
7395
7393
|
|
|
7396
7394
|
validate4.type = type;
|
|
7397
|
-
|
|
7398
7395
|
return validate4;
|
|
7399
7396
|
}
|
|
7400
7397
|
|
|
@@ -7424,7 +7421,6 @@ ${errors.join('\n')}`);
|
|
|
7424
7421
|
}
|
|
7425
7422
|
|
|
7426
7423
|
validate4.shapeOf = shape;
|
|
7427
|
-
|
|
7428
7424
|
return validate4;
|
|
7429
7425
|
}
|
|
7430
7426
|
|
|
@@ -7738,6 +7734,7 @@ defineType$4('BinaryExpression', {
|
|
|
7738
7734
|
validate: (function() {
|
|
7739
7735
|
const expression2 = assertNodeType('Expression');
|
|
7740
7736
|
const inOp = assertNodeType('Expression', 'PrivateName');
|
|
7737
|
+
|
|
7741
7738
|
const validator = Object.assign(function(node, key, val) {
|
|
7742
7739
|
const validator2 = node.operator === 'in' ? inOp : expression2;
|
|
7743
7740
|
validator2(node, key, val);
|
|
@@ -8354,6 +8351,7 @@ defineType$4('MemberExpression', {
|
|
|
8354
8351
|
validate: (function() {
|
|
8355
8352
|
const normal = assertNodeType('Identifier', 'PrivateName');
|
|
8356
8353
|
const computed = assertNodeType('Expression');
|
|
8354
|
+
|
|
8357
8355
|
const validator = function(node, key, val) {
|
|
8358
8356
|
const validator2 = node.computed ? computed : normal;
|
|
8359
8357
|
validator2(node, key, val);
|
|
@@ -8444,6 +8442,7 @@ defineType$4('ObjectMethod', {
|
|
|
8444
8442
|
validate: (function() {
|
|
8445
8443
|
const normal = assertNodeType('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral');
|
|
8446
8444
|
const computed = assertNodeType('Expression');
|
|
8445
|
+
|
|
8447
8446
|
const validator = function(node, key, val) {
|
|
8448
8447
|
const validator2 = node.computed ? computed : normal;
|
|
8449
8448
|
validator2(node, key, val);
|
|
@@ -8493,6 +8492,7 @@ defineType$4('ObjectProperty', {
|
|
|
8493
8492
|
validate: (function() {
|
|
8494
8493
|
const normal = assertNodeType('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'PrivateName');
|
|
8495
8494
|
const computed = assertNodeType('Expression');
|
|
8495
|
+
|
|
8496
8496
|
const validator = Object.assign(function(node, key, val) {
|
|
8497
8497
|
const validator2 = node.computed ? computed : normal;
|
|
8498
8498
|
validator2(node, key, val);
|
|
@@ -9465,6 +9465,7 @@ defineType$4('TemplateElement', {
|
|
|
9465
9465
|
}), function templateElementCookedValidator(node) {
|
|
9466
9466
|
const raw = node.value.raw;
|
|
9467
9467
|
let unterminatedCalled = false;
|
|
9468
|
+
|
|
9468
9469
|
const error = () => {
|
|
9469
9470
|
throw new Error('Internal @babel/types error.');
|
|
9470
9471
|
};
|
|
@@ -9600,6 +9601,7 @@ defineType$4('OptionalMemberExpression', {
|
|
|
9600
9601
|
validate: (function() {
|
|
9601
9602
|
const normal = assertNodeType('Identifier', 'PrivateName');
|
|
9602
9603
|
const computed = assertNodeType('Expression');
|
|
9604
|
+
|
|
9603
9605
|
const validator = Object.assign(function(node, key, val) {
|
|
9604
9606
|
const validator2 = node.computed ? computed : normal;
|
|
9605
9607
|
validator2(node, key, val);
|
|
@@ -10972,7 +10974,6 @@ defineType('TSThisType', {
|
|
|
10972
10974
|
visitor: [],
|
|
10973
10975
|
fields: {},
|
|
10974
10976
|
});
|
|
10975
|
-
|
|
10976
10977
|
var fnOrCtrBase = {
|
|
10977
10978
|
aliases: ['TSType'],
|
|
10978
10979
|
visitor: [
|
|
@@ -11478,7 +11479,8 @@ Object
|
|
|
11478
11479
|
.forEach((deprecatedAlias) => {
|
|
11479
11480
|
FLIPPED_ALIAS_KEYS[deprecatedAlias] = FLIPPED_ALIAS_KEYS[DEPRECATED_ALIASES[deprecatedAlias]];
|
|
11480
11481
|
});
|
|
11481
|
-
for (const {types: types2, set}
|
|
11482
|
+
for (const {types: types2, set}
|
|
11483
|
+
of allExpandedTypes) {
|
|
11482
11484
|
for (const type of types2) {
|
|
11483
11485
|
const aliases = FLIPPED_ALIAS_KEYS[type];
|
|
11484
11486
|
|
|
@@ -11563,6 +11565,7 @@ function arrayExpression(elements) {
|
|
|
11563
11565
|
};
|
|
11564
11566
|
|
|
11565
11567
|
const defs2 = NODE_FIELDS.ArrayExpression;
|
|
11568
|
+
|
|
11566
11569
|
validate(defs2.elements, node, 'elements', elements, 1);
|
|
11567
11570
|
return node;
|
|
11568
11571
|
}
|
|
@@ -11576,6 +11579,7 @@ function assignmentExpression(operator, left, right) {
|
|
|
11576
11579
|
};
|
|
11577
11580
|
|
|
11578
11581
|
const defs2 = NODE_FIELDS.AssignmentExpression;
|
|
11582
|
+
|
|
11579
11583
|
validate(defs2.operator, node, 'operator', operator);
|
|
11580
11584
|
validate(defs2.left, node, 'left', left, 1);
|
|
11581
11585
|
validate(defs2.right, node, 'right', right, 1);
|
|
@@ -11591,6 +11595,7 @@ function binaryExpression(operator, left, right) {
|
|
|
11591
11595
|
};
|
|
11592
11596
|
|
|
11593
11597
|
const defs2 = NODE_FIELDS.BinaryExpression;
|
|
11598
|
+
|
|
11594
11599
|
validate(defs2.operator, node, 'operator', operator);
|
|
11595
11600
|
validate(defs2.left, node, 'left', left, 1);
|
|
11596
11601
|
validate(defs2.right, node, 'right', right, 1);
|
|
@@ -11604,6 +11609,7 @@ function interpreterDirective(value) {
|
|
|
11604
11609
|
};
|
|
11605
11610
|
|
|
11606
11611
|
const defs2 = NODE_FIELDS.InterpreterDirective;
|
|
11612
|
+
|
|
11607
11613
|
validate(defs2.value, node, 'value', value);
|
|
11608
11614
|
return node;
|
|
11609
11615
|
}
|
|
@@ -11615,6 +11621,7 @@ function directive(value) {
|
|
|
11615
11621
|
};
|
|
11616
11622
|
|
|
11617
11623
|
const defs2 = NODE_FIELDS.Directive;
|
|
11624
|
+
|
|
11618
11625
|
validate(defs2.value, node, 'value', value, 1);
|
|
11619
11626
|
return node;
|
|
11620
11627
|
}
|
|
@@ -11626,6 +11633,7 @@ function directiveLiteral(value) {
|
|
|
11626
11633
|
};
|
|
11627
11634
|
|
|
11628
11635
|
const defs2 = NODE_FIELDS.DirectiveLiteral;
|
|
11636
|
+
|
|
11629
11637
|
validate(defs2.value, node, 'value', value);
|
|
11630
11638
|
return node;
|
|
11631
11639
|
}
|
|
@@ -11638,6 +11646,7 @@ function blockStatement(body, directives = []) {
|
|
|
11638
11646
|
};
|
|
11639
11647
|
|
|
11640
11648
|
const defs2 = NODE_FIELDS.BlockStatement;
|
|
11649
|
+
|
|
11641
11650
|
validate(defs2.body, node, 'body', body, 1);
|
|
11642
11651
|
validate(defs2.directives, node, 'directives', directives, 1);
|
|
11643
11652
|
return node;
|
|
@@ -11650,6 +11659,7 @@ function breakStatement(label = null) {
|
|
|
11650
11659
|
};
|
|
11651
11660
|
|
|
11652
11661
|
const defs2 = NODE_FIELDS.BreakStatement;
|
|
11662
|
+
|
|
11653
11663
|
validate(defs2.label, node, 'label', label, 1);
|
|
11654
11664
|
return node;
|
|
11655
11665
|
}
|
|
@@ -11662,6 +11672,7 @@ function callExpression(callee, _arguments) {
|
|
|
11662
11672
|
};
|
|
11663
11673
|
|
|
11664
11674
|
const defs2 = NODE_FIELDS.CallExpression;
|
|
11675
|
+
|
|
11665
11676
|
validate(defs2.callee, node, 'callee', callee, 1);
|
|
11666
11677
|
validate(defs2.arguments, node, 'arguments', _arguments, 1);
|
|
11667
11678
|
return node;
|
|
@@ -11675,6 +11686,7 @@ function catchClause(param = null, body) {
|
|
|
11675
11686
|
};
|
|
11676
11687
|
|
|
11677
11688
|
const defs2 = NODE_FIELDS.CatchClause;
|
|
11689
|
+
|
|
11678
11690
|
validate(defs2.param, node, 'param', param, 1);
|
|
11679
11691
|
validate(defs2.body, node, 'body', body, 1);
|
|
11680
11692
|
return node;
|
|
@@ -11689,6 +11701,7 @@ function conditionalExpression(test, consequent, alternate) {
|
|
|
11689
11701
|
};
|
|
11690
11702
|
|
|
11691
11703
|
const defs2 = NODE_FIELDS.ConditionalExpression;
|
|
11704
|
+
|
|
11692
11705
|
validate(defs2.test, node, 'test', test, 1);
|
|
11693
11706
|
validate(defs2.consequent, node, 'consequent', consequent, 1);
|
|
11694
11707
|
validate(defs2.alternate, node, 'alternate', alternate, 1);
|
|
@@ -11702,6 +11715,7 @@ function continueStatement(label = null) {
|
|
|
11702
11715
|
};
|
|
11703
11716
|
|
|
11704
11717
|
const defs2 = NODE_FIELDS.ContinueStatement;
|
|
11718
|
+
|
|
11705
11719
|
validate(defs2.label, node, 'label', label, 1);
|
|
11706
11720
|
return node;
|
|
11707
11721
|
}
|
|
@@ -11720,6 +11734,7 @@ function doWhileStatement(test, body) {
|
|
|
11720
11734
|
};
|
|
11721
11735
|
|
|
11722
11736
|
const defs2 = NODE_FIELDS.DoWhileStatement;
|
|
11737
|
+
|
|
11723
11738
|
validate(defs2.test, node, 'test', test, 1);
|
|
11724
11739
|
validate(defs2.body, node, 'body', body, 1);
|
|
11725
11740
|
return node;
|
|
@@ -11738,6 +11753,7 @@ function expressionStatement(expression2) {
|
|
|
11738
11753
|
};
|
|
11739
11754
|
|
|
11740
11755
|
const defs2 = NODE_FIELDS.ExpressionStatement;
|
|
11756
|
+
|
|
11741
11757
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
11742
11758
|
return node;
|
|
11743
11759
|
}
|
|
@@ -11751,6 +11767,7 @@ function file(program3, comments = null, tokens = null) {
|
|
|
11751
11767
|
};
|
|
11752
11768
|
|
|
11753
11769
|
const defs2 = NODE_FIELDS.File;
|
|
11770
|
+
|
|
11754
11771
|
validate(defs2.program, node, 'program', program3, 1);
|
|
11755
11772
|
validate(defs2.comments, node, 'comments', comments, 1);
|
|
11756
11773
|
validate(defs2.tokens, node, 'tokens', tokens);
|
|
@@ -11766,6 +11783,7 @@ function forInStatement(left, right, body) {
|
|
|
11766
11783
|
};
|
|
11767
11784
|
|
|
11768
11785
|
const defs2 = NODE_FIELDS.ForInStatement;
|
|
11786
|
+
|
|
11769
11787
|
validate(defs2.left, node, 'left', left, 1);
|
|
11770
11788
|
validate(defs2.right, node, 'right', right, 1);
|
|
11771
11789
|
validate(defs2.body, node, 'body', body, 1);
|
|
@@ -11782,6 +11800,7 @@ function forStatement(init = null, test = null, update = null, body) {
|
|
|
11782
11800
|
};
|
|
11783
11801
|
|
|
11784
11802
|
const defs2 = NODE_FIELDS.ForStatement;
|
|
11803
|
+
|
|
11785
11804
|
validate(defs2.init, node, 'init', init, 1);
|
|
11786
11805
|
validate(defs2.test, node, 'test', test, 1);
|
|
11787
11806
|
validate(defs2.update, node, 'update', update, 1);
|
|
@@ -11800,6 +11819,7 @@ function functionDeclaration(id = null, params, body, generator = false, async =
|
|
|
11800
11819
|
};
|
|
11801
11820
|
|
|
11802
11821
|
const defs2 = NODE_FIELDS.FunctionDeclaration;
|
|
11822
|
+
|
|
11803
11823
|
validate(defs2.id, node, 'id', id, 1);
|
|
11804
11824
|
validate(defs2.params, node, 'params', params, 1);
|
|
11805
11825
|
validate(defs2.body, node, 'body', body, 1);
|
|
@@ -11819,6 +11839,7 @@ function functionExpression(id = null, params, body, generator = false, async =
|
|
|
11819
11839
|
};
|
|
11820
11840
|
|
|
11821
11841
|
const defs2 = NODE_FIELDS.FunctionExpression;
|
|
11842
|
+
|
|
11822
11843
|
validate(defs2.id, node, 'id', id, 1);
|
|
11823
11844
|
validate(defs2.params, node, 'params', params, 1);
|
|
11824
11845
|
validate(defs2.body, node, 'body', body, 1);
|
|
@@ -11834,6 +11855,7 @@ function identifier(name) {
|
|
|
11834
11855
|
};
|
|
11835
11856
|
|
|
11836
11857
|
const defs2 = NODE_FIELDS.Identifier;
|
|
11858
|
+
|
|
11837
11859
|
validate(defs2.name, node, 'name', name);
|
|
11838
11860
|
return node;
|
|
11839
11861
|
}
|
|
@@ -11847,6 +11869,7 @@ function ifStatement(test, consequent, alternate = null) {
|
|
|
11847
11869
|
};
|
|
11848
11870
|
|
|
11849
11871
|
const defs2 = NODE_FIELDS.IfStatement;
|
|
11872
|
+
|
|
11850
11873
|
validate(defs2.test, node, 'test', test, 1);
|
|
11851
11874
|
validate(defs2.consequent, node, 'consequent', consequent, 1);
|
|
11852
11875
|
validate(defs2.alternate, node, 'alternate', alternate, 1);
|
|
@@ -11861,6 +11884,7 @@ function labeledStatement(label, body) {
|
|
|
11861
11884
|
};
|
|
11862
11885
|
|
|
11863
11886
|
const defs2 = NODE_FIELDS.LabeledStatement;
|
|
11887
|
+
|
|
11864
11888
|
validate(defs2.label, node, 'label', label, 1);
|
|
11865
11889
|
validate(defs2.body, node, 'body', body, 1);
|
|
11866
11890
|
return node;
|
|
@@ -11873,6 +11897,7 @@ function stringLiteral(value) {
|
|
|
11873
11897
|
};
|
|
11874
11898
|
|
|
11875
11899
|
const defs2 = NODE_FIELDS.StringLiteral;
|
|
11900
|
+
|
|
11876
11901
|
validate(defs2.value, node, 'value', value);
|
|
11877
11902
|
return node;
|
|
11878
11903
|
}
|
|
@@ -11884,6 +11909,7 @@ function numericLiteral(value) {
|
|
|
11884
11909
|
};
|
|
11885
11910
|
|
|
11886
11911
|
const defs2 = NODE_FIELDS.NumericLiteral;
|
|
11912
|
+
|
|
11887
11913
|
validate(defs2.value, node, 'value', value);
|
|
11888
11914
|
return node;
|
|
11889
11915
|
}
|
|
@@ -11901,6 +11927,7 @@ function booleanLiteral(value) {
|
|
|
11901
11927
|
};
|
|
11902
11928
|
|
|
11903
11929
|
const defs2 = NODE_FIELDS.BooleanLiteral;
|
|
11930
|
+
|
|
11904
11931
|
validate(defs2.value, node, 'value', value);
|
|
11905
11932
|
return node;
|
|
11906
11933
|
}
|
|
@@ -11913,6 +11940,7 @@ function regExpLiteral(pattern, flags = '') {
|
|
|
11913
11940
|
};
|
|
11914
11941
|
|
|
11915
11942
|
const defs2 = NODE_FIELDS.RegExpLiteral;
|
|
11943
|
+
|
|
11916
11944
|
validate(defs2.pattern, node, 'pattern', pattern);
|
|
11917
11945
|
validate(defs2.flags, node, 'flags', flags);
|
|
11918
11946
|
return node;
|
|
@@ -11927,6 +11955,7 @@ function logicalExpression(operator, left, right) {
|
|
|
11927
11955
|
};
|
|
11928
11956
|
|
|
11929
11957
|
const defs2 = NODE_FIELDS.LogicalExpression;
|
|
11958
|
+
|
|
11930
11959
|
validate(defs2.operator, node, 'operator', operator);
|
|
11931
11960
|
validate(defs2.left, node, 'left', left, 1);
|
|
11932
11961
|
validate(defs2.right, node, 'right', right, 1);
|
|
@@ -11942,6 +11971,7 @@ function memberExpression(object, property, computed = false) {
|
|
|
11942
11971
|
};
|
|
11943
11972
|
|
|
11944
11973
|
const defs2 = NODE_FIELDS.MemberExpression;
|
|
11974
|
+
|
|
11945
11975
|
validate(defs2.object, node, 'object', object, 1);
|
|
11946
11976
|
validate(defs2.property, node, 'property', property, 1);
|
|
11947
11977
|
validate(defs2.computed, node, 'computed', computed);
|
|
@@ -11956,6 +11986,7 @@ function newExpression(callee, _arguments) {
|
|
|
11956
11986
|
};
|
|
11957
11987
|
|
|
11958
11988
|
const defs2 = NODE_FIELDS.NewExpression;
|
|
11989
|
+
|
|
11959
11990
|
validate(defs2.callee, node, 'callee', callee, 1);
|
|
11960
11991
|
validate(defs2.arguments, node, 'arguments', _arguments, 1);
|
|
11961
11992
|
return node;
|
|
@@ -11971,6 +12002,7 @@ function program(body, directives = [], sourceType = 'script', interpreter = nul
|
|
|
11971
12002
|
};
|
|
11972
12003
|
|
|
11973
12004
|
const defs2 = NODE_FIELDS.Program;
|
|
12005
|
+
|
|
11974
12006
|
validate(defs2.body, node, 'body', body, 1);
|
|
11975
12007
|
validate(defs2.directives, node, 'directives', directives, 1);
|
|
11976
12008
|
validate(defs2.sourceType, node, 'sourceType', sourceType);
|
|
@@ -11985,6 +12017,7 @@ function objectExpression(properties) {
|
|
|
11985
12017
|
};
|
|
11986
12018
|
|
|
11987
12019
|
const defs2 = NODE_FIELDS.ObjectExpression;
|
|
12020
|
+
|
|
11988
12021
|
validate(defs2.properties, node, 'properties', properties, 1);
|
|
11989
12022
|
return node;
|
|
11990
12023
|
}
|
|
@@ -12002,6 +12035,7 @@ function objectMethod(kind, key, params, body, computed = false, generator = fal
|
|
|
12002
12035
|
};
|
|
12003
12036
|
|
|
12004
12037
|
const defs2 = NODE_FIELDS.ObjectMethod;
|
|
12038
|
+
|
|
12005
12039
|
validate(defs2.kind, node, 'kind', kind);
|
|
12006
12040
|
validate(defs2.key, node, 'key', key, 1);
|
|
12007
12041
|
validate(defs2.params, node, 'params', params, 1);
|
|
@@ -12022,6 +12056,7 @@ function objectProperty(key, value, computed = false, shorthand = false) {
|
|
|
12022
12056
|
};
|
|
12023
12057
|
|
|
12024
12058
|
const defs2 = NODE_FIELDS.ObjectProperty;
|
|
12059
|
+
|
|
12025
12060
|
validate(defs2.key, node, 'key', key, 1);
|
|
12026
12061
|
validate(defs2.value, node, 'value', value, 1);
|
|
12027
12062
|
validate(defs2.computed, node, 'computed', computed);
|
|
@@ -12036,6 +12071,7 @@ function restElement(argument) {
|
|
|
12036
12071
|
};
|
|
12037
12072
|
|
|
12038
12073
|
const defs2 = NODE_FIELDS.RestElement;
|
|
12074
|
+
|
|
12039
12075
|
validate(defs2.argument, node, 'argument', argument, 1);
|
|
12040
12076
|
return node;
|
|
12041
12077
|
}
|
|
@@ -12047,6 +12083,7 @@ function returnStatement(argument = null) {
|
|
|
12047
12083
|
};
|
|
12048
12084
|
|
|
12049
12085
|
const defs2 = NODE_FIELDS.ReturnStatement;
|
|
12086
|
+
|
|
12050
12087
|
validate(defs2.argument, node, 'argument', argument, 1);
|
|
12051
12088
|
return node;
|
|
12052
12089
|
}
|
|
@@ -12058,6 +12095,7 @@ function sequenceExpression(expressions) {
|
|
|
12058
12095
|
};
|
|
12059
12096
|
|
|
12060
12097
|
const defs2 = NODE_FIELDS.SequenceExpression;
|
|
12098
|
+
|
|
12061
12099
|
validate(defs2.expressions, node, 'expressions', expressions, 1);
|
|
12062
12100
|
return node;
|
|
12063
12101
|
}
|
|
@@ -12069,6 +12107,7 @@ function parenthesizedExpression(expression2) {
|
|
|
12069
12107
|
};
|
|
12070
12108
|
|
|
12071
12109
|
const defs2 = NODE_FIELDS.ParenthesizedExpression;
|
|
12110
|
+
|
|
12072
12111
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
12073
12112
|
return node;
|
|
12074
12113
|
}
|
|
@@ -12081,6 +12120,7 @@ function switchCase(test = null, consequent) {
|
|
|
12081
12120
|
};
|
|
12082
12121
|
|
|
12083
12122
|
const defs2 = NODE_FIELDS.SwitchCase;
|
|
12123
|
+
|
|
12084
12124
|
validate(defs2.test, node, 'test', test, 1);
|
|
12085
12125
|
validate(defs2.consequent, node, 'consequent', consequent, 1);
|
|
12086
12126
|
return node;
|
|
@@ -12094,6 +12134,7 @@ function switchStatement(discriminant, cases) {
|
|
|
12094
12134
|
};
|
|
12095
12135
|
|
|
12096
12136
|
const defs2 = NODE_FIELDS.SwitchStatement;
|
|
12137
|
+
|
|
12097
12138
|
validate(defs2.discriminant, node, 'discriminant', discriminant, 1);
|
|
12098
12139
|
validate(defs2.cases, node, 'cases', cases, 1);
|
|
12099
12140
|
return node;
|
|
@@ -12112,6 +12153,7 @@ function throwStatement(argument) {
|
|
|
12112
12153
|
};
|
|
12113
12154
|
|
|
12114
12155
|
const defs2 = NODE_FIELDS.ThrowStatement;
|
|
12156
|
+
|
|
12115
12157
|
validate(defs2.argument, node, 'argument', argument, 1);
|
|
12116
12158
|
return node;
|
|
12117
12159
|
}
|
|
@@ -12125,6 +12167,7 @@ function tryStatement(block, handler = null, finalizer = null) {
|
|
|
12125
12167
|
};
|
|
12126
12168
|
|
|
12127
12169
|
const defs2 = NODE_FIELDS.TryStatement;
|
|
12170
|
+
|
|
12128
12171
|
validate(defs2.block, node, 'block', block, 1);
|
|
12129
12172
|
validate(defs2.handler, node, 'handler', handler, 1);
|
|
12130
12173
|
validate(defs2.finalizer, node, 'finalizer', finalizer, 1);
|
|
@@ -12140,6 +12183,7 @@ function unaryExpression(operator, argument, prefix2 = true) {
|
|
|
12140
12183
|
};
|
|
12141
12184
|
|
|
12142
12185
|
const defs2 = NODE_FIELDS.UnaryExpression;
|
|
12186
|
+
|
|
12143
12187
|
validate(defs2.operator, node, 'operator', operator);
|
|
12144
12188
|
validate(defs2.argument, node, 'argument', argument, 1);
|
|
12145
12189
|
validate(defs2.prefix, node, 'prefix', prefix2);
|
|
@@ -12155,6 +12199,7 @@ function updateExpression(operator, argument, prefix2 = false) {
|
|
|
12155
12199
|
};
|
|
12156
12200
|
|
|
12157
12201
|
const defs2 = NODE_FIELDS.UpdateExpression;
|
|
12202
|
+
|
|
12158
12203
|
validate(defs2.operator, node, 'operator', operator);
|
|
12159
12204
|
validate(defs2.argument, node, 'argument', argument, 1);
|
|
12160
12205
|
validate(defs2.prefix, node, 'prefix', prefix2);
|
|
@@ -12169,6 +12214,7 @@ function variableDeclaration(kind, declarations) {
|
|
|
12169
12214
|
};
|
|
12170
12215
|
|
|
12171
12216
|
const defs2 = NODE_FIELDS.VariableDeclaration;
|
|
12217
|
+
|
|
12172
12218
|
validate(defs2.kind, node, 'kind', kind);
|
|
12173
12219
|
validate(defs2.declarations, node, 'declarations', declarations, 1);
|
|
12174
12220
|
return node;
|
|
@@ -12182,6 +12228,7 @@ function variableDeclarator(id, init = null) {
|
|
|
12182
12228
|
};
|
|
12183
12229
|
|
|
12184
12230
|
const defs2 = NODE_FIELDS.VariableDeclarator;
|
|
12231
|
+
|
|
12185
12232
|
validate(defs2.id, node, 'id', id, 1);
|
|
12186
12233
|
validate(defs2.init, node, 'init', init, 1);
|
|
12187
12234
|
return node;
|
|
@@ -12195,6 +12242,7 @@ function whileStatement(test, body) {
|
|
|
12195
12242
|
};
|
|
12196
12243
|
|
|
12197
12244
|
const defs2 = NODE_FIELDS.WhileStatement;
|
|
12245
|
+
|
|
12198
12246
|
validate(defs2.test, node, 'test', test, 1);
|
|
12199
12247
|
validate(defs2.body, node, 'body', body, 1);
|
|
12200
12248
|
return node;
|
|
@@ -12208,6 +12256,7 @@ function withStatement(object, body) {
|
|
|
12208
12256
|
};
|
|
12209
12257
|
|
|
12210
12258
|
const defs2 = NODE_FIELDS.WithStatement;
|
|
12259
|
+
|
|
12211
12260
|
validate(defs2.object, node, 'object', object, 1);
|
|
12212
12261
|
validate(defs2.body, node, 'body', body, 1);
|
|
12213
12262
|
return node;
|
|
@@ -12221,6 +12270,7 @@ function assignmentPattern(left, right) {
|
|
|
12221
12270
|
};
|
|
12222
12271
|
|
|
12223
12272
|
const defs2 = NODE_FIELDS.AssignmentPattern;
|
|
12273
|
+
|
|
12224
12274
|
validate(defs2.left, node, 'left', left, 1);
|
|
12225
12275
|
validate(defs2.right, node, 'right', right, 1);
|
|
12226
12276
|
return node;
|
|
@@ -12233,6 +12283,7 @@ function arrayPattern(elements) {
|
|
|
12233
12283
|
};
|
|
12234
12284
|
|
|
12235
12285
|
const defs2 = NODE_FIELDS.ArrayPattern;
|
|
12286
|
+
|
|
12236
12287
|
validate(defs2.elements, node, 'elements', elements, 1);
|
|
12237
12288
|
return node;
|
|
12238
12289
|
}
|
|
@@ -12247,6 +12298,7 @@ function arrowFunctionExpression(params, body, async = false) {
|
|
|
12247
12298
|
};
|
|
12248
12299
|
|
|
12249
12300
|
const defs2 = NODE_FIELDS.ArrowFunctionExpression;
|
|
12301
|
+
|
|
12250
12302
|
validate(defs2.params, node, 'params', params, 1);
|
|
12251
12303
|
validate(defs2.body, node, 'body', body, 1);
|
|
12252
12304
|
validate(defs2.async, node, 'async', async);
|
|
@@ -12260,6 +12312,7 @@ function classBody(body) {
|
|
|
12260
12312
|
};
|
|
12261
12313
|
|
|
12262
12314
|
const defs2 = NODE_FIELDS.ClassBody;
|
|
12315
|
+
|
|
12263
12316
|
validate(defs2.body, node, 'body', body, 1);
|
|
12264
12317
|
return node;
|
|
12265
12318
|
}
|
|
@@ -12274,6 +12327,7 @@ function classExpression(id = null, superClass = null, body, decorators = null)
|
|
|
12274
12327
|
};
|
|
12275
12328
|
|
|
12276
12329
|
const defs2 = NODE_FIELDS.ClassExpression;
|
|
12330
|
+
|
|
12277
12331
|
validate(defs2.id, node, 'id', id, 1);
|
|
12278
12332
|
validate(defs2.superClass, node, 'superClass', superClass, 1);
|
|
12279
12333
|
validate(defs2.body, node, 'body', body, 1);
|
|
@@ -12291,6 +12345,7 @@ function classDeclaration(id = null, superClass = null, body, decorators = null)
|
|
|
12291
12345
|
};
|
|
12292
12346
|
|
|
12293
12347
|
const defs2 = NODE_FIELDS.ClassDeclaration;
|
|
12348
|
+
|
|
12294
12349
|
validate(defs2.id, node, 'id', id, 1);
|
|
12295
12350
|
validate(defs2.superClass, node, 'superClass', superClass, 1);
|
|
12296
12351
|
validate(defs2.body, node, 'body', body, 1);
|
|
@@ -12306,6 +12361,7 @@ function exportAllDeclaration(source, attributes = null) {
|
|
|
12306
12361
|
};
|
|
12307
12362
|
|
|
12308
12363
|
const defs2 = NODE_FIELDS.ExportAllDeclaration;
|
|
12364
|
+
|
|
12309
12365
|
validate(defs2.source, node, 'source', source, 1);
|
|
12310
12366
|
validate(defs2.attributes, node, 'attributes', attributes, 1);
|
|
12311
12367
|
return node;
|
|
@@ -12318,6 +12374,7 @@ function exportDefaultDeclaration(declaration) {
|
|
|
12318
12374
|
};
|
|
12319
12375
|
|
|
12320
12376
|
const defs2 = NODE_FIELDS.ExportDefaultDeclaration;
|
|
12377
|
+
|
|
12321
12378
|
validate(defs2.declaration, node, 'declaration', declaration, 1);
|
|
12322
12379
|
return node;
|
|
12323
12380
|
}
|
|
@@ -12332,6 +12389,7 @@ function exportNamedDeclaration(declaration = null, specifiers = [], source = nu
|
|
|
12332
12389
|
};
|
|
12333
12390
|
|
|
12334
12391
|
const defs2 = NODE_FIELDS.ExportNamedDeclaration;
|
|
12392
|
+
|
|
12335
12393
|
validate(defs2.declaration, node, 'declaration', declaration, 1);
|
|
12336
12394
|
validate(defs2.specifiers, node, 'specifiers', specifiers, 1);
|
|
12337
12395
|
validate(defs2.source, node, 'source', source, 1);
|
|
@@ -12347,6 +12405,7 @@ function exportSpecifier(local, exported) {
|
|
|
12347
12405
|
};
|
|
12348
12406
|
|
|
12349
12407
|
const defs2 = NODE_FIELDS.ExportSpecifier;
|
|
12408
|
+
|
|
12350
12409
|
validate(defs2.local, node, 'local', local, 1);
|
|
12351
12410
|
validate(defs2.exported, node, 'exported', exported, 1);
|
|
12352
12411
|
return node;
|
|
@@ -12362,6 +12421,7 @@ function forOfStatement(left, right, body, _await = false) {
|
|
|
12362
12421
|
};
|
|
12363
12422
|
|
|
12364
12423
|
const defs2 = NODE_FIELDS.ForOfStatement;
|
|
12424
|
+
|
|
12365
12425
|
validate(defs2.left, node, 'left', left, 1);
|
|
12366
12426
|
validate(defs2.right, node, 'right', right, 1);
|
|
12367
12427
|
validate(defs2.body, node, 'body', body, 1);
|
|
@@ -12378,6 +12438,7 @@ function importDeclaration(specifiers, source, attributes = null) {
|
|
|
12378
12438
|
};
|
|
12379
12439
|
|
|
12380
12440
|
const defs2 = NODE_FIELDS.ImportDeclaration;
|
|
12441
|
+
|
|
12381
12442
|
validate(defs2.specifiers, node, 'specifiers', specifiers, 1);
|
|
12382
12443
|
validate(defs2.source, node, 'source', source, 1);
|
|
12383
12444
|
validate(defs2.attributes, node, 'attributes', attributes, 1);
|
|
@@ -12391,6 +12452,7 @@ function importDefaultSpecifier(local) {
|
|
|
12391
12452
|
};
|
|
12392
12453
|
|
|
12393
12454
|
const defs2 = NODE_FIELDS.ImportDefaultSpecifier;
|
|
12455
|
+
|
|
12394
12456
|
validate(defs2.local, node, 'local', local, 1);
|
|
12395
12457
|
return node;
|
|
12396
12458
|
}
|
|
@@ -12402,6 +12464,7 @@ function importNamespaceSpecifier(local) {
|
|
|
12402
12464
|
};
|
|
12403
12465
|
|
|
12404
12466
|
const defs2 = NODE_FIELDS.ImportNamespaceSpecifier;
|
|
12467
|
+
|
|
12405
12468
|
validate(defs2.local, node, 'local', local, 1);
|
|
12406
12469
|
return node;
|
|
12407
12470
|
}
|
|
@@ -12414,6 +12477,7 @@ function importSpecifier(local, imported) {
|
|
|
12414
12477
|
};
|
|
12415
12478
|
|
|
12416
12479
|
const defs2 = NODE_FIELDS.ImportSpecifier;
|
|
12480
|
+
|
|
12417
12481
|
validate(defs2.local, node, 'local', local, 1);
|
|
12418
12482
|
validate(defs2.imported, node, 'imported', imported, 1);
|
|
12419
12483
|
return node;
|
|
@@ -12427,6 +12491,7 @@ function metaProperty(meta, property) {
|
|
|
12427
12491
|
};
|
|
12428
12492
|
|
|
12429
12493
|
const defs2 = NODE_FIELDS.MetaProperty;
|
|
12494
|
+
|
|
12430
12495
|
validate(defs2.meta, node, 'meta', meta, 1);
|
|
12431
12496
|
validate(defs2.property, node, 'property', property, 1);
|
|
12432
12497
|
return node;
|
|
@@ -12446,6 +12511,7 @@ function classMethod(kind = 'method', key, params, body, computed = false, _stat
|
|
|
12446
12511
|
};
|
|
12447
12512
|
|
|
12448
12513
|
const defs2 = NODE_FIELDS.ClassMethod;
|
|
12514
|
+
|
|
12449
12515
|
validate(defs2.kind, node, 'kind', kind);
|
|
12450
12516
|
validate(defs2.key, node, 'key', key, 1);
|
|
12451
12517
|
validate(defs2.params, node, 'params', params, 1);
|
|
@@ -12464,6 +12530,7 @@ function objectPattern(properties) {
|
|
|
12464
12530
|
};
|
|
12465
12531
|
|
|
12466
12532
|
const defs2 = NODE_FIELDS.ObjectPattern;
|
|
12533
|
+
|
|
12467
12534
|
validate(defs2.properties, node, 'properties', properties, 1);
|
|
12468
12535
|
return node;
|
|
12469
12536
|
}
|
|
@@ -12475,6 +12542,7 @@ function spreadElement(argument) {
|
|
|
12475
12542
|
};
|
|
12476
12543
|
|
|
12477
12544
|
const defs2 = NODE_FIELDS.SpreadElement;
|
|
12545
|
+
|
|
12478
12546
|
validate(defs2.argument, node, 'argument', argument, 1);
|
|
12479
12547
|
return node;
|
|
12480
12548
|
}
|
|
@@ -12493,6 +12561,7 @@ function taggedTemplateExpression(tag, quasi) {
|
|
|
12493
12561
|
};
|
|
12494
12562
|
|
|
12495
12563
|
const defs2 = NODE_FIELDS.TaggedTemplateExpression;
|
|
12564
|
+
|
|
12496
12565
|
validate(defs2.tag, node, 'tag', tag, 1);
|
|
12497
12566
|
validate(defs2.quasi, node, 'quasi', quasi, 1);
|
|
12498
12567
|
return node;
|
|
@@ -12506,6 +12575,7 @@ function templateElement(value, tail = false) {
|
|
|
12506
12575
|
};
|
|
12507
12576
|
|
|
12508
12577
|
const defs2 = NODE_FIELDS.TemplateElement;
|
|
12578
|
+
|
|
12509
12579
|
validate(defs2.value, node, 'value', value);
|
|
12510
12580
|
validate(defs2.tail, node, 'tail', tail);
|
|
12511
12581
|
return node;
|
|
@@ -12519,6 +12589,7 @@ function templateLiteral(quasis, expressions) {
|
|
|
12519
12589
|
};
|
|
12520
12590
|
|
|
12521
12591
|
const defs2 = NODE_FIELDS.TemplateLiteral;
|
|
12592
|
+
|
|
12522
12593
|
validate(defs2.quasis, node, 'quasis', quasis, 1);
|
|
12523
12594
|
validate(defs2.expressions, node, 'expressions', expressions, 1);
|
|
12524
12595
|
return node;
|
|
@@ -12532,6 +12603,7 @@ function yieldExpression(argument = null, delegate = false) {
|
|
|
12532
12603
|
};
|
|
12533
12604
|
|
|
12534
12605
|
const defs2 = NODE_FIELDS.YieldExpression;
|
|
12606
|
+
|
|
12535
12607
|
validate(defs2.argument, node, 'argument', argument, 1);
|
|
12536
12608
|
validate(defs2.delegate, node, 'delegate', delegate);
|
|
12537
12609
|
return node;
|
|
@@ -12544,6 +12616,7 @@ function awaitExpression(argument) {
|
|
|
12544
12616
|
};
|
|
12545
12617
|
|
|
12546
12618
|
const defs2 = NODE_FIELDS.AwaitExpression;
|
|
12619
|
+
|
|
12547
12620
|
validate(defs2.argument, node, 'argument', argument, 1);
|
|
12548
12621
|
return node;
|
|
12549
12622
|
}
|
|
@@ -12556,6 +12629,7 @@ function importExpression(source, options = null) {
|
|
|
12556
12629
|
};
|
|
12557
12630
|
|
|
12558
12631
|
const defs2 = NODE_FIELDS.ImportExpression;
|
|
12632
|
+
|
|
12559
12633
|
validate(defs2.source, node, 'source', source, 1);
|
|
12560
12634
|
validate(defs2.options, node, 'options', options, 1);
|
|
12561
12635
|
return node;
|
|
@@ -12574,6 +12648,7 @@ function bigIntLiteral(value) {
|
|
|
12574
12648
|
};
|
|
12575
12649
|
|
|
12576
12650
|
const defs2 = NODE_FIELDS.BigIntLiteral;
|
|
12651
|
+
|
|
12577
12652
|
validate(defs2.value, node, 'value', value);
|
|
12578
12653
|
return node;
|
|
12579
12654
|
}
|
|
@@ -12585,6 +12660,7 @@ function exportNamespaceSpecifier(exported) {
|
|
|
12585
12660
|
};
|
|
12586
12661
|
|
|
12587
12662
|
const defs2 = NODE_FIELDS.ExportNamespaceSpecifier;
|
|
12663
|
+
|
|
12588
12664
|
validate(defs2.exported, node, 'exported', exported, 1);
|
|
12589
12665
|
return node;
|
|
12590
12666
|
}
|
|
@@ -12599,6 +12675,7 @@ function optionalMemberExpression(object, property, computed = false, optional)
|
|
|
12599
12675
|
};
|
|
12600
12676
|
|
|
12601
12677
|
const defs2 = NODE_FIELDS.OptionalMemberExpression;
|
|
12678
|
+
|
|
12602
12679
|
validate(defs2.object, node, 'object', object, 1);
|
|
12603
12680
|
validate(defs2.property, node, 'property', property, 1);
|
|
12604
12681
|
validate(defs2.computed, node, 'computed', computed);
|
|
@@ -12615,6 +12692,7 @@ function optionalCallExpression(callee, _arguments, optional) {
|
|
|
12615
12692
|
};
|
|
12616
12693
|
|
|
12617
12694
|
const defs2 = NODE_FIELDS.OptionalCallExpression;
|
|
12695
|
+
|
|
12618
12696
|
validate(defs2.callee, node, 'callee', callee, 1);
|
|
12619
12697
|
validate(defs2.arguments, node, 'arguments', _arguments, 1);
|
|
12620
12698
|
validate(defs2.optional, node, 'optional', optional);
|
|
@@ -12633,6 +12711,7 @@ function classProperty(key, value = null, typeAnnotation2 = null, decorators = n
|
|
|
12633
12711
|
};
|
|
12634
12712
|
|
|
12635
12713
|
const defs2 = NODE_FIELDS.ClassProperty;
|
|
12714
|
+
|
|
12636
12715
|
validate(defs2.key, node, 'key', key, 1);
|
|
12637
12716
|
validate(defs2.value, node, 'value', value, 1);
|
|
12638
12717
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
@@ -12652,6 +12731,7 @@ function classPrivateProperty(key, value = null, decorators = null, _static = fa
|
|
|
12652
12731
|
};
|
|
12653
12732
|
|
|
12654
12733
|
const defs2 = NODE_FIELDS.ClassPrivateProperty;
|
|
12734
|
+
|
|
12655
12735
|
validate(defs2.key, node, 'key', key, 1);
|
|
12656
12736
|
validate(defs2.value, node, 'value', value, 1);
|
|
12657
12737
|
validate(defs2.decorators, node, 'decorators', decorators, 1);
|
|
@@ -12673,6 +12753,7 @@ function classPrivateMethod(kind = 'method', key, params, body, _static = false)
|
|
|
12673
12753
|
};
|
|
12674
12754
|
|
|
12675
12755
|
const defs2 = NODE_FIELDS.ClassPrivateMethod;
|
|
12756
|
+
|
|
12676
12757
|
validate(defs2.kind, node, 'kind', kind);
|
|
12677
12758
|
validate(defs2.key, node, 'key', key, 1);
|
|
12678
12759
|
validate(defs2.params, node, 'params', params, 1);
|
|
@@ -12688,6 +12769,7 @@ function privateName(id) {
|
|
|
12688
12769
|
};
|
|
12689
12770
|
|
|
12690
12771
|
const defs2 = NODE_FIELDS.PrivateName;
|
|
12772
|
+
|
|
12691
12773
|
validate(defs2.id, node, 'id', id, 1);
|
|
12692
12774
|
return node;
|
|
12693
12775
|
}
|
|
@@ -12699,6 +12781,7 @@ function staticBlock(body) {
|
|
|
12699
12781
|
};
|
|
12700
12782
|
|
|
12701
12783
|
const defs2 = NODE_FIELDS.StaticBlock;
|
|
12784
|
+
|
|
12702
12785
|
validate(defs2.body, node, 'body', body, 1);
|
|
12703
12786
|
return node;
|
|
12704
12787
|
}
|
|
@@ -12711,6 +12794,7 @@ function importAttribute(key, value) {
|
|
|
12711
12794
|
};
|
|
12712
12795
|
|
|
12713
12796
|
const defs2 = NODE_FIELDS.ImportAttribute;
|
|
12797
|
+
|
|
12714
12798
|
validate(defs2.key, node, 'key', key, 1);
|
|
12715
12799
|
validate(defs2.value, node, 'value', value, 1);
|
|
12716
12800
|
return node;
|
|
@@ -12729,6 +12813,7 @@ function arrayTypeAnnotation(elementType) {
|
|
|
12729
12813
|
};
|
|
12730
12814
|
|
|
12731
12815
|
const defs2 = NODE_FIELDS.ArrayTypeAnnotation;
|
|
12816
|
+
|
|
12732
12817
|
validate(defs2.elementType, node, 'elementType', elementType, 1);
|
|
12733
12818
|
return node;
|
|
12734
12819
|
}
|
|
@@ -12746,6 +12831,7 @@ function booleanLiteralTypeAnnotation(value) {
|
|
|
12746
12831
|
};
|
|
12747
12832
|
|
|
12748
12833
|
const defs2 = NODE_FIELDS.BooleanLiteralTypeAnnotation;
|
|
12834
|
+
|
|
12749
12835
|
validate(defs2.value, node, 'value', value);
|
|
12750
12836
|
return node;
|
|
12751
12837
|
}
|
|
@@ -12764,6 +12850,7 @@ function classImplements(id, typeParameters = null) {
|
|
|
12764
12850
|
};
|
|
12765
12851
|
|
|
12766
12852
|
const defs2 = NODE_FIELDS.ClassImplements;
|
|
12853
|
+
|
|
12767
12854
|
validate(defs2.id, node, 'id', id, 1);
|
|
12768
12855
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
12769
12856
|
return node;
|
|
@@ -12779,6 +12866,7 @@ function declareClass(id, typeParameters = null, _extends = null, body) {
|
|
|
12779
12866
|
};
|
|
12780
12867
|
|
|
12781
12868
|
const defs2 = NODE_FIELDS.DeclareClass;
|
|
12869
|
+
|
|
12782
12870
|
validate(defs2.id, node, 'id', id, 1);
|
|
12783
12871
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
12784
12872
|
validate(defs2.extends, node, 'extends', _extends, 1);
|
|
@@ -12793,6 +12881,7 @@ function declareFunction(id) {
|
|
|
12793
12881
|
};
|
|
12794
12882
|
|
|
12795
12883
|
const defs2 = NODE_FIELDS.DeclareFunction;
|
|
12884
|
+
|
|
12796
12885
|
validate(defs2.id, node, 'id', id, 1);
|
|
12797
12886
|
return node;
|
|
12798
12887
|
}
|
|
@@ -12807,6 +12896,7 @@ function declareInterface(id, typeParameters = null, _extends = null, body) {
|
|
|
12807
12896
|
};
|
|
12808
12897
|
|
|
12809
12898
|
const defs2 = NODE_FIELDS.DeclareInterface;
|
|
12899
|
+
|
|
12810
12900
|
validate(defs2.id, node, 'id', id, 1);
|
|
12811
12901
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
12812
12902
|
validate(defs2.extends, node, 'extends', _extends, 1);
|
|
@@ -12823,6 +12913,7 @@ function declareModule(id, body, kind = null) {
|
|
|
12823
12913
|
};
|
|
12824
12914
|
|
|
12825
12915
|
const defs2 = NODE_FIELDS.DeclareModule;
|
|
12916
|
+
|
|
12826
12917
|
validate(defs2.id, node, 'id', id, 1);
|
|
12827
12918
|
validate(defs2.body, node, 'body', body, 1);
|
|
12828
12919
|
validate(defs2.kind, node, 'kind', kind);
|
|
@@ -12836,6 +12927,7 @@ function declareModuleExports(typeAnnotation2) {
|
|
|
12836
12927
|
};
|
|
12837
12928
|
|
|
12838
12929
|
const defs2 = NODE_FIELDS.DeclareModuleExports;
|
|
12930
|
+
|
|
12839
12931
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
12840
12932
|
return node;
|
|
12841
12933
|
}
|
|
@@ -12849,6 +12941,7 @@ function declareTypeAlias(id, typeParameters = null, right) {
|
|
|
12849
12941
|
};
|
|
12850
12942
|
|
|
12851
12943
|
const defs2 = NODE_FIELDS.DeclareTypeAlias;
|
|
12944
|
+
|
|
12852
12945
|
validate(defs2.id, node, 'id', id, 1);
|
|
12853
12946
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
12854
12947
|
validate(defs2.right, node, 'right', right, 1);
|
|
@@ -12864,6 +12957,7 @@ function declareOpaqueType(id, typeParameters = null, supertype = null) {
|
|
|
12864
12957
|
};
|
|
12865
12958
|
|
|
12866
12959
|
const defs2 = NODE_FIELDS.DeclareOpaqueType;
|
|
12960
|
+
|
|
12867
12961
|
validate(defs2.id, node, 'id', id, 1);
|
|
12868
12962
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
12869
12963
|
validate(defs2.supertype, node, 'supertype', supertype, 1);
|
|
@@ -12877,6 +12971,7 @@ function declareVariable(id) {
|
|
|
12877
12971
|
};
|
|
12878
12972
|
|
|
12879
12973
|
const defs2 = NODE_FIELDS.DeclareVariable;
|
|
12974
|
+
|
|
12880
12975
|
validate(defs2.id, node, 'id', id, 1);
|
|
12881
12976
|
return node;
|
|
12882
12977
|
}
|
|
@@ -12891,6 +12986,7 @@ function declareExportDeclaration(declaration = null, specifiers = null, source
|
|
|
12891
12986
|
};
|
|
12892
12987
|
|
|
12893
12988
|
const defs2 = NODE_FIELDS.DeclareExportDeclaration;
|
|
12989
|
+
|
|
12894
12990
|
validate(defs2.declaration, node, 'declaration', declaration, 1);
|
|
12895
12991
|
validate(defs2.specifiers, node, 'specifiers', specifiers, 1);
|
|
12896
12992
|
validate(defs2.source, node, 'source', source, 1);
|
|
@@ -12906,6 +13002,7 @@ function declareExportAllDeclaration(source, attributes = null) {
|
|
|
12906
13002
|
};
|
|
12907
13003
|
|
|
12908
13004
|
const defs2 = NODE_FIELDS.DeclareExportAllDeclaration;
|
|
13005
|
+
|
|
12909
13006
|
validate(defs2.source, node, 'source', source, 1);
|
|
12910
13007
|
validate(defs2.attributes, node, 'attributes', attributes, 1);
|
|
12911
13008
|
return node;
|
|
@@ -12918,6 +13015,7 @@ function declaredPredicate(value) {
|
|
|
12918
13015
|
};
|
|
12919
13016
|
|
|
12920
13017
|
const defs2 = NODE_FIELDS.DeclaredPredicate;
|
|
13018
|
+
|
|
12921
13019
|
validate(defs2.value, node, 'value', value, 1);
|
|
12922
13020
|
return node;
|
|
12923
13021
|
}
|
|
@@ -12938,6 +13036,7 @@ function functionTypeAnnotation(typeParameters = null, params, rest = null, retu
|
|
|
12938
13036
|
};
|
|
12939
13037
|
|
|
12940
13038
|
const defs2 = NODE_FIELDS.FunctionTypeAnnotation;
|
|
13039
|
+
|
|
12941
13040
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
12942
13041
|
validate(defs2.params, node, 'params', params, 1);
|
|
12943
13042
|
validate(defs2.rest, node, 'rest', rest, 1);
|
|
@@ -12953,6 +13052,7 @@ function functionTypeParam(name = null, typeAnnotation2) {
|
|
|
12953
13052
|
};
|
|
12954
13053
|
|
|
12955
13054
|
const defs2 = NODE_FIELDS.FunctionTypeParam;
|
|
13055
|
+
|
|
12956
13056
|
validate(defs2.name, node, 'name', name, 1);
|
|
12957
13057
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
12958
13058
|
return node;
|
|
@@ -12966,6 +13066,7 @@ function genericTypeAnnotation(id, typeParameters = null) {
|
|
|
12966
13066
|
};
|
|
12967
13067
|
|
|
12968
13068
|
const defs2 = NODE_FIELDS.GenericTypeAnnotation;
|
|
13069
|
+
|
|
12969
13070
|
validate(defs2.id, node, 'id', id, 1);
|
|
12970
13071
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
12971
13072
|
return node;
|
|
@@ -12985,6 +13086,7 @@ function interfaceExtends(id, typeParameters = null) {
|
|
|
12985
13086
|
};
|
|
12986
13087
|
|
|
12987
13088
|
const defs2 = NODE_FIELDS.InterfaceExtends;
|
|
13089
|
+
|
|
12988
13090
|
validate(defs2.id, node, 'id', id, 1);
|
|
12989
13091
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
12990
13092
|
return node;
|
|
@@ -13000,6 +13102,7 @@ function interfaceDeclaration(id, typeParameters = null, _extends = null, body)
|
|
|
13000
13102
|
};
|
|
13001
13103
|
|
|
13002
13104
|
const defs2 = NODE_FIELDS.InterfaceDeclaration;
|
|
13105
|
+
|
|
13003
13106
|
validate(defs2.id, node, 'id', id, 1);
|
|
13004
13107
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
13005
13108
|
validate(defs2.extends, node, 'extends', _extends, 1);
|
|
@@ -13015,6 +13118,7 @@ function interfaceTypeAnnotation(_extends = null, body) {
|
|
|
13015
13118
|
};
|
|
13016
13119
|
|
|
13017
13120
|
const defs2 = NODE_FIELDS.InterfaceTypeAnnotation;
|
|
13121
|
+
|
|
13018
13122
|
validate(defs2.extends, node, 'extends', _extends, 1);
|
|
13019
13123
|
validate(defs2.body, node, 'body', body, 1);
|
|
13020
13124
|
return node;
|
|
@@ -13027,6 +13131,7 @@ function intersectionTypeAnnotation(types2) {
|
|
|
13027
13131
|
};
|
|
13028
13132
|
|
|
13029
13133
|
const defs2 = NODE_FIELDS.IntersectionTypeAnnotation;
|
|
13134
|
+
|
|
13030
13135
|
validate(defs2.types, node, 'types', types2, 1);
|
|
13031
13136
|
return node;
|
|
13032
13137
|
}
|
|
@@ -13050,6 +13155,7 @@ function nullableTypeAnnotation(typeAnnotation2) {
|
|
|
13050
13155
|
};
|
|
13051
13156
|
|
|
13052
13157
|
const defs2 = NODE_FIELDS.NullableTypeAnnotation;
|
|
13158
|
+
|
|
13053
13159
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
13054
13160
|
return node;
|
|
13055
13161
|
}
|
|
@@ -13061,6 +13167,7 @@ function numberLiteralTypeAnnotation(value) {
|
|
|
13061
13167
|
};
|
|
13062
13168
|
|
|
13063
13169
|
const defs2 = NODE_FIELDS.NumberLiteralTypeAnnotation;
|
|
13170
|
+
|
|
13064
13171
|
validate(defs2.value, node, 'value', value);
|
|
13065
13172
|
return node;
|
|
13066
13173
|
}
|
|
@@ -13072,6 +13179,7 @@ function bigIntLiteralTypeAnnotation(value) {
|
|
|
13072
13179
|
};
|
|
13073
13180
|
|
|
13074
13181
|
const defs2 = NODE_FIELDS.BigIntLiteralTypeAnnotation;
|
|
13182
|
+
|
|
13075
13183
|
validate(defs2.value, node, 'value', value);
|
|
13076
13184
|
return node;
|
|
13077
13185
|
}
|
|
@@ -13093,6 +13201,7 @@ function objectTypeAnnotation(properties, indexers = [], callProperties = [], in
|
|
|
13093
13201
|
};
|
|
13094
13202
|
|
|
13095
13203
|
const defs2 = NODE_FIELDS.ObjectTypeAnnotation;
|
|
13204
|
+
|
|
13096
13205
|
validate(defs2.properties, node, 'properties', properties, 1);
|
|
13097
13206
|
validate(defs2.indexers, node, 'indexers', indexers, 1);
|
|
13098
13207
|
validate(defs2.callProperties, node, 'callProperties', callProperties, 1);
|
|
@@ -13112,6 +13221,7 @@ function objectTypeInternalSlot(id, value, optional, _static, method) {
|
|
|
13112
13221
|
};
|
|
13113
13222
|
|
|
13114
13223
|
const defs2 = NODE_FIELDS.ObjectTypeInternalSlot;
|
|
13224
|
+
|
|
13115
13225
|
validate(defs2.id, node, 'id', id, 1);
|
|
13116
13226
|
validate(defs2.value, node, 'value', value, 1);
|
|
13117
13227
|
validate(defs2.optional, node, 'optional', optional);
|
|
@@ -13128,6 +13238,7 @@ function objectTypeCallProperty(value) {
|
|
|
13128
13238
|
};
|
|
13129
13239
|
|
|
13130
13240
|
const defs2 = NODE_FIELDS.ObjectTypeCallProperty;
|
|
13241
|
+
|
|
13131
13242
|
validate(defs2.value, node, 'value', value, 1);
|
|
13132
13243
|
return node;
|
|
13133
13244
|
}
|
|
@@ -13143,6 +13254,7 @@ function objectTypeIndexer(id = null, key, value, variance2 = null) {
|
|
|
13143
13254
|
};
|
|
13144
13255
|
|
|
13145
13256
|
const defs2 = NODE_FIELDS.ObjectTypeIndexer;
|
|
13257
|
+
|
|
13146
13258
|
validate(defs2.id, node, 'id', id, 1);
|
|
13147
13259
|
validate(defs2.key, node, 'key', key, 1);
|
|
13148
13260
|
validate(defs2.value, node, 'value', value, 1);
|
|
@@ -13164,6 +13276,7 @@ function objectTypeProperty(key, value, variance2 = null) {
|
|
|
13164
13276
|
};
|
|
13165
13277
|
|
|
13166
13278
|
const defs2 = NODE_FIELDS.ObjectTypeProperty;
|
|
13279
|
+
|
|
13167
13280
|
validate(defs2.key, node, 'key', key, 1);
|
|
13168
13281
|
validate(defs2.value, node, 'value', value, 1);
|
|
13169
13282
|
validate(defs2.variance, node, 'variance', variance2, 1);
|
|
@@ -13177,6 +13290,7 @@ function objectTypeSpreadProperty(argument) {
|
|
|
13177
13290
|
};
|
|
13178
13291
|
|
|
13179
13292
|
const defs2 = NODE_FIELDS.ObjectTypeSpreadProperty;
|
|
13293
|
+
|
|
13180
13294
|
validate(defs2.argument, node, 'argument', argument, 1);
|
|
13181
13295
|
return node;
|
|
13182
13296
|
}
|
|
@@ -13191,6 +13305,7 @@ function opaqueType(id, typeParameters = null, supertype = null, impltype) {
|
|
|
13191
13305
|
};
|
|
13192
13306
|
|
|
13193
13307
|
const defs2 = NODE_FIELDS.OpaqueType;
|
|
13308
|
+
|
|
13194
13309
|
validate(defs2.id, node, 'id', id, 1);
|
|
13195
13310
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
13196
13311
|
validate(defs2.supertype, node, 'supertype', supertype, 1);
|
|
@@ -13206,6 +13321,7 @@ function qualifiedTypeIdentifier(id, qualification) {
|
|
|
13206
13321
|
};
|
|
13207
13322
|
|
|
13208
13323
|
const defs2 = NODE_FIELDS.QualifiedTypeIdentifier;
|
|
13324
|
+
|
|
13209
13325
|
validate(defs2.id, node, 'id', id, 1);
|
|
13210
13326
|
validate(defs2.qualification, node, 'qualification', qualification, 1);
|
|
13211
13327
|
return node;
|
|
@@ -13218,6 +13334,7 @@ function stringLiteralTypeAnnotation(value) {
|
|
|
13218
13334
|
};
|
|
13219
13335
|
|
|
13220
13336
|
const defs2 = NODE_FIELDS.StringLiteralTypeAnnotation;
|
|
13337
|
+
|
|
13221
13338
|
validate(defs2.value, node, 'value', value);
|
|
13222
13339
|
return node;
|
|
13223
13340
|
}
|
|
@@ -13247,6 +13364,7 @@ function tupleTypeAnnotation(types2) {
|
|
|
13247
13364
|
};
|
|
13248
13365
|
|
|
13249
13366
|
const defs2 = NODE_FIELDS.TupleTypeAnnotation;
|
|
13367
|
+
|
|
13250
13368
|
validate(defs2.types, node, 'types', types2, 1);
|
|
13251
13369
|
return node;
|
|
13252
13370
|
}
|
|
@@ -13258,6 +13376,7 @@ function typeofTypeAnnotation(argument) {
|
|
|
13258
13376
|
};
|
|
13259
13377
|
|
|
13260
13378
|
const defs2 = NODE_FIELDS.TypeofTypeAnnotation;
|
|
13379
|
+
|
|
13261
13380
|
validate(defs2.argument, node, 'argument', argument, 1);
|
|
13262
13381
|
return node;
|
|
13263
13382
|
}
|
|
@@ -13271,6 +13390,7 @@ function typeAlias(id, typeParameters = null, right) {
|
|
|
13271
13390
|
};
|
|
13272
13391
|
|
|
13273
13392
|
const defs2 = NODE_FIELDS.TypeAlias;
|
|
13393
|
+
|
|
13274
13394
|
validate(defs2.id, node, 'id', id, 1);
|
|
13275
13395
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
13276
13396
|
validate(defs2.right, node, 'right', right, 1);
|
|
@@ -13284,6 +13404,7 @@ function typeAnnotation(typeAnnotation2) {
|
|
|
13284
13404
|
};
|
|
13285
13405
|
|
|
13286
13406
|
const defs2 = NODE_FIELDS.TypeAnnotation;
|
|
13407
|
+
|
|
13287
13408
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
13288
13409
|
return node;
|
|
13289
13410
|
}
|
|
@@ -13296,6 +13417,7 @@ function typeCastExpression(expression2, typeAnnotation2) {
|
|
|
13296
13417
|
};
|
|
13297
13418
|
|
|
13298
13419
|
const defs2 = NODE_FIELDS.TypeCastExpression;
|
|
13420
|
+
|
|
13299
13421
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
13300
13422
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
13301
13423
|
return node;
|
|
@@ -13311,6 +13433,7 @@ function typeParameter(name, bound = null, _default = null, variance2 = null) {
|
|
|
13311
13433
|
};
|
|
13312
13434
|
|
|
13313
13435
|
const defs2 = NODE_FIELDS.TypeParameter;
|
|
13436
|
+
|
|
13314
13437
|
validate(defs2.name, node, 'name', name);
|
|
13315
13438
|
validate(defs2.bound, node, 'bound', bound, 1);
|
|
13316
13439
|
validate(defs2.default, node, 'default', _default, 1);
|
|
@@ -13325,6 +13448,7 @@ function typeParameterDeclaration(params) {
|
|
|
13325
13448
|
};
|
|
13326
13449
|
|
|
13327
13450
|
const defs2 = NODE_FIELDS.TypeParameterDeclaration;
|
|
13451
|
+
|
|
13328
13452
|
validate(defs2.params, node, 'params', params, 1);
|
|
13329
13453
|
return node;
|
|
13330
13454
|
}
|
|
@@ -13336,6 +13460,7 @@ function typeParameterInstantiation(params) {
|
|
|
13336
13460
|
};
|
|
13337
13461
|
|
|
13338
13462
|
const defs2 = NODE_FIELDS.TypeParameterInstantiation;
|
|
13463
|
+
|
|
13339
13464
|
validate(defs2.params, node, 'params', params, 1);
|
|
13340
13465
|
return node;
|
|
13341
13466
|
}
|
|
@@ -13347,6 +13472,7 @@ function unionTypeAnnotation(types2) {
|
|
|
13347
13472
|
};
|
|
13348
13473
|
|
|
13349
13474
|
const defs2 = NODE_FIELDS.UnionTypeAnnotation;
|
|
13475
|
+
|
|
13350
13476
|
validate(defs2.types, node, 'types', types2, 1);
|
|
13351
13477
|
return node;
|
|
13352
13478
|
}
|
|
@@ -13358,6 +13484,7 @@ function variance(kind) {
|
|
|
13358
13484
|
};
|
|
13359
13485
|
|
|
13360
13486
|
const defs2 = NODE_FIELDS.Variance;
|
|
13487
|
+
|
|
13361
13488
|
validate(defs2.kind, node, 'kind', kind);
|
|
13362
13489
|
return node;
|
|
13363
13490
|
}
|
|
@@ -13376,6 +13503,7 @@ function enumDeclaration(id, body) {
|
|
|
13376
13503
|
};
|
|
13377
13504
|
|
|
13378
13505
|
const defs2 = NODE_FIELDS.EnumDeclaration;
|
|
13506
|
+
|
|
13379
13507
|
validate(defs2.id, node, 'id', id, 1);
|
|
13380
13508
|
validate(defs2.body, node, 'body', body, 1);
|
|
13381
13509
|
return node;
|
|
@@ -13390,6 +13518,7 @@ function enumBooleanBody(members) {
|
|
|
13390
13518
|
};
|
|
13391
13519
|
|
|
13392
13520
|
const defs2 = NODE_FIELDS.EnumBooleanBody;
|
|
13521
|
+
|
|
13393
13522
|
validate(defs2.members, node, 'members', members, 1);
|
|
13394
13523
|
return node;
|
|
13395
13524
|
}
|
|
@@ -13403,6 +13532,7 @@ function enumNumberBody(members) {
|
|
|
13403
13532
|
};
|
|
13404
13533
|
|
|
13405
13534
|
const defs2 = NODE_FIELDS.EnumNumberBody;
|
|
13535
|
+
|
|
13406
13536
|
validate(defs2.members, node, 'members', members, 1);
|
|
13407
13537
|
return node;
|
|
13408
13538
|
}
|
|
@@ -13416,6 +13546,7 @@ function enumStringBody(members) {
|
|
|
13416
13546
|
};
|
|
13417
13547
|
|
|
13418
13548
|
const defs2 = NODE_FIELDS.EnumStringBody;
|
|
13549
|
+
|
|
13419
13550
|
validate(defs2.members, node, 'members', members, 1);
|
|
13420
13551
|
return node;
|
|
13421
13552
|
}
|
|
@@ -13428,6 +13559,7 @@ function enumSymbolBody(members) {
|
|
|
13428
13559
|
};
|
|
13429
13560
|
|
|
13430
13561
|
const defs2 = NODE_FIELDS.EnumSymbolBody;
|
|
13562
|
+
|
|
13431
13563
|
validate(defs2.members, node, 'members', members, 1);
|
|
13432
13564
|
return node;
|
|
13433
13565
|
}
|
|
@@ -13440,6 +13572,7 @@ function enumBooleanMember(id, init) {
|
|
|
13440
13572
|
};
|
|
13441
13573
|
|
|
13442
13574
|
const defs2 = NODE_FIELDS.EnumBooleanMember;
|
|
13575
|
+
|
|
13443
13576
|
validate(defs2.id, node, 'id', id, 1);
|
|
13444
13577
|
validate(defs2.init, node, 'init', init, 1);
|
|
13445
13578
|
return node;
|
|
@@ -13453,6 +13586,7 @@ function enumNumberMember(id, init) {
|
|
|
13453
13586
|
};
|
|
13454
13587
|
|
|
13455
13588
|
const defs2 = NODE_FIELDS.EnumNumberMember;
|
|
13589
|
+
|
|
13456
13590
|
validate(defs2.id, node, 'id', id, 1);
|
|
13457
13591
|
validate(defs2.init, node, 'init', init, 1);
|
|
13458
13592
|
return node;
|
|
@@ -13466,6 +13600,7 @@ function enumStringMember(id, init) {
|
|
|
13466
13600
|
};
|
|
13467
13601
|
|
|
13468
13602
|
const defs2 = NODE_FIELDS.EnumStringMember;
|
|
13603
|
+
|
|
13469
13604
|
validate(defs2.id, node, 'id', id, 1);
|
|
13470
13605
|
validate(defs2.init, node, 'init', init, 1);
|
|
13471
13606
|
return node;
|
|
@@ -13478,6 +13613,7 @@ function enumDefaultedMember(id) {
|
|
|
13478
13613
|
};
|
|
13479
13614
|
|
|
13480
13615
|
const defs2 = NODE_FIELDS.EnumDefaultedMember;
|
|
13616
|
+
|
|
13481
13617
|
validate(defs2.id, node, 'id', id, 1);
|
|
13482
13618
|
return node;
|
|
13483
13619
|
}
|
|
@@ -13490,6 +13626,7 @@ function indexedAccessType(objectType, indexType) {
|
|
|
13490
13626
|
};
|
|
13491
13627
|
|
|
13492
13628
|
const defs2 = NODE_FIELDS.IndexedAccessType;
|
|
13629
|
+
|
|
13493
13630
|
validate(defs2.objectType, node, 'objectType', objectType, 1);
|
|
13494
13631
|
validate(defs2.indexType, node, 'indexType', indexType, 1);
|
|
13495
13632
|
return node;
|
|
@@ -13504,6 +13641,7 @@ function optionalIndexedAccessType(objectType, indexType) {
|
|
|
13504
13641
|
};
|
|
13505
13642
|
|
|
13506
13643
|
const defs2 = NODE_FIELDS.OptionalIndexedAccessType;
|
|
13644
|
+
|
|
13507
13645
|
validate(defs2.objectType, node, 'objectType', objectType, 1);
|
|
13508
13646
|
validate(defs2.indexType, node, 'indexType', indexType, 1);
|
|
13509
13647
|
return node;
|
|
@@ -13517,6 +13655,7 @@ function jsxAttribute(name, value = null) {
|
|
|
13517
13655
|
};
|
|
13518
13656
|
|
|
13519
13657
|
const defs2 = NODE_FIELDS.JSXAttribute;
|
|
13658
|
+
|
|
13520
13659
|
validate(defs2.name, node, 'name', name, 1);
|
|
13521
13660
|
validate(defs2.value, node, 'value', value, 1);
|
|
13522
13661
|
return node;
|
|
@@ -13529,6 +13668,7 @@ function jsxClosingElement(name) {
|
|
|
13529
13668
|
};
|
|
13530
13669
|
|
|
13531
13670
|
const defs2 = NODE_FIELDS.JSXClosingElement;
|
|
13671
|
+
|
|
13532
13672
|
validate(defs2.name, node, 'name', name, 1);
|
|
13533
13673
|
return node;
|
|
13534
13674
|
}
|
|
@@ -13542,6 +13682,7 @@ function jsxElement(openingElement, closingElement = null, children) {
|
|
|
13542
13682
|
};
|
|
13543
13683
|
|
|
13544
13684
|
const defs2 = NODE_FIELDS.JSXElement;
|
|
13685
|
+
|
|
13545
13686
|
validate(defs2.openingElement, node, 'openingElement', openingElement, 1);
|
|
13546
13687
|
validate(defs2.closingElement, node, 'closingElement', closingElement, 1);
|
|
13547
13688
|
validate(defs2.children, node, 'children', children, 1);
|
|
@@ -13561,6 +13702,7 @@ function jsxExpressionContainer(expression2) {
|
|
|
13561
13702
|
};
|
|
13562
13703
|
|
|
13563
13704
|
const defs2 = NODE_FIELDS.JSXExpressionContainer;
|
|
13705
|
+
|
|
13564
13706
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
13565
13707
|
return node;
|
|
13566
13708
|
}
|
|
@@ -13572,6 +13714,7 @@ function jsxSpreadChild(expression2) {
|
|
|
13572
13714
|
};
|
|
13573
13715
|
|
|
13574
13716
|
const defs2 = NODE_FIELDS.JSXSpreadChild;
|
|
13717
|
+
|
|
13575
13718
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
13576
13719
|
return node;
|
|
13577
13720
|
}
|
|
@@ -13583,6 +13726,7 @@ function jsxIdentifier(name) {
|
|
|
13583
13726
|
};
|
|
13584
13727
|
|
|
13585
13728
|
const defs2 = NODE_FIELDS.JSXIdentifier;
|
|
13729
|
+
|
|
13586
13730
|
validate(defs2.name, node, 'name', name);
|
|
13587
13731
|
return node;
|
|
13588
13732
|
}
|
|
@@ -13595,6 +13739,7 @@ function jsxMemberExpression(object, property) {
|
|
|
13595
13739
|
};
|
|
13596
13740
|
|
|
13597
13741
|
const defs2 = NODE_FIELDS.JSXMemberExpression;
|
|
13742
|
+
|
|
13598
13743
|
validate(defs2.object, node, 'object', object, 1);
|
|
13599
13744
|
validate(defs2.property, node, 'property', property, 1);
|
|
13600
13745
|
return node;
|
|
@@ -13608,6 +13753,7 @@ function jsxNamespacedName(namespace, name) {
|
|
|
13608
13753
|
};
|
|
13609
13754
|
|
|
13610
13755
|
const defs2 = NODE_FIELDS.JSXNamespacedName;
|
|
13756
|
+
|
|
13611
13757
|
validate(defs2.namespace, node, 'namespace', namespace, 1);
|
|
13612
13758
|
validate(defs2.name, node, 'name', name, 1);
|
|
13613
13759
|
return node;
|
|
@@ -13622,6 +13768,7 @@ function jsxOpeningElement(name, attributes, selfClosing = false) {
|
|
|
13622
13768
|
};
|
|
13623
13769
|
|
|
13624
13770
|
const defs2 = NODE_FIELDS.JSXOpeningElement;
|
|
13771
|
+
|
|
13625
13772
|
validate(defs2.name, node, 'name', name, 1);
|
|
13626
13773
|
validate(defs2.attributes, node, 'attributes', attributes, 1);
|
|
13627
13774
|
validate(defs2.selfClosing, node, 'selfClosing', selfClosing);
|
|
@@ -13635,6 +13782,7 @@ function jsxSpreadAttribute(argument) {
|
|
|
13635
13782
|
};
|
|
13636
13783
|
|
|
13637
13784
|
const defs2 = NODE_FIELDS.JSXSpreadAttribute;
|
|
13785
|
+
|
|
13638
13786
|
validate(defs2.argument, node, 'argument', argument, 1);
|
|
13639
13787
|
return node;
|
|
13640
13788
|
}
|
|
@@ -13646,6 +13794,7 @@ function jsxText(value) {
|
|
|
13646
13794
|
};
|
|
13647
13795
|
|
|
13648
13796
|
const defs2 = NODE_FIELDS.JSXText;
|
|
13797
|
+
|
|
13649
13798
|
validate(defs2.value, node, 'value', value);
|
|
13650
13799
|
return node;
|
|
13651
13800
|
}
|
|
@@ -13659,6 +13808,7 @@ function jsxFragment(openingFragment, closingFragment, children) {
|
|
|
13659
13808
|
};
|
|
13660
13809
|
|
|
13661
13810
|
const defs2 = NODE_FIELDS.JSXFragment;
|
|
13811
|
+
|
|
13662
13812
|
validate(defs2.openingFragment, node, 'openingFragment', openingFragment, 1);
|
|
13663
13813
|
validate(defs2.closingFragment, node, 'closingFragment', closingFragment, 1);
|
|
13664
13814
|
validate(defs2.children, node, 'children', children, 1);
|
|
@@ -13685,6 +13835,7 @@ function placeholder(expectedNode, name) {
|
|
|
13685
13835
|
};
|
|
13686
13836
|
|
|
13687
13837
|
const defs2 = NODE_FIELDS.Placeholder;
|
|
13838
|
+
|
|
13688
13839
|
validate(defs2.expectedNode, node, 'expectedNode', expectedNode);
|
|
13689
13840
|
validate(defs2.name, node, 'name', name, 1);
|
|
13690
13841
|
return node;
|
|
@@ -13697,6 +13848,7 @@ function v8IntrinsicIdentifier(name) {
|
|
|
13697
13848
|
};
|
|
13698
13849
|
|
|
13699
13850
|
const defs2 = NODE_FIELDS.V8IntrinsicIdentifier;
|
|
13851
|
+
|
|
13700
13852
|
validate(defs2.name, node, 'name', name);
|
|
13701
13853
|
return node;
|
|
13702
13854
|
}
|
|
@@ -13715,6 +13867,7 @@ function bindExpression(object, callee) {
|
|
|
13715
13867
|
};
|
|
13716
13868
|
|
|
13717
13869
|
const defs2 = NODE_FIELDS.BindExpression;
|
|
13870
|
+
|
|
13718
13871
|
validate(defs2.object, node, 'object', object, 1);
|
|
13719
13872
|
validate(defs2.callee, node, 'callee', callee, 1);
|
|
13720
13873
|
return node;
|
|
@@ -13732,6 +13885,7 @@ function classAccessorProperty(key, value = null, typeAnnotation2 = null, decora
|
|
|
13732
13885
|
};
|
|
13733
13886
|
|
|
13734
13887
|
const defs2 = NODE_FIELDS.ClassAccessorProperty;
|
|
13888
|
+
|
|
13735
13889
|
validate(defs2.key, node, 'key', key, 1);
|
|
13736
13890
|
validate(defs2.value, node, 'value', value, 1);
|
|
13737
13891
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
@@ -13748,6 +13902,7 @@ function decorator(expression2) {
|
|
|
13748
13902
|
};
|
|
13749
13903
|
|
|
13750
13904
|
const defs2 = NODE_FIELDS.Decorator;
|
|
13905
|
+
|
|
13751
13906
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
13752
13907
|
return node;
|
|
13753
13908
|
}
|
|
@@ -13760,6 +13915,7 @@ function doExpression(body, async = false) {
|
|
|
13760
13915
|
};
|
|
13761
13916
|
|
|
13762
13917
|
const defs2 = NODE_FIELDS.DoExpression;
|
|
13918
|
+
|
|
13763
13919
|
validate(defs2.body, node, 'body', body, 1);
|
|
13764
13920
|
validate(defs2.async, node, 'async', async);
|
|
13765
13921
|
return node;
|
|
@@ -13772,6 +13928,7 @@ function exportDefaultSpecifier(exported) {
|
|
|
13772
13928
|
};
|
|
13773
13929
|
|
|
13774
13930
|
const defs2 = NODE_FIELDS.ExportDefaultSpecifier;
|
|
13931
|
+
|
|
13775
13932
|
validate(defs2.exported, node, 'exported', exported, 1);
|
|
13776
13933
|
return node;
|
|
13777
13934
|
}
|
|
@@ -13783,6 +13940,7 @@ function moduleExpression(body) {
|
|
|
13783
13940
|
};
|
|
13784
13941
|
|
|
13785
13942
|
const defs2 = NODE_FIELDS.ModuleExpression;
|
|
13943
|
+
|
|
13786
13944
|
validate(defs2.body, node, 'body', body, 1);
|
|
13787
13945
|
return node;
|
|
13788
13946
|
}
|
|
@@ -13806,6 +13964,7 @@ function tsParameterProperty(parameter) {
|
|
|
13806
13964
|
};
|
|
13807
13965
|
|
|
13808
13966
|
const defs2 = NODE_FIELDS.TSParameterProperty;
|
|
13967
|
+
|
|
13809
13968
|
validate(defs2.parameter, node, 'parameter', parameter, 1);
|
|
13810
13969
|
return node;
|
|
13811
13970
|
}
|
|
@@ -13822,6 +13981,7 @@ function tsDeclareFunction(id = null, typeParameters = null, params, returnType
|
|
|
13822
13981
|
};
|
|
13823
13982
|
|
|
13824
13983
|
const defs2 = NODE_FIELDS.TSDeclareFunction;
|
|
13984
|
+
|
|
13825
13985
|
validate(defs2.id, node, 'id', id, 1);
|
|
13826
13986
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
13827
13987
|
validate(defs2.params, node, 'params', params, 1);
|
|
@@ -13844,6 +14004,7 @@ function tsDeclareMethod(key, typeParameters = null, params, returnType = null)
|
|
|
13844
14004
|
};
|
|
13845
14005
|
|
|
13846
14006
|
const defs2 = NODE_FIELDS.TSDeclareMethod;
|
|
14007
|
+
|
|
13847
14008
|
validate(defs2.key, node, 'key', key, 1);
|
|
13848
14009
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
13849
14010
|
validate(defs2.params, node, 'params', params, 1);
|
|
@@ -13859,6 +14020,7 @@ function tsQualifiedName(left, right) {
|
|
|
13859
14020
|
};
|
|
13860
14021
|
|
|
13861
14022
|
const defs2 = NODE_FIELDS.TSQualifiedName;
|
|
14023
|
+
|
|
13862
14024
|
validate(defs2.left, node, 'left', left, 1);
|
|
13863
14025
|
validate(defs2.right, node, 'right', right, 1);
|
|
13864
14026
|
return node;
|
|
@@ -13873,6 +14035,7 @@ function tsCallSignatureDeclaration(typeParameters = null, params, returnType =
|
|
|
13873
14035
|
};
|
|
13874
14036
|
|
|
13875
14037
|
const defs2 = NODE_FIELDS.TSCallSignatureDeclaration;
|
|
14038
|
+
|
|
13876
14039
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
13877
14040
|
validate(defs2.params, node, 'params', params, 1);
|
|
13878
14041
|
validate(defs2.returnType, node, 'returnType', returnType, 1);
|
|
@@ -13888,6 +14051,7 @@ function tsConstructSignatureDeclaration(typeParameters = null, params, returnTy
|
|
|
13888
14051
|
};
|
|
13889
14052
|
|
|
13890
14053
|
const defs2 = NODE_FIELDS.TSConstructSignatureDeclaration;
|
|
14054
|
+
|
|
13891
14055
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
13892
14056
|
validate(defs2.params, node, 'params', params, 1);
|
|
13893
14057
|
validate(defs2.returnType, node, 'returnType', returnType, 1);
|
|
@@ -13903,6 +14067,7 @@ function tsPropertySignature(key, typeAnnotation2 = null) {
|
|
|
13903
14067
|
};
|
|
13904
14068
|
|
|
13905
14069
|
const defs2 = NODE_FIELDS.TSPropertySignature;
|
|
14070
|
+
|
|
13906
14071
|
validate(defs2.key, node, 'key', key, 1);
|
|
13907
14072
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
13908
14073
|
return node;
|
|
@@ -13920,6 +14085,7 @@ function tsMethodSignature(key, typeParameters = null, params, returnType = null
|
|
|
13920
14085
|
};
|
|
13921
14086
|
|
|
13922
14087
|
const defs2 = NODE_FIELDS.TSMethodSignature;
|
|
14088
|
+
|
|
13923
14089
|
validate(defs2.key, node, 'key', key, 1);
|
|
13924
14090
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
13925
14091
|
validate(defs2.params, node, 'params', params, 1);
|
|
@@ -13935,6 +14101,7 @@ function tsIndexSignature(parameters, typeAnnotation2 = null) {
|
|
|
13935
14101
|
};
|
|
13936
14102
|
|
|
13937
14103
|
const defs2 = NODE_FIELDS.TSIndexSignature;
|
|
14104
|
+
|
|
13938
14105
|
validate(defs2.parameters, node, 'parameters', parameters, 1);
|
|
13939
14106
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
13940
14107
|
return node;
|
|
@@ -14033,6 +14200,7 @@ function tsFunctionType(typeParameters = null, params, returnType = null) {
|
|
|
14033
14200
|
};
|
|
14034
14201
|
|
|
14035
14202
|
const defs2 = NODE_FIELDS.TSFunctionType;
|
|
14203
|
+
|
|
14036
14204
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
14037
14205
|
validate(defs2.params, node, 'params', params, 1);
|
|
14038
14206
|
validate(defs2.returnType, node, 'returnType', returnType, 1);
|
|
@@ -14048,6 +14216,7 @@ function tsConstructorType(typeParameters = null, params, returnType = null) {
|
|
|
14048
14216
|
};
|
|
14049
14217
|
|
|
14050
14218
|
const defs2 = NODE_FIELDS.TSConstructorType;
|
|
14219
|
+
|
|
14051
14220
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
14052
14221
|
validate(defs2.params, node, 'params', params, 1);
|
|
14053
14222
|
validate(defs2.returnType, node, 'returnType', returnType, 1);
|
|
@@ -14062,6 +14231,7 @@ function tsTypeReference(typeName, typeArguments = null) {
|
|
|
14062
14231
|
};
|
|
14063
14232
|
|
|
14064
14233
|
const defs2 = NODE_FIELDS.TSTypeReference;
|
|
14234
|
+
|
|
14065
14235
|
validate(defs2.typeName, node, 'typeName', typeName, 1);
|
|
14066
14236
|
validate(defs2.typeArguments, node, 'typeArguments', typeArguments, 1);
|
|
14067
14237
|
return node;
|
|
@@ -14076,6 +14246,7 @@ function tsTypePredicate(parameterName, typeAnnotation2 = null, asserts = null)
|
|
|
14076
14246
|
};
|
|
14077
14247
|
|
|
14078
14248
|
const defs2 = NODE_FIELDS.TSTypePredicate;
|
|
14249
|
+
|
|
14079
14250
|
validate(defs2.parameterName, node, 'parameterName', parameterName, 1);
|
|
14080
14251
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
14081
14252
|
validate(defs2.asserts, node, 'asserts', asserts);
|
|
@@ -14090,6 +14261,7 @@ function tsTypeQuery(exprName, typeArguments = null) {
|
|
|
14090
14261
|
};
|
|
14091
14262
|
|
|
14092
14263
|
const defs2 = NODE_FIELDS.TSTypeQuery;
|
|
14264
|
+
|
|
14093
14265
|
validate(defs2.exprName, node, 'exprName', exprName, 1);
|
|
14094
14266
|
validate(defs2.typeArguments, node, 'typeArguments', typeArguments, 1);
|
|
14095
14267
|
return node;
|
|
@@ -14102,6 +14274,7 @@ function tsTypeLiteral(members) {
|
|
|
14102
14274
|
};
|
|
14103
14275
|
|
|
14104
14276
|
const defs2 = NODE_FIELDS.TSTypeLiteral;
|
|
14277
|
+
|
|
14105
14278
|
validate(defs2.members, node, 'members', members, 1);
|
|
14106
14279
|
return node;
|
|
14107
14280
|
}
|
|
@@ -14113,6 +14286,7 @@ function tsArrayType(elementType) {
|
|
|
14113
14286
|
};
|
|
14114
14287
|
|
|
14115
14288
|
const defs2 = NODE_FIELDS.TSArrayType;
|
|
14289
|
+
|
|
14116
14290
|
validate(defs2.elementType, node, 'elementType', elementType, 1);
|
|
14117
14291
|
return node;
|
|
14118
14292
|
}
|
|
@@ -14124,6 +14298,7 @@ function tsTupleType(elementTypes) {
|
|
|
14124
14298
|
};
|
|
14125
14299
|
|
|
14126
14300
|
const defs2 = NODE_FIELDS.TSTupleType;
|
|
14301
|
+
|
|
14127
14302
|
validate(defs2.elementTypes, node, 'elementTypes', elementTypes, 1);
|
|
14128
14303
|
return node;
|
|
14129
14304
|
}
|
|
@@ -14135,6 +14310,7 @@ function tsOptionalType(typeAnnotation2) {
|
|
|
14135
14310
|
};
|
|
14136
14311
|
|
|
14137
14312
|
const defs2 = NODE_FIELDS.TSOptionalType;
|
|
14313
|
+
|
|
14138
14314
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
14139
14315
|
return node;
|
|
14140
14316
|
}
|
|
@@ -14146,6 +14322,7 @@ function tsRestType(typeAnnotation2) {
|
|
|
14146
14322
|
};
|
|
14147
14323
|
|
|
14148
14324
|
const defs2 = NODE_FIELDS.TSRestType;
|
|
14325
|
+
|
|
14149
14326
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
14150
14327
|
return node;
|
|
14151
14328
|
}
|
|
@@ -14159,6 +14336,7 @@ function tsNamedTupleMember(label, elementType, optional = false) {
|
|
|
14159
14336
|
};
|
|
14160
14337
|
|
|
14161
14338
|
const defs2 = NODE_FIELDS.TSNamedTupleMember;
|
|
14339
|
+
|
|
14162
14340
|
validate(defs2.label, node, 'label', label, 1);
|
|
14163
14341
|
validate(defs2.elementType, node, 'elementType', elementType, 1);
|
|
14164
14342
|
validate(defs2.optional, node, 'optional', optional);
|
|
@@ -14172,6 +14350,7 @@ function tsUnionType(types2) {
|
|
|
14172
14350
|
};
|
|
14173
14351
|
|
|
14174
14352
|
const defs2 = NODE_FIELDS.TSUnionType;
|
|
14353
|
+
|
|
14175
14354
|
validate(defs2.types, node, 'types', types2, 1);
|
|
14176
14355
|
return node;
|
|
14177
14356
|
}
|
|
@@ -14183,6 +14362,7 @@ function tsIntersectionType(types2) {
|
|
|
14183
14362
|
};
|
|
14184
14363
|
|
|
14185
14364
|
const defs2 = NODE_FIELDS.TSIntersectionType;
|
|
14365
|
+
|
|
14186
14366
|
validate(defs2.types, node, 'types', types2, 1);
|
|
14187
14367
|
return node;
|
|
14188
14368
|
}
|
|
@@ -14197,6 +14377,7 @@ function tsConditionalType(checkType, extendsType, trueType, falseType) {
|
|
|
14197
14377
|
};
|
|
14198
14378
|
|
|
14199
14379
|
const defs2 = NODE_FIELDS.TSConditionalType;
|
|
14380
|
+
|
|
14200
14381
|
validate(defs2.checkType, node, 'checkType', checkType, 1);
|
|
14201
14382
|
validate(defs2.extendsType, node, 'extendsType', extendsType, 1);
|
|
14202
14383
|
validate(defs2.trueType, node, 'trueType', trueType, 1);
|
|
@@ -14211,6 +14392,7 @@ function tsInferType(typeParameter2) {
|
|
|
14211
14392
|
};
|
|
14212
14393
|
|
|
14213
14394
|
const defs2 = NODE_FIELDS.TSInferType;
|
|
14395
|
+
|
|
14214
14396
|
validate(defs2.typeParameter, node, 'typeParameter', typeParameter2, 1);
|
|
14215
14397
|
return node;
|
|
14216
14398
|
}
|
|
@@ -14222,6 +14404,7 @@ function tsParenthesizedType(typeAnnotation2) {
|
|
|
14222
14404
|
};
|
|
14223
14405
|
|
|
14224
14406
|
const defs2 = NODE_FIELDS.TSParenthesizedType;
|
|
14407
|
+
|
|
14225
14408
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
14226
14409
|
return node;
|
|
14227
14410
|
}
|
|
@@ -14234,6 +14417,7 @@ function tsTypeOperator(typeAnnotation2, operator) {
|
|
|
14234
14417
|
};
|
|
14235
14418
|
|
|
14236
14419
|
const defs2 = NODE_FIELDS.TSTypeOperator;
|
|
14420
|
+
|
|
14237
14421
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
14238
14422
|
validate(defs2.operator, node, 'operator', operator);
|
|
14239
14423
|
return node;
|
|
@@ -14247,6 +14431,7 @@ function tsIndexedAccessType(objectType, indexType) {
|
|
|
14247
14431
|
};
|
|
14248
14432
|
|
|
14249
14433
|
const defs2 = NODE_FIELDS.TSIndexedAccessType;
|
|
14434
|
+
|
|
14250
14435
|
validate(defs2.objectType, node, 'objectType', objectType, 1);
|
|
14251
14436
|
validate(defs2.indexType, node, 'indexType', indexType, 1);
|
|
14252
14437
|
return node;
|
|
@@ -14262,6 +14447,7 @@ function tsMappedType(key, constraint, nameType = null, typeAnnotation2 = null)
|
|
|
14262
14447
|
};
|
|
14263
14448
|
|
|
14264
14449
|
const defs2 = NODE_FIELDS.TSMappedType;
|
|
14450
|
+
|
|
14265
14451
|
validate(defs2.key, node, 'key', key, 1);
|
|
14266
14452
|
validate(defs2.constraint, node, 'constraint', constraint, 1);
|
|
14267
14453
|
validate(defs2.nameType, node, 'nameType', nameType, 1);
|
|
@@ -14277,6 +14463,7 @@ function tsTemplateLiteralType(quasis, types2) {
|
|
|
14277
14463
|
};
|
|
14278
14464
|
|
|
14279
14465
|
const defs2 = NODE_FIELDS.TSTemplateLiteralType;
|
|
14466
|
+
|
|
14280
14467
|
validate(defs2.quasis, node, 'quasis', quasis, 1);
|
|
14281
14468
|
validate(defs2.types, node, 'types', types2, 1);
|
|
14282
14469
|
return node;
|
|
@@ -14289,6 +14476,7 @@ function tsLiteralType(literal) {
|
|
|
14289
14476
|
};
|
|
14290
14477
|
|
|
14291
14478
|
const defs2 = NODE_FIELDS.TSLiteralType;
|
|
14479
|
+
|
|
14292
14480
|
validate(defs2.literal, node, 'literal', literal, 1);
|
|
14293
14481
|
return node;
|
|
14294
14482
|
}
|
|
@@ -14301,6 +14489,7 @@ function tsClassImplements(expression2, typeArguments = null) {
|
|
|
14301
14489
|
};
|
|
14302
14490
|
|
|
14303
14491
|
const defs2 = NODE_FIELDS.TSClassImplements;
|
|
14492
|
+
|
|
14304
14493
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
14305
14494
|
validate(defs2.typeArguments, node, 'typeArguments', typeArguments, 1);
|
|
14306
14495
|
return node;
|
|
@@ -14314,6 +14503,7 @@ function tsInterfaceHeritage(expression2, typeArguments = null) {
|
|
|
14314
14503
|
};
|
|
14315
14504
|
|
|
14316
14505
|
const defs2 = NODE_FIELDS.TSInterfaceHeritage;
|
|
14506
|
+
|
|
14317
14507
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
14318
14508
|
validate(defs2.typeArguments, node, 'typeArguments', typeArguments, 1);
|
|
14319
14509
|
return node;
|
|
@@ -14329,6 +14519,7 @@ function tsInterfaceDeclaration(id, typeParameters = null, _extends = null, body
|
|
|
14329
14519
|
};
|
|
14330
14520
|
|
|
14331
14521
|
const defs2 = NODE_FIELDS.TSInterfaceDeclaration;
|
|
14522
|
+
|
|
14332
14523
|
validate(defs2.id, node, 'id', id, 1);
|
|
14333
14524
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
14334
14525
|
validate(defs2.extends, node, 'extends', _extends, 1);
|
|
@@ -14343,6 +14534,7 @@ function tsInterfaceBody(body) {
|
|
|
14343
14534
|
};
|
|
14344
14535
|
|
|
14345
14536
|
const defs2 = NODE_FIELDS.TSInterfaceBody;
|
|
14537
|
+
|
|
14346
14538
|
validate(defs2.body, node, 'body', body, 1);
|
|
14347
14539
|
return node;
|
|
14348
14540
|
}
|
|
@@ -14356,6 +14548,7 @@ function tsTypeAliasDeclaration(id, typeParameters = null, typeAnnotation2) {
|
|
|
14356
14548
|
};
|
|
14357
14549
|
|
|
14358
14550
|
const defs2 = NODE_FIELDS.TSTypeAliasDeclaration;
|
|
14551
|
+
|
|
14359
14552
|
validate(defs2.id, node, 'id', id, 1);
|
|
14360
14553
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
14361
14554
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
@@ -14370,6 +14563,7 @@ function tsInstantiationExpression(expression2, typeArguments = null) {
|
|
|
14370
14563
|
};
|
|
14371
14564
|
|
|
14372
14565
|
const defs2 = NODE_FIELDS.TSInstantiationExpression;
|
|
14566
|
+
|
|
14373
14567
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
14374
14568
|
validate(defs2.typeArguments, node, 'typeArguments', typeArguments, 1);
|
|
14375
14569
|
return node;
|
|
@@ -14383,6 +14577,7 @@ function tsAsExpression(expression2, typeAnnotation2) {
|
|
|
14383
14577
|
};
|
|
14384
14578
|
|
|
14385
14579
|
const defs2 = NODE_FIELDS.TSAsExpression;
|
|
14580
|
+
|
|
14386
14581
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
14387
14582
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
14388
14583
|
return node;
|
|
@@ -14396,6 +14591,7 @@ function tsSatisfiesExpression(expression2, typeAnnotation2) {
|
|
|
14396
14591
|
};
|
|
14397
14592
|
|
|
14398
14593
|
const defs2 = NODE_FIELDS.TSSatisfiesExpression;
|
|
14594
|
+
|
|
14399
14595
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
14400
14596
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
14401
14597
|
return node;
|
|
@@ -14409,6 +14605,7 @@ function tsTypeAssertion(typeAnnotation2, expression2) {
|
|
|
14409
14605
|
};
|
|
14410
14606
|
|
|
14411
14607
|
const defs2 = NODE_FIELDS.TSTypeAssertion;
|
|
14608
|
+
|
|
14412
14609
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
14413
14610
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
14414
14611
|
return node;
|
|
@@ -14421,6 +14618,7 @@ function tsEnumBody(members) {
|
|
|
14421
14618
|
};
|
|
14422
14619
|
|
|
14423
14620
|
const defs2 = NODE_FIELDS.TSEnumBody;
|
|
14621
|
+
|
|
14424
14622
|
validate(defs2.members, node, 'members', members, 1);
|
|
14425
14623
|
return node;
|
|
14426
14624
|
}
|
|
@@ -14433,6 +14631,7 @@ function tsEnumDeclaration(id, body) {
|
|
|
14433
14631
|
};
|
|
14434
14632
|
|
|
14435
14633
|
const defs2 = NODE_FIELDS.TSEnumDeclaration;
|
|
14634
|
+
|
|
14436
14635
|
validate(defs2.id, node, 'id', id, 1);
|
|
14437
14636
|
validate(defs2.body, node, 'body', body, 1);
|
|
14438
14637
|
return node;
|
|
@@ -14446,6 +14645,7 @@ function tsEnumMember(id, initializer = null) {
|
|
|
14446
14645
|
};
|
|
14447
14646
|
|
|
14448
14647
|
const defs2 = NODE_FIELDS.TSEnumMember;
|
|
14648
|
+
|
|
14449
14649
|
validate(defs2.id, node, 'id', id, 1);
|
|
14450
14650
|
validate(defs2.initializer, node, 'initializer', initializer, 1);
|
|
14451
14651
|
return node;
|
|
@@ -14460,6 +14660,7 @@ function tsModuleDeclaration(id, body) {
|
|
|
14460
14660
|
};
|
|
14461
14661
|
|
|
14462
14662
|
const defs2 = NODE_FIELDS.TSModuleDeclaration;
|
|
14663
|
+
|
|
14463
14664
|
validate(defs2.id, node, 'id', id, 1);
|
|
14464
14665
|
validate(defs2.body, node, 'body', body, 1);
|
|
14465
14666
|
return node;
|
|
@@ -14472,6 +14673,7 @@ function tsModuleBlock(body) {
|
|
|
14472
14673
|
};
|
|
14473
14674
|
|
|
14474
14675
|
const defs2 = NODE_FIELDS.TSModuleBlock;
|
|
14676
|
+
|
|
14475
14677
|
validate(defs2.body, node, 'body', body, 1);
|
|
14476
14678
|
return node;
|
|
14477
14679
|
}
|
|
@@ -14485,6 +14687,7 @@ function tsImportType(source, qualifier = null, typeArguments = null) {
|
|
|
14485
14687
|
};
|
|
14486
14688
|
|
|
14487
14689
|
const defs2 = NODE_FIELDS.TSImportType;
|
|
14690
|
+
|
|
14488
14691
|
validate(defs2.source, node, 'source', source, 1);
|
|
14489
14692
|
validate(defs2.qualifier, node, 'qualifier', qualifier, 1);
|
|
14490
14693
|
validate(defs2.typeArguments, node, 'typeArguments', typeArguments, 1);
|
|
@@ -14499,6 +14702,7 @@ function tsImportEqualsDeclaration(id, moduleReference) {
|
|
|
14499
14702
|
};
|
|
14500
14703
|
|
|
14501
14704
|
const defs2 = NODE_FIELDS.TSImportEqualsDeclaration;
|
|
14705
|
+
|
|
14502
14706
|
validate(defs2.id, node, 'id', id, 1);
|
|
14503
14707
|
validate(defs2.moduleReference, node, 'moduleReference', moduleReference, 1);
|
|
14504
14708
|
return node;
|
|
@@ -14511,6 +14715,7 @@ function tsExternalModuleReference(expression2) {
|
|
|
14511
14715
|
};
|
|
14512
14716
|
|
|
14513
14717
|
const defs2 = NODE_FIELDS.TSExternalModuleReference;
|
|
14718
|
+
|
|
14514
14719
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
14515
14720
|
return node;
|
|
14516
14721
|
}
|
|
@@ -14522,6 +14727,7 @@ function tsNonNullExpression(expression2) {
|
|
|
14522
14727
|
};
|
|
14523
14728
|
|
|
14524
14729
|
const defs2 = NODE_FIELDS.TSNonNullExpression;
|
|
14730
|
+
|
|
14525
14731
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
14526
14732
|
return node;
|
|
14527
14733
|
}
|
|
@@ -14533,6 +14739,7 @@ function tsExportAssignment(expression2) {
|
|
|
14533
14739
|
};
|
|
14534
14740
|
|
|
14535
14741
|
const defs2 = NODE_FIELDS.TSExportAssignment;
|
|
14742
|
+
|
|
14536
14743
|
validate(defs2.expression, node, 'expression', expression2, 1);
|
|
14537
14744
|
return node;
|
|
14538
14745
|
}
|
|
@@ -14544,6 +14751,7 @@ function tsNamespaceExportDeclaration(id) {
|
|
|
14544
14751
|
};
|
|
14545
14752
|
|
|
14546
14753
|
const defs2 = NODE_FIELDS.TSNamespaceExportDeclaration;
|
|
14754
|
+
|
|
14547
14755
|
validate(defs2.id, node, 'id', id, 1);
|
|
14548
14756
|
return node;
|
|
14549
14757
|
}
|
|
@@ -14555,6 +14763,7 @@ function tsTypeAnnotation(typeAnnotation2) {
|
|
|
14555
14763
|
};
|
|
14556
14764
|
|
|
14557
14765
|
const defs2 = NODE_FIELDS.TSTypeAnnotation;
|
|
14766
|
+
|
|
14558
14767
|
validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
|
|
14559
14768
|
return node;
|
|
14560
14769
|
}
|
|
@@ -14566,6 +14775,7 @@ function tsTypeParameterInstantiation(params) {
|
|
|
14566
14775
|
};
|
|
14567
14776
|
|
|
14568
14777
|
const defs2 = NODE_FIELDS.TSTypeParameterInstantiation;
|
|
14778
|
+
|
|
14569
14779
|
validate(defs2.params, node, 'params', params, 1);
|
|
14570
14780
|
return node;
|
|
14571
14781
|
}
|
|
@@ -14577,6 +14787,7 @@ function tsTypeParameterDeclaration(params) {
|
|
|
14577
14787
|
};
|
|
14578
14788
|
|
|
14579
14789
|
const defs2 = NODE_FIELDS.TSTypeParameterDeclaration;
|
|
14790
|
+
|
|
14580
14791
|
validate(defs2.params, node, 'params', params, 1);
|
|
14581
14792
|
return node;
|
|
14582
14793
|
}
|
|
@@ -14590,6 +14801,7 @@ function tsTypeParameter(constraint = null, _default = null, name) {
|
|
|
14590
14801
|
};
|
|
14591
14802
|
|
|
14592
14803
|
const defs2 = NODE_FIELDS.TSTypeParameter;
|
|
14804
|
+
|
|
14593
14805
|
validate(defs2.constraint, node, 'constraint', constraint, 1);
|
|
14594
14806
|
validate(defs2.default, node, 'default', _default, 1);
|
|
14595
14807
|
validate(defs2.name, node, 'name', name, 1);
|
|
@@ -17252,7 +17464,6 @@ function inherits(child, parent) {
|
|
|
17252
17464
|
}
|
|
17253
17465
|
|
|
17254
17466
|
inheritsComments(child, parent);
|
|
17255
|
-
|
|
17256
17467
|
return child;
|
|
17257
17468
|
}
|
|
17258
17469
|
|
|
@@ -17262,7 +17473,6 @@ function prependToMemberExpression(member, prepend) {
|
|
|
17262
17473
|
}
|
|
17263
17474
|
|
|
17264
17475
|
member.object = memberExpression(prepend, member.object);
|
|
17265
|
-
|
|
17266
17476
|
return member;
|
|
17267
17477
|
}
|
|
17268
17478
|
|
|
@@ -17845,7 +18055,7 @@ var react = {
|
|
|
17845
18055
|
buildChildren,
|
|
17846
18056
|
};
|
|
17847
18057
|
|
|
17848
|
-
//
|
|
18058
|
+
// node_modules/@babel/parser/lib/index.js
|
|
17849
18059
|
var Position = class {
|
|
17850
18060
|
constructor(line, col, index3) {
|
|
17851
18061
|
this.line = void 0;
|
|
@@ -21044,6 +21254,7 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
|
|
|
21044
21254
|
jsxReadNewLine(normalizeCRLF) {
|
|
21045
21255
|
const ch = this.input.charCodeAt(this.state.pos);
|
|
21046
21256
|
let out;
|
|
21257
|
+
|
|
21047
21258
|
++this.state.pos;
|
|
21048
21259
|
|
|
21049
21260
|
if (ch === 13 && this.input.charCodeAt(this.state.pos) === 10) {
|
|
@@ -21118,6 +21329,7 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
|
|
|
21118
21329
|
if (semi) {
|
|
21119
21330
|
const desc = this.input.slice(startPos, this.state.pos);
|
|
21120
21331
|
const entity = entities[desc];
|
|
21332
|
+
|
|
21121
21333
|
++this.state.pos;
|
|
21122
21334
|
|
|
21123
21335
|
if (entity) {
|
|
@@ -21526,7 +21738,6 @@ var TypeScriptScopeHandler = class extends ScopeHandler {
|
|
|
21526
21738
|
}
|
|
21527
21739
|
|
|
21528
21740
|
this.importsStack[this.importsStack.length - 1].add(name);
|
|
21529
|
-
|
|
21530
21741
|
return;
|
|
21531
21742
|
}
|
|
21532
21743
|
|
|
@@ -23859,9 +24070,7 @@ var ArrowHeadParsingScope = class extends ExpressionScope {
|
|
|
23859
24070
|
|
|
23860
24071
|
var ExpressionScopeHandler = class {
|
|
23861
24072
|
parser;
|
|
23862
|
-
stack = [
|
|
23863
|
-
new ExpressionScope(),
|
|
23864
|
-
];
|
|
24073
|
+
stack = [new ExpressionScope()];
|
|
23865
24074
|
constructor(parser) {
|
|
23866
24075
|
this.parser = parser;
|
|
23867
24076
|
}
|
|
@@ -24488,6 +24697,7 @@ var LValParser = class extends NodeUtils {
|
|
|
24488
24697
|
for (let i = 0, length = node.properties.length, last2 = length - 1; i < length; i++) {
|
|
24489
24698
|
const prop = node.properties[i];
|
|
24490
24699
|
const isLast = i === last2;
|
|
24700
|
+
|
|
24491
24701
|
this.toAssignableObjectExpressionProp(prop, isLast, isLHS);
|
|
24492
24702
|
|
|
24493
24703
|
if (isLast && prop.type === 'RestElement' && node.extra?.trailingCommaLoc) {
|
|
@@ -24976,7 +25186,6 @@ var LValParser = class extends NodeUtils {
|
|
|
24976
25186
|
}
|
|
24977
25187
|
|
|
24978
25188
|
this.raise(this.lookaheadCharCode() === close ? Errors.RestTrailingComma : Errors.ElementAfterRest, this.state.startLoc);
|
|
24979
|
-
|
|
24980
25189
|
return true;
|
|
24981
25190
|
}
|
|
24982
25191
|
};
|
|
@@ -25407,9 +25616,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
25407
25616
|
|
|
25408
25617
|
this.expect(10);
|
|
25409
25618
|
withProperty.value = this.tsParseImportTypeWithPropertyValue();
|
|
25410
|
-
node.properties = [
|
|
25411
|
-
this.finishObjectProperty(withProperty),
|
|
25412
|
-
];
|
|
25619
|
+
node.properties = [this.finishObjectProperty(withProperty)];
|
|
25413
25620
|
this.eat(8);
|
|
25414
25621
|
this.expect(4);
|
|
25415
25622
|
return this.finishNode(node, 'ObjectExpression');
|
|
@@ -25418,6 +25625,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
25418
25625
|
tsParseImportTypeWithPropertyValue() {
|
|
25419
25626
|
const node = this.startNode();
|
|
25420
25627
|
const properties = [];
|
|
25628
|
+
|
|
25421
25629
|
this.expect(2);
|
|
25422
25630
|
while (!this.match(4)) {
|
|
25423
25631
|
const type = this.state.type;
|
|
@@ -25875,6 +26083,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
25875
26083
|
tsParseTupleElementType() {
|
|
25876
26084
|
const restStartLoc = this.state.startLoc;
|
|
25877
26085
|
const rest = this.eat(17);
|
|
26086
|
+
|
|
25878
26087
|
const {startLoc} = this.state;
|
|
25879
26088
|
|
|
25880
26089
|
let labeled;
|
|
@@ -26146,6 +26355,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
26146
26355
|
tsParseTypeOperator() {
|
|
26147
26356
|
const node = this.startNode();
|
|
26148
26357
|
const operator = this.state.value;
|
|
26358
|
+
|
|
26149
26359
|
this.next();
|
|
26150
26360
|
node.operator = operator;
|
|
26151
26361
|
node.typeAnnotation = this.tsParseTypeOperatorOrHigher();
|
|
@@ -27339,7 +27549,8 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
27339
27549
|
return declaration;
|
|
27340
27550
|
}
|
|
27341
27551
|
|
|
27342
|
-
for (const {id, init}
|
|
27552
|
+
for (const {id, init}
|
|
27553
|
+
of declaration.declarations) {
|
|
27343
27554
|
if (!init)
|
|
27344
27555
|
continue;
|
|
27345
27556
|
|
|
@@ -27372,6 +27583,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
27372
27583
|
if (this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()) {
|
|
27373
27584
|
const token = this.state.type;
|
|
27374
27585
|
const node = this.startNode();
|
|
27586
|
+
|
|
27375
27587
|
this.next();
|
|
27376
27588
|
const declaration = token === 121 ? this.tsTryParseDeclare(node) : this.tsParseAbstractDeclaration(node, decorators);
|
|
27377
27589
|
|
|
@@ -27764,6 +27976,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
27764
27976
|
if (node.superClass.type === 'TSInstantiationExpression') {
|
|
27765
27977
|
const tsInstantiationExpression2 = node.superClass;
|
|
27766
27978
|
const superClass2 = tsInstantiationExpression2.expression;
|
|
27979
|
+
|
|
27767
27980
|
this.takeSurroundingComments(superClass2, superClass2.start, superClass2.end);
|
|
27768
27981
|
const superTypeArguments = tsInstantiationExpression2.typeArguments;
|
|
27769
27982
|
this.takeSurroundingComments(superTypeArguments, superTypeArguments.start, superTypeArguments.end);
|
|
@@ -28836,9 +29049,7 @@ var placeholders = (superClass) => class PlaceholdersParserMixin extends superCl
|
|
|
28836
29049
|
const specifier = this.startNode();
|
|
28837
29050
|
|
|
28838
29051
|
specifier.exported = placeholder2;
|
|
28839
|
-
node2.specifiers = [
|
|
28840
|
-
this.finishNode(specifier, 'ExportDefaultSpecifier'),
|
|
28841
|
-
];
|
|
29052
|
+
node2.specifiers = [this.finishNode(specifier, 'ExportDefaultSpecifier')];
|
|
28842
29053
|
return super.parseExport(node2, decorators);
|
|
28843
29054
|
}
|
|
28844
29055
|
|
|
@@ -28923,11 +29134,13 @@ var v8intrinsic = (superClass) => class V8IntrinsicMixin extends superClass {
|
|
|
28923
29134
|
if (this.match(50)) {
|
|
28924
29135
|
const v8IntrinsicStartLoc = this.state.startLoc;
|
|
28925
29136
|
const node = this.startNode();
|
|
29137
|
+
|
|
28926
29138
|
this.next();
|
|
28927
29139
|
|
|
28928
29140
|
if (tokenIsIdentifier(this.state.type)) {
|
|
28929
29141
|
const name = this.parseIdentifierName();
|
|
28930
29142
|
const identifier4 = this.createIdentifier(node, name);
|
|
29143
|
+
|
|
28931
29144
|
this.castNodeTo(identifier4, 'V8IntrinsicIdentifier');
|
|
28932
29145
|
|
|
28933
29146
|
if (this.match(6)) {
|
|
@@ -29725,6 +29938,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29725
29938
|
parseExprAtom(refExpressionErrors) {
|
|
29726
29939
|
let node;
|
|
29727
29940
|
let decorators = null;
|
|
29941
|
+
|
|
29728
29942
|
const {type} = this.state;
|
|
29729
29943
|
|
|
29730
29944
|
switch(type) {
|
|
@@ -29952,9 +30166,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29952
30166
|
|
|
29953
30167
|
parseAsyncArrowUnaryFunction(node) {
|
|
29954
30168
|
this.prodParam.enter(functionFlags(true, this.prodParam.hasYield));
|
|
29955
|
-
const params = [
|
|
29956
|
-
this.parseIdentifier(),
|
|
29957
|
-
];
|
|
30169
|
+
const params = [this.parseIdentifier()];
|
|
29958
30170
|
this.prodParam.exit();
|
|
29959
30171
|
|
|
29960
30172
|
if (this.hasPrecedingLineBreak()) {
|
|
@@ -30138,6 +30350,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
30138
30350
|
parseParenAndDistinguishExpression(canStartArrow) {
|
|
30139
30351
|
const startLoc = this.state.startLoc;
|
|
30140
30352
|
let val;
|
|
30353
|
+
|
|
30141
30354
|
this.next();
|
|
30142
30355
|
this.expressionScope.enter(newArrowHeadScope());
|
|
30143
30356
|
const innerStartLoc = this.state.startLoc;
|
|
@@ -32032,6 +32245,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
32032
32245
|
parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse) {
|
|
32033
32246
|
const body = node.body = [];
|
|
32034
32247
|
const directives = node.directives = [];
|
|
32248
|
+
|
|
32035
32249
|
this.parseBlockOrModuleBlockBody(body, allowDirectives ? directives : void 0, topLevel, end, afterBlockParse);
|
|
32036
32250
|
}
|
|
32037
32251
|
|
|
@@ -32727,9 +32941,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
32727
32941
|
const specifier = this.startNodeAtNode(id);
|
|
32728
32942
|
|
|
32729
32943
|
specifier.exported = id;
|
|
32730
|
-
node.specifiers = [
|
|
32731
|
-
this.finishNode(specifier, 'ExportDefaultSpecifier'),
|
|
32732
|
-
];
|
|
32944
|
+
node.specifiers = [this.finishNode(specifier, 'ExportDefaultSpecifier')];
|
|
32733
32945
|
return true;
|
|
32734
32946
|
}
|
|
32735
32947
|
|
|
@@ -32920,6 +33132,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
32920
33132
|
const {exported} = specifier;
|
|
32921
33133
|
|
|
32922
33134
|
const exportName = exported.type === 'Identifier' ? exported.name : exported.value;
|
|
33135
|
+
|
|
32923
33136
|
this.checkDuplicateExports(specifier, exportName);
|
|
32924
33137
|
|
|
32925
33138
|
if (!isFrom && specifier.local) {
|
|
@@ -32999,6 +33212,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
32999
33212
|
parseExportSpecifiers(isInTypeExport) {
|
|
33000
33213
|
const nodes = [];
|
|
33001
33214
|
let first = true;
|
|
33215
|
+
|
|
33002
33216
|
this.expect(2);
|
|
33003
33217
|
while (!this.eat(4)) {
|
|
33004
33218
|
if (first) {
|
|
@@ -33536,7 +33750,7 @@ function getColumn(locData, pos) {
|
|
|
33536
33750
|
return locData[pos * 2 + 1];
|
|
33537
33751
|
}
|
|
33538
33752
|
|
|
33539
|
-
//
|
|
33753
|
+
// node_modules/@babel/code-frame/lib/common-BO7XIBW3.js
|
|
33540
33754
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
33541
33755
|
|
|
33542
33756
|
function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
|
@@ -33582,10 +33796,7 @@ function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
|
|
33582
33796
|
markerLines[lineNumber] = true;
|
|
33583
33797
|
} else if (i === 0) {
|
|
33584
33798
|
const sourceLength = source[lineNumber - 1].length;
|
|
33585
|
-
markerLines[lineNumber] = [
|
|
33586
|
-
startColumn,
|
|
33587
|
-
sourceLength - startColumn + 1,
|
|
33588
|
-
];
|
|
33799
|
+
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
|
|
33589
33800
|
} else if (i === lineDiff) {
|
|
33590
33801
|
markerLines[lineNumber] = [0, endColumn];
|
|
33591
33802
|
} else {
|
|
@@ -33602,10 +33813,7 @@ function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
|
|
33602
33813
|
markerLines[startLine] = true;
|
|
33603
33814
|
}
|
|
33604
33815
|
} else {
|
|
33605
|
-
markerLines[startLine] = [
|
|
33606
|
-
startColumn,
|
|
33607
|
-
endColumn - startColumn,
|
|
33608
|
-
];
|
|
33816
|
+
markerLines[startLine] = [startColumn, endColumn - startColumn];
|
|
33609
33817
|
}
|
|
33610
33818
|
}
|
|
33611
33819
|
|
|
@@ -33694,10 +33902,10 @@ ${frame}`;
|
|
|
33694
33902
|
return defs2.reset(frame);
|
|
33695
33903
|
}
|
|
33696
33904
|
|
|
33697
|
-
//
|
|
33905
|
+
// node_modules/@babel/code-frame/lib/index.js
|
|
33698
33906
|
import * as util from 'util';
|
|
33699
33907
|
|
|
33700
|
-
const {styleText = (a, b) => b} = util;//
|
|
33908
|
+
const {styleText = (a, b) => b} = util;// node_modules/js-tokens/index.js
|
|
33701
33909
|
var HashbangComment;
|
|
33702
33910
|
var Identifier2;
|
|
33703
33911
|
var JSXIdentifier2;
|
|
@@ -34207,7 +34415,7 @@ jsTokens = function*(input, {jsx: jsx2 = false} = {}) {
|
|
|
34207
34415
|
};
|
|
34208
34416
|
var js_tokens_default = jsTokens;
|
|
34209
34417
|
|
|
34210
|
-
//
|
|
34418
|
+
// node_modules/@babel/code-frame/lib/index.js
|
|
34211
34419
|
function isColorSupported() {
|
|
34212
34420
|
return styleText('red', '-') !== '-';
|
|
34213
34421
|
}
|
|
@@ -34363,7 +34571,8 @@ function highlight(text) {
|
|
|
34363
34571
|
|
|
34364
34572
|
let highlighted = '';
|
|
34365
34573
|
|
|
34366
|
-
for (const {type, value}
|
|
34574
|
+
for (const {type, value}
|
|
34575
|
+
of tokenize(text)) {
|
|
34367
34576
|
if (type in defs) {
|
|
34368
34577
|
highlighted += value
|
|
34369
34578
|
.split(NEWLINE2)
|
|
@@ -34386,7 +34595,7 @@ function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
|
34386
34595
|
} : void 0);
|
|
34387
34596
|
}
|
|
34388
34597
|
|
|
34389
|
-
//
|
|
34598
|
+
// node_modules/@babel/template/lib/index.js
|
|
34390
34599
|
var {assertExpressionStatement: assertExpressionStatement2} = lib_exports;
|
|
34391
34600
|
|
|
34392
34601
|
function makeStatementFormatter(fn) {
|
|
@@ -34682,9 +34891,11 @@ function parseWithCodeFrame(code2, parserOpts, syntacticPlaceholders) {
|
|
|
34682
34891
|
const loc = err.loc;
|
|
34683
34892
|
|
|
34684
34893
|
if (loc) {
|
|
34685
|
-
err.message +=
|
|
34686
|
-
|
|
34687
|
-
|
|
34894
|
+
err.message +=
|
|
34895
|
+
'\n' +
|
|
34896
|
+
codeFrameColumns(code2, {
|
|
34897
|
+
start: loc,
|
|
34898
|
+
});
|
|
34688
34899
|
err.code = 'BABEL_TEMPLATE_PARSE_ERROR';
|
|
34689
34900
|
}
|
|
34690
34901
|
|
|
@@ -35025,7 +35236,7 @@ var index = Object.assign(smart.bind(void 0), {
|
|
|
35025
35236
|
ast: smart.ast,
|
|
35026
35237
|
});
|
|
35027
35238
|
|
|
35028
|
-
//
|
|
35239
|
+
// node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
35029
35240
|
var comma = ','.charCodeAt(0);
|
|
35030
35241
|
var semicolon = ';'.charCodeAt(0);
|
|
35031
35242
|
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
@@ -35274,7 +35485,7 @@ function encode(decoded) {
|
|
|
35274
35485
|
return writer.flush();
|
|
35275
35486
|
}
|
|
35276
35487
|
|
|
35277
|
-
//
|
|
35488
|
+
// node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
|
|
35278
35489
|
var schemeRegex = /^[\w+.-]+:\/\//;
|
|
35279
35490
|
var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
|
|
35280
35491
|
var fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
|
|
@@ -35494,7 +35705,7 @@ case 2:
|
|
|
35494
35705
|
}
|
|
35495
35706
|
}
|
|
35496
35707
|
|
|
35497
|
-
//
|
|
35708
|
+
// node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
|
|
35498
35709
|
function stripFilename(path) {
|
|
35499
35710
|
if (!path)
|
|
35500
35711
|
return '';
|
|
@@ -35766,7 +35977,7 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
|
35766
35977
|
return index3;
|
|
35767
35978
|
}
|
|
35768
35979
|
|
|
35769
|
-
//
|
|
35980
|
+
// node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
|
|
35770
35981
|
var SetArray = class {
|
|
35771
35982
|
constructor() {
|
|
35772
35983
|
this._indexes = {
|
|
@@ -36042,7 +36253,7 @@ function addMappingInternal(skipable, map, mapping) {
|
|
|
36042
36253
|
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
|
|
36043
36254
|
}
|
|
36044
36255
|
|
|
36045
|
-
//
|
|
36256
|
+
// node_modules/@babel/generator/lib/index.js
|
|
36046
36257
|
var import_jsesc = __toESM(require_jsesc(), 1);
|
|
36047
36258
|
|
|
36048
36259
|
var SourceMap = class {
|
|
@@ -38005,6 +38216,7 @@ function tsPrintFunctionOrConstructorType(node) {
|
|
|
38005
38216
|
const {typeParameters} = node;
|
|
38006
38217
|
|
|
38007
38218
|
const parameters = node.params;
|
|
38219
|
+
|
|
38008
38220
|
this.print(typeParameters);
|
|
38009
38221
|
this.tokenChar(40);
|
|
38010
38222
|
_parameters.call(this, parameters, 41);
|
|
@@ -38455,6 +38667,7 @@ function tsPrintSignatureDeclarationBase(node) {
|
|
|
38455
38667
|
const {typeParameters} = node;
|
|
38456
38668
|
|
|
38457
38669
|
const parameters = node.params;
|
|
38670
|
+
|
|
38458
38671
|
this.print(typeParameters);
|
|
38459
38672
|
this.tokenChar(40);
|
|
38460
38673
|
_parameters.call(this, parameters, 41);
|
|
@@ -38464,6 +38677,7 @@ function tsPrintSignatureDeclarationBase(node) {
|
|
|
38464
38677
|
function _tsPrintClassMemberModifiers(node) {
|
|
38465
38678
|
const isPrivateField = node.type === 'ClassPrivateProperty';
|
|
38466
38679
|
const isPublicField = node.type === 'ClassAccessorProperty' || node.type === 'ClassProperty';
|
|
38680
|
+
|
|
38467
38681
|
printModifiersList(this, node, [isPublicField && node.declare && 'declare', !isPrivateField && node.accessibility]);
|
|
38468
38682
|
|
|
38469
38683
|
if (node.static) {
|
|
@@ -38495,13 +38709,11 @@ function printModifiersList(printer, node, modifiers) {
|
|
|
38495
38709
|
printer.token(tok.value);
|
|
38496
38710
|
printer.space();
|
|
38497
38711
|
modifiersSet.delete(tok.value);
|
|
38498
|
-
|
|
38499
38712
|
return modifiersSet.size === 0;
|
|
38500
38713
|
}
|
|
38501
38714
|
|
|
38502
38715
|
return false;
|
|
38503
38716
|
});
|
|
38504
|
-
|
|
38505
38717
|
for (const modifier of modifiersSet) {
|
|
38506
38718
|
printer.word(modifier);
|
|
38507
38719
|
printer.space();
|
|
@@ -38889,6 +39101,7 @@ function ObjectProperty2(node) {
|
|
|
38889
39101
|
function ArrayExpression2(node) {
|
|
38890
39102
|
const elems = node.elements;
|
|
38891
39103
|
const len = elems.length;
|
|
39104
|
+
|
|
38892
39105
|
this.tokenChar(91);
|
|
38893
39106
|
const oldNoLineTerminatorAfterNode = this.enterDelimited();
|
|
38894
39107
|
|
|
@@ -38982,6 +39195,7 @@ function TopicReference2() {
|
|
|
38982
39195
|
} else {
|
|
38983
39196
|
const givenTopicTokenJSON = JSON.stringify(topicToken);
|
|
38984
39197
|
const validTopics = Array.from(validTopicTokenSet, (v) => JSON.stringify(v));
|
|
39198
|
+
|
|
38985
39199
|
throw new Error(`The "topicToken" generator option must be one of ${validTopics.join(', ')} (${givenTopicTokenJSON} received instead).`);
|
|
38986
39200
|
}
|
|
38987
39201
|
}
|
|
@@ -41890,7 +42104,7 @@ function generate(ast, opts = {}, code2) {
|
|
|
41890
42104
|
return printer.generate(ast);
|
|
41891
42105
|
}
|
|
41892
42106
|
|
|
41893
|
-
//
|
|
42107
|
+
// node_modules/obug/dist/core.js
|
|
41894
42108
|
function selectColor(colors2, namespace) {
|
|
41895
42109
|
let hash = 0;
|
|
41896
42110
|
|
|
@@ -41937,7 +42151,7 @@ function enable(namespaces$1) {
|
|
|
41937
42151
|
names.push(ns);
|
|
41938
42152
|
}
|
|
41939
42153
|
|
|
41940
|
-
//
|
|
42154
|
+
// node_modules/obug/dist/node.js
|
|
41941
42155
|
var colors = [];
|
|
41942
42156
|
|
|
41943
42157
|
var inspectOpts = {};
|
|
@@ -41984,8 +42198,7 @@ function createDebug2(namespace, options) {
|
|
|
41984
42198
|
}
|
|
41985
42199
|
|
|
41986
42200
|
enable(process.env.DEBUG || '');
|
|
41987
|
-
//
|
|
41988
|
-
|
|
42201
|
+
// node_modules/@babel/helper-globals/data/builtin-lower.json
|
|
41989
42202
|
var builtin_lower_default = [
|
|
41990
42203
|
'decodeURI',
|
|
41991
42204
|
'decodeURIComponent',
|
|
@@ -42002,7 +42215,7 @@ var builtin_lower_default = [
|
|
|
42002
42215
|
'unescape',
|
|
42003
42216
|
];
|
|
42004
42217
|
|
|
42005
|
-
//
|
|
42218
|
+
// node_modules/@babel/helper-globals/data/builtin-upper.json
|
|
42006
42219
|
var builtin_upper_default = [
|
|
42007
42220
|
'AggregateError',
|
|
42008
42221
|
'Array',
|
|
@@ -42055,14 +42268,12 @@ var builtin_upper_default = [
|
|
|
42055
42268
|
'WeakSet',
|
|
42056
42269
|
];
|
|
42057
42270
|
|
|
42058
|
-
//
|
|
42271
|
+
// node_modules/@babel/traverse/lib/index.js
|
|
42059
42272
|
var ReferencedIdentifier = [
|
|
42060
42273
|
'Identifier',
|
|
42061
42274
|
'JSXIdentifier',
|
|
42062
42275
|
];
|
|
42063
|
-
var ReferencedMemberExpression = [
|
|
42064
|
-
'MemberExpression',
|
|
42065
|
-
];
|
|
42276
|
+
var ReferencedMemberExpression = ['MemberExpression'];
|
|
42066
42277
|
var BindingIdentifier = ['Identifier'];
|
|
42067
42278
|
var Statement = ['Statement'];
|
|
42068
42279
|
var Expression = ['Expression'];
|
|
@@ -42076,9 +42287,7 @@ var BlockScoped = [
|
|
|
42076
42287
|
'ClassDeclaration',
|
|
42077
42288
|
'VariableDeclaration',
|
|
42078
42289
|
];
|
|
42079
|
-
var Var = [
|
|
42080
|
-
'VariableDeclaration',
|
|
42081
|
-
];
|
|
42290
|
+
var Var = ['VariableDeclaration'];
|
|
42082
42291
|
var User = null;
|
|
42083
42292
|
var Generated = null;
|
|
42084
42293
|
var Pure = null;
|
|
@@ -42088,21 +42297,11 @@ var Flow = [
|
|
|
42088
42297
|
'ExportDeclaration',
|
|
42089
42298
|
'ImportSpecifier',
|
|
42090
42299
|
];
|
|
42091
|
-
var RestProperty2 = [
|
|
42092
|
-
|
|
42093
|
-
];
|
|
42094
|
-
var
|
|
42095
|
-
|
|
42096
|
-
];
|
|
42097
|
-
var ExistentialTypeParam = [
|
|
42098
|
-
'ExistsTypeAnnotation',
|
|
42099
|
-
];
|
|
42100
|
-
var NumericLiteralTypeAnnotation = [
|
|
42101
|
-
'NumberLiteralTypeAnnotation',
|
|
42102
|
-
];
|
|
42103
|
-
var ForAwaitStatement = [
|
|
42104
|
-
'ForOfStatement',
|
|
42105
|
-
];
|
|
42300
|
+
var RestProperty2 = ['RestElement'];
|
|
42301
|
+
var SpreadProperty2 = ['RestElement'];
|
|
42302
|
+
var ExistentialTypeParam = ['ExistsTypeAnnotation'];
|
|
42303
|
+
var NumericLiteralTypeAnnotation = ['NumberLiteralTypeAnnotation'];
|
|
42304
|
+
var ForAwaitStatement = ['ForOfStatement'];
|
|
42106
42305
|
|
|
42107
42306
|
var virtualTypes = /* @__PURE__ */Object.freeze({
|
|
42108
42307
|
__proto__: null,
|
|
@@ -42194,7 +42393,6 @@ function _visitPaths(ctx, paths) {
|
|
|
42194
42393
|
}
|
|
42195
42394
|
|
|
42196
42395
|
ctx.queue = null;
|
|
42197
|
-
|
|
42198
42396
|
return stop2;
|
|
42199
42397
|
}
|
|
42200
42398
|
|
|
@@ -42502,7 +42700,6 @@ function explode$1(visitor) {
|
|
|
42502
42700
|
delete visitor.__esModule;
|
|
42503
42701
|
ensureEntranceObjects(visitor);
|
|
42504
42702
|
ensureCallbackArrays(visitor);
|
|
42505
|
-
|
|
42506
42703
|
for (const nodeType of Object.keys(visitor)) {
|
|
42507
42704
|
if (shouldIgnoreKey(nodeType))
|
|
42508
42705
|
continue;
|
|
@@ -42590,7 +42787,7 @@ function verify$1(visitor) {
|
|
|
42590
42787
|
continue;
|
|
42591
42788
|
|
|
42592
42789
|
if (!TYPES2.includes(nodeType)) {
|
|
42593
|
-
throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${'8.0.0-rc.
|
|
42790
|
+
throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${'8.0.0-rc.3'}`);
|
|
42594
42791
|
}
|
|
42595
42792
|
|
|
42596
42793
|
const visitors2 = visitor[nodeType];
|
|
@@ -42713,6 +42910,7 @@ function ensureCallbackArrays(obj) {
|
|
|
42713
42910
|
function wrapCheck(nodeType, fn) {
|
|
42714
42911
|
const fnKey = `is${nodeType}`;
|
|
42715
42912
|
const validator = NodePath_virtual_types_validator[fnKey];
|
|
42913
|
+
|
|
42716
42914
|
const newFn = function(path) {
|
|
42717
42915
|
if (validator.call(path)) {
|
|
42718
42916
|
return fn.apply(this, arguments);
|
|
@@ -42767,7 +42965,10 @@ var _environmentVisitor = {
|
|
|
42767
42965
|
};
|
|
42768
42966
|
|
|
42769
42967
|
function environmentVisitor(visitor) {
|
|
42770
|
-
return merge2([
|
|
42968
|
+
return merge2([
|
|
42969
|
+
_environmentVisitor,
|
|
42970
|
+
visitor,
|
|
42971
|
+
]);
|
|
42771
42972
|
}
|
|
42772
42973
|
|
|
42773
42974
|
var visitors = /* @__PURE__ */Object.freeze({
|
|
@@ -43042,7 +43243,8 @@ var Binding = class {
|
|
|
43042
43243
|
function isInitInLoop(path) {
|
|
43043
43244
|
const isFunctionDeclarationOrHasInit = !path.isVariableDeclarator() || path.node.init;
|
|
43044
43245
|
|
|
43045
|
-
for (let {parentPath, key} = path
|
|
43246
|
+
for (let {parentPath, key} = path
|
|
43247
|
+
; parentPath; ({
|
|
43046
43248
|
parentPath,
|
|
43047
43249
|
key,
|
|
43048
43250
|
} = parentPath)) {
|
|
@@ -43320,6 +43522,7 @@ var collectorVisitor = {
|
|
|
43320
43522
|
const {scope: scope2} = path;
|
|
43321
43523
|
|
|
43322
43524
|
const parentScope = scope2.getFunctionParent() || scope2.getProgramParent();
|
|
43525
|
+
|
|
43323
43526
|
parentScope.registerBinding('var', declar);
|
|
43324
43527
|
}
|
|
43325
43528
|
},
|
|
@@ -43363,6 +43566,7 @@ var collectorVisitor = {
|
|
|
43363
43566
|
const {scope: scope2} = path;
|
|
43364
43567
|
|
|
43365
43568
|
const parentScope = scope2.getFunctionParent() || scope2.getProgramParent();
|
|
43569
|
+
|
|
43366
43570
|
parentScope.registerBinding('var', left);
|
|
43367
43571
|
}
|
|
43368
43572
|
},
|
|
@@ -43481,10 +43685,7 @@ var Scope2 = class _Scope {
|
|
|
43481
43685
|
this.inited = false;
|
|
43482
43686
|
}
|
|
43483
43687
|
|
|
43484
|
-
static globals = [
|
|
43485
|
-
...builtin_lower_default,
|
|
43486
|
-
...builtin_upper_default,
|
|
43487
|
-
];
|
|
43688
|
+
static globals = [...builtin_lower_default, ...builtin_upper_default];
|
|
43488
43689
|
static contextVariables = [
|
|
43489
43690
|
'arguments',
|
|
43490
43691
|
'undefined',
|
|
@@ -43741,7 +43942,6 @@ var Scope2 = class _Scope {
|
|
|
43741
43942
|
|
|
43742
43943
|
for (const name of Object.keys(ids)) {
|
|
43743
43944
|
parent.referencesSet.add(name);
|
|
43744
|
-
|
|
43745
43945
|
for (const id of ids[name]) {
|
|
43746
43946
|
const local = this.getOwnBinding(name);
|
|
43747
43947
|
|
|
@@ -43986,7 +44186,6 @@ collectorVisitor]);
|
|
|
43986
44186
|
|
|
43987
44187
|
traverseForScope(path, scopeVisitor, state);
|
|
43988
44188
|
this.crawling = false;
|
|
43989
|
-
|
|
43990
44189
|
for (const path2 of state.assignments) {
|
|
43991
44190
|
const ids = path2.getAssignmentIdentifiers();
|
|
43992
44191
|
|
|
@@ -44746,26 +44945,20 @@ function BinaryExpression3(node) {
|
|
|
44746
44945
|
}
|
|
44747
44946
|
|
|
44748
44947
|
function LogicalExpression3() {
|
|
44749
|
-
const argumentTypes = [
|
|
44750
|
-
this
|
|
44948
|
+
const argumentTypes = [this
|
|
44751
44949
|
.get('left')
|
|
44752
|
-
.getTypeAnnotation(),
|
|
44753
|
-
this
|
|
44950
|
+
.getTypeAnnotation(), this
|
|
44754
44951
|
.get('right')
|
|
44755
|
-
.getTypeAnnotation()
|
|
44756
|
-
];
|
|
44952
|
+
.getTypeAnnotation()];
|
|
44757
44953
|
return createUnionType(argumentTypes);
|
|
44758
44954
|
}
|
|
44759
44955
|
|
|
44760
44956
|
function ConditionalExpression3() {
|
|
44761
|
-
const argumentTypes = [
|
|
44762
|
-
this
|
|
44957
|
+
const argumentTypes = [this
|
|
44763
44958
|
.get('consequent')
|
|
44764
|
-
.getTypeAnnotation(),
|
|
44765
|
-
this
|
|
44959
|
+
.getTypeAnnotation(), this
|
|
44766
44960
|
.get('alternate')
|
|
44767
|
-
.getTypeAnnotation()
|
|
44768
|
-
];
|
|
44961
|
+
.getTypeAnnotation()];
|
|
44769
44962
|
return createUnionType(argumentTypes);
|
|
44770
44963
|
}
|
|
44771
44964
|
|
|
@@ -45212,6 +45405,7 @@ var {
|
|
|
45212
45405
|
function insertBefore(nodes_) {
|
|
45213
45406
|
_assertUnremoved.call(this);
|
|
45214
45407
|
const nodes = _verifyNodeList.call(this, nodes_);
|
|
45408
|
+
|
|
45215
45409
|
const {parentPath, parent} = this;
|
|
45216
45410
|
|
|
45217
45411
|
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration3(parent) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
|
|
@@ -45243,6 +45437,7 @@ function _containerInsert(from, nodes) {
|
|
|
45243
45437
|
for (let i = 0; i < nodes.length; i++) {
|
|
45244
45438
|
const to = from + i;
|
|
45245
45439
|
const path = this.getSibling(to);
|
|
45440
|
+
|
|
45246
45441
|
paths.push(path);
|
|
45247
45442
|
|
|
45248
45443
|
if (this.context?.queue) {
|
|
@@ -45255,7 +45450,6 @@ function _containerInsert(from, nodes) {
|
|
|
45255
45450
|
for (const path of paths) {
|
|
45256
45451
|
setScope.call(path);
|
|
45257
45452
|
path.debug('Inserted.');
|
|
45258
|
-
|
|
45259
45453
|
for (const context of contexts) {
|
|
45260
45454
|
context.maybeQueue(path, true);
|
|
45261
45455
|
}
|
|
@@ -45498,12 +45692,14 @@ function replaceWithSourceString(replacement) {
|
|
|
45498
45692
|
const loc = err.loc;
|
|
45499
45693
|
|
|
45500
45694
|
if (loc) {
|
|
45501
|
-
err.message +=
|
|
45502
|
-
|
|
45503
|
-
|
|
45504
|
-
|
|
45505
|
-
|
|
45506
|
-
|
|
45695
|
+
err.message +=
|
|
45696
|
+
' - make sure this is an expression.\n' +
|
|
45697
|
+
codeFrameColumns(replacement, {
|
|
45698
|
+
start: {
|
|
45699
|
+
line: loc.line,
|
|
45700
|
+
column: loc.column + 1,
|
|
45701
|
+
},
|
|
45702
|
+
});
|
|
45507
45703
|
err.code = 'BABEL_REPLACE_SOURCE_ERROR';
|
|
45508
45704
|
}
|
|
45509
45705
|
|
|
@@ -45529,9 +45725,7 @@ function replaceWith(replacementPath) {
|
|
|
45529
45725
|
}
|
|
45530
45726
|
|
|
45531
45727
|
if (this.node === replacement) {
|
|
45532
|
-
return [
|
|
45533
|
-
this,
|
|
45534
|
-
];
|
|
45728
|
+
return [this];
|
|
45535
45729
|
}
|
|
45536
45730
|
|
|
45537
45731
|
if (this.isProgram() && !isProgram2(replacement)) {
|
|
@@ -45572,9 +45766,7 @@ function replaceWith(replacementPath) {
|
|
|
45572
45766
|
this.type = replacement.type;
|
|
45573
45767
|
setScope.call(this);
|
|
45574
45768
|
this.requeue();
|
|
45575
|
-
return [
|
|
45576
|
-
nodePath ? this.get(nodePath) : this,
|
|
45577
|
-
];
|
|
45769
|
+
return [nodePath ? this.get(nodePath) : this];
|
|
45578
45770
|
}
|
|
45579
45771
|
|
|
45580
45772
|
function _replaceWith(node) {
|
|
@@ -45798,11 +45990,7 @@ function deopt(path, state) {
|
|
|
45798
45990
|
state.confident = false;
|
|
45799
45991
|
}
|
|
45800
45992
|
|
|
45801
|
-
var Globals = /* @__PURE__ */new Map([
|
|
45802
|
-
['undefined', void 0],
|
|
45803
|
-
['Infinity', Infinity],
|
|
45804
|
-
['NaN', NaN],
|
|
45805
|
-
]);
|
|
45993
|
+
var Globals = /* @__PURE__ */new Map([['undefined', void 0], ['Infinity', Infinity], ['NaN', NaN]]);
|
|
45806
45994
|
|
|
45807
45995
|
function evaluateCached(path, state) {
|
|
45808
45996
|
const {node} = path;
|
|
@@ -46536,6 +46724,7 @@ function hoistFunctionEnvironment(fnPath, noNewArrows = true, allowInsertArrow =
|
|
|
46536
46724
|
flatSuperProps.forEach((superProp) => {
|
|
46537
46725
|
const key = superProp.node.computed ? '' : superProp.get('property').node.name;
|
|
46538
46726
|
const superParentPath = superProp.parentPath;
|
|
46727
|
+
|
|
46539
46728
|
const isAssignment = superParentPath.isAssignmentExpression({
|
|
46540
46729
|
left: superProp.node,
|
|
46541
46730
|
});
|
|
@@ -46623,6 +46812,7 @@ function standardizeSuperProperty(superProp) {
|
|
|
46623
46812
|
} else {
|
|
46624
46813
|
const object = superProp.node.object;
|
|
46625
46814
|
const property = superProp.node.property;
|
|
46815
|
+
|
|
46626
46816
|
assignmentPath.get('left').replaceWith(memberExpression2(object, property));
|
|
46627
46817
|
assignmentPath.get('right').replaceWith(rightExpression(isLogicalAssignment ? '=' : op, memberExpression2(object, identifier3(property.name)), value));
|
|
46628
46818
|
}
|
|
@@ -46633,18 +46823,12 @@ function standardizeSuperProperty(superProp) {
|
|
|
46633
46823
|
assignmentPath.node.operator = '=';
|
|
46634
46824
|
}
|
|
46635
46825
|
|
|
46636
|
-
return [
|
|
46637
|
-
assignmentPath.get('left'),
|
|
46638
|
-
assignmentPath.get('right').get('left'),
|
|
46639
|
-
];
|
|
46826
|
+
return [assignmentPath.get('left'), assignmentPath.get('right').get('left')];
|
|
46640
46827
|
} else if (superProp.parentPath.isUpdateExpression()) {
|
|
46641
46828
|
const updateExpr = superProp.parentPath;
|
|
46642
46829
|
const tmp = superProp.scope.generateDeclaredUidIdentifier('tmp');
|
|
46643
46830
|
const computedKey = superProp.node.computed ? superProp.scope.generateDeclaredUidIdentifier('prop') : null;
|
|
46644
|
-
const parts = [
|
|
46645
|
-
assignmentExpression2('=', tmp, memberExpression2(superProp.node.object, computedKey ? assignmentExpression2('=', computedKey, superProp.node.property) : superProp.node.property, superProp.node.computed)),
|
|
46646
|
-
assignmentExpression2('=', memberExpression2(superProp.node.object, computedKey ? identifier3(computedKey.name) : superProp.node.property, superProp.node.computed), binaryExpression2(superProp.parentPath.node.operator[0], identifier3(tmp.name), numericLiteral$1(1))),
|
|
46647
|
-
];
|
|
46831
|
+
const parts = [assignmentExpression2('=', tmp, memberExpression2(superProp.node.object, computedKey ? assignmentExpression2('=', computedKey, superProp.node.property) : superProp.node.property, superProp.node.computed)), assignmentExpression2('=', memberExpression2(superProp.node.object, computedKey ? identifier3(computedKey.name) : superProp.node.property, superProp.node.computed), binaryExpression2(superProp.parentPath.node.operator[0], identifier3(tmp.name), numericLiteral$1(1)))];
|
|
46648
46832
|
|
|
46649
46833
|
if (!superProp.parentPath.node.prefix) {
|
|
46650
46834
|
parts.push(identifier3(tmp.name));
|
|
@@ -47366,6 +47550,7 @@ function _resolve(dangerous, resolved) {
|
|
|
47366
47550
|
continue;
|
|
47367
47551
|
|
|
47368
47552
|
const key = prop.get('key');
|
|
47553
|
+
|
|
47369
47554
|
let match = prop.isnt('computed') && key.isIdentifier({
|
|
47370
47555
|
name: targetName,
|
|
47371
47556
|
});
|
|
@@ -47567,7 +47752,6 @@ function completionRecordForSwitch(cases, records, context) {
|
|
|
47567
47752
|
}
|
|
47568
47753
|
|
|
47569
47754
|
records.push(...lastNormalCompletions);
|
|
47570
|
-
|
|
47571
47755
|
return records;
|
|
47572
47756
|
}
|
|
47573
47757
|
|