@skaldapp/monaco-sfc 1.1.56 → 1.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.worker.js +259 -521
- package/package.json +9 -9
package/dist/vue.worker.js
CHANGED
|
@@ -34,7 +34,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
34
34
|
}
|
|
35
35
|
return to;
|
|
36
36
|
};
|
|
37
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
38
38
|
value: mod,
|
|
39
39
|
enumerable: true
|
|
40
40
|
}) : target, mod));
|
|
@@ -6049,7 +6049,7 @@ var require_resolveModuleName$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6049
6049
|
return result;
|
|
6050
6050
|
};
|
|
6051
6051
|
function fileExists(fileName) {
|
|
6052
|
-
if (host.fileExists(fileName)) return (getFileSize?.(fileName) ?? host.readFile(fileName)?.length ?? 0) <
|
|
6052
|
+
if (host.fileExists(fileName)) return (getFileSize?.(fileName) ?? host.readFile(fileName)?.length ?? 0) < 4194304;
|
|
6053
6053
|
return false;
|
|
6054
6054
|
}
|
|
6055
6055
|
}
|
|
@@ -10606,9 +10606,7 @@ function extractIdentifiers(param, nodes = []) {
|
|
|
10606
10606
|
case "RestElement":
|
|
10607
10607
|
extractIdentifiers(param.argument, nodes);
|
|
10608
10608
|
break;
|
|
10609
|
-
case "AssignmentPattern":
|
|
10610
|
-
extractIdentifiers(param.left, nodes);
|
|
10611
|
-
break;
|
|
10609
|
+
case "AssignmentPattern": extractIdentifiers(param.left, nodes);
|
|
10612
10610
|
}
|
|
10613
10611
|
return nodes;
|
|
10614
10612
|
}
|
|
@@ -11433,9 +11431,7 @@ function traverseNode(node, context) {
|
|
|
11433
11431
|
case 10:
|
|
11434
11432
|
case 11:
|
|
11435
11433
|
case 1:
|
|
11436
|
-
case 0:
|
|
11437
|
-
traverseChildren(node, context);
|
|
11438
|
-
break;
|
|
11434
|
+
case 0: traverseChildren(node, context);
|
|
11439
11435
|
}
|
|
11440
11436
|
context.currentNode = node;
|
|
11441
11437
|
let i = exitFns.length;
|
|
@@ -12170,9 +12166,7 @@ function hasForwardedSlots(children) {
|
|
|
12170
12166
|
if (hasForwardedSlots(child.branches)) return true;
|
|
12171
12167
|
break;
|
|
12172
12168
|
case 10:
|
|
12173
|
-
case 11:
|
|
12174
|
-
if (hasForwardedSlots(child.children)) return true;
|
|
12175
|
-
break;
|
|
12169
|
+
case 11: if (hasForwardedSlots(child.children)) return true;
|
|
12176
12170
|
}
|
|
12177
12171
|
}
|
|
12178
12172
|
return false;
|
|
@@ -12345,9 +12339,7 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
12345
12339
|
} else propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [propsExpression]);
|
|
12346
12340
|
break;
|
|
12347
12341
|
case 14: break;
|
|
12348
|
-
default:
|
|
12349
|
-
propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [propsExpression])]);
|
|
12350
|
-
break;
|
|
12342
|
+
default: propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [propsExpression])]);
|
|
12351
12343
|
}
|
|
12352
12344
|
return {
|
|
12353
12345
|
props: propsExpression,
|
|
@@ -12512,9 +12504,7 @@ function parseFilter(node, context) {
|
|
|
12512
12504
|
case 123:
|
|
12513
12505
|
curly++;
|
|
12514
12506
|
break;
|
|
12515
|
-
case 125:
|
|
12516
|
-
curly--;
|
|
12517
|
-
break;
|
|
12507
|
+
case 125: curly--;
|
|
12518
12508
|
}
|
|
12519
12509
|
if (c === 47) {
|
|
12520
12510
|
let j = i - 1;
|
|
@@ -13425,9 +13415,7 @@ var init_compiler_core_esm_bundler = __esmMin((() => {
|
|
|
13425
13415
|
case 24:
|
|
13426
13416
|
this.stateInProcessingInstruction(c);
|
|
13427
13417
|
break;
|
|
13428
|
-
case 33:
|
|
13429
|
-
this.stateInEntity();
|
|
13430
|
-
break;
|
|
13418
|
+
case 33: this.stateInEntity();
|
|
13431
13419
|
}
|
|
13432
13420
|
this.index++;
|
|
13433
13421
|
}
|
|
@@ -13735,12 +13723,10 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
13735
13723
|
if (!--currentOpenParensCount) state = stateStack.pop();
|
|
13736
13724
|
}
|
|
13737
13725
|
break;
|
|
13738
|
-
case 3:
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
|
|
13742
|
-
}
|
|
13743
|
-
break;
|
|
13726
|
+
case 3: if (char === currentStringType) {
|
|
13727
|
+
state = stateStack.pop();
|
|
13728
|
+
currentStringType = null;
|
|
13729
|
+
}
|
|
13744
13730
|
}
|
|
13745
13731
|
}
|
|
13746
13732
|
return !currentOpenBracketCount && !currentOpenParensCount;
|
|
@@ -13981,9 +13967,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
13981
13967
|
case 18:
|
|
13982
13968
|
case 19:
|
|
13983
13969
|
case 20:
|
|
13984
|
-
case 21:
|
|
13985
|
-
emitError(9, end);
|
|
13986
|
-
break;
|
|
13970
|
+
case 21: emitError(9, end);
|
|
13987
13971
|
}
|
|
13988
13972
|
for (let index = 0; index < stack.length; index++) {
|
|
13989
13973
|
onCloseTag(stack[index], end - 1);
|
|
@@ -14817,9 +14801,7 @@ var init_compiler_dom_esm_bundler = __esmMin((() => {
|
|
|
14817
14801
|
isInvalidType = true;
|
|
14818
14802
|
context.onError(createDOMCompilerError(60, dir.loc));
|
|
14819
14803
|
break;
|
|
14820
|
-
default:
|
|
14821
|
-
process.env.NODE_ENV !== "production" && checkDuplicatedValue();
|
|
14822
|
-
break;
|
|
14804
|
+
default: process.env.NODE_ENV !== "production" && checkDuplicatedValue();
|
|
14823
14805
|
}
|
|
14824
14806
|
} else if (hasDynamicKeyVBind(node)) directiveToUse = V_MODEL_DYNAMIC;
|
|
14825
14807
|
else process.env.NODE_ENV !== "production" && checkDuplicatedValue();
|
|
@@ -15990,7 +15972,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15990
15972
|
};
|
|
15991
15973
|
module.exports = {
|
|
15992
15974
|
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
15993
|
-
MAX_LENGTH:
|
|
15975
|
+
MAX_LENGTH: 65536,
|
|
15994
15976
|
POSIX_REGEX_SOURCE: {
|
|
15995
15977
|
__proto__: null,
|
|
15996
15978
|
alnum: "a-zA-Z0-9",
|
|
@@ -19736,9 +19718,7 @@ var require_compilerOptions = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19736
19718
|
}
|
|
19737
19719
|
}
|
|
19738
19720
|
break;
|
|
19739
|
-
default:
|
|
19740
|
-
this.options[key] = options[key];
|
|
19741
|
-
break;
|
|
19721
|
+
default: this.options[key] = options[key];
|
|
19742
19722
|
}
|
|
19743
19723
|
if (options.target === void 0) this.target ??= this.resolveVueVersion(rootDir);
|
|
19744
19724
|
}
|
|
@@ -20059,9 +20039,7 @@ var require_parseSfc = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20059
20039
|
const styleBlock = createBlock(node, source);
|
|
20060
20040
|
descriptor.styles.push(styleBlock);
|
|
20061
20041
|
break;
|
|
20062
|
-
default:
|
|
20063
|
-
descriptor.customBlocks.push(createBlock(node, source));
|
|
20064
|
-
break;
|
|
20042
|
+
default: descriptor.customBlocks.push(createBlock(node, source));
|
|
20065
20043
|
}
|
|
20066
20044
|
});
|
|
20067
20045
|
return {
|
|
@@ -20525,9 +20503,7 @@ var require_vue_style_css = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20525
20503
|
case LexerState.inSingleQuoteString:
|
|
20526
20504
|
if (char === `'`) state = LexerState.inParens;
|
|
20527
20505
|
break;
|
|
20528
|
-
case LexerState.inDoubleQuoteString:
|
|
20529
|
-
if (char === `"`) state = LexerState.inParens;
|
|
20530
|
-
break;
|
|
20506
|
+
case LexerState.inDoubleQuoteString: if (char === `"`) state = LexerState.inParens;
|
|
20531
20507
|
}
|
|
20532
20508
|
}
|
|
20533
20509
|
return null;
|
|
@@ -21052,9 +21028,7 @@ var require_forEachTemplateNode = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21052
21028
|
case CompilerDOM.NodeTypes.ROOT:
|
|
21053
21029
|
for (const child of node.children) yield* forEachElementNode(child);
|
|
21054
21030
|
break;
|
|
21055
|
-
case CompilerDOM.NodeTypes.IF:
|
|
21056
|
-
for (const branch of node.branches) yield* forEachElementNode(branch);
|
|
21057
|
-
break;
|
|
21031
|
+
case CompilerDOM.NodeTypes.IF: for (const branch of node.branches) yield* forEachElementNode(branch);
|
|
21058
21032
|
}
|
|
21059
21033
|
}
|
|
21060
21034
|
function* forEachInterpolationNode(node) {
|
|
@@ -21071,9 +21045,7 @@ var require_forEachTemplateNode = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21071
21045
|
case CompilerDOM.NodeTypes.COMPOUND_EXPRESSION:
|
|
21072
21046
|
for (const child of node.children) if (typeof child === "object") yield* forEachInterpolationNode(child);
|
|
21073
21047
|
break;
|
|
21074
|
-
case CompilerDOM.NodeTypes.INTERPOLATION:
|
|
21075
|
-
yield node;
|
|
21076
|
-
break;
|
|
21048
|
+
case CompilerDOM.NodeTypes.INTERPOLATION: yield node;
|
|
21077
21049
|
}
|
|
21078
21050
|
}
|
|
21079
21051
|
}));
|
|
@@ -22100,6 +22072,7 @@ var require_scriptSetup$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22100
22072
|
function* generateGeneric(options, ctx, scriptSetup, scriptSetupRanges, generic, body) {
|
|
22101
22073
|
yield `(`;
|
|
22102
22074
|
if (typeof generic === "object") {
|
|
22075
|
+
const boundary = yield* boundary_1.Boundary.start("main", generic.offset, generic.offset + generic.text.length, codeFeatures_1.codeFeatures.verification);
|
|
22103
22076
|
yield `<`;
|
|
22104
22077
|
yield [
|
|
22105
22078
|
generic.text,
|
|
@@ -22109,6 +22082,7 @@ var require_scriptSetup$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22109
22082
|
];
|
|
22110
22083
|
if (!generic.text.endsWith(`,`)) yield `,`;
|
|
22111
22084
|
yield `>`;
|
|
22085
|
+
yield boundary.end();
|
|
22112
22086
|
}
|
|
22113
22087
|
yield `(${utils_1.newLine} ${names_1.names.props}: NonNullable<Awaited<typeof ${names_1.names.setup}>>['props'],${utils_1.newLine} ${names_1.names.ctx}?: ${ctx.localTypes.PrettifyLocal}<Pick<NonNullable<Awaited<typeof ${names_1.names.setup}>>, 'attrs' | 'emit' | 'slots'>>,${utils_1.newLine} ${names_1.names.exposed}?: NonNullable<Awaited<typeof ${names_1.names.setup}>>['expose'],${utils_1.newLine} ${names_1.names.setup} = (async () => {${utils_1.newLine}`;
|
|
22114
22088
|
yield* body;
|
|
@@ -24708,9 +24682,7 @@ function format$5(documentText, range, options) {
|
|
|
24708
24682
|
else if ((secondToken === 12 || secondToken === 13) && !needsLineBreak) replaceContent = cachedSpaces[1];
|
|
24709
24683
|
else if (secondToken !== 5 && secondToken !== 17) hasError = true;
|
|
24710
24684
|
break;
|
|
24711
|
-
case 16:
|
|
24712
|
-
hasError = true;
|
|
24713
|
-
break;
|
|
24685
|
+
case 16: hasError = true;
|
|
24714
24686
|
}
|
|
24715
24687
|
if (numberLineBreaks > 0 && (secondToken === 12 || secondToken === 13)) replaceContent = newLinesAndIndent();
|
|
24716
24688
|
}
|
|
@@ -24907,9 +24879,7 @@ function visit(text, visitor, options = ParseOptions.DEFAULT) {
|
|
|
24907
24879
|
case 2:
|
|
24908
24880
|
handleError(12);
|
|
24909
24881
|
break;
|
|
24910
|
-
case 6:
|
|
24911
|
-
handleError(16);
|
|
24912
|
-
break;
|
|
24882
|
+
case 6: handleError(16);
|
|
24913
24883
|
}
|
|
24914
24884
|
switch (token) {
|
|
24915
24885
|
case 12:
|
|
@@ -27397,9 +27367,7 @@ function validate(n, schema, validationResult, matchingSchemas, context) {
|
|
|
27397
27367
|
case "string":
|
|
27398
27368
|
_validateStringNode(node);
|
|
27399
27369
|
break;
|
|
27400
|
-
case "number":
|
|
27401
|
-
_validateNumberNode(node);
|
|
27402
|
-
break;
|
|
27370
|
+
case "number": _validateNumberNode(node);
|
|
27403
27371
|
}
|
|
27404
27372
|
matchingSchemas.add({
|
|
27405
27373
|
node,
|
|
@@ -27744,7 +27712,6 @@ function validate(n, schema, validationResult, matchingSchemas, context) {
|
|
|
27744
27712
|
},
|
|
27745
27713
|
message: schema.patternErrorMessage || schema.errorMessage || format.errorMessage
|
|
27746
27714
|
});
|
|
27747
|
-
default:
|
|
27748
27715
|
}
|
|
27749
27716
|
}
|
|
27750
27717
|
function _validateArrayNode(node) {
|
|
@@ -29482,7 +29449,7 @@ var init_jsonValidation = __esmMin((() => {
|
|
|
29482
29449
|
function hexDigit$1(charCode) {
|
|
29483
29450
|
if (charCode < Digit0$1) return 0;
|
|
29484
29451
|
if (charCode <= Digit9$1) return charCode - Digit0$1;
|
|
29485
|
-
if (charCode < a$1) charCode +=
|
|
29452
|
+
if (charCode < a$1) charCode += 32;
|
|
29486
29453
|
if (charCode >= a$1 && charCode <= f$1) return charCode - a$1 + 10;
|
|
29487
29454
|
return 0;
|
|
29488
29455
|
}
|
|
@@ -29515,11 +29482,10 @@ function colorFromHex$1(text) {
|
|
|
29515
29482
|
};
|
|
29516
29483
|
}
|
|
29517
29484
|
}
|
|
29518
|
-
var Digit0$1, Digit9$1,
|
|
29485
|
+
var Digit0$1, Digit9$1, a$1, f$1;
|
|
29519
29486
|
var init_colors$1 = __esmMin((() => {
|
|
29520
29487
|
Digit0$1 = 48;
|
|
29521
29488
|
Digit9$1 = 57;
|
|
29522
|
-
A$1 = 65;
|
|
29523
29489
|
a$1 = 97;
|
|
29524
29490
|
f$1 = 102;
|
|
29525
29491
|
}));
|
|
@@ -31152,9 +31118,7 @@ function getSelectionRanges$1(document, positions, doc) {
|
|
|
31152
31118
|
case "number":
|
|
31153
31119
|
case "boolean":
|
|
31154
31120
|
case "null":
|
|
31155
|
-
case "property":
|
|
31156
|
-
result.push(newRange(node.offset, node.offset + node.length));
|
|
31157
|
-
break;
|
|
31121
|
+
case "property": result.push(newRange(node.offset, node.offset + node.length));
|
|
31158
31122
|
}
|
|
31159
31123
|
if (node.type === "property" || node.parent && node.parent.type === "array") {
|
|
31160
31124
|
const afterCommaOffset = getOffsetAfterNextToken(node.offset + node.length, 5);
|
|
@@ -31276,7 +31240,8 @@ function sort(documentToSort, formattingOptions) {
|
|
|
31276
31240
|
return [TextEdit$1.replace(Range$1.create(Position$1.create(0, 0), documentToSort.positionAt(documentToSort.getText().length)), sortedAndFormattedJsonDocument)];
|
|
31277
31241
|
}
|
|
31278
31242
|
function findJsoncPropertyTree(formattedDocument) {
|
|
31279
|
-
const
|
|
31243
|
+
const formattedString = formattedDocument.getText();
|
|
31244
|
+
const scanner = createScanner$1(formattedString, false);
|
|
31280
31245
|
let rootTree = new PropertyTree();
|
|
31281
31246
|
let currentTree = rootTree;
|
|
31282
31247
|
let currentProperty = rootTree;
|
|
@@ -31403,7 +31368,6 @@ function findJsoncPropertyTree(formattedDocument) {
|
|
|
31403
31368
|
}
|
|
31404
31369
|
}
|
|
31405
31370
|
if ((lastNonTriviaNonCommentToken === 1 || lastNonTriviaNonCommentToken === 3) && lineOfLastNonTriviaNonCommentToken === scanner.getTokenStartLine()) updateBeginningLineNumber = true;
|
|
31406
|
-
break;
|
|
31407
31371
|
}
|
|
31408
31372
|
if (token !== 14 && token !== 13 && token !== 12 && token !== 15) {
|
|
31409
31373
|
secondToLastNonTriviaNonCommentToken = lastNonTriviaNonCommentToken;
|
|
@@ -32121,14 +32085,12 @@ var require_shared = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
32121
32085
|
//#endregion
|
|
32122
32086
|
//#region node_modules/semver/internal/constants.js
|
|
32123
32087
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
32124
|
-
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
32125
|
-
var MAX_LENGTH = 256;
|
|
32126
|
-
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
32127
32088
|
module.exports = {
|
|
32128
|
-
MAX_LENGTH,
|
|
32089
|
+
MAX_LENGTH: 256,
|
|
32129
32090
|
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
32130
|
-
MAX_SAFE_BUILD_LENGTH:
|
|
32131
|
-
MAX_SAFE_INTEGER
|
|
32091
|
+
MAX_SAFE_BUILD_LENGTH: 250,
|
|
32092
|
+
MAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER ||
|
|
32093
|
+
/* istanbul ignore next */ 9007199254740991,
|
|
32132
32094
|
RELEASE_TYPES: [
|
|
32133
32095
|
"major",
|
|
32134
32096
|
"premajor",
|
|
@@ -32138,7 +32100,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
32138
32100
|
"prepatch",
|
|
32139
32101
|
"prerelease"
|
|
32140
32102
|
],
|
|
32141
|
-
SEMVER_SPEC_VERSION,
|
|
32103
|
+
SEMVER_SPEC_VERSION: "2.0.0",
|
|
32142
32104
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
32143
32105
|
FLAG_LOOSE: 2
|
|
32144
32106
|
};
|
|
@@ -32726,9 +32688,7 @@ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
32726
32688
|
version.minor = 0;
|
|
32727
32689
|
version.patch = 0;
|
|
32728
32690
|
break;
|
|
32729
|
-
case "minor":
|
|
32730
|
-
version.patch = 0;
|
|
32731
|
-
break;
|
|
32691
|
+
case "minor": version.patch = 0;
|
|
32732
32692
|
}
|
|
32733
32693
|
return version.format();
|
|
32734
32694
|
};
|
|
@@ -33717,9 +33677,7 @@ var require_previewer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
33717
33677
|
case "linkText":
|
|
33718
33678
|
if (currentLink) currentLink.text = part.text;
|
|
33719
33679
|
break;
|
|
33720
|
-
default:
|
|
33721
|
-
out.push(part.text);
|
|
33722
|
-
break;
|
|
33680
|
+
default: out.push(part.text);
|
|
33723
33681
|
}
|
|
33724
33682
|
return processInlineTags(out.join(""));
|
|
33725
33683
|
}
|
|
@@ -38422,7 +38380,7 @@ function isColorString(s) {
|
|
|
38422
38380
|
function hexDigit(charCode) {
|
|
38423
38381
|
if (charCode < Digit0) return 0;
|
|
38424
38382
|
if (charCode <= Digit9) return charCode - Digit0;
|
|
38425
|
-
if (charCode < a) charCode +=
|
|
38383
|
+
if (charCode < a) charCode += 32;
|
|
38426
38384
|
if (charCode >= a && charCode <= f) return charCode - a + 10;
|
|
38427
38385
|
return 0;
|
|
38428
38386
|
}
|
|
@@ -38503,9 +38461,7 @@ function hslFromColor(rgba) {
|
|
|
38503
38461
|
case g:
|
|
38504
38462
|
h = (b - r) / chroma + 2;
|
|
38505
38463
|
break;
|
|
38506
|
-
case b:
|
|
38507
|
-
h = (r - g) / chroma + 4;
|
|
38508
|
-
break;
|
|
38464
|
+
case b: h = (r - g) / chroma + 4;
|
|
38509
38465
|
}
|
|
38510
38466
|
h *= 60;
|
|
38511
38467
|
h = Math.round(h);
|
|
@@ -38843,7 +38799,7 @@ function getColorValue(node) {
|
|
|
38843
38799
|
}
|
|
38844
38800
|
return null;
|
|
38845
38801
|
}
|
|
38846
|
-
var hexColorRegExp, colorFunctions, colorFunctionNameRegExp, colors, colorsRegExp, colorKeywords, colorKeywordsRegExp, DEGREES_PER_CIRCLE, GRAD_TO_DEGREE_FACTOR, RADIANS_TO_DEGREES_FACTOR, Digit0, Digit9,
|
|
38802
|
+
var hexColorRegExp, colorFunctions, colorFunctionNameRegExp, colors, colorsRegExp, colorKeywords, colorKeywordsRegExp, DEGREES_PER_CIRCLE, GRAD_TO_DEGREE_FACTOR, RADIANS_TO_DEGREES_FACTOR, Digit0, Digit9, a, f, DEGREES_TO_RADIANS_FACTOR;
|
|
38847
38803
|
var init_colors = __esmMin((() => {
|
|
38848
38804
|
init_cssNodes();
|
|
38849
38805
|
init_browser();
|
|
@@ -39156,7 +39112,6 @@ var init_colors = __esmMin((() => {
|
|
|
39156
39112
|
RADIANS_TO_DEGREES_FACTOR = DEGREES_PER_CIRCLE / 2 / Math.PI;
|
|
39157
39113
|
Digit0 = 48;
|
|
39158
39114
|
Digit9 = 57;
|
|
39159
|
-
A = 65;
|
|
39160
39115
|
a = 97;
|
|
39161
39116
|
f = 102;
|
|
39162
39117
|
DEGREES_TO_RADIANS_FACTOR = Math.PI / 180;
|
|
@@ -40502,7 +40457,6 @@ while (this.acceptRegexp(regEx));
|
|
|
40502
40457
|
case TokenType$1.BracketR:
|
|
40503
40458
|
bracketsDepth--;
|
|
40504
40459
|
if (bracketsDepth < 0) return this.finish(node, ParseError.LeftSquareBracketExpected);
|
|
40505
|
-
break;
|
|
40506
40460
|
}
|
|
40507
40461
|
this.consumeToken();
|
|
40508
40462
|
}
|
|
@@ -41525,9 +41479,7 @@ var init_cssCompletion = __esmMin((() => {
|
|
|
41525
41479
|
case "timing-function":
|
|
41526
41480
|
this.getTimingFunctionProposals(entry, existingNode, result);
|
|
41527
41481
|
break;
|
|
41528
|
-
case "shape":
|
|
41529
|
-
this.getBasicShapeProposals(entry, existingNode, result);
|
|
41530
|
-
break;
|
|
41482
|
+
case "shape": this.getBasicShapeProposals(entry, existingNode, result);
|
|
41531
41483
|
}
|
|
41532
41484
|
this.getValueEnumProposals(entry, existingNode, result);
|
|
41533
41485
|
this.getCSSWideKeywordProposals(entry, existingNode, result);
|
|
@@ -42176,13 +42128,10 @@ function toElement(node, parentElement) {
|
|
|
42176
42128
|
case "*=":
|
|
42177
42129
|
value = `\u2026${quotes.remove(unescape$1(expression.getText()))}\u2026`;
|
|
42178
42130
|
break;
|
|
42179
|
-
default:
|
|
42180
|
-
value = quotes.remove(unescape$1(expression.getText()));
|
|
42181
|
-
break;
|
|
42131
|
+
default: value = quotes.remove(unescape$1(expression.getText()));
|
|
42182
42132
|
}
|
|
42183
42133
|
result.addAttr(unescape$1(identifier.getText()), value);
|
|
42184
42134
|
}
|
|
42185
|
-
break;
|
|
42186
42135
|
}
|
|
42187
42136
|
return result;
|
|
42188
42137
|
}
|
|
@@ -43263,7 +43212,6 @@ function updateModelWithList(model, values, property) {
|
|
|
43263
43212
|
updateModelWithValue(model, "right", values[1], property);
|
|
43264
43213
|
updateModelWithValue(model, "bottom", values[2], property);
|
|
43265
43214
|
updateModelWithValue(model, "left", values[3], property);
|
|
43266
|
-
break;
|
|
43267
43215
|
}
|
|
43268
43216
|
}
|
|
43269
43217
|
function matches(value, candidates) {
|
|
@@ -43369,25 +43317,18 @@ function calculateBoxModel(propertyTable) {
|
|
|
43369
43317
|
case "width":
|
|
43370
43318
|
updateModelWithValue(model, segments[1], checkLineWidth(value, false), property);
|
|
43371
43319
|
break;
|
|
43372
|
-
case "style":
|
|
43373
|
-
updateModelWithValue(model, segments[1], checkLineStyle(value, true), property);
|
|
43374
|
-
break;
|
|
43320
|
+
case "style": updateModelWithValue(model, segments[1], checkLineStyle(value, true), property);
|
|
43375
43321
|
}
|
|
43376
43322
|
break;
|
|
43377
43323
|
case "width":
|
|
43378
43324
|
updateModelWithList(model, checkLineWidthList(value.getChildren(), false), property);
|
|
43379
43325
|
break;
|
|
43380
|
-
case "style":
|
|
43381
|
-
updateModelWithList(model, checkLineStyleList(value.getChildren(), true), property);
|
|
43382
|
-
break;
|
|
43326
|
+
case "style": updateModelWithList(model, checkLineStyleList(value.getChildren(), true), property);
|
|
43383
43327
|
}
|
|
43384
43328
|
break;
|
|
43385
|
-
case "padding":
|
|
43386
|
-
|
|
43387
|
-
else updateModelWithValue(model, segments[1], checkLineWidth(value, true), property);
|
|
43388
|
-
break;
|
|
43329
|
+
case "padding": if (segments.length === 1) updateModelWithList(model, checkLineWidthList(value.getChildren(), true), property);
|
|
43330
|
+
else updateModelWithValue(model, segments[1], checkLineWidth(value, true), property);
|
|
43389
43331
|
}
|
|
43390
|
-
break;
|
|
43391
43332
|
}
|
|
43392
43333
|
}
|
|
43393
43334
|
return model;
|
|
@@ -43773,9 +43714,7 @@ var init_lint = __esmMin((() => {
|
|
|
43773
43714
|
expectedAttrCount = 3;
|
|
43774
43715
|
break;
|
|
43775
43716
|
case "rgba(":
|
|
43776
|
-
case "hsla(":
|
|
43777
|
-
expectedAttrCount = 4;
|
|
43778
|
-
break;
|
|
43717
|
+
case "hsla(": expectedAttrCount = 4;
|
|
43779
43718
|
}
|
|
43780
43719
|
if (expectedAttrCount !== -1) {
|
|
43781
43720
|
node.getArguments().accept((n) => {
|
|
@@ -86628,9 +86567,12 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
86628
86567
|
const decoded = context.decodeEmbeddedDocumentUri(uri);
|
|
86629
86568
|
if (!decoded) return;
|
|
86630
86569
|
const sourceScript = context.language.scripts.get(decoded[0]);
|
|
86570
|
+
if (!sourceScript?.generated) return;
|
|
86571
|
+
const code = sourceScript.generated.embeddedCodes.get(decoded[1]);
|
|
86572
|
+
if (!code) return;
|
|
86631
86573
|
return {
|
|
86632
86574
|
script: sourceScript,
|
|
86633
|
-
code
|
|
86575
|
+
code,
|
|
86634
86576
|
root: sourceScript.generated.root
|
|
86635
86577
|
};
|
|
86636
86578
|
}
|
|
@@ -91558,9 +91500,7 @@ var init_htmlCompletion = __esmMin((() => {
|
|
|
91558
91500
|
case TokenType.Content:
|
|
91559
91501
|
if (offset <= scanner.getTokenEnd()) return collectInsideContent();
|
|
91560
91502
|
break;
|
|
91561
|
-
default:
|
|
91562
|
-
if (offset <= scanner.getTokenEnd()) return result;
|
|
91563
|
-
break;
|
|
91503
|
+
default: if (offset <= scanner.getTokenEnd()) return result;
|
|
91564
91504
|
}
|
|
91565
91505
|
token = scanner.scan();
|
|
91566
91506
|
}
|
|
@@ -94803,24 +94743,22 @@ var init_htmlLinks = __esmMin((() => {
|
|
|
94803
94743
|
case TokenType.AttributeName:
|
|
94804
94744
|
lastAttributeName = scanner.getTokenText().toLowerCase();
|
|
94805
94745
|
break;
|
|
94806
|
-
case TokenType.AttributeValue:
|
|
94807
|
-
|
|
94808
|
-
|
|
94809
|
-
|
|
94810
|
-
|
|
94811
|
-
if (link) newLinks.push(link);
|
|
94812
|
-
}
|
|
94813
|
-
if (afterBase && typeof base === "undefined") {
|
|
94814
|
-
base = normalizeRef(attributeValue);
|
|
94815
|
-
if (base && documentContext) base = documentContext.resolveReference(base, document.uri);
|
|
94816
|
-
}
|
|
94817
|
-
afterBase = false;
|
|
94818
|
-
lastAttributeName = void 0;
|
|
94819
|
-
} else if (lastAttributeName === "id") {
|
|
94820
|
-
const id = normalizeRef(scanner.getTokenText());
|
|
94821
|
-
idLocations[id] = scanner.getTokenOffset();
|
|
94746
|
+
case TokenType.AttributeValue: if (lastTagName && lastAttributeName && this.dataManager.isPathAttribute(lastTagName, lastAttributeName)) {
|
|
94747
|
+
const attributeValue = scanner.getTokenText();
|
|
94748
|
+
if (!afterBase) {
|
|
94749
|
+
const link = createLink(document, documentContext, attributeValue, scanner.getTokenOffset(), scanner.getTokenEnd(), base);
|
|
94750
|
+
if (link) newLinks.push(link);
|
|
94822
94751
|
}
|
|
94823
|
-
|
|
94752
|
+
if (afterBase && typeof base === "undefined") {
|
|
94753
|
+
base = normalizeRef(attributeValue);
|
|
94754
|
+
if (base && documentContext) base = documentContext.resolveReference(base, document.uri);
|
|
94755
|
+
}
|
|
94756
|
+
afterBase = false;
|
|
94757
|
+
lastAttributeName = void 0;
|
|
94758
|
+
} else if (lastAttributeName === "id") {
|
|
94759
|
+
const id = normalizeRef(scanner.getTokenText());
|
|
94760
|
+
idLocations[id] = scanner.getTokenOffset();
|
|
94761
|
+
}
|
|
94824
94762
|
}
|
|
94825
94763
|
token = scanner.scan();
|
|
94826
94764
|
}
|
|
@@ -114607,7 +114545,7 @@ var require_vue_template = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
114607
114545
|
const componentSet = new Set(components);
|
|
114608
114546
|
if (!htmlCompletion) return;
|
|
114609
114547
|
if (!hint) htmlCompletion.isIncomplete = true;
|
|
114610
|
-
if (htmlCompletion.items[0]?.kind === 12) addDirectiveModifiers(htmlCompletion, htmlCompletion.items[0], document);
|
|
114548
|
+
if (htmlCompletion.items[0]?.kind === 12) addDirectiveModifiers(htmlCompletion, htmlCompletion.items[0], document, position);
|
|
114611
114549
|
await resolveAutoImportPlaceholder(htmlCompletion, info);
|
|
114612
114550
|
resolveComponentItemKinds(htmlCompletion);
|
|
114613
114551
|
return htmlCompletion;
|
|
@@ -114647,7 +114585,6 @@ var require_vue_template = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
114647
114585
|
else if (item.label.startsWith(DIRECTIVE_V_BIND) || item.label.startsWith(V_BIND_SHORTHAND) || item.label.startsWith(DIRECTIVE_V_MODEL)) item.kind = 5;
|
|
114648
114586
|
else if (item.label.startsWith("v-")) item.kind = 14;
|
|
114649
114587
|
if (item.label === DIRECTIVE_V_FOR_NAME) item.textEdit.newText = item.label + V_FOR_SNIPPET;
|
|
114650
|
-
break;
|
|
114651
114588
|
}
|
|
114652
114589
|
}
|
|
114653
114590
|
},
|
|
@@ -114990,33 +114927,41 @@ var require_vue_template = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
114990
114927
|
}
|
|
114991
114928
|
return customData;
|
|
114992
114929
|
}
|
|
114993
|
-
function addDirectiveModifiers(list, item, document) {
|
|
114930
|
+
function addDirectiveModifiers(list, item, document, position) {
|
|
114994
114931
|
const replacement = getReplacement(item, document);
|
|
114995
|
-
if (!replacement?.text
|
|
114996
|
-
const
|
|
114997
|
-
const
|
|
114998
|
-
|
|
114999
|
-
const
|
|
115000
|
-
|
|
115001
|
-
if (
|
|
115002
|
-
|
|
115003
|
-
|
|
115004
|
-
|
|
115005
|
-
const
|
|
115006
|
-
const
|
|
115007
|
-
|
|
115008
|
-
|
|
115009
|
-
|
|
115010
|
-
kind: "markdown",
|
|
115011
|
-
value: description
|
|
115012
|
-
},
|
|
115013
|
-
textEdit: {
|
|
115014
|
-
range: replacement.textEdit.range,
|
|
115015
|
-
newText: insertText
|
|
115016
|
-
},
|
|
115017
|
-
kind: 20
|
|
114932
|
+
if (!replacement?.text) return;
|
|
114933
|
+
const replacementStart = document.offsetAt(replacement.textEdit.range.start);
|
|
114934
|
+
const start = replacement.text.lastIndexOf(".", document.offsetAt(position) - replacementStart - 1) + 1;
|
|
114935
|
+
if (start === 0) return;
|
|
114936
|
+
const [text, ...existingModifiers] = replacement.text.split(".");
|
|
114937
|
+
let matchedModifiers;
|
|
114938
|
+
if (text.startsWith(DIRECTIVE_V_ON) || text.startsWith(V_ON_SHORTHAND) && text.length > 1) matchedModifiers = vOnModifiers;
|
|
114939
|
+
else if (text.startsWith(DIRECTIVE_V_BIND) || text.startsWith(V_BIND_SHORTHAND) && text.length > 1) matchedModifiers = vBindModifiers;
|
|
114940
|
+
else if (text.startsWith(DIRECTIVE_V_MODEL) || text === "v-model") matchedModifiers = vModelModifiers;
|
|
114941
|
+
if (matchedModifiers) {
|
|
114942
|
+
const nextModifierStart = replacement.text.indexOf(".", start);
|
|
114943
|
+
const end = nextModifierStart !== -1 ? nextModifierStart : replacement.text.length;
|
|
114944
|
+
const range = {
|
|
114945
|
+
start: document.positionAt(replacementStart + start),
|
|
114946
|
+
end: document.positionAt(replacementStart + end)
|
|
115018
114947
|
};
|
|
115019
|
-
|
|
114948
|
+
const currentModifier = replacement.text.slice(start, end);
|
|
114949
|
+
for (const modifier in matchedModifiers) {
|
|
114950
|
+
if (existingModifiers.includes(modifier) && modifier !== currentModifier) continue;
|
|
114951
|
+
list.items.push({
|
|
114952
|
+
label: modifier,
|
|
114953
|
+
filterText: modifier,
|
|
114954
|
+
documentation: {
|
|
114955
|
+
kind: "markdown",
|
|
114956
|
+
value: matchedModifiers[modifier]
|
|
114957
|
+
},
|
|
114958
|
+
textEdit: {
|
|
114959
|
+
range,
|
|
114960
|
+
newText: modifier
|
|
114961
|
+
},
|
|
114962
|
+
kind: 20
|
|
114963
|
+
});
|
|
114964
|
+
}
|
|
115020
114965
|
}
|
|
115021
114966
|
}
|
|
115022
114967
|
}
|
|
@@ -116045,6 +115990,14 @@ var require_schemaResolvers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
116045
115990
|
}
|
|
116046
115991
|
};
|
|
116047
115992
|
} else if (subtype.getCallSignatures().length === 1) return resolveCallbackSchema(subtype.getCallSignatures()[0]);
|
|
115993
|
+
else if (subtype.flags & ts.TypeFlags.EnumLiteral && subtype.isLiteral()) {
|
|
115994
|
+
const { value } = subtype;
|
|
115995
|
+
if (typeof value === "string" || typeof value === "number") return {
|
|
115996
|
+
kind: "literal",
|
|
115997
|
+
type,
|
|
115998
|
+
value: JSON.stringify(value)
|
|
115999
|
+
};
|
|
116000
|
+
}
|
|
116048
116001
|
return type;
|
|
116049
116002
|
}
|
|
116050
116003
|
function getFullyQualifiedName(type) {
|
|
@@ -119254,9 +119207,7 @@ var require_typescript = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
119254
119207
|
low = middle + 1;
|
|
119255
119208
|
break;
|
|
119256
119209
|
case 0: return middle;
|
|
119257
|
-
case 1:
|
|
119258
|
-
high = middle - 1;
|
|
119259
|
-
break;
|
|
119210
|
+
case 1: high = middle - 1;
|
|
119260
119211
|
}
|
|
119261
119212
|
}
|
|
119262
119213
|
return ~low;
|
|
@@ -121109,7 +121060,7 @@ ${lanes.join("\n")}
|
|
|
121109
121060
|
eventStack.length = 0;
|
|
121110
121061
|
}
|
|
121111
121062
|
tracingEnabled2.popAll = popAll;
|
|
121112
|
-
const sampleInterval =
|
|
121063
|
+
const sampleInterval = 1e4;
|
|
121113
121064
|
function writeStackEvent(index, endTime, results) {
|
|
121114
121065
|
const { phase, name, args, time, separateBeginAndEnd } = eventStack[index];
|
|
121115
121066
|
if (separateBeginAndEnd) {
|
|
@@ -131341,12 +131292,10 @@ ${lanes.join("\n")}
|
|
|
131341
131292
|
result.push(lineStart);
|
|
131342
131293
|
lineStart = pos;
|
|
131343
131294
|
break;
|
|
131344
|
-
default:
|
|
131345
|
-
|
|
131346
|
-
|
|
131347
|
-
|
|
131348
|
-
}
|
|
131349
|
-
break;
|
|
131295
|
+
default: if (ch > 127 && isLineBreak(ch)) {
|
|
131296
|
+
result.push(lineStart);
|
|
131297
|
+
lineStart = pos;
|
|
131298
|
+
}
|
|
131350
131299
|
}
|
|
131351
131300
|
}
|
|
131352
131301
|
result.push(lineStart);
|
|
@@ -131503,12 +131452,10 @@ ${lanes.join("\n")}
|
|
|
131503
131452
|
continue;
|
|
131504
131453
|
}
|
|
131505
131454
|
break;
|
|
131506
|
-
default:
|
|
131507
|
-
|
|
131508
|
-
|
|
131509
|
-
|
|
131510
|
-
}
|
|
131511
|
-
break;
|
|
131455
|
+
default: if (ch > 127 && isWhiteSpaceLike(ch)) {
|
|
131456
|
+
pos++;
|
|
131457
|
+
continue;
|
|
131458
|
+
}
|
|
131512
131459
|
}
|
|
131513
131460
|
return pos;
|
|
131514
131461
|
}
|
|
@@ -132732,7 +132679,6 @@ ${lanes.join("\n")}
|
|
|
132732
132679
|
default:
|
|
132733
132680
|
scanAtomEscape();
|
|
132734
132681
|
isPreviousTermQuantifiable = true;
|
|
132735
|
-
break;
|
|
132736
132682
|
}
|
|
132737
132683
|
break;
|
|
132738
132684
|
case 40:
|
|
@@ -132760,7 +132706,6 @@ ${lanes.join("\n")}
|
|
|
132760
132706
|
if (languageVersion < 5) error2(Diagnostics.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later, groupNameStart, pos - groupNameStart);
|
|
132761
132707
|
numberOfCapturingGroups++;
|
|
132762
132708
|
isPreviousTermQuantifiable = true;
|
|
132763
|
-
break;
|
|
132764
132709
|
}
|
|
132765
132710
|
break;
|
|
132766
132711
|
default:
|
|
@@ -132773,7 +132718,6 @@ ${lanes.join("\n")}
|
|
|
132773
132718
|
}
|
|
132774
132719
|
scanExpectedChar(58);
|
|
132775
132720
|
isPreviousTermQuantifiable = true;
|
|
132776
|
-
break;
|
|
132777
132721
|
}
|
|
132778
132722
|
} else {
|
|
132779
132723
|
numberOfCapturingGroups++;
|
|
@@ -132845,7 +132789,6 @@ ${lanes.join("\n")}
|
|
|
132845
132789
|
default:
|
|
132846
132790
|
scanSourceCharacter();
|
|
132847
132791
|
isPreviousTermQuantifiable = true;
|
|
132848
|
-
break;
|
|
132849
132792
|
}
|
|
132850
132793
|
}
|
|
132851
132794
|
}
|
|
@@ -132882,9 +132825,7 @@ ${lanes.join("\n")}
|
|
|
132882
132825
|
error2(Diagnostics.q_is_only_available_inside_character_class, pos - 2, 2);
|
|
132883
132826
|
break;
|
|
132884
132827
|
}
|
|
132885
|
-
default:
|
|
132886
|
-
Debug.assert(scanCharacterClassEscape() || scanDecimalEscape() || scanCharacterEscape(true));
|
|
132887
|
-
break;
|
|
132828
|
+
default: Debug.assert(scanCharacterClassEscape() || scanDecimalEscape() || scanCharacterEscape(true));
|
|
132888
132829
|
}
|
|
132889
132830
|
}
|
|
132890
132831
|
function scanDecimalEscape() {
|
|
@@ -133007,9 +132948,7 @@ ${lanes.join("\n")}
|
|
|
133007
132948
|
error2(Diagnostics.Expected_a_class_set_operand);
|
|
133008
132949
|
mayContainStrings = false;
|
|
133009
132950
|
break;
|
|
133010
|
-
default:
|
|
133011
|
-
operand = scanClassSetOperand();
|
|
133012
|
-
break;
|
|
132951
|
+
default: operand = scanClassSetOperand();
|
|
133013
132952
|
}
|
|
133014
132953
|
switch (charCodeChecked(pos)) {
|
|
133015
132954
|
case 45:
|
|
@@ -133033,7 +132972,6 @@ ${lanes.join("\n")}
|
|
|
133033
132972
|
default:
|
|
133034
132973
|
if (isCharacterComplement && mayContainStrings) error2(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, start2, pos - start2);
|
|
133035
132974
|
expressionMayContainStrings = mayContainStrings;
|
|
133036
|
-
break;
|
|
133037
132975
|
}
|
|
133038
132976
|
while (true) {
|
|
133039
132977
|
ch = charCodeChecked(pos);
|
|
@@ -133091,9 +133029,7 @@ ${lanes.join("\n")}
|
|
|
133091
133029
|
pos += 2;
|
|
133092
133030
|
operand = text.slice(start2, pos);
|
|
133093
133031
|
break;
|
|
133094
|
-
default:
|
|
133095
|
-
operand = scanClassSetOperand();
|
|
133096
|
-
break;
|
|
133032
|
+
default: operand = scanClassSetOperand();
|
|
133097
133033
|
}
|
|
133098
133034
|
}
|
|
133099
133035
|
mayContainStrings = !isCharacterComplement && expressionMayContainStrings;
|
|
@@ -133122,17 +133058,12 @@ ${lanes.join("\n")}
|
|
|
133122
133058
|
}
|
|
133123
133059
|
} else error2(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos - 1, 1, String.fromCharCode(ch));
|
|
133124
133060
|
break;
|
|
133125
|
-
default:
|
|
133126
|
-
|
|
133127
|
-
|
|
133128
|
-
|
|
133129
|
-
|
|
133130
|
-
|
|
133131
|
-
error2(Diagnostics._0_expected, pos, 0, "&&");
|
|
133132
|
-
break;
|
|
133133
|
-
default: break;
|
|
133134
|
-
}
|
|
133135
|
-
break;
|
|
133061
|
+
default: switch (expressionType) {
|
|
133062
|
+
case 3:
|
|
133063
|
+
error2(Diagnostics._0_expected, pos, 0, "--");
|
|
133064
|
+
break;
|
|
133065
|
+
case 2: error2(Diagnostics._0_expected, pos, 0, "&&");
|
|
133066
|
+
}
|
|
133136
133067
|
}
|
|
133137
133068
|
ch = charCodeChecked(pos);
|
|
133138
133069
|
if (isClassContentExit(ch)) {
|
|
@@ -133189,7 +133120,6 @@ ${lanes.join("\n")}
|
|
|
133189
133120
|
default:
|
|
133190
133121
|
scanClassSetCharacter();
|
|
133191
133122
|
characterCount++;
|
|
133192
|
-
break;
|
|
133193
133123
|
}
|
|
133194
133124
|
}
|
|
133195
133125
|
function scanClassSetCharacter() {
|
|
@@ -134497,9 +134427,7 @@ ${lanes.join("\n")}
|
|
|
134497
134427
|
}
|
|
134498
134428
|
break;
|
|
134499
134429
|
case 218: return getDeclarationIdentifier(hostNode.expression);
|
|
134500
|
-
case 257:
|
|
134501
|
-
if (isDeclaration(hostNode.statement) || isExpression(hostNode.statement)) return getDeclarationIdentifier(hostNode.statement);
|
|
134502
|
-
break;
|
|
134430
|
+
case 257: if (isDeclaration(hostNode.statement) || isExpression(hostNode.statement)) return getDeclarationIdentifier(hostNode.statement);
|
|
134503
134431
|
}
|
|
134504
134432
|
}
|
|
134505
134433
|
function getDeclarationIdentifier(node) {
|
|
@@ -137049,10 +136977,8 @@ ${lanes.join("\n")}
|
|
|
137049
136977
|
case 178:
|
|
137050
136978
|
case 179:
|
|
137051
136979
|
case 176: return node;
|
|
137052
|
-
case 171:
|
|
137053
|
-
|
|
137054
|
-
else if (isClassElement(node.parent)) node = node.parent;
|
|
137055
|
-
break;
|
|
136980
|
+
case 171: if (node.parent.kind === 170 && isClassElement(node.parent.parent)) node = node.parent.parent;
|
|
136981
|
+
else if (isClassElement(node.parent)) node = node.parent;
|
|
137056
136982
|
}
|
|
137057
136983
|
}
|
|
137058
136984
|
}
|
|
@@ -138072,9 +137998,7 @@ ${lanes.join("\n")}
|
|
|
138072
137998
|
case 263:
|
|
138073
137999
|
case 219:
|
|
138074
138000
|
case 175: if (node.asteriskToken) flags |= 1;
|
|
138075
|
-
case 220:
|
|
138076
|
-
if (hasSyntacticModifier(node, 1024)) flags |= 2;
|
|
138077
|
-
break;
|
|
138001
|
+
case 220: if (hasSyntacticModifier(node, 1024)) flags |= 2;
|
|
138078
138002
|
}
|
|
138079
138003
|
if (!node.body) flags |= 4;
|
|
138080
138004
|
return flags;
|
|
@@ -141126,10 +141050,8 @@ ${lanes.join("\n")}
|
|
|
141126
141050
|
state = 3;
|
|
141127
141051
|
}
|
|
141128
141052
|
break;
|
|
141129
|
-
case 3:
|
|
141130
|
-
|
|
141131
|
-
else state = 3;
|
|
141132
|
-
break;
|
|
141053
|
+
case 3: if (fullPath.indexOf(nodeModulesPathPart, partStart) === partStart) state = 1;
|
|
141054
|
+
else state = 3;
|
|
141133
141055
|
}
|
|
141134
141056
|
}
|
|
141135
141057
|
fileNameIndex = partStart;
|
|
@@ -141586,9 +141508,7 @@ ${lanes.join("\n")}
|
|
|
141586
141508
|
}
|
|
141587
141509
|
}
|
|
141588
141510
|
break;
|
|
141589
|
-
case 282:
|
|
141590
|
-
if (lastLocation && lastLocation === location.propertyName && location.parent.parent.moduleSpecifier) location = location.parent.parent.parent;
|
|
141591
|
-
break;
|
|
141511
|
+
case 282: if (lastLocation && lastLocation === location.propertyName && location.parent.parent.moduleSpecifier) location = location.parent.parent.parent;
|
|
141592
141512
|
}
|
|
141593
141513
|
if (isSelfReferenceLocation(location, lastLocation)) lastSelfReferenceLocation = location;
|
|
141594
141514
|
lastLocation = location;
|
|
@@ -143226,7 +143146,6 @@ ${lanes.join("\n")}
|
|
|
143226
143146
|
case 110:
|
|
143227
143147
|
transformFlags = 16384;
|
|
143228
143148
|
node.flowNode = void 0;
|
|
143229
|
-
break;
|
|
143230
143149
|
}
|
|
143231
143150
|
if (transformFlags) node.transformFlags |= transformFlags;
|
|
143232
143151
|
return node;
|
|
@@ -146081,9 +146000,7 @@ ${lanes.join("\n")}
|
|
|
146081
146000
|
case 17:
|
|
146082
146001
|
rawTextScanner.setText("}" + rawText + "${");
|
|
146083
146002
|
break;
|
|
146084
|
-
case 18:
|
|
146085
|
-
rawTextScanner.setText("}" + rawText + "`");
|
|
146086
|
-
break;
|
|
146003
|
+
case 18: rawTextScanner.setText("}" + rawText + "`");
|
|
146087
146004
|
}
|
|
146088
146005
|
let token = rawTextScanner.scan();
|
|
146089
146006
|
if (token === 20) token = rawTextScanner.reScanTemplateToken(false);
|
|
@@ -146096,9 +146013,7 @@ ${lanes.join("\n")}
|
|
|
146096
146013
|
case 15:
|
|
146097
146014
|
case 16:
|
|
146098
146015
|
case 17:
|
|
146099
|
-
case 18:
|
|
146100
|
-
tokenValue = rawTextScanner.getTokenValue();
|
|
146101
|
-
break;
|
|
146016
|
+
case 18: tokenValue = rawTextScanner.getTokenValue();
|
|
146102
146017
|
}
|
|
146103
146018
|
if (tokenValue === void 0 || rawTextScanner.scan() !== 1) {
|
|
146104
146019
|
rawTextScanner.setText(void 0);
|
|
@@ -149348,9 +149263,7 @@ ${lanes.join("\n")}
|
|
|
149348
149263
|
expression2 = parseLiteralNode();
|
|
149349
149264
|
break;
|
|
149350
149265
|
}
|
|
149351
|
-
default:
|
|
149352
|
-
expression2 = parseObjectLiteralExpression();
|
|
149353
|
-
break;
|
|
149266
|
+
default: expression2 = parseObjectLiteralExpression();
|
|
149354
149267
|
}
|
|
149355
149268
|
if (expressions && isArray(expressions)) expressions.push(expression2);
|
|
149356
149269
|
else if (expressions) expressions = [expressions, expression2];
|
|
@@ -149403,9 +149316,7 @@ ${lanes.join("\n")}
|
|
|
149403
149316
|
case 6:
|
|
149404
149317
|
contextFlags = 134742016;
|
|
149405
149318
|
break;
|
|
149406
|
-
default:
|
|
149407
|
-
contextFlags = 0;
|
|
149408
|
-
break;
|
|
149319
|
+
default: contextFlags = 0;
|
|
149409
149320
|
}
|
|
149410
149321
|
parseErrorBeforeNextFinishedNode = false;
|
|
149411
149322
|
scanner2.setText(sourceText);
|
|
@@ -152429,9 +152340,7 @@ ${lanes.join("\n")}
|
|
|
152429
152340
|
case 129:
|
|
152430
152341
|
case 126:
|
|
152431
152342
|
case 148:
|
|
152432
|
-
case 162:
|
|
152433
|
-
if (isStartOfDeclaration()) return parseDeclaration();
|
|
152434
|
-
break;
|
|
152343
|
+
case 162: if (isStartOfDeclaration()) return parseDeclaration();
|
|
152435
152344
|
}
|
|
152436
152345
|
return parseExpressionOrLabeledStatement();
|
|
152437
152346
|
}
|
|
@@ -153390,7 +153299,6 @@ ${lanes.join("\n")}
|
|
|
153390
153299
|
default:
|
|
153391
153300
|
state = 2;
|
|
153392
153301
|
pushComment(scanner2.getTokenText());
|
|
153393
|
-
break;
|
|
153394
153302
|
}
|
|
153395
153303
|
if (state === 2) nextJSDocCommentTextToken(false);
|
|
153396
153304
|
else nextTokenJSDoc();
|
|
@@ -153527,9 +153435,7 @@ ${lanes.join("\n")}
|
|
|
153527
153435
|
case "import":
|
|
153528
153436
|
tag = parseImportTag(start2, tagName, margin, indentText);
|
|
153529
153437
|
break;
|
|
153530
|
-
default:
|
|
153531
|
-
tag = parseUnknownTag(start2, tagName, margin, indentText);
|
|
153532
|
-
break;
|
|
153438
|
+
default: tag = parseUnknownTag(start2, tagName, margin, indentText);
|
|
153533
153439
|
}
|
|
153534
153440
|
return tag;
|
|
153535
153441
|
}
|
|
@@ -153602,7 +153508,6 @@ ${lanes.join("\n")}
|
|
|
153602
153508
|
default:
|
|
153603
153509
|
if (state !== 3) state = 2;
|
|
153604
153510
|
pushComment(scanner2.getTokenText());
|
|
153605
|
-
break;
|
|
153606
153511
|
}
|
|
153607
153512
|
if (state === 2 || state === 3) tok = nextJSDocCommentTextToken(state === 3);
|
|
153608
153513
|
else tok = nextTokenJSDoc();
|
|
@@ -156230,7 +156135,6 @@ ${lanes.join("\n")}
|
|
|
156230
156135
|
default:
|
|
156231
156136
|
options[opt.name] = parseCustomTypeOption(opt, args[i], errors);
|
|
156232
156137
|
i++;
|
|
156233
|
-
break;
|
|
156234
156138
|
}
|
|
156235
156139
|
else {
|
|
156236
156140
|
options[opt.name] = void 0;
|
|
@@ -157746,9 +157650,7 @@ ${lanes.join("\n")}
|
|
|
157746
157650
|
case 99:
|
|
157747
157651
|
features = 94;
|
|
157748
157652
|
break;
|
|
157749
|
-
case 100:
|
|
157750
|
-
features = 94;
|
|
157751
|
-
break;
|
|
157653
|
+
case 100: features = 94;
|
|
157752
157654
|
}
|
|
157753
157655
|
if (options.resolvePackageJsonExports) features |= 8;
|
|
157754
157656
|
else if (options.resolvePackageJsonExports === false) features &= -9;
|
|
@@ -159714,9 +159616,7 @@ ${lanes.join("\n")}
|
|
|
159714
159616
|
case 210:
|
|
159715
159617
|
case 304:
|
|
159716
159618
|
case 231: inAssignmentPattern = saveInAssignmentPattern;
|
|
159717
|
-
default:
|
|
159718
|
-
bindEachChild(node);
|
|
159719
|
-
break;
|
|
159619
|
+
default: bindEachChild(node);
|
|
159720
159620
|
}
|
|
159721
159621
|
bindJSDoc(node);
|
|
159722
159622
|
inAssignmentPattern = saveInAssignmentPattern;
|
|
@@ -160341,7 +160241,6 @@ ${lanes.join("\n")}
|
|
|
160341
160241
|
bind(node.questionDotToken);
|
|
160342
160242
|
bindEach(node.typeArguments);
|
|
160343
160243
|
bindEach(node.arguments);
|
|
160344
|
-
break;
|
|
160345
160244
|
}
|
|
160346
160245
|
}
|
|
160347
160246
|
function bindOptionalChain(node, trueTarget, falseTarget) {
|
|
@@ -161911,7 +161810,6 @@ ${lanes.join("\n")}
|
|
|
161911
161810
|
const jsExtension = tryGetJSExtensionForFile(declarationFile, options);
|
|
161912
161811
|
return jsExtension ? { moduleFileToTry: changeFullExtension(substituted, jsExtension) } : void 0;
|
|
161913
161812
|
}
|
|
161914
|
-
break;
|
|
161915
161813
|
}
|
|
161916
161814
|
} else if (Array.isArray(exports2)) return forEach(exports2, (e) => tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, e, conditions, mode, isImports, preferTsExtension));
|
|
161917
161815
|
else if (typeof exports2 === "object" && exports2 !== null) {
|
|
@@ -163455,9 +163353,7 @@ ${lanes.join("\n")}
|
|
|
163455
163353
|
switch (declaration2.parent.parent.kind) {
|
|
163456
163354
|
case 244:
|
|
163457
163355
|
case 249:
|
|
163458
|
-
case 251:
|
|
163459
|
-
if (isSameScopeDescendentOf(usage2, declaration2, declContainer)) return true;
|
|
163460
|
-
break;
|
|
163356
|
+
case 251: if (isSameScopeDescendentOf(usage2, declaration2, declContainer)) return true;
|
|
163461
163357
|
}
|
|
163462
163358
|
const grandparent = declaration2.parent.parent;
|
|
163463
163359
|
return isForInOrOfStatement(grandparent) && isSameScopeDescendentOf(usage2, grandparent.expression, declContainer);
|
|
@@ -164830,7 +164726,6 @@ ${lanes.join("\n")}
|
|
|
164830
164726
|
if (memberSymbol.flags & 788968) (table || (table = createSymbolTable())).set(key, memberSymbol);
|
|
164831
164727
|
});
|
|
164832
164728
|
if (table && (result = callback(table, void 0, false, location))) return result;
|
|
164833
|
-
break;
|
|
164834
164729
|
}
|
|
164835
164730
|
}
|
|
164836
164731
|
return callback(globals, void 0, true);
|
|
@@ -178753,9 +178648,7 @@ ${lanes.join("\n")}
|
|
|
178753
178648
|
case 236:
|
|
178754
178649
|
case 239: return narrowType(type, expr.expression, assumeTrue);
|
|
178755
178650
|
case 227: return narrowTypeByBinaryExpression(type, expr, assumeTrue);
|
|
178756
|
-
case 225:
|
|
178757
|
-
if (expr.operator === 54) return narrowType(type, expr.operand, !assumeTrue);
|
|
178758
|
-
break;
|
|
178651
|
+
case 225: if (expr.operator === 54) return narrowType(type, expr.operand, !assumeTrue);
|
|
178759
178652
|
}
|
|
178760
178653
|
return type;
|
|
178761
178654
|
}
|
|
@@ -179065,7 +178958,6 @@ ${lanes.join("\n")}
|
|
|
179065
178958
|
const containingSignature = node.parent;
|
|
179066
178959
|
for (const parameter of containingSignature.parameters) markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));
|
|
179067
178960
|
markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(containingSignature));
|
|
179068
|
-
break;
|
|
179069
178961
|
}
|
|
179070
178962
|
}
|
|
179071
178963
|
}
|
|
@@ -179372,9 +179264,7 @@ ${lanes.join("\n")}
|
|
|
179372
179264
|
case 268:
|
|
179373
179265
|
error2(node, Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);
|
|
179374
179266
|
break;
|
|
179375
|
-
case 267:
|
|
179376
|
-
error2(node, Diagnostics.this_cannot_be_referenced_in_current_location);
|
|
179377
|
-
break;
|
|
179267
|
+
case 267: error2(node, Diagnostics.this_cannot_be_referenced_in_current_location);
|
|
179378
179268
|
}
|
|
179379
179269
|
if (!isNodeInTypeQuery && capturedByArrowFunction && languageVersion < 2) captureLexicalThis(node, container);
|
|
179380
179270
|
const type = tryGetThisTypeAt(node, true, container);
|
|
@@ -183027,7 +182917,6 @@ ${lanes.join("\n")}
|
|
|
183027
182917
|
case 218:
|
|
183028
182918
|
type = getJSDocTypeAssertionType(node);
|
|
183029
182919
|
expression = node.expression;
|
|
183030
|
-
break;
|
|
183031
182920
|
}
|
|
183032
182921
|
return {
|
|
183033
182922
|
type,
|
|
@@ -183173,17 +183062,15 @@ ${lanes.join("\n")}
|
|
|
183173
183062
|
if (node.dotDotDotToken) return elementFlags & 12 ? name : `${name}_${index}`;
|
|
183174
183063
|
else return elementFlags & 3 ? name : `${name}_n`;
|
|
183175
183064
|
}
|
|
183176
|
-
case 208:
|
|
183177
|
-
|
|
183178
|
-
|
|
183179
|
-
|
|
183180
|
-
|
|
183181
|
-
|
|
183182
|
-
|
|
183183
|
-
|
|
183184
|
-
|
|
183185
|
-
}
|
|
183186
|
-
break;
|
|
183065
|
+
case 208: if (node.dotDotDotToken) {
|
|
183066
|
+
const elements = node.name.elements;
|
|
183067
|
+
const lastElement = tryCast(lastOrUndefined(elements), isBindingElement);
|
|
183068
|
+
const elementCount = elements.length - ((lastElement == null ? void 0 : lastElement.dotDotDotToken) ? 1 : 0);
|
|
183069
|
+
if (index < elementCount) {
|
|
183070
|
+
const element = elements[index];
|
|
183071
|
+
if (isBindingElement(element)) return getTupleElementLabelFromBindingElement(element, index, elementFlags);
|
|
183072
|
+
} else if (lastElement == null ? void 0 : lastElement.dotDotDotToken) return getTupleElementLabelFromBindingElement(lastElement, index - elementCount, elementFlags);
|
|
183073
|
+
}
|
|
183187
183074
|
}
|
|
183188
183075
|
return `arg_${index}`;
|
|
183189
183076
|
}
|
|
@@ -184020,7 +183907,6 @@ ${lanes.join("\n")}
|
|
|
184020
183907
|
const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;
|
|
184021
183908
|
diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message));
|
|
184022
183909
|
hasError = true;
|
|
184023
|
-
break;
|
|
184024
183910
|
}
|
|
184025
183911
|
}
|
|
184026
183912
|
} else {
|
|
@@ -184504,8 +184390,6 @@ ${lanes.join("\n")}
|
|
|
184504
184390
|
case 73:
|
|
184505
184391
|
const rhsEval = evaluate(right);
|
|
184506
184392
|
if (typeof rhsEval.value === "number" && Math.abs(rhsEval.value) >= 32) errorOrSuggestion(isEnumMember(walkUpParenthesizedExpressions(right.parent.parent)), errorNode || operatorToken, Diagnostics.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2, getTextOfNode(left), tokenToString(operator), rhsEval.value % 32);
|
|
184507
|
-
break;
|
|
184508
|
-
default: break;
|
|
184509
184393
|
}
|
|
184510
184394
|
}
|
|
184511
184395
|
return resultType2;
|
|
@@ -185307,9 +185191,7 @@ ${lanes.join("\n")}
|
|
|
185307
185191
|
case 181:
|
|
185308
185192
|
error2(node, Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);
|
|
185309
185193
|
break;
|
|
185310
|
-
case 180:
|
|
185311
|
-
error2(node, Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);
|
|
185312
|
-
break;
|
|
185194
|
+
case 180: error2(node, Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);
|
|
185313
185195
|
}
|
|
185314
185196
|
if (returnTypeNode && returnTypeErrorLocation) {
|
|
185315
185197
|
const functionFlags2 = getFunctionFlags(node);
|
|
@@ -185350,9 +185232,7 @@ ${lanes.join("\n")}
|
|
|
185350
185232
|
case 173:
|
|
185351
185233
|
addName(names, name, memberName, 3 | privateStaticFlags);
|
|
185352
185234
|
break;
|
|
185353
|
-
case 175:
|
|
185354
|
-
addName(names, name, memberName, 8 | privateStaticFlags);
|
|
185355
|
-
break;
|
|
185235
|
+
case 175: addName(names, name, memberName, 8 | privateStaticFlags);
|
|
185356
185236
|
}
|
|
185357
185237
|
}
|
|
185358
185238
|
function addName(names, location, name, meaning) {
|
|
@@ -185382,7 +185262,6 @@ ${lanes.join("\n")}
|
|
|
185382
185262
|
case "prototype":
|
|
185383
185263
|
const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1;
|
|
185384
185264
|
error2(memberNameNode, message, memberName, getNameOfSymbolAsWritten(getSymbolOfDeclaration(node)));
|
|
185385
|
-
break;
|
|
185386
185265
|
}
|
|
185387
185266
|
}
|
|
185388
185267
|
}
|
|
@@ -188327,9 +188206,7 @@ ${lanes.join("\n")}
|
|
|
188327
188206
|
case 263:
|
|
188328
188207
|
case 265:
|
|
188329
188208
|
case 268:
|
|
188330
|
-
case 266:
|
|
188331
|
-
if (isGlobalAugmentation) return;
|
|
188332
|
-
break;
|
|
188209
|
+
case 266: if (isGlobalAugmentation) return;
|
|
188333
188210
|
}
|
|
188334
188211
|
}
|
|
188335
188212
|
function getFirstNonModuleExportsIdentifier(node) {
|
|
@@ -188946,9 +188823,7 @@ ${lanes.join("\n")}
|
|
|
188946
188823
|
case 223:
|
|
188947
188824
|
checkExpression(node.expression);
|
|
188948
188825
|
break;
|
|
188949
|
-
case 227:
|
|
188950
|
-
if (isInstanceOfExpression(node)) resolveUntypedCall(node);
|
|
188951
|
-
break;
|
|
188826
|
+
case 227: if (isInstanceOfExpression(node)) resolveUntypedCall(node);
|
|
188952
188827
|
}
|
|
188953
188828
|
currentNode = saveCurrentNode;
|
|
188954
188829
|
(_b = tracing) == null || _b.pop();
|
|
@@ -189109,9 +188984,7 @@ ${lanes.join("\n")}
|
|
|
189109
188984
|
case 265:
|
|
189110
188985
|
if (!isStaticSymbol) copySymbols(getMembersOfSymbol(getSymbolOfDeclaration(location)), meaning & 788968);
|
|
189111
188986
|
break;
|
|
189112
|
-
case 219:
|
|
189113
|
-
if (location.name) copySymbol(location.symbol, meaning);
|
|
189114
|
-
break;
|
|
188987
|
+
case 219: if (location.name) copySymbol(location.symbol, meaning);
|
|
189115
188988
|
}
|
|
189116
188989
|
if (introducesArgumentsExoticObject(location)) copySymbol(argumentsSymbol, meaning);
|
|
189117
188990
|
isStaticSymbol = isStatic(location);
|
|
@@ -190709,9 +190582,7 @@ ${lanes.join("\n")}
|
|
|
190709
190582
|
case 99:
|
|
190710
190583
|
case 200:
|
|
190711
190584
|
case 4: if (languageVersion >= 4) break;
|
|
190712
|
-
default:
|
|
190713
|
-
diagnostics.add(createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));
|
|
190714
|
-
break;
|
|
190585
|
+
default: diagnostics.add(createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));
|
|
190715
190586
|
}
|
|
190716
190587
|
}
|
|
190717
190588
|
} else if (!hasParseDiagnostics(sourceFile)) {
|
|
@@ -190837,9 +190708,7 @@ ${lanes.join("\n")}
|
|
|
190837
190708
|
case 256:
|
|
190838
190709
|
if (node.kind === 253 && !node.label) return false;
|
|
190839
190710
|
break;
|
|
190840
|
-
default:
|
|
190841
|
-
if (isIterationStatement(current, false) && !node.label) return false;
|
|
190842
|
-
break;
|
|
190711
|
+
default: if (isIterationStatement(current, false) && !node.label) return false;
|
|
190843
190712
|
}
|
|
190844
190713
|
current = current.parent;
|
|
190845
190714
|
}
|
|
@@ -190957,17 +190826,15 @@ ${lanes.join("\n")}
|
|
|
190957
190826
|
case 105:
|
|
190958
190827
|
if (escapedText !== "target") return grammarErrorOnNode(node.name, Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, unescapeLeadingUnderscores(node.name.escapedText), tokenToString(node.keywordToken), "target");
|
|
190959
190828
|
break;
|
|
190960
|
-
case 102:
|
|
190961
|
-
|
|
190962
|
-
|
|
190963
|
-
if (
|
|
190964
|
-
|
|
190965
|
-
|
|
190966
|
-
|
|
190967
|
-
return grammarErrorOnNode(node.name, Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, unescapeLeadingUnderscores(node.name.escapedText), tokenToString(node.keywordToken), "meta");
|
|
190968
|
-
}
|
|
190829
|
+
case 102: if (escapedText !== "meta") {
|
|
190830
|
+
const isCallee = isCallExpression(node.parent) && node.parent.expression === node;
|
|
190831
|
+
if (escapedText === "defer") {
|
|
190832
|
+
if (!isCallee) return grammarErrorAtPos(node, node.end, 0, Diagnostics._0_expected, "(");
|
|
190833
|
+
} else {
|
|
190834
|
+
if (isCallee) return grammarErrorOnNode(node.name, Diagnostics._0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer, unescapeLeadingUnderscores(node.name.escapedText));
|
|
190835
|
+
return grammarErrorOnNode(node.name, Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, unescapeLeadingUnderscores(node.name.escapedText), tokenToString(node.keywordToken), "meta");
|
|
190969
190836
|
}
|
|
190970
|
-
|
|
190837
|
+
}
|
|
190971
190838
|
}
|
|
190972
190839
|
}
|
|
190973
190840
|
function hasParseDiagnostics(sourceFile) {
|
|
@@ -192733,21 +192600,19 @@ ${lanes.join("\n")}
|
|
|
192733
192600
|
case 263:
|
|
192734
192601
|
if (hasSyntacticModifier(node, 32)) addExportedFunctionDeclaration(node, void 0, hasSyntacticModifier(node, 2048));
|
|
192735
192602
|
break;
|
|
192736
|
-
case 264:
|
|
192737
|
-
if (
|
|
192738
|
-
|
|
192739
|
-
|
|
192740
|
-
hasExportDefault = true;
|
|
192741
|
-
}
|
|
192742
|
-
} else {
|
|
192743
|
-
const name = node.name;
|
|
192744
|
-
if (name && !uniqueExports.get(idText(name))) {
|
|
192745
|
-
multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name);
|
|
192746
|
-
uniqueExports.set(idText(name), true);
|
|
192747
|
-
exportedNames = append(exportedNames, name);
|
|
192748
|
-
}
|
|
192603
|
+
case 264: if (hasSyntacticModifier(node, 32)) if (hasSyntacticModifier(node, 2048)) {
|
|
192604
|
+
if (!hasExportDefault) {
|
|
192605
|
+
multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), context.factory.getDeclarationName(node));
|
|
192606
|
+
hasExportDefault = true;
|
|
192749
192607
|
}
|
|
192750
|
-
|
|
192608
|
+
} else {
|
|
192609
|
+
const name = node.name;
|
|
192610
|
+
if (name && !uniqueExports.get(idText(name))) {
|
|
192611
|
+
multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name);
|
|
192612
|
+
uniqueExports.set(idText(name), true);
|
|
192613
|
+
exportedNames = append(exportedNames, name);
|
|
192614
|
+
}
|
|
192615
|
+
}
|
|
192751
192616
|
}
|
|
192752
192617
|
const externalHelpersImportDeclaration = createExternalHelpersImportDeclarationIfNeeded(context.factory, context.getEmitHelperFactory(), sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar, hasImportDefault);
|
|
192753
192618
|
if (externalHelpersImportDeclaration) externalImports.unshift(externalHelpersImportDeclaration);
|
|
@@ -193591,7 +193456,6 @@ ${lanes.join("\n")}
|
|
|
193591
193456
|
if (hasSyntacticModifier(node, 128)) break;
|
|
193592
193457
|
if (node.name) recordEmittedDeclarationInScope(node);
|
|
193593
193458
|
else Debug.assert(node.kind === 264 || hasSyntacticModifier(node, 2048));
|
|
193594
|
-
break;
|
|
193595
193459
|
}
|
|
193596
193460
|
}
|
|
193597
193461
|
function visitor(node) {
|
|
@@ -193633,7 +193497,6 @@ ${lanes.join("\n")}
|
|
|
193633
193497
|
Debug.assertNode(parsed, isExportDeclaration);
|
|
193634
193498
|
if (node.exportClause !== parsed.exportClause) return true;
|
|
193635
193499
|
if (node.attributes !== parsed.attributes) return true;
|
|
193636
|
-
break;
|
|
193637
193500
|
}
|
|
193638
193501
|
return false;
|
|
193639
193502
|
}
|
|
@@ -194655,9 +194518,7 @@ ${lanes.join("\n")}
|
|
|
194655
194518
|
case 173: return transformFieldInitializer(node);
|
|
194656
194519
|
case 178:
|
|
194657
194520
|
case 179: return classElementVisitor(node);
|
|
194658
|
-
default:
|
|
194659
|
-
Debug.assertMissingNode(node, "Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");
|
|
194660
|
-
break;
|
|
194521
|
+
default: Debug.assertMissingNode(node, "Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");
|
|
194661
194522
|
}
|
|
194662
194523
|
}
|
|
194663
194524
|
function visitPrivateIdentifier(node) {
|
|
@@ -196425,7 +196286,6 @@ ${lanes.join("\n")}
|
|
|
196425
196286
|
classThis = grandparent.classThis;
|
|
196426
196287
|
classSuper = grandparent.classSuper;
|
|
196427
196288
|
}
|
|
196428
|
-
break;
|
|
196429
196289
|
}
|
|
196430
196290
|
}
|
|
196431
196291
|
function enterClass(classInfo2) {
|
|
@@ -197638,9 +197498,7 @@ ${lanes.join("\n")}
|
|
|
197638
197498
|
case 170:
|
|
197639
197499
|
case 209:
|
|
197640
197500
|
case 261: break;
|
|
197641
|
-
case 80:
|
|
197642
|
-
if (lexicalArgumentsBinding && resolver.isArgumentsLocalBinding(node)) return lexicalArgumentsBinding;
|
|
197643
|
-
break;
|
|
197501
|
+
case 80: if (lexicalArgumentsBinding && resolver.isArgumentsLocalBinding(node)) return lexicalArgumentsBinding;
|
|
197644
197502
|
}
|
|
197645
197503
|
return visitEachChild(node, argumentsVisitor, context);
|
|
197646
197504
|
}
|
|
@@ -198734,15 +198592,13 @@ ${lanes.join("\n")}
|
|
|
198734
198592
|
} else thisArg = rightExpression;
|
|
198735
198593
|
rightExpression = segment.kind === 212 ? factory2.createPropertyAccessExpression(rightExpression, visitNode(segment.name, visitor, isIdentifier)) : factory2.createElementAccessExpression(rightExpression, visitNode(segment.argumentExpression, visitor, isExpression));
|
|
198736
198594
|
break;
|
|
198737
|
-
case 214:
|
|
198738
|
-
if (
|
|
198739
|
-
|
|
198740
|
-
|
|
198741
|
-
|
|
198742
|
-
|
|
198743
|
-
|
|
198744
|
-
} else rightExpression = factory2.createCallExpression(rightExpression, void 0, visitNodes2(segment.arguments, visitor, isExpression));
|
|
198745
|
-
break;
|
|
198595
|
+
case 214: if (i === 0 && leftThisArg) {
|
|
198596
|
+
if (!isGeneratedIdentifier(leftThisArg)) {
|
|
198597
|
+
leftThisArg = factory2.cloneNode(leftThisArg);
|
|
198598
|
+
addEmitFlags(leftThisArg, 3072);
|
|
198599
|
+
}
|
|
198600
|
+
rightExpression = factory2.createFunctionCallCall(rightExpression, leftThisArg.kind === 108 ? factory2.createThis() : leftThisArg, visitNodes2(segment.arguments, visitor, isExpression));
|
|
198601
|
+
} else rightExpression = factory2.createCallExpression(rightExpression, void 0, visitNodes2(segment.arguments, visitor, isExpression));
|
|
198746
198602
|
}
|
|
198747
198603
|
setOriginalNode(rightExpression, segment);
|
|
198748
198604
|
}
|
|
@@ -200335,9 +200191,7 @@ ${lanes.join("\n")}
|
|
|
200335
200191
|
break;
|
|
200336
200192
|
case 177:
|
|
200337
200193
|
case 176: break;
|
|
200338
|
-
default:
|
|
200339
|
-
Debug.failBadSyntaxKind(member, currentSourceFile && currentSourceFile.fileName);
|
|
200340
|
-
break;
|
|
200194
|
+
default: Debug.failBadSyntaxKind(member, currentSourceFile && currentSourceFile.fileName);
|
|
200341
200195
|
}
|
|
200342
200196
|
}
|
|
200343
200197
|
function transformSemicolonClassElementToStatement(member) {
|
|
@@ -200825,7 +200679,6 @@ ${lanes.join("\n")}
|
|
|
200825
200679
|
case 251:
|
|
200826
200680
|
const initializer = node.initializer;
|
|
200827
200681
|
if (initializer && initializer.kind === 262) loopInitializer = initializer;
|
|
200828
|
-
break;
|
|
200829
200682
|
}
|
|
200830
200683
|
const loopParameters = [];
|
|
200831
200684
|
const loopOutParameters = [];
|
|
@@ -201024,9 +200877,7 @@ ${lanes.join("\n")}
|
|
|
201024
200877
|
case 305:
|
|
201025
200878
|
expressions.push(transformShorthandPropertyAssignmentToExpression(property, receiver, node.multiLine));
|
|
201026
200879
|
break;
|
|
201027
|
-
default:
|
|
201028
|
-
Debug.failBadSyntaxKind(node);
|
|
201029
|
-
break;
|
|
200880
|
+
default: Debug.failBadSyntaxKind(node);
|
|
201030
200881
|
}
|
|
201031
200882
|
}
|
|
201032
200883
|
}
|
|
@@ -201568,9 +201419,7 @@ ${lanes.join("\n")}
|
|
|
201568
201419
|
case 213:
|
|
201569
201420
|
target = factory2.updateElementAccessExpression(left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), cacheExpression(Debug.checkDefined(visitNode(left.argumentExpression, visitor, isExpression))));
|
|
201570
201421
|
break;
|
|
201571
|
-
default:
|
|
201572
|
-
target = Debug.checkDefined(visitNode(left, visitor, isExpression));
|
|
201573
|
-
break;
|
|
201422
|
+
default: target = Debug.checkDefined(visitNode(left, visitor, isExpression));
|
|
201574
201423
|
}
|
|
201575
201424
|
const operator = node.operatorToken.kind;
|
|
201576
201425
|
if (isCompoundAssignment(operator)) return setTextRange(factory2.createAssignment(target, setTextRange(factory2.createBinaryExpression(cacheExpression(target), getNonAssignmentOperatorForCompoundAssignment(operator), Debug.checkDefined(visitNode(right, visitor, isExpression))), node)), node);
|
|
@@ -202473,12 +202322,10 @@ ${lanes.join("\n")}
|
|
|
202473
202322
|
currentExceptionBlock = block;
|
|
202474
202323
|
} else if (blockAction === 1) currentExceptionBlock = exceptionBlockStack.pop();
|
|
202475
202324
|
break;
|
|
202476
|
-
case 1:
|
|
202477
|
-
if (
|
|
202478
|
-
|
|
202479
|
-
|
|
202480
|
-
} else if (blockAction === 1) withBlockStack.pop();
|
|
202481
|
-
break;
|
|
202325
|
+
case 1: if (blockAction === 0) {
|
|
202326
|
+
if (!withBlockStack) withBlockStack = [];
|
|
202327
|
+
withBlockStack.push(block);
|
|
202328
|
+
} else if (blockAction === 1) withBlockStack.pop();
|
|
202482
202329
|
}
|
|
202483
202330
|
}
|
|
202484
202331
|
}
|
|
@@ -203119,9 +202966,7 @@ ${lanes.join("\n")}
|
|
|
203119
202966
|
case 275:
|
|
203120
202967
|
statements = appendExportsOfDeclaration(statements, seen, namedBindings);
|
|
203121
202968
|
break;
|
|
203122
|
-
case 276:
|
|
203123
|
-
for (const importBinding of namedBindings.elements) statements = appendExportsOfDeclaration(statements, seen, importBinding, true);
|
|
203124
|
-
break;
|
|
202969
|
+
case 276: for (const importBinding of namedBindings.elements) statements = appendExportsOfDeclaration(statements, seen, importBinding, true);
|
|
203125
202970
|
}
|
|
203126
202971
|
return statements;
|
|
203127
202972
|
}
|
|
@@ -203474,7 +203319,6 @@ ${lanes.join("\n")}
|
|
|
203474
203319
|
statements.push(factory2.createExpressionStatement(factory2.createCallExpression(exportFunction, void 0, [factory2.createObjectLiteralExpression(properties, true)])));
|
|
203475
203320
|
} else statements.push(factory2.createExpressionStatement(factory2.createCallExpression(exportFunction, void 0, [factory2.createStringLiteral(moduleExportNameTextUnescaped(entry.exportClause.name)), parameterName])));
|
|
203476
203321
|
else statements.push(factory2.createExpressionStatement(factory2.createCallExpression(exportStarFunction, void 0, [parameterName])));
|
|
203477
|
-
break;
|
|
203478
203322
|
}
|
|
203479
203323
|
}
|
|
203480
203324
|
setters.push(factory2.createFunctionExpression(void 0, void 0, void 0, void 0, [factory2.createParameterDeclaration(void 0, void 0, parameterName)], void 0, factory2.createBlock(statements, true)));
|
|
@@ -203573,9 +203417,7 @@ ${lanes.join("\n")}
|
|
|
203573
203417
|
case 275:
|
|
203574
203418
|
statements = appendExportsOfDeclaration(statements, namedBindings);
|
|
203575
203419
|
break;
|
|
203576
|
-
case 276:
|
|
203577
|
-
for (const importBinding of namedBindings.elements) statements = appendExportsOfDeclaration(statements, importBinding);
|
|
203578
|
-
break;
|
|
203420
|
+
case 276: for (const importBinding of namedBindings.elements) statements = appendExportsOfDeclaration(statements, importBinding);
|
|
203579
203421
|
}
|
|
203580
203422
|
return statements;
|
|
203581
203423
|
}
|
|
@@ -206240,9 +206082,7 @@ ${lanes.join("\n")}
|
|
|
206240
206082
|
case 2:
|
|
206241
206083
|
Debug.assert(isIdentifier(node), "Expected an Identifier node.");
|
|
206242
206084
|
break;
|
|
206243
|
-
case 1:
|
|
206244
|
-
Debug.assert(isExpression(node), "Expected an Expression node.");
|
|
206245
|
-
break;
|
|
206085
|
+
case 1: Debug.assert(isExpression(node), "Expected an Expression node.");
|
|
206246
206086
|
}
|
|
206247
206087
|
switch (node.kind) {
|
|
206248
206088
|
case 308: return printFile(node);
|
|
@@ -206702,9 +206542,7 @@ ${lanes.join("\n")}
|
|
|
206702
206542
|
case 1:
|
|
206703
206543
|
emitPlaceholder(hint, node, snippet);
|
|
206704
206544
|
break;
|
|
206705
|
-
case 0:
|
|
206706
|
-
emitTabStop(hint, node, snippet);
|
|
206707
|
-
break;
|
|
206545
|
+
case 0: emitTabStop(hint, node, snippet);
|
|
206708
206546
|
}
|
|
206709
206547
|
}
|
|
206710
206548
|
function emitPlaceholder(hint, node, snippet) {
|
|
@@ -208446,7 +208284,6 @@ ${lanes.join("\n")}
|
|
|
208446
208284
|
case 8:
|
|
208447
208285
|
writeSpace();
|
|
208448
208286
|
writePunctuation("&");
|
|
208449
|
-
break;
|
|
208450
208287
|
}
|
|
208451
208288
|
}
|
|
208452
208289
|
function emitList(parentNode, children, format, parenthesizerRule, start, count) {
|
|
@@ -208839,9 +208676,7 @@ ${lanes.join("\n")}
|
|
|
208839
208676
|
case 276:
|
|
208840
208677
|
forEach(node.elements, generateNames);
|
|
208841
208678
|
break;
|
|
208842
|
-
case 277:
|
|
208843
|
-
generateNameIfNeeded(node.propertyName || node.name);
|
|
208844
|
-
break;
|
|
208679
|
+
case 277: generateNameIfNeeded(node.propertyName || node.name);
|
|
208845
208680
|
}
|
|
208846
208681
|
}
|
|
208847
208682
|
function generateMemberNames(node) {
|
|
@@ -208854,9 +208689,7 @@ ${lanes.join("\n")}
|
|
|
208854
208689
|
case 175:
|
|
208855
208690
|
case 174:
|
|
208856
208691
|
case 178:
|
|
208857
|
-
case 179:
|
|
208858
|
-
generateNameIfNeeded(node.name);
|
|
208859
|
-
break;
|
|
208692
|
+
case 179: generateNameIfNeeded(node.name);
|
|
208860
208693
|
}
|
|
208861
208694
|
}
|
|
208862
208695
|
function generateNameIfNeeded(name) {
|
|
@@ -208927,7 +208760,6 @@ ${lanes.join("\n")}
|
|
|
208927
208760
|
default:
|
|
208928
208761
|
formattedNameTempFlags ?? (formattedNameTempFlags = /* @__PURE__ */ new Map());
|
|
208929
208762
|
formattedNameTempFlags.set(formattedNameKey, flags);
|
|
208930
|
-
break;
|
|
208931
208763
|
}
|
|
208932
208764
|
}
|
|
208933
208765
|
function makeTempVariableName(flags, reservedInNestedScopes, privateName, prefix, suffix) {
|
|
@@ -211331,12 +211163,10 @@ ${lanes.join("\n")}
|
|
|
211331
211163
|
case 234:
|
|
211332
211164
|
case 286:
|
|
211333
211165
|
case 287:
|
|
211334
|
-
case 216:
|
|
211335
|
-
|
|
211336
|
-
|
|
211337
|
-
|
|
211338
|
-
}
|
|
211339
|
-
break;
|
|
211166
|
+
case 216: if (nodes === parent2.typeArguments) {
|
|
211167
|
+
diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files));
|
|
211168
|
+
return "skip";
|
|
211169
|
+
}
|
|
211340
211170
|
}
|
|
211341
211171
|
}
|
|
211342
211172
|
function checkModifiers(modifiers, isConstValid) {
|
|
@@ -211350,13 +211180,7 @@ ${lanes.join("\n")}
|
|
|
211350
211180
|
case 128:
|
|
211351
211181
|
case 164:
|
|
211352
211182
|
case 103:
|
|
211353
|
-
case 147:
|
|
211354
|
-
diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind)));
|
|
211355
|
-
break;
|
|
211356
|
-
case 126:
|
|
211357
|
-
case 95:
|
|
211358
|
-
case 90:
|
|
211359
|
-
case 129:
|
|
211183
|
+
case 147: diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind)));
|
|
211360
211184
|
}
|
|
211361
211185
|
}
|
|
211362
211186
|
function createDiagnosticForNodeArray2(nodes, message, ...args) {
|
|
@@ -215195,10 +215019,8 @@ ${lanes.join("\n")}
|
|
|
215195
215019
|
case 99:
|
|
215196
215020
|
if (file.packageJsonScope) (result ?? (result = [])).push(chainDiagnosticMessages(void 0, Diagnostics.File_is_ECMAScript_module_because_0_has_field_type_with_value_module, toFileName(last(file.packageJsonLocations), fileNameConvertor)));
|
|
215197
215021
|
break;
|
|
215198
|
-
case 1:
|
|
215199
|
-
|
|
215200
|
-
else if ((_a = file.packageJsonLocations) == null ? void 0 : _a.length) (result ?? (result = [])).push(chainDiagnosticMessages(void 0, Diagnostics.File_is_CommonJS_module_because_package_json_was_not_found));
|
|
215201
|
-
break;
|
|
215022
|
+
case 1: if (file.packageJsonScope) (result ?? (result = [])).push(chainDiagnosticMessages(void 0, file.packageJsonScope.contents.packageJsonContent.type ? Diagnostics.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module : Diagnostics.File_is_CommonJS_module_because_0_does_not_have_field_type, toFileName(last(file.packageJsonLocations), fileNameConvertor)));
|
|
215023
|
+
else if ((_a = file.packageJsonLocations) == null ? void 0 : _a.length) (result ?? (result = [])).push(chainDiagnosticMessages(void 0, Diagnostics.File_is_CommonJS_module_because_package_json_was_not_found));
|
|
215202
215024
|
}
|
|
215203
215025
|
return result;
|
|
215204
215026
|
}
|
|
@@ -215403,12 +215225,10 @@ ${lanes.join("\n")}
|
|
|
215403
215225
|
switch (ch) {
|
|
215404
215226
|
case 10: if (pos && text.charCodeAt(pos - 1) === 13) pos--;
|
|
215405
215227
|
case 13: break;
|
|
215406
|
-
default:
|
|
215407
|
-
|
|
215408
|
-
|
|
215409
|
-
|
|
215410
|
-
}
|
|
215411
|
-
break;
|
|
215228
|
+
default: if (ch < 127 || !isLineBreak(ch)) {
|
|
215229
|
+
lineStart = pos;
|
|
215230
|
+
continue;
|
|
215231
|
+
}
|
|
215412
215232
|
}
|
|
215413
215233
|
const line = text.substring(lineStart, lineEnd);
|
|
215414
215234
|
if (line.match(sourceMapCommentRegExp)) {
|
|
@@ -215864,9 +215684,7 @@ ${lanes.join("\n")}
|
|
|
215864
215684
|
case 2:
|
|
215865
215685
|
reloadConfigFile();
|
|
215866
215686
|
break;
|
|
215867
|
-
default:
|
|
215868
|
-
synchronizeProgram();
|
|
215869
|
-
break;
|
|
215687
|
+
default: synchronizeProgram();
|
|
215870
215688
|
}
|
|
215871
215689
|
return getCurrentBuilderProgram();
|
|
215872
215690
|
}
|
|
@@ -216553,8 +216371,6 @@ ${lanes.join("\n")}
|
|
|
216553
216371
|
case 2:
|
|
216554
216372
|
queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, Debug.checkDefined(buildResult));
|
|
216555
216373
|
step++;
|
|
216556
|
-
break;
|
|
216557
|
-
default:
|
|
216558
216374
|
}
|
|
216559
216375
|
Debug.assert(step > currentStep);
|
|
216560
216376
|
}
|
|
@@ -217004,9 +216820,7 @@ ${lanes.join("\n")}
|
|
|
217004
216820
|
newerProjectName: project
|
|
217005
216821
|
});
|
|
217006
216822
|
break;
|
|
217007
|
-
case 12:
|
|
217008
|
-
if (toResolvedConfigFilePath(state, resolveProjectName(state, status.upstreamProjectName)) === projectPath) clearProjectStatus(state, nextProjectPath);
|
|
217009
|
-
break;
|
|
216823
|
+
case 12: if (toResolvedConfigFilePath(state, resolveProjectName(state, status.upstreamProjectName)) === projectPath) clearProjectStatus(state, nextProjectPath);
|
|
217010
216824
|
}
|
|
217011
216825
|
addProjToQueue(state, nextProjectPath, 0);
|
|
217012
216826
|
break;
|
|
@@ -217290,9 +217104,6 @@ ${lanes.join("\n")}
|
|
|
217290
217104
|
case 0: return reportStatus(state, Diagnostics.Project_0_is_out_of_date_because_1, relName(state, configFileName), status.reason);
|
|
217291
217105
|
case 14: return reportStatus(state, Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2, relName(state, configFileName), status.version, version);
|
|
217292
217106
|
case 17: return reportStatus(state, Diagnostics.Project_0_is_being_forcibly_rebuilt, relName(state, configFileName));
|
|
217293
|
-
case 16:
|
|
217294
|
-
case 13: break;
|
|
217295
|
-
default:
|
|
217296
217107
|
}
|
|
217297
217108
|
}
|
|
217298
217109
|
function verboseReportProjectStatus(state, configFileName, status) {
|
|
@@ -218520,9 +218331,7 @@ ${lanes.join("\n")}
|
|
|
218520
218331
|
typeKind = 163;
|
|
218521
218332
|
break;
|
|
218522
218333
|
case 112:
|
|
218523
|
-
case 97:
|
|
218524
|
-
typeKind = 136;
|
|
218525
|
-
break;
|
|
218334
|
+
case 97: typeKind = 136;
|
|
218526
218335
|
}
|
|
218527
218336
|
if (typeKind) return typeFromPrimitiveLiteral(primitiveNode, typeKind, context, isConstContext || preserveLiterals, requiresAddingUndefined);
|
|
218528
218337
|
}
|
|
@@ -218617,9 +218426,7 @@ ${lanes.join("\n")}
|
|
|
218617
218426
|
newProp = typeFromObjectLiteralPropertyAssignment(prop, name, context, isConstContext);
|
|
218618
218427
|
break;
|
|
218619
218428
|
case 179:
|
|
218620
|
-
case 178:
|
|
218621
|
-
newProp = typeFromObjectLiteralAccessor(prop, name, context);
|
|
218622
|
-
break;
|
|
218429
|
+
case 178: newProp = typeFromObjectLiteralAccessor(prop, name, context);
|
|
218623
218430
|
}
|
|
218624
218431
|
if (newProp) {
|
|
218625
218432
|
setCommentRange(newProp, prop);
|
|
@@ -221254,7 +221061,6 @@ ${lanes.join("\n")}
|
|
|
221254
221061
|
case 10:
|
|
221255
221062
|
const parsedBigInt = parseBigInt(endsWith(expression.text, "n") ? expression.text.slice(0, -1) : expression.text);
|
|
221256
221063
|
if (parsedBigInt) existingBigInts.add(pseudoBigIntToString(parsedBigInt));
|
|
221257
|
-
break;
|
|
221258
221064
|
}
|
|
221259
221065
|
else {
|
|
221260
221066
|
const symbol = checker.getSymbolAtLocation(clause.expression);
|
|
@@ -222178,7 +221984,6 @@ ${lanes.join("\n")}
|
|
|
222178
221984
|
processElement(tag.typeExpression);
|
|
222179
221985
|
pos = tag.end;
|
|
222180
221986
|
commentStart = ((_h = tag.typeExpression) == null ? void 0 : _h.end) || commentStart;
|
|
222181
|
-
break;
|
|
222182
221987
|
}
|
|
222183
221988
|
if (typeof tag.comment === "object") pushCommentRange(tag.comment.pos, tag.comment.end - tag.comment.pos);
|
|
222184
221989
|
else if (typeof tag.comment === "string") pushCommentRange(commentStart, tag.end - commentStart);
|
|
@@ -222294,9 +222099,7 @@ ${lanes.join("\n")}
|
|
|
222294
222099
|
case 286:
|
|
222295
222100
|
if (token.parent.tagName === token) return 21;
|
|
222296
222101
|
break;
|
|
222297
|
-
case 292:
|
|
222298
|
-
if (token.parent.name === token) return 22;
|
|
222299
|
-
break;
|
|
222102
|
+
case 292: if (token.parent.name === token) return 22;
|
|
222300
222103
|
}
|
|
222301
222104
|
}
|
|
222302
222105
|
function classifyTokenType(tokenKind, token) {
|
|
@@ -223439,11 +223242,9 @@ ${lanes.join("\n")}
|
|
|
223439
223242
|
case 19:
|
|
223440
223243
|
if (length(stack)) stack.push(token);
|
|
223441
223244
|
break;
|
|
223442
|
-
case 20:
|
|
223443
|
-
if (
|
|
223444
|
-
|
|
223445
|
-
} else stack.pop();
|
|
223446
|
-
break;
|
|
223245
|
+
case 20: if (length(stack)) if (lastOrUndefined(stack) === 16) {
|
|
223246
|
+
if (scanner.reScanTemplateToken(false) === 18) stack.pop();
|
|
223247
|
+
} else stack.pop();
|
|
223447
223248
|
}
|
|
223448
223249
|
}
|
|
223449
223250
|
nextToken();
|
|
@@ -226647,7 +226448,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
226647
226448
|
const callOrNewExpression2 = tryCast(elementAccessExpression.parent, isCallOrNewExpression);
|
|
226648
226449
|
if (callOrNewExpression2 && callOrNewExpression2.expression === elementAccessExpression) return callOrNewExpression2;
|
|
226649
226450
|
}
|
|
226650
|
-
break;
|
|
226651
226451
|
}
|
|
226652
226452
|
}
|
|
226653
226453
|
}
|
|
@@ -226663,7 +226463,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
226663
226463
|
case 213:
|
|
226664
226464
|
const elementAccessExpression = tryCast(parent2, isElementAccessExpression);
|
|
226665
226465
|
if (elementAccessExpression && elementAccessExpression.expression === reference) return elementAccessExpression;
|
|
226666
|
-
break;
|
|
226667
226466
|
}
|
|
226668
226467
|
}
|
|
226669
226468
|
}
|
|
@@ -227578,9 +227377,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
227578
227377
|
case 297:
|
|
227579
227378
|
permittedJumps |= 1;
|
|
227580
227379
|
break;
|
|
227581
|
-
default:
|
|
227582
|
-
if (isIterationStatement(node2, false)) permittedJumps |= 3;
|
|
227583
|
-
break;
|
|
227380
|
+
default: if (isIterationStatement(node2, false)) permittedJumps |= 3;
|
|
227584
227381
|
}
|
|
227585
227382
|
switch (node2.kind) {
|
|
227586
227383
|
case 198:
|
|
@@ -227613,9 +227410,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
227613
227410
|
if (permittedJumps & 4) rangeFacts |= 1;
|
|
227614
227411
|
else (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.cannotExtractRangeContainingConditionalReturnStatement));
|
|
227615
227412
|
break;
|
|
227616
|
-
default:
|
|
227617
|
-
forEachChild(node2, visit);
|
|
227618
|
-
break;
|
|
227413
|
+
default: forEachChild(node2, visit);
|
|
227619
227414
|
}
|
|
227620
227415
|
permittedJumps = savedPermittedJumps;
|
|
227621
227416
|
}
|
|
@@ -230765,9 +230560,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
230765
230560
|
case 227:
|
|
230766
230561
|
if (node.parent.operatorToken.kind === 28) return textSpan(node);
|
|
230767
230562
|
break;
|
|
230768
|
-
case 220:
|
|
230769
|
-
if (node.parent.body === node) return textSpan(node);
|
|
230770
|
-
break;
|
|
230563
|
+
case 220: if (node.parent.body === node) return textSpan(node);
|
|
230771
230564
|
}
|
|
230772
230565
|
switch (node.parent.kind) {
|
|
230773
230566
|
case 304:
|
|
@@ -232062,9 +231855,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
232062
231855
|
break;
|
|
232063
231856
|
case "array":
|
|
232064
231857
|
case "date":
|
|
232065
|
-
case "promise":
|
|
232066
|
-
text = text[0].toUpperCase() + text.slice(1);
|
|
232067
|
-
break;
|
|
231858
|
+
case "promise": text = text[0].toUpperCase() + text.slice(1);
|
|
232068
231859
|
}
|
|
232069
231860
|
name = factory.createIdentifier(text);
|
|
232070
231861
|
if ((text === "Array" || text === "Promise") && !node.typeArguments) args = factory.createNodeArray([factory.createTypeReferenceNode("any", emptyArray)]);
|
|
@@ -232654,9 +232445,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
232654
232445
|
case 272:
|
|
232655
232446
|
changes.replaceNode(importingFile, importNode, makeImport(importNode.name, void 0, moduleSpecifier, quotePreference));
|
|
232656
232447
|
break;
|
|
232657
|
-
case 214:
|
|
232658
|
-
if (isRequireCall(importNode, false)) changes.replaceNode(importingFile, importNode, factory.createPropertyAccessExpression(getSynthesizedDeepClone(importNode), "default"));
|
|
232659
|
-
break;
|
|
232448
|
+
case 214: if (isRequireCall(importNode, false)) changes.replaceNode(importingFile, importNode, factory.createPropertyAccessExpression(getSynthesizedDeepClone(importNode), "default"));
|
|
232660
232449
|
}
|
|
232661
232450
|
}
|
|
232662
232451
|
}
|
|
@@ -233536,7 +233325,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
233536
233325
|
name: symbolName2,
|
|
233537
233326
|
addAsTypeOnly
|
|
233538
233327
|
};
|
|
233539
|
-
break;
|
|
233540
233328
|
}
|
|
233541
233329
|
break;
|
|
233542
233330
|
}
|
|
@@ -237432,9 +237220,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
237432
237220
|
break;
|
|
237433
237221
|
case 263:
|
|
237434
237222
|
case 175:
|
|
237435
|
-
case 174:
|
|
237436
|
-
searchToken = containingFunction.name;
|
|
237437
|
-
break;
|
|
237223
|
+
case 174: searchToken = containingFunction.name;
|
|
237438
237224
|
}
|
|
237439
237225
|
if (!searchToken) return;
|
|
237440
237226
|
return getReferences(searchToken, program, cancellationToken);
|
|
@@ -237606,9 +237392,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
237606
237392
|
case 55:
|
|
237607
237393
|
usage.isNumber = true;
|
|
237608
237394
|
break;
|
|
237609
|
-
case 40:
|
|
237610
|
-
usage.isNumberOrString = true;
|
|
237611
|
-
break;
|
|
237395
|
+
case 40: usage.isNumberOrString = true;
|
|
237612
237396
|
}
|
|
237613
237397
|
}
|
|
237614
237398
|
function inferTypeFromBinaryExpression(node, parent2, usage) {
|
|
@@ -237665,12 +237449,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
237665
237449
|
if (node === parent2.left) usage.isString = true;
|
|
237666
237450
|
break;
|
|
237667
237451
|
case 57:
|
|
237668
|
-
case 61:
|
|
237669
|
-
if (node === parent2.left && (node.parent.parent.kind === 261 || isAssignmentExpression(node.parent.parent, true))) addCandidateType(usage, checker.getTypeAtLocation(parent2.right));
|
|
237670
|
-
break;
|
|
237671
|
-
case 56:
|
|
237672
|
-
case 28:
|
|
237673
|
-
case 104: break;
|
|
237452
|
+
case 61: if (node === parent2.left && (node.parent.parent.kind === 261 || isAssignmentExpression(node.parent.parent, true))) addCandidateType(usage, checker.getTypeAtLocation(parent2.right));
|
|
237674
237453
|
}
|
|
237675
237454
|
}
|
|
237676
237455
|
function inferTypeFromSwitchStatementLabel(parent2, usage) {
|
|
@@ -238054,7 +237833,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
238054
237833
|
Debug.assert(declarations.length === signatures.length, "Declarations and signatures should match count");
|
|
238055
237834
|
addClassElement(createMethodImplementingSignatures(checker, context, enclosingDeclaration, signatures, createName(declarationName), optional && !!(preserveOptional & 1), modifiers, quotePreference, body));
|
|
238056
237835
|
}
|
|
238057
|
-
break;
|
|
238058
237836
|
}
|
|
238059
237837
|
function outputMethod(quotePreference2, signature, modifiers2, name, body2) {
|
|
238060
237838
|
const method = createSignatureDeclarationFromSignature(175, context, quotePreference2, signature, body2, name, modifiers2, optional && !!(preserveOptional & 1), enclosingDeclaration, importAdder);
|
|
@@ -239589,9 +239367,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
239589
239367
|
case "number":
|
|
239590
239368
|
elements.push(type.value < 0 ? factory.createPrefixUnaryExpression(41, factory.createNumericLiteral(-type.value)) : factory.createNumericLiteral(type.value));
|
|
239591
239369
|
break;
|
|
239592
|
-
case "string":
|
|
239593
|
-
elements.push(factory.createStringLiteral(type.value, quotePreference === 0));
|
|
239594
|
-
break;
|
|
239370
|
+
case "string": elements.push(factory.createStringLiteral(type.value, quotePreference === 0));
|
|
239595
239371
|
}
|
|
239596
239372
|
if (elements.length === 0) return;
|
|
239597
239373
|
const newClauses = map(elements, (element) => factory.createCaseClause(element, []));
|
|
@@ -240655,9 +240431,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
240655
240431
|
case 32:
|
|
240656
240432
|
if (currentToken.parent.kind === 285 || currentToken.parent.kind === 287) location = currentToken;
|
|
240657
240433
|
break;
|
|
240658
|
-
case 44:
|
|
240659
|
-
if (currentToken.parent.kind === 286) location = currentToken;
|
|
240660
|
-
break;
|
|
240434
|
+
case 44: if (currentToken.parent.kind === 286) location = currentToken;
|
|
240661
240435
|
}
|
|
240662
240436
|
switch (parent2.kind) {
|
|
240663
240437
|
case 288:
|
|
@@ -240693,7 +240467,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
240693
240467
|
isJsxIdentifierExpected = true;
|
|
240694
240468
|
if (parent2 !== previousToken.parent && !parent2.initializer && findChildOfKind(parent2, 64, sourceFile)) isJsxInitializer = previousToken;
|
|
240695
240469
|
}
|
|
240696
|
-
break;
|
|
240697
240470
|
}
|
|
240698
240471
|
}
|
|
240699
240472
|
}
|
|
@@ -241392,9 +241165,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
241392
241165
|
case "static":
|
|
241393
241166
|
classElementModifierFlags = classElementModifierFlags | 256;
|
|
241394
241167
|
break;
|
|
241395
|
-
case "override":
|
|
241396
|
-
classElementModifierFlags = classElementModifierFlags | 16;
|
|
241397
|
-
break;
|
|
241168
|
+
case "override": classElementModifierFlags = classElementModifierFlags | 16;
|
|
241398
241169
|
}
|
|
241399
241170
|
if (isClassStaticBlockDeclaration(classElement)) classElementModifierFlags |= 256;
|
|
241400
241171
|
if (!(classElementModifierFlags & 2)) {
|
|
@@ -241467,7 +241238,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
241467
241238
|
case 20:
|
|
241468
241239
|
if (parent2 && parent2.kind === 295 && parent2.parent && parent2.parent.kind === 292) return parent2.parent.parent.parent;
|
|
241469
241240
|
if (parent2 && parent2.kind === 294) return parent2.parent.parent;
|
|
241470
|
-
break;
|
|
241471
241241
|
}
|
|
241472
241242
|
}
|
|
241473
241243
|
}
|
|
@@ -241887,9 +241657,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
241887
241657
|
break;
|
|
241888
241658
|
case 27:
|
|
241889
241659
|
case 28:
|
|
241890
|
-
case 80:
|
|
241891
|
-
if (parent2.kind === 172 && isTypeLiteralNode(parent2.parent)) return parent2.parent;
|
|
241892
|
-
break;
|
|
241660
|
+
case 80: if (parent2.kind === 172 && isTypeLiteralNode(parent2.parent)) return parent2.parent;
|
|
241893
241661
|
}
|
|
241894
241662
|
}
|
|
241895
241663
|
function getConstraintOfTypeArgumentProperty(node, checker) {
|
|
@@ -244072,10 +243840,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
244072
243840
|
case 0:
|
|
244073
243841
|
indirectSearch = state.createSearch(exportLocation, exportSymbol, 1);
|
|
244074
243842
|
break;
|
|
244075
|
-
case 1:
|
|
244076
|
-
indirectSearch = state.options.use === 2 ? void 0 : state.createSearch(exportLocation, exportSymbol, 1, { text: "default" });
|
|
244077
|
-
break;
|
|
244078
|
-
case 2: break;
|
|
243843
|
+
case 1: indirectSearch = state.options.use === 2 ? void 0 : state.createSearch(exportLocation, exportSymbol, 1, { text: "default" });
|
|
244079
243844
|
}
|
|
244080
243845
|
if (indirectSearch) for (const indirectUser of indirectUsers) searchForName(indirectUser, indirectSearch, state);
|
|
244081
243846
|
}
|
|
@@ -244785,7 +244550,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
244785
244550
|
case 84:
|
|
244786
244551
|
const switchStatement = findAncestor(node.parent, isSwitchStatement);
|
|
244787
244552
|
if (switchStatement) return [createDefinitionInfoFromSwitch(switchStatement, sourceFile)];
|
|
244788
|
-
break;
|
|
244789
244553
|
}
|
|
244790
244554
|
let findFunctionDecl;
|
|
244791
244555
|
switch (node.kind) {
|
|
@@ -250966,9 +250730,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
250966
250730
|
}
|
|
250967
250731
|
break;
|
|
250968
250732
|
case 23:
|
|
250969
|
-
case 24:
|
|
250970
|
-
if (container.kind !== 201) return false;
|
|
250971
|
-
break;
|
|
250733
|
+
case 24: if (container.kind !== 201) return false;
|
|
250972
250734
|
}
|
|
250973
250735
|
return nodeStartLine !== line && !(hasDecorators(node) && kind === getFirstNonDecoratorTokenOfNode(node));
|
|
250974
250736
|
}
|
|
@@ -251122,9 +250884,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
251122
250884
|
if (indentNextTokenOrTrivia && triviaInRange) indentSingleLine(triviaItem);
|
|
251123
250885
|
indentNextTokenOrTrivia = false;
|
|
251124
250886
|
break;
|
|
251125
|
-
case 4:
|
|
251126
|
-
indentNextTokenOrTrivia = true;
|
|
251127
|
-
break;
|
|
250887
|
+
case 4: indentNextTokenOrTrivia = true;
|
|
251128
250888
|
}
|
|
251129
250889
|
}
|
|
251130
250890
|
return indentNextTokenOrTrivia;
|
|
@@ -251729,9 +251489,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
251729
251489
|
case 239:
|
|
251730
251490
|
if (childKind === 188 || childKind === 190 || childKind === 201) return false;
|
|
251731
251491
|
break;
|
|
251732
|
-
case 259:
|
|
251733
|
-
if (childKind === 242) return false;
|
|
251734
|
-
break;
|
|
251492
|
+
case 259: if (childKind === 242) return false;
|
|
251735
251493
|
}
|
|
251736
251494
|
return indentByDefault;
|
|
251737
251495
|
}
|
|
@@ -255334,9 +255092,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
255334
255092
|
this.containingProjects.pop();
|
|
255335
255093
|
}
|
|
255336
255094
|
break;
|
|
255337
|
-
default:
|
|
255338
|
-
if (orderedRemoveItem(this.containingProjects, project)) project.onFileAddedOrRemoved(this.isSymlink());
|
|
255339
|
-
break;
|
|
255095
|
+
default: if (orderedRemoveItem(this.containingProjects, project)) project.onFileAddedOrRemoved(this.isSymlink());
|
|
255340
255096
|
}
|
|
255341
255097
|
}
|
|
255342
255098
|
detachAllProjects() {
|
|
@@ -255515,7 +255271,6 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
255515
255271
|
case 7:
|
|
255516
255272
|
result.deferred += 1;
|
|
255517
255273
|
result.deferredSize += fileSize;
|
|
255518
|
-
break;
|
|
255519
255274
|
}
|
|
255520
255275
|
}
|
|
255521
255276
|
return result;
|
|
@@ -257327,8 +257082,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
257327
257082
|
function isProjectDeferredClose(project) {
|
|
257328
257083
|
return isConfiguredProject(project) && !!project.deferredClose;
|
|
257329
257084
|
}
|
|
257330
|
-
var maxProgramSizeForNonTsFiles =
|
|
257331
|
-
var maxFileSize =
|
|
257085
|
+
var maxProgramSizeForNonTsFiles = 20971520;
|
|
257086
|
+
var maxFileSize = 4194304;
|
|
257332
257087
|
var ProjectsUpdatedInBackgroundEvent = "projectsUpdatedInBackground";
|
|
257333
257088
|
var ProjectLoadingStartEvent = "projectLoadingStart";
|
|
257334
257089
|
var ProjectLoadingFinishEvent = "projectLoadingFinish";
|
|
@@ -258356,9 +258111,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
258356
258111
|
this.configuredProjects.delete(project.canonicalConfigFilePath);
|
|
258357
258112
|
this.projectToSizeMap.delete(project.canonicalConfigFilePath);
|
|
258358
258113
|
break;
|
|
258359
|
-
case 0:
|
|
258360
|
-
unorderedRemoveItem(this.inferredProjects, project);
|
|
258361
|
-
break;
|
|
258114
|
+
case 0: unorderedRemoveItem(this.inferredProjects, project);
|
|
258362
258115
|
}
|
|
258363
258116
|
}
|
|
258364
258117
|
/** @internal */
|
|
@@ -261314,9 +261067,7 @@ ${json}${newLine}`;
|
|
|
261314
261067
|
case "UpdateGraph":
|
|
261315
261068
|
this.addPerformanceData("updateGraphDurationMs", event.durationMs);
|
|
261316
261069
|
break;
|
|
261317
|
-
case "CreatePackageJsonAutoImportProvider":
|
|
261318
|
-
this.addPerformanceData("createAutoImportProviderProgramDurationMs", event.durationMs);
|
|
261319
|
-
break;
|
|
261070
|
+
case "CreatePackageJsonAutoImportProvider": this.addPerformanceData("createAutoImportProviderProgramDurationMs", event.durationMs);
|
|
261320
261071
|
}
|
|
261321
261072
|
}
|
|
261322
261073
|
defaultEventHandler(event) {
|
|
@@ -261352,12 +261103,10 @@ ${json}${newLine}`;
|
|
|
261352
261103
|
languageServiceEnabled: event.data.languageServiceEnabled
|
|
261353
261104
|
}, event.eventName);
|
|
261354
261105
|
break;
|
|
261355
|
-
case ProjectInfoTelemetryEvent:
|
|
261356
|
-
|
|
261357
|
-
|
|
261358
|
-
|
|
261359
|
-
}, "telemetry");
|
|
261360
|
-
break;
|
|
261106
|
+
case ProjectInfoTelemetryEvent: this.event({
|
|
261107
|
+
telemetryEventName: event.eventName,
|
|
261108
|
+
payload: event.data
|
|
261109
|
+
}, "telemetry");
|
|
261361
261110
|
}
|
|
261362
261111
|
}
|
|
261363
261112
|
projectsUpdatedInBackgroundEvent(openFiles) {
|
|
@@ -263353,7 +263102,6 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
263353
263102
|
case 5:
|
|
263354
263103
|
this.goSubtree = false;
|
|
263355
263104
|
if (this.state !== 1) currentNode.add(lineCollection);
|
|
263356
|
-
break;
|
|
263357
263105
|
}
|
|
263358
263106
|
if (this.goSubtree) this.stack.push(child);
|
|
263359
263107
|
}
|
|
@@ -263947,10 +263695,7 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
263947
263695
|
this.projectService.updateTypingsForProject(response);
|
|
263948
263696
|
this.event(response, "setTypings");
|
|
263949
263697
|
break;
|
|
263950
|
-
case ActionWatchTypingLocations:
|
|
263951
|
-
this.projectService.watchTypingLocations(response);
|
|
263952
|
-
break;
|
|
263953
|
-
default:
|
|
263698
|
+
case ActionWatchTypingLocations: this.projectService.watchTypingLocations(response);
|
|
263954
263699
|
}
|
|
263955
263700
|
}
|
|
263956
263701
|
scheduleRequest(request) {
|
|
@@ -265686,17 +265431,15 @@ var require_snippetForFunctionCall = /* @__PURE__ */ __commonJSMin(((exports) =>
|
|
|
265686
265431
|
hasOptionalParameters = hasOptionalParameters || nameIsFollowedByOptionalIndicator;
|
|
265687
265432
|
}
|
|
265688
265433
|
break;
|
|
265689
|
-
case PConst.DisplayPartKind.punctuation:
|
|
265690
|
-
|
|
265691
|
-
|
|
265692
|
-
|
|
265693
|
-
|
|
265694
|
-
|
|
265695
|
-
|
|
265696
|
-
|
|
265697
|
-
|
|
265698
|
-
else if (part.text === "}") --braceCount;
|
|
265699
|
-
break;
|
|
265434
|
+
case PConst.DisplayPartKind.punctuation: if (part.text === "(") ++parenCount;
|
|
265435
|
+
else if (part.text === ")") {
|
|
265436
|
+
--parenCount;
|
|
265437
|
+
if (parenCount <= 0 && isInMethod) break outer;
|
|
265438
|
+
} else if (part.text === "..." && parenCount === 1) {
|
|
265439
|
+
hasOptionalParameters = true;
|
|
265440
|
+
break outer;
|
|
265441
|
+
} else if (part.text === "{") ++braceCount;
|
|
265442
|
+
else if (part.text === "}") --braceCount;
|
|
265700
265443
|
}
|
|
265701
265444
|
}
|
|
265702
265445
|
return {
|
|
@@ -266871,9 +266614,7 @@ var require_linkedMap = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
266871
266614
|
case Touch.Last:
|
|
266872
266615
|
this.addItemLast(item);
|
|
266873
266616
|
break;
|
|
266874
|
-
default:
|
|
266875
|
-
this.addItemLast(item);
|
|
266876
|
-
break;
|
|
266617
|
+
default: this.addItemLast(item);
|
|
266877
266618
|
}
|
|
266878
266619
|
this._map.set(key, item);
|
|
266879
266620
|
this._size++;
|
|
@@ -268723,7 +268464,6 @@ var require_connection$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
268723
268464
|
result = [];
|
|
268724
268465
|
for (let i = 0; i < params.length && i < numberOfParams; i++) result.push(undefinedToNull(params[i]));
|
|
268725
268466
|
if (params.length < numberOfParams) for (let i = params.length; i < numberOfParams; i++) result.push(null);
|
|
268726
|
-
break;
|
|
268727
268467
|
}
|
|
268728
268468
|
return result;
|
|
268729
268469
|
}
|
|
@@ -268753,7 +268493,6 @@ var require_connection$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
268753
268493
|
default:
|
|
268754
268494
|
if (parameterStructures === messages_1.ParameterStructures.byName) throw new Error(`Received ${numberOfParams} parameters for 'by Name' notification parameter structure.`);
|
|
268755
268495
|
messageParams = args.slice(paramStart, paramEnd).map((value) => undefinedToNull(value));
|
|
268756
|
-
break;
|
|
268757
268496
|
}
|
|
268758
268497
|
} else {
|
|
268759
268498
|
const params = args;
|
|
@@ -268847,7 +268586,6 @@ var require_connection$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
268847
268586
|
default:
|
|
268848
268587
|
if (parameterStructures === messages_1.ParameterStructures.byName) throw new Error(`Received ${numberOfParams} parameters for 'by Name' request parameter structure.`);
|
|
268849
268588
|
messageParams = args.slice(paramStart, paramEnd).map((value) => undefinedToNull(value));
|
|
268850
|
-
break;
|
|
268851
268589
|
}
|
|
268852
268590
|
} else {
|
|
268853
268591
|
const params = args;
|