@typescript-deploys/pr-build 5.3.0-pr-55739-8 → 5.3.0-pr-53714-29
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/lib/tsc.js +77 -60
- package/lib/tsserver.js +87 -88
- package/lib/typescript.d.ts +5 -16
- package/lib/typescript.js +88 -88
- package/lib/typingsInstaller.js +34 -32
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.3";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20230918`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -8419,8 +8419,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
8419
8419
|
var tokenFlags;
|
|
8420
8420
|
var commentDirectives;
|
|
8421
8421
|
var inJSDocType = 0;
|
|
8422
|
-
var
|
|
8423
|
-
var jsDocParsingMode2 = 0 /* KeepAll */;
|
|
8422
|
+
var skipNonSemanticJSDoc = false;
|
|
8424
8423
|
setText(text, start, length2);
|
|
8425
8424
|
var scanner = {
|
|
8426
8425
|
getTokenFullStart: () => fullStartPos,
|
|
@@ -8464,15 +8463,14 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
8464
8463
|
setText,
|
|
8465
8464
|
setScriptTarget,
|
|
8466
8465
|
setLanguageVariant,
|
|
8467
|
-
setScriptKind,
|
|
8468
|
-
setJSDocParsingMode,
|
|
8469
8466
|
setOnError,
|
|
8470
8467
|
resetTokenState,
|
|
8471
8468
|
setTextPos: resetTokenState,
|
|
8472
8469
|
setInJSDocType,
|
|
8473
8470
|
tryScan,
|
|
8474
8471
|
lookAhead,
|
|
8475
|
-
scanRange
|
|
8472
|
+
scanRange,
|
|
8473
|
+
setSkipNonSemanticJSDoc
|
|
8476
8474
|
};
|
|
8477
8475
|
if (Debug.isDebugging) {
|
|
8478
8476
|
Object.defineProperty(scanner, "__debugShowCurrentPositionInText", {
|
|
@@ -9260,11 +9258,8 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
9260
9258
|
tokenFlags |= 1 /* PrecedingLineBreak */;
|
|
9261
9259
|
}
|
|
9262
9260
|
}
|
|
9263
|
-
if (isJSDoc2) {
|
|
9264
|
-
|
|
9265
|
-
if (shouldParseJSDoc) {
|
|
9266
|
-
tokenFlags |= 2 /* PrecedingJSDocComment */;
|
|
9267
|
-
}
|
|
9261
|
+
if (isJSDoc2 && (!skipNonSemanticJSDoc || semanticJSDocTagRegEx.test(text.slice(fullStartPos, pos)))) {
|
|
9262
|
+
tokenFlags |= 2 /* PrecedingJSDocComment */;
|
|
9268
9263
|
}
|
|
9269
9264
|
commentDirectives = appendIfCommentDirective(commentDirectives, text.slice(lastLineStart, pos), commentDirectiveRegExMultiLine, lastLineStart);
|
|
9270
9265
|
if (!commentClosed) {
|
|
@@ -9936,11 +9931,8 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
9936
9931
|
function setLanguageVariant(variant) {
|
|
9937
9932
|
languageVariant = variant;
|
|
9938
9933
|
}
|
|
9939
|
-
function
|
|
9940
|
-
|
|
9941
|
-
}
|
|
9942
|
-
function setJSDocParsingMode(kind) {
|
|
9943
|
-
jsDocParsingMode2 = kind;
|
|
9934
|
+
function setSkipNonSemanticJSDoc(skip) {
|
|
9935
|
+
skipNonSemanticJSDoc = skip;
|
|
9944
9936
|
}
|
|
9945
9937
|
function resetTokenState(position) {
|
|
9946
9938
|
Debug.assert(position >= 0);
|
|
@@ -26297,7 +26289,7 @@ function gatherPossibleChildren(node) {
|
|
|
26297
26289
|
function setExternalModuleIndicator(sourceFile) {
|
|
26298
26290
|
sourceFile.externalModuleIndicator = isFileProbablyExternalModule(sourceFile);
|
|
26299
26291
|
}
|
|
26300
|
-
function createSourceFile(fileName, sourceText, languageVersionOrOptions, setParentNodes = false, scriptKind,
|
|
26292
|
+
function createSourceFile(fileName, sourceText, languageVersionOrOptions, setParentNodes = false, scriptKind, skipNonSemanticJSDoc) {
|
|
26301
26293
|
var _a, _b, _c, _d;
|
|
26302
26294
|
(_a = tracing) == null ? void 0 : _a.push(
|
|
26303
26295
|
tracing.Phase.Parse,
|
|
@@ -26324,7 +26316,7 @@ function createSourceFile(fileName, sourceText, languageVersionOrOptions, setPar
|
|
|
26324
26316
|
setParentNodes,
|
|
26325
26317
|
6 /* JSON */,
|
|
26326
26318
|
noop,
|
|
26327
|
-
|
|
26319
|
+
skipNonSemanticJSDoc
|
|
26328
26320
|
);
|
|
26329
26321
|
} else {
|
|
26330
26322
|
const setIndicator = format === void 0 ? overrideSetExternalModuleIndicator : (file) => {
|
|
@@ -26340,7 +26332,7 @@ function createSourceFile(fileName, sourceText, languageVersionOrOptions, setPar
|
|
|
26340
26332
|
setParentNodes,
|
|
26341
26333
|
scriptKind,
|
|
26342
26334
|
setIndicator,
|
|
26343
|
-
|
|
26335
|
+
skipNonSemanticJSDoc
|
|
26344
26336
|
);
|
|
26345
26337
|
}
|
|
26346
26338
|
(_c = perfLogger) == null ? void 0 : _c.logStopParseSourceFile();
|
|
@@ -26459,7 +26451,7 @@ var Parser;
|
|
|
26459
26451
|
var contextFlags;
|
|
26460
26452
|
var topLevel = true;
|
|
26461
26453
|
var parseErrorBeforeNextFinishedNode = false;
|
|
26462
|
-
function parseSourceFile(fileName2, sourceText2, languageVersion2, syntaxCursor2, setParentNodes = false, scriptKind2, setExternalModuleIndicatorOverride,
|
|
26454
|
+
function parseSourceFile(fileName2, sourceText2, languageVersion2, syntaxCursor2, setParentNodes = false, scriptKind2, setExternalModuleIndicatorOverride, skipNonSemanticJSDoc) {
|
|
26463
26455
|
var _a;
|
|
26464
26456
|
scriptKind2 = ensureScriptKind(fileName2, scriptKind2);
|
|
26465
26457
|
if (scriptKind2 === 6 /* JSON */) {
|
|
@@ -26481,8 +26473,9 @@ var Parser;
|
|
|
26481
26473
|
result2.pragmas = emptyMap;
|
|
26482
26474
|
return result2;
|
|
26483
26475
|
}
|
|
26484
|
-
|
|
26485
|
-
|
|
26476
|
+
skipNonSemanticJSDoc = !!skipNonSemanticJSDoc && scriptKind2 !== 1 /* JS */ && scriptKind2 !== 2 /* JSX */;
|
|
26477
|
+
initializeState(fileName2, sourceText2, languageVersion2, syntaxCursor2, scriptKind2, skipNonSemanticJSDoc);
|
|
26478
|
+
const result = parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicatorOverride || setExternalModuleIndicator, skipNonSemanticJSDoc);
|
|
26486
26479
|
clearState();
|
|
26487
26480
|
return result;
|
|
26488
26481
|
}
|
|
@@ -26495,7 +26488,8 @@ var Parser;
|
|
|
26495
26488
|
/*syntaxCursor*/
|
|
26496
26489
|
void 0,
|
|
26497
26490
|
1 /* JS */,
|
|
26498
|
-
|
|
26491
|
+
/*skipNonSemanticJSDoc*/
|
|
26492
|
+
false
|
|
26499
26493
|
);
|
|
26500
26494
|
nextToken();
|
|
26501
26495
|
const entityName = parseEntityName(
|
|
@@ -26508,7 +26502,15 @@ var Parser;
|
|
|
26508
26502
|
}
|
|
26509
26503
|
Parser2.parseIsolatedEntityName = parseIsolatedEntityName2;
|
|
26510
26504
|
function parseJsonText2(fileName2, sourceText2, languageVersion2 = 2 /* ES2015 */, syntaxCursor2, setParentNodes = false) {
|
|
26511
|
-
initializeState(
|
|
26505
|
+
initializeState(
|
|
26506
|
+
fileName2,
|
|
26507
|
+
sourceText2,
|
|
26508
|
+
languageVersion2,
|
|
26509
|
+
syntaxCursor2,
|
|
26510
|
+
6 /* JSON */,
|
|
26511
|
+
/*skipNonSemanticJSDoc*/
|
|
26512
|
+
false
|
|
26513
|
+
);
|
|
26512
26514
|
sourceFlags = contextFlags;
|
|
26513
26515
|
nextToken();
|
|
26514
26516
|
const pos = getNodePos();
|
|
@@ -26589,7 +26591,7 @@ var Parser;
|
|
|
26589
26591
|
return result;
|
|
26590
26592
|
}
|
|
26591
26593
|
Parser2.parseJsonText = parseJsonText2;
|
|
26592
|
-
function initializeState(_fileName, _sourceText, _languageVersion, _syntaxCursor, _scriptKind,
|
|
26594
|
+
function initializeState(_fileName, _sourceText, _languageVersion, _syntaxCursor, _scriptKind, _skipNonSemanticJSDoc) {
|
|
26593
26595
|
NodeConstructor2 = objectAllocator.getNodeConstructor();
|
|
26594
26596
|
TokenConstructor2 = objectAllocator.getTokenConstructor();
|
|
26595
26597
|
IdentifierConstructor2 = objectAllocator.getIdentifierConstructor();
|
|
@@ -26625,15 +26627,13 @@ var Parser;
|
|
|
26625
26627
|
scanner.setOnError(scanError);
|
|
26626
26628
|
scanner.setScriptTarget(languageVersion);
|
|
26627
26629
|
scanner.setLanguageVariant(languageVariant);
|
|
26628
|
-
scanner.
|
|
26629
|
-
scanner.setJSDocParsingMode(_jsDocParsingMode);
|
|
26630
|
+
scanner.setSkipNonSemanticJSDoc(_skipNonSemanticJSDoc);
|
|
26630
26631
|
}
|
|
26631
26632
|
function clearState() {
|
|
26632
26633
|
scanner.clearCommentDirectives();
|
|
26633
26634
|
scanner.setText("");
|
|
26634
26635
|
scanner.setOnError(void 0);
|
|
26635
|
-
scanner.
|
|
26636
|
-
scanner.setJSDocParsingMode(0 /* KeepAll */);
|
|
26636
|
+
scanner.setSkipNonSemanticJSDoc(false);
|
|
26637
26637
|
sourceText = void 0;
|
|
26638
26638
|
languageVersion = void 0;
|
|
26639
26639
|
syntaxCursor = void 0;
|
|
@@ -26647,7 +26647,7 @@ var Parser;
|
|
|
26647
26647
|
notParenthesizedArrow = void 0;
|
|
26648
26648
|
topLevel = true;
|
|
26649
26649
|
}
|
|
26650
|
-
function parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicator2,
|
|
26650
|
+
function parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicator2, skipNonSemanticJSDoc) {
|
|
26651
26651
|
const isDeclarationFile = isDeclarationFileName(fileName);
|
|
26652
26652
|
if (isDeclarationFile) {
|
|
26653
26653
|
contextFlags |= 33554432 /* Ambient */;
|
|
@@ -26666,7 +26666,7 @@ var Parser;
|
|
|
26666
26666
|
sourceFile.identifierCount = identifierCount;
|
|
26667
26667
|
sourceFile.identifiers = identifiers;
|
|
26668
26668
|
sourceFile.parseDiagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile);
|
|
26669
|
-
sourceFile.
|
|
26669
|
+
sourceFile.skipNonSemanticJSDoc = skipNonSemanticJSDoc;
|
|
26670
26670
|
if (jsDocDiagnostics) {
|
|
26671
26671
|
sourceFile.jsDocDiagnostics = attachFileToDiagnostics(jsDocDiagnostics, sourceFile);
|
|
26672
26672
|
}
|
|
@@ -32101,7 +32101,8 @@ var Parser;
|
|
|
32101
32101
|
/*syntaxCursor*/
|
|
32102
32102
|
void 0,
|
|
32103
32103
|
1 /* JS */,
|
|
32104
|
-
|
|
32104
|
+
/*skipNonSemanticJSDoc*/
|
|
32105
|
+
false
|
|
32105
32106
|
);
|
|
32106
32107
|
scanner.setText(content, start, length2);
|
|
32107
32108
|
currentToken = scanner.scan();
|
|
@@ -32166,7 +32167,8 @@ var Parser;
|
|
|
32166
32167
|
/*syntaxCursor*/
|
|
32167
32168
|
void 0,
|
|
32168
32169
|
1 /* JS */,
|
|
32169
|
-
|
|
32170
|
+
/*skipNonSemanticJSDoc*/
|
|
32171
|
+
false
|
|
32170
32172
|
);
|
|
32171
32173
|
const jsDoc = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2));
|
|
32172
32174
|
const sourceFile = { languageVariant: 0 /* Standard */, text: content };
|
|
@@ -33123,7 +33125,7 @@ var IncrementalParser;
|
|
|
33123
33125
|
true,
|
|
33124
33126
|
sourceFile.scriptKind,
|
|
33125
33127
|
sourceFile.setExternalModuleIndicator,
|
|
33126
|
-
sourceFile.
|
|
33128
|
+
sourceFile.skipNonSemanticJSDoc
|
|
33127
33129
|
);
|
|
33128
33130
|
}
|
|
33129
33131
|
const incrementalSourceFile = sourceFile;
|
|
@@ -33148,7 +33150,7 @@ var IncrementalParser;
|
|
|
33148
33150
|
true,
|
|
33149
33151
|
sourceFile.scriptKind,
|
|
33150
33152
|
sourceFile.setExternalModuleIndicator,
|
|
33151
|
-
sourceFile.
|
|
33153
|
+
sourceFile.skipNonSemanticJSDoc
|
|
33152
33154
|
);
|
|
33153
33155
|
result.commentDirectives = getNewCommentDirectives(
|
|
33154
33156
|
sourceFile.commentDirectives,
|
|
@@ -39920,7 +39922,7 @@ function createBinder() {
|
|
|
39920
39922
|
case 36 /* ExclamationEqualsToken */:
|
|
39921
39923
|
case 37 /* EqualsEqualsEqualsToken */:
|
|
39922
39924
|
case 38 /* ExclamationEqualsEqualsToken */:
|
|
39923
|
-
return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right);
|
|
39925
|
+
return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right) || (isBooleanLiteral(expr.right) && isNarrowingExpression(expr.left) || isBooleanLiteral(expr.left) && isNarrowingExpression(expr.right));
|
|
39924
39926
|
case 104 /* InstanceOfKeyword */:
|
|
39925
39927
|
return isNarrowableOperand(expr.left);
|
|
39926
39928
|
case 103 /* InKeyword */:
|
|
@@ -40240,7 +40242,7 @@ function createBinder() {
|
|
|
40240
40242
|
}
|
|
40241
40243
|
function bindCaseBlock(node) {
|
|
40242
40244
|
const clauses = node.clauses;
|
|
40243
|
-
const isNarrowingSwitch = isNarrowingExpression(node.parent.expression);
|
|
40245
|
+
const isNarrowingSwitch = node.parent.expression.kind === 112 /* TrueKeyword */ || isNarrowingExpression(node.parent.expression);
|
|
40244
40246
|
let fallthroughFlow = unreachableFlow;
|
|
40245
40247
|
for (let i = 0; i < clauses.length; i++) {
|
|
40246
40248
|
const clauseStart = i;
|
|
@@ -65547,6 +65549,17 @@ function createTypeChecker(host) {
|
|
|
65547
65549
|
type = narrowTypeBySwitchOnDiscriminant(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd);
|
|
65548
65550
|
} else if (expr.kind === 221 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) {
|
|
65549
65551
|
type = narrowTypeBySwitchOnTypeOf(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd);
|
|
65552
|
+
} else if (expr.kind === 112 /* TrueKeyword */) {
|
|
65553
|
+
const clause = flow.switchStatement.caseBlock.clauses.find((_, index) => index === flow.clauseStart);
|
|
65554
|
+
const clauseExpression = clause && clause.kind === 296 /* CaseClause */ ? clause.expression : void 0;
|
|
65555
|
+
if (clauseExpression) {
|
|
65556
|
+
type = narrowType(
|
|
65557
|
+
type,
|
|
65558
|
+
clauseExpression,
|
|
65559
|
+
/*assumeTrue*/
|
|
65560
|
+
true
|
|
65561
|
+
);
|
|
65562
|
+
}
|
|
65550
65563
|
} else {
|
|
65551
65564
|
if (strictNullChecks) {
|
|
65552
65565
|
if (optionalChainContainsReference(expr, reference)) {
|
|
@@ -65794,6 +65807,10 @@ function createTypeChecker(host) {
|
|
|
65794
65807
|
}
|
|
65795
65808
|
return type;
|
|
65796
65809
|
}
|
|
65810
|
+
function narrowTypeByBooleanComparison(type, expr, bool, operator, assumeTrue) {
|
|
65811
|
+
assumeTrue = assumeTrue !== (bool.kind === 112 /* TrueKeyword */) !== (operator !== 38 /* ExclamationEqualsEqualsToken */ && operator !== 36 /* ExclamationEqualsToken */);
|
|
65812
|
+
return narrowType(type, expr, assumeTrue);
|
|
65813
|
+
}
|
|
65797
65814
|
function narrowTypeByBinaryExpression(type, expr, assumeTrue) {
|
|
65798
65815
|
switch (expr.operatorToken.kind) {
|
|
65799
65816
|
case 64 /* EqualsToken */:
|
|
@@ -65841,6 +65858,12 @@ function createTypeChecker(host) {
|
|
|
65841
65858
|
if (isMatchingConstructorReference(right)) {
|
|
65842
65859
|
return narrowTypeByConstructor(type, operator, left, assumeTrue);
|
|
65843
65860
|
}
|
|
65861
|
+
if (isBooleanLiteral(right)) {
|
|
65862
|
+
return narrowTypeByBooleanComparison(type, left, right, operator, assumeTrue);
|
|
65863
|
+
}
|
|
65864
|
+
if (isBooleanLiteral(left)) {
|
|
65865
|
+
return narrowTypeByBooleanComparison(type, right, left, operator, assumeTrue);
|
|
65866
|
+
}
|
|
65844
65867
|
break;
|
|
65845
65868
|
case 104 /* InstanceOfKeyword */:
|
|
65846
65869
|
return narrowTypeByInstanceof(type, expr, assumeTrue);
|
|
@@ -114841,16 +114864,10 @@ function computeCommonSourceDirectoryOfFilenames(fileNames, currentDirectory, ge
|
|
|
114841
114864
|
}
|
|
114842
114865
|
return getPathFromPathComponents(commonPathComponents);
|
|
114843
114866
|
}
|
|
114844
|
-
function createCompilerHost(options, setParentNodes
|
|
114845
|
-
return createCompilerHostWorker(
|
|
114846
|
-
options,
|
|
114847
|
-
setParentNodes,
|
|
114848
|
-
/*system*/
|
|
114849
|
-
void 0,
|
|
114850
|
-
jsDocParsingMode2
|
|
114851
|
-
);
|
|
114867
|
+
function createCompilerHost(options, setParentNodes) {
|
|
114868
|
+
return createCompilerHostWorker(options, setParentNodes);
|
|
114852
114869
|
}
|
|
114853
|
-
function createGetSourceFile(readFile, getCompilerOptions, setParentNodes,
|
|
114870
|
+
function createGetSourceFile(readFile, getCompilerOptions, setParentNodes, skipNonSemanticJSDocParsing2) {
|
|
114854
114871
|
return (fileName, languageVersionOrOptions, onError) => {
|
|
114855
114872
|
let text;
|
|
114856
114873
|
try {
|
|
@@ -114871,7 +114888,7 @@ function createGetSourceFile(readFile, getCompilerOptions, setParentNodes, jsDoc
|
|
|
114871
114888
|
setParentNodes,
|
|
114872
114889
|
/*scriptKind*/
|
|
114873
114890
|
void 0,
|
|
114874
|
-
|
|
114891
|
+
skipNonSemanticJSDocParsing2
|
|
114875
114892
|
) : void 0;
|
|
114876
114893
|
};
|
|
114877
114894
|
}
|
|
@@ -114896,7 +114913,7 @@ function createWriteFileMeasuringIO(actualWriteFile, createDirectory, directoryE
|
|
|
114896
114913
|
}
|
|
114897
114914
|
};
|
|
114898
114915
|
}
|
|
114899
|
-
function createCompilerHostWorker(options, setParentNodes, system = sys
|
|
114916
|
+
function createCompilerHostWorker(options, setParentNodes, skipNonSemanticJSDocParsing2, system = sys) {
|
|
114900
114917
|
const existingDirectories = /* @__PURE__ */ new Map();
|
|
114901
114918
|
const getCanonicalFileName = createGetCanonicalFileName(system.useCaseSensitiveFileNames);
|
|
114902
114919
|
function directoryExists(directoryPath) {
|
|
@@ -114915,7 +114932,7 @@ function createCompilerHostWorker(options, setParentNodes, system = sys, jsDocPa
|
|
|
114915
114932
|
const newLine = getNewLineCharacter(options);
|
|
114916
114933
|
const realpath = system.realpath && ((path) => system.realpath(path));
|
|
114917
114934
|
const compilerHost = {
|
|
114918
|
-
getSourceFile: createGetSourceFile((fileName) => compilerHost.readFile(fileName), () => options, setParentNodes,
|
|
114935
|
+
getSourceFile: createGetSourceFile((fileName) => compilerHost.readFile(fileName), () => options, setParentNodes, skipNonSemanticJSDocParsing2),
|
|
114919
114936
|
getDefaultLibLocation,
|
|
114920
114937
|
getDefaultLibFileName: (options2) => combinePaths(getDefaultLibLocation(), getDefaultLibFileName(options2)),
|
|
114921
114938
|
writeFile: createWriteFileMeasuringIO(
|
|
@@ -121990,7 +122007,7 @@ function createCompilerHostFromProgramHost(host, getCompilerOptions, directorySt
|
|
|
121990
122007
|
getCompilerOptions,
|
|
121991
122008
|
/*setParentNodes*/
|
|
121992
122009
|
void 0,
|
|
121993
|
-
host.
|
|
122010
|
+
host.skipNonSemanticJSDocParsing
|
|
121994
122011
|
),
|
|
121995
122012
|
getDefaultLibLocation: maybeBind(host, host.getDefaultLibLocation),
|
|
121996
122013
|
getDefaultLibFileName: (options) => host.getDefaultLibFileName(options),
|
|
@@ -122176,13 +122193,13 @@ function readBuilderProgram(compilerOptions, host) {
|
|
|
122176
122193
|
return void 0;
|
|
122177
122194
|
return createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, host);
|
|
122178
122195
|
}
|
|
122179
|
-
function createIncrementalCompilerHost(options, system = sys,
|
|
122196
|
+
function createIncrementalCompilerHost(options, system = sys, skipNonSemanticJSDocParsing2) {
|
|
122180
122197
|
const host = createCompilerHostWorker(
|
|
122181
122198
|
options,
|
|
122182
122199
|
/*setParentNodes*/
|
|
122183
122200
|
void 0,
|
|
122184
|
-
|
|
122185
|
-
|
|
122201
|
+
skipNonSemanticJSDocParsing2,
|
|
122202
|
+
system
|
|
122186
122203
|
);
|
|
122187
122204
|
host.createHash = maybeBind(system, system.createHash);
|
|
122188
122205
|
host.storeFilesChangingSignatureDuringEmit = system.storeFilesChangingSignatureDuringEmit;
|
|
@@ -125511,7 +125528,7 @@ function reportWatchModeWithoutSysSupport(sys2, reportDiagnostic) {
|
|
|
125511
125528
|
}
|
|
125512
125529
|
return false;
|
|
125513
125530
|
}
|
|
125514
|
-
var
|
|
125531
|
+
var skipNonSemanticJSDocParsing = true;
|
|
125515
125532
|
function performBuild(sys2, cb, buildOptions, watchOptions, projects, errors) {
|
|
125516
125533
|
const reportDiagnostic = updateReportDiagnostic(
|
|
125517
125534
|
sys2,
|
|
@@ -125550,7 +125567,7 @@ function performBuild(sys2, cb, buildOptions, watchOptions, projects, errors) {
|
|
|
125550
125567
|
createBuilderStatusReporter(sys2, shouldBePretty(sys2, buildOptions)),
|
|
125551
125568
|
createWatchStatusReporter2(sys2, buildOptions)
|
|
125552
125569
|
);
|
|
125553
|
-
buildHost2.
|
|
125570
|
+
buildHost2.skipNonSemanticJSDocParsing = skipNonSemanticJSDocParsing;
|
|
125554
125571
|
const solutionPerformance2 = enableSolutionPerformance(sys2, buildOptions);
|
|
125555
125572
|
updateSolutionBuilderHost(sys2, cb, buildHost2, solutionPerformance2);
|
|
125556
125573
|
const onWatchStatusChange = buildHost2.onWatchStatusChange;
|
|
@@ -125575,7 +125592,7 @@ function performBuild(sys2, cb, buildOptions, watchOptions, projects, errors) {
|
|
|
125575
125592
|
createBuilderStatusReporter(sys2, shouldBePretty(sys2, buildOptions)),
|
|
125576
125593
|
createReportErrorSummary(sys2, buildOptions)
|
|
125577
125594
|
);
|
|
125578
|
-
buildHost.
|
|
125595
|
+
buildHost.skipNonSemanticJSDocParsing = skipNonSemanticJSDocParsing;
|
|
125579
125596
|
const solutionPerformance = enableSolutionPerformance(sys2, buildOptions);
|
|
125580
125597
|
updateSolutionBuilderHost(sys2, cb, buildHost, solutionPerformance);
|
|
125581
125598
|
const builder = createSolutionBuilder(buildHost, projects, buildOptions);
|
|
@@ -125593,8 +125610,8 @@ function performCompilation(sys2, cb, reportDiagnostic, config) {
|
|
|
125593
125610
|
options,
|
|
125594
125611
|
/*setParentNodes*/
|
|
125595
125612
|
void 0,
|
|
125596
|
-
|
|
125597
|
-
|
|
125613
|
+
skipNonSemanticJSDocParsing,
|
|
125614
|
+
sys2
|
|
125598
125615
|
);
|
|
125599
125616
|
const currentDirectory = host.getCurrentDirectory();
|
|
125600
125617
|
const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
|
|
@@ -125636,7 +125653,7 @@ function performIncrementalCompilation2(sys2, cb, reportDiagnostic, config) {
|
|
|
125636
125653
|
/*isBuildMode*/
|
|
125637
125654
|
false
|
|
125638
125655
|
);
|
|
125639
|
-
const host = createIncrementalCompilerHost(options, sys2,
|
|
125656
|
+
const host = createIncrementalCompilerHost(options, sys2, skipNonSemanticJSDocParsing);
|
|
125640
125657
|
const exitStatus = performIncrementalCompilation({
|
|
125641
125658
|
host,
|
|
125642
125659
|
system: sys2,
|
|
@@ -125691,7 +125708,7 @@ function updateCreateProgram(sys2, host, isBuildMode) {
|
|
|
125691
125708
|
};
|
|
125692
125709
|
}
|
|
125693
125710
|
function updateWatchCompilationHost(sys2, cb, watchCompilerHost) {
|
|
125694
|
-
watchCompilerHost.
|
|
125711
|
+
watchCompilerHost.skipNonSemanticJSDocParsing = skipNonSemanticJSDocParsing;
|
|
125695
125712
|
updateCreateProgram(
|
|
125696
125713
|
sys2,
|
|
125697
125714
|
watchCompilerHost,
|