@typescript-deploys/pr-build 5.5.0-pr-58065-2 → 5.5.0-pr-58045-49
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 +220 -153
- package/lib/typescript.d.ts +0 -1
- package/lib/typescript.js +268 -190
- package/package.json +2 -2
package/lib/typescript.js
CHANGED
|
@@ -262,9 +262,6 @@ __export(typescript_exports, {
|
|
|
262
262
|
canWatchAffectingLocation: () => canWatchAffectingLocation,
|
|
263
263
|
canWatchAtTypes: () => canWatchAtTypes,
|
|
264
264
|
canWatchDirectoryOrFile: () => canWatchDirectoryOrFile,
|
|
265
|
-
canWatchFailedLookupsOfResolvedLibrary: () => canWatchFailedLookupsOfResolvedLibrary,
|
|
266
|
-
canWatchFailedLookupsOfResolvedModule: () => canWatchFailedLookupsOfResolvedModule,
|
|
267
|
-
canWatchFailedLookupsOfTypeReferencedDirective: () => canWatchFailedLookupsOfTypeReferencedDirective,
|
|
268
265
|
cartesianProduct: () => cartesianProduct,
|
|
269
266
|
cast: () => cast,
|
|
270
267
|
chainBundle: () => chainBundle,
|
|
@@ -545,6 +542,7 @@ __export(typescript_exports, {
|
|
|
545
542
|
escapeSnippetText: () => escapeSnippetText,
|
|
546
543
|
escapeString: () => escapeString,
|
|
547
544
|
escapeTemplateSubstitution: () => escapeTemplateSubstitution,
|
|
545
|
+
evaluatorResult: () => evaluatorResult,
|
|
548
546
|
every: () => every,
|
|
549
547
|
expandPreOrPostfixIncrementOrDecrementExpression: () => expandPreOrPostfixIncrementOrDecrementExpression,
|
|
550
548
|
explainFiles: () => explainFiles,
|
|
@@ -911,6 +909,7 @@ __export(typescript_exports, {
|
|
|
911
909
|
getNewLineOrDefaultFromHost: () => getNewLineOrDefaultFromHost,
|
|
912
910
|
getNewTargetContainer: () => getNewTargetContainer,
|
|
913
911
|
getNextJSDocCommentLocation: () => getNextJSDocCommentLocation,
|
|
912
|
+
getNodeChildren: () => getNodeChildren,
|
|
914
913
|
getNodeForGeneratedName: () => getNodeForGeneratedName,
|
|
915
914
|
getNodeId: () => getNodeId,
|
|
916
915
|
getNodeKind: () => getNodeKind,
|
|
@@ -1764,7 +1763,6 @@ __export(typescript_exports, {
|
|
|
1764
1763
|
isSuperProperty: () => isSuperProperty,
|
|
1765
1764
|
isSupportedSourceFileName: () => isSupportedSourceFileName,
|
|
1766
1765
|
isSwitchStatement: () => isSwitchStatement,
|
|
1767
|
-
isSyntacticallyString: () => isSyntacticallyString,
|
|
1768
1766
|
isSyntaxList: () => isSyntaxList,
|
|
1769
1767
|
isSyntheticExpression: () => isSyntheticExpression,
|
|
1770
1768
|
isSyntheticReference: () => isSyntheticReference,
|
|
@@ -2096,6 +2094,7 @@ __export(typescript_exports, {
|
|
|
2096
2094
|
setInternalEmitFlags: () => setInternalEmitFlags,
|
|
2097
2095
|
setLocalizedDiagnosticMessages: () => setLocalizedDiagnosticMessages,
|
|
2098
2096
|
setModuleDefaultHelper: () => setModuleDefaultHelper,
|
|
2097
|
+
setNodeChildren: () => setNodeChildren,
|
|
2099
2098
|
setNodeFlags: () => setNodeFlags,
|
|
2100
2099
|
setObjectAllocator: () => setObjectAllocator,
|
|
2101
2100
|
setOriginalNode: () => setOriginalNode,
|
|
@@ -2290,6 +2289,7 @@ __export(typescript_exports, {
|
|
|
2290
2289
|
unorderedRemoveItem: () => unorderedRemoveItem,
|
|
2291
2290
|
unorderedRemoveItemAt: () => unorderedRemoveItemAt,
|
|
2292
2291
|
unreachableCodeIsError: () => unreachableCodeIsError,
|
|
2292
|
+
unsetNodeChildren: () => unsetNodeChildren,
|
|
2293
2293
|
unusedLabelIsError: () => unusedLabelIsError,
|
|
2294
2294
|
unwrapInnermostStatementOfLabel: () => unwrapInnermostStatementOfLabel,
|
|
2295
2295
|
updateErrorForNoInputFiles: () => updateErrorForNoInputFiles,
|
|
@@ -2331,7 +2331,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2331
2331
|
|
|
2332
2332
|
// src/compiler/corePublic.ts
|
|
2333
2333
|
var versionMajorMinor = "5.5";
|
|
2334
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2334
|
+
var version = `${versionMajorMinor}.0-insiders.20240404`;
|
|
2335
2335
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2336
2336
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2337
2337
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -15552,8 +15552,11 @@ function getTokenPosOfNode(node, sourceFile, includeJsDoc) {
|
|
|
15552
15552
|
if (includeJsDoc && hasJSDocNodes(node)) {
|
|
15553
15553
|
return getTokenPosOfNode(node.jsDoc[0], sourceFile);
|
|
15554
15554
|
}
|
|
15555
|
-
if (node.kind === 352 /* SyntaxList */
|
|
15556
|
-
|
|
15555
|
+
if (node.kind === 352 /* SyntaxList */) {
|
|
15556
|
+
const first2 = firstOrUndefined(getNodeChildren(node));
|
|
15557
|
+
if (first2) {
|
|
15558
|
+
return getTokenPosOfNode(first2, sourceFile, includeJsDoc);
|
|
15559
|
+
}
|
|
15557
15560
|
}
|
|
15558
15561
|
return skipTrivia(
|
|
15559
15562
|
(sourceFile || getSourceFileOfNode(node)).text,
|
|
@@ -21929,79 +21932,81 @@ function replaceFirstStar(s, replacement) {
|
|
|
21929
21932
|
function getNameFromImportAttribute(node) {
|
|
21930
21933
|
return isIdentifier(node.name) ? node.name.escapedText : escapeLeadingUnderscores(node.name.text);
|
|
21931
21934
|
}
|
|
21932
|
-
function isSyntacticallyString
|
|
21933
|
-
|
|
21934
|
-
switch (expr.kind) {
|
|
21935
|
-
case 226 /* BinaryExpression */:
|
|
21936
|
-
const left = expr.left;
|
|
21937
|
-
const right = expr.right;
|
|
21938
|
-
return expr.operatorToken.kind === 40 /* PlusToken */ && (isSyntacticallyString(left) || isSyntacticallyString(right));
|
|
21939
|
-
case 228 /* TemplateExpression */:
|
|
21940
|
-
case 11 /* StringLiteral */:
|
|
21941
|
-
case 15 /* NoSubstitutionTemplateLiteral */:
|
|
21942
|
-
return true;
|
|
21943
|
-
}
|
|
21944
|
-
return false;
|
|
21935
|
+
function evaluatorResult(value, isSyntacticallyString = false, resolvedOtherFiles = false) {
|
|
21936
|
+
return { value, isSyntacticallyString, resolvedOtherFiles };
|
|
21945
21937
|
}
|
|
21946
21938
|
function createEvaluator({ evaluateElementAccessExpression, evaluateEntityNameExpression }) {
|
|
21947
21939
|
function evaluate(expr, location) {
|
|
21940
|
+
let isSyntacticallyString = false;
|
|
21941
|
+
let resolvedOtherFiles = false;
|
|
21942
|
+
expr = skipParentheses(expr);
|
|
21948
21943
|
switch (expr.kind) {
|
|
21949
21944
|
case 224 /* PrefixUnaryExpression */:
|
|
21950
|
-
const
|
|
21951
|
-
|
|
21945
|
+
const result = evaluate(expr.operand, location);
|
|
21946
|
+
resolvedOtherFiles = result.resolvedOtherFiles;
|
|
21947
|
+
if (typeof result.value === "number") {
|
|
21952
21948
|
switch (expr.operator) {
|
|
21953
21949
|
case 40 /* PlusToken */:
|
|
21954
|
-
return value;
|
|
21950
|
+
return evaluatorResult(result.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21955
21951
|
case 41 /* MinusToken */:
|
|
21956
|
-
return -value;
|
|
21952
|
+
return evaluatorResult(-result.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21957
21953
|
case 55 /* TildeToken */:
|
|
21958
|
-
return ~value;
|
|
21954
|
+
return evaluatorResult(~result.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21959
21955
|
}
|
|
21960
21956
|
}
|
|
21961
21957
|
break;
|
|
21962
|
-
case 226 /* BinaryExpression */:
|
|
21958
|
+
case 226 /* BinaryExpression */: {
|
|
21963
21959
|
const left = evaluate(expr.left, location);
|
|
21964
21960
|
const right = evaluate(expr.right, location);
|
|
21965
|
-
|
|
21961
|
+
isSyntacticallyString = (left.isSyntacticallyString || right.isSyntacticallyString) && expr.operatorToken.kind === 40 /* PlusToken */;
|
|
21962
|
+
resolvedOtherFiles = left.resolvedOtherFiles || right.resolvedOtherFiles;
|
|
21963
|
+
if (typeof left.value === "number" && typeof right.value === "number") {
|
|
21966
21964
|
switch (expr.operatorToken.kind) {
|
|
21967
21965
|
case 52 /* BarToken */:
|
|
21968
|
-
return left | right;
|
|
21966
|
+
return evaluatorResult(left.value | right.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21969
21967
|
case 51 /* AmpersandToken */:
|
|
21970
|
-
return left & right;
|
|
21968
|
+
return evaluatorResult(left.value & right.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21971
21969
|
case 49 /* GreaterThanGreaterThanToken */:
|
|
21972
|
-
return left >> right;
|
|
21970
|
+
return evaluatorResult(left.value >> right.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21973
21971
|
case 50 /* GreaterThanGreaterThanGreaterThanToken */:
|
|
21974
|
-
return left >>> right;
|
|
21972
|
+
return evaluatorResult(left.value >>> right.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21975
21973
|
case 48 /* LessThanLessThanToken */:
|
|
21976
|
-
return left << right;
|
|
21974
|
+
return evaluatorResult(left.value << right.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21977
21975
|
case 53 /* CaretToken */:
|
|
21978
|
-
return left ^ right;
|
|
21976
|
+
return evaluatorResult(left.value ^ right.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21979
21977
|
case 42 /* AsteriskToken */:
|
|
21980
|
-
return left * right;
|
|
21978
|
+
return evaluatorResult(left.value * right.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21981
21979
|
case 44 /* SlashToken */:
|
|
21982
|
-
return left / right;
|
|
21980
|
+
return evaluatorResult(left.value / right.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21983
21981
|
case 40 /* PlusToken */:
|
|
21984
|
-
return left + right;
|
|
21982
|
+
return evaluatorResult(left.value + right.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21985
21983
|
case 41 /* MinusToken */:
|
|
21986
|
-
return left - right;
|
|
21984
|
+
return evaluatorResult(left.value - right.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21987
21985
|
case 45 /* PercentToken */:
|
|
21988
|
-
return left % right;
|
|
21986
|
+
return evaluatorResult(left.value % right.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21989
21987
|
case 43 /* AsteriskAsteriskToken */:
|
|
21990
|
-
return left ** right;
|
|
21988
|
+
return evaluatorResult(left.value ** right.value, isSyntacticallyString, resolvedOtherFiles);
|
|
21991
21989
|
}
|
|
21992
|
-
} else if ((typeof left === "string" || typeof left === "number") && (typeof right === "string" || typeof right === "number") && expr.operatorToken.kind === 40 /* PlusToken */) {
|
|
21993
|
-
return
|
|
21990
|
+
} else if ((typeof left.value === "string" || typeof left.value === "number") && (typeof right.value === "string" || typeof right.value === "number") && expr.operatorToken.kind === 40 /* PlusToken */) {
|
|
21991
|
+
return evaluatorResult(
|
|
21992
|
+
"" + left.value + right.value,
|
|
21993
|
+
isSyntacticallyString,
|
|
21994
|
+
resolvedOtherFiles
|
|
21995
|
+
);
|
|
21994
21996
|
}
|
|
21995
21997
|
break;
|
|
21998
|
+
}
|
|
21996
21999
|
case 11 /* StringLiteral */:
|
|
21997
22000
|
case 15 /* NoSubstitutionTemplateLiteral */:
|
|
21998
|
-
return
|
|
22001
|
+
return evaluatorResult(
|
|
22002
|
+
expr.text,
|
|
22003
|
+
/*isSyntacticallyString*/
|
|
22004
|
+
true
|
|
22005
|
+
);
|
|
21999
22006
|
case 228 /* TemplateExpression */:
|
|
22000
22007
|
return evaluateTemplateExpression(expr, location);
|
|
22001
22008
|
case 9 /* NumericLiteral */:
|
|
22002
|
-
return +expr.text;
|
|
22003
|
-
case 217 /* ParenthesizedExpression */:
|
|
22004
|
-
return evaluate(expr.expression, location);
|
|
22009
|
+
return evaluatorResult(+expr.text);
|
|
22005
22010
|
case 80 /* Identifier */:
|
|
22006
22011
|
return evaluateEntityNameExpression(expr, location);
|
|
22007
22012
|
case 211 /* PropertyAccessExpression */:
|
|
@@ -22012,19 +22017,36 @@ function createEvaluator({ evaluateElementAccessExpression, evaluateEntityNameEx
|
|
|
22012
22017
|
case 212 /* ElementAccessExpression */:
|
|
22013
22018
|
return evaluateElementAccessExpression(expr, location);
|
|
22014
22019
|
}
|
|
22015
|
-
return
|
|
22020
|
+
return evaluatorResult(
|
|
22021
|
+
/*value*/
|
|
22022
|
+
void 0,
|
|
22023
|
+
isSyntacticallyString,
|
|
22024
|
+
resolvedOtherFiles
|
|
22025
|
+
);
|
|
22016
22026
|
}
|
|
22017
22027
|
function evaluateTemplateExpression(expr, location) {
|
|
22018
22028
|
let result = expr.head.text;
|
|
22029
|
+
let resolvedOtherFiles = false;
|
|
22019
22030
|
for (const span of expr.templateSpans) {
|
|
22020
|
-
const
|
|
22021
|
-
if (value === void 0) {
|
|
22022
|
-
return
|
|
22031
|
+
const spanResult = evaluate(span.expression, location);
|
|
22032
|
+
if (spanResult.value === void 0) {
|
|
22033
|
+
return evaluatorResult(
|
|
22034
|
+
/*value*/
|
|
22035
|
+
void 0,
|
|
22036
|
+
/*isSyntacticallyString*/
|
|
22037
|
+
true
|
|
22038
|
+
);
|
|
22023
22039
|
}
|
|
22024
|
-
result += value;
|
|
22040
|
+
result += spanResult.value;
|
|
22025
22041
|
result += span.literal.text;
|
|
22042
|
+
resolvedOtherFiles || (resolvedOtherFiles = spanResult.resolvedOtherFiles);
|
|
22026
22043
|
}
|
|
22027
|
-
return
|
|
22044
|
+
return evaluatorResult(
|
|
22045
|
+
result,
|
|
22046
|
+
/*isSyntacticallyString*/
|
|
22047
|
+
true,
|
|
22048
|
+
resolvedOtherFiles
|
|
22049
|
+
);
|
|
22028
22050
|
}
|
|
22029
22051
|
return evaluate;
|
|
22030
22052
|
}
|
|
@@ -26179,7 +26201,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
26179
26201
|
}
|
|
26180
26202
|
function createSyntaxList3(children) {
|
|
26181
26203
|
const node = createBaseNode(352 /* SyntaxList */);
|
|
26182
|
-
node
|
|
26204
|
+
setNodeChildren(node, children);
|
|
26183
26205
|
return node;
|
|
26184
26206
|
}
|
|
26185
26207
|
function createNotEmittedStatement(original) {
|
|
@@ -29087,6 +29109,19 @@ function isSyntaxList(n) {
|
|
|
29087
29109
|
return n.kind === 352 /* SyntaxList */;
|
|
29088
29110
|
}
|
|
29089
29111
|
|
|
29112
|
+
// src/compiler/factory/nodeChildren.ts
|
|
29113
|
+
var nodeChildren = /* @__PURE__ */ new WeakMap();
|
|
29114
|
+
function getNodeChildren(node) {
|
|
29115
|
+
return nodeChildren.get(node);
|
|
29116
|
+
}
|
|
29117
|
+
function setNodeChildren(node, children) {
|
|
29118
|
+
nodeChildren.set(node, children);
|
|
29119
|
+
return children;
|
|
29120
|
+
}
|
|
29121
|
+
function unsetNodeChildren(node) {
|
|
29122
|
+
nodeChildren.delete(node);
|
|
29123
|
+
}
|
|
29124
|
+
|
|
29090
29125
|
// src/compiler/factory/utilities.ts
|
|
29091
29126
|
function createEmptyExports(factory2) {
|
|
29092
29127
|
return factory2.createExportDeclaration(
|
|
@@ -37759,9 +37794,7 @@ var IncrementalParser;
|
|
|
37759
37794
|
if (aggressiveChecks && shouldCheckNode(node)) {
|
|
37760
37795
|
text = oldText.substring(node.pos, node.end);
|
|
37761
37796
|
}
|
|
37762
|
-
|
|
37763
|
-
node._children = void 0;
|
|
37764
|
-
}
|
|
37797
|
+
unsetNodeChildren(node);
|
|
37765
37798
|
setTextRangePosEnd(node, node.pos + delta, node.end + delta);
|
|
37766
37799
|
if (aggressiveChecks && shouldCheckNode(node)) {
|
|
37767
37800
|
Debug.assert(text === newText.substring(node.pos, node.end));
|
|
@@ -37775,7 +37808,6 @@ var IncrementalParser;
|
|
|
37775
37808
|
checkNodePositions(node, aggressiveChecks);
|
|
37776
37809
|
}
|
|
37777
37810
|
function visitArray2(array) {
|
|
37778
|
-
array._children = void 0;
|
|
37779
37811
|
setTextRangePosEnd(array, array.pos + delta, array.end + delta);
|
|
37780
37812
|
for (const node of array) {
|
|
37781
37813
|
visitNode3(node);
|
|
@@ -37847,7 +37879,7 @@ var IncrementalParser;
|
|
|
37847
37879
|
const fullEnd = child.end;
|
|
37848
37880
|
if (fullEnd >= changeStart) {
|
|
37849
37881
|
child.intersectsChange = true;
|
|
37850
|
-
child
|
|
37882
|
+
unsetNodeChildren(child);
|
|
37851
37883
|
adjustIntersectingElement(child, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta);
|
|
37852
37884
|
forEachChild(child, visitNode3, visitArray2);
|
|
37853
37885
|
if (hasJSDocNodes(child)) {
|
|
@@ -37877,7 +37909,6 @@ var IncrementalParser;
|
|
|
37877
37909
|
const fullEnd = array.end;
|
|
37878
37910
|
if (fullEnd >= changeStart) {
|
|
37879
37911
|
array.intersectsChange = true;
|
|
37880
|
-
array._children = void 0;
|
|
37881
37912
|
adjustIntersectingElement(array, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta);
|
|
37882
37913
|
for (const node of array) {
|
|
37883
37914
|
visitNode3(node);
|
|
@@ -48310,6 +48341,7 @@ function createTypeChecker(host) {
|
|
|
48310
48341
|
isArgumentsSymbol: (symbol) => symbol === argumentsSymbol,
|
|
48311
48342
|
isUnknownSymbol: (symbol) => symbol === unknownSymbol,
|
|
48312
48343
|
getMergedSymbol,
|
|
48344
|
+
symbolIsValue,
|
|
48313
48345
|
getDiagnostics: getDiagnostics2,
|
|
48314
48346
|
getGlobalDiagnostics,
|
|
48315
48347
|
getRecursionIdentity,
|
|
@@ -54702,7 +54734,16 @@ function createTypeChecker(host) {
|
|
|
54702
54734
|
return symbol.declarations && find(symbol.declarations, (s) => !!getNonlocalEffectiveTypeAnnotationNode(s) && (!enclosingDeclaration || !!findAncestor(s, (n) => n === enclosingDeclaration)));
|
|
54703
54735
|
}
|
|
54704
54736
|
function existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type) {
|
|
54705
|
-
|
|
54737
|
+
if (!(getObjectFlags(type) & 4 /* Reference */))
|
|
54738
|
+
return true;
|
|
54739
|
+
if (!isTypeReferenceNode(existing))
|
|
54740
|
+
return true;
|
|
54741
|
+
void getTypeFromTypeReference(existing);
|
|
54742
|
+
const symbol = getNodeLinks(existing).resolvedSymbol;
|
|
54743
|
+
const existingTarget = symbol && getDeclaredTypeOfSymbol(symbol);
|
|
54744
|
+
if (!existingTarget || existingTarget !== type.target)
|
|
54745
|
+
return true;
|
|
54746
|
+
return length(existing.typeArguments) >= getMinTypeArgumentCount(type.target.typeParameters);
|
|
54706
54747
|
}
|
|
54707
54748
|
function getEnclosingDeclarationIgnoringFakeScope(enclosingDeclaration) {
|
|
54708
54749
|
while (getNodeLinks(enclosingDeclaration).fakeScopeForSignatureDeclaration) {
|
|
@@ -54807,14 +54848,27 @@ function createTypeChecker(host) {
|
|
|
54807
54848
|
} else {
|
|
54808
54849
|
context.tracker.trackSymbol(sym, context.enclosingDeclaration, meaning);
|
|
54809
54850
|
}
|
|
54810
|
-
|
|
54851
|
+
return { introducesError, node: attachSymbolToLeftmostIdentifier(node) };
|
|
54852
|
+
}
|
|
54853
|
+
return { introducesError, node };
|
|
54854
|
+
function attachSymbolToLeftmostIdentifier(node2) {
|
|
54855
|
+
if (node2 === leftmost) {
|
|
54811
54856
|
const type = getDeclaredTypeOfSymbol(sym);
|
|
54812
|
-
const name = sym.flags & 262144 /* TypeParameter */ ? typeParameterToName(type, context) : factory.cloneNode(
|
|
54857
|
+
const name = sym.flags & 262144 /* TypeParameter */ ? typeParameterToName(type, context) : factory.cloneNode(node2);
|
|
54813
54858
|
name.symbol = sym;
|
|
54814
|
-
return
|
|
54859
|
+
return setTextRange(setEmitFlags(setOriginalNode(name, node2), 16777216 /* NoAsciiEscaping */), node2);
|
|
54860
|
+
}
|
|
54861
|
+
const updated = visitEachChild(
|
|
54862
|
+
node2,
|
|
54863
|
+
(c) => attachSymbolToLeftmostIdentifier(c),
|
|
54864
|
+
/*context*/
|
|
54865
|
+
void 0
|
|
54866
|
+
);
|
|
54867
|
+
if (updated !== node2) {
|
|
54868
|
+
setTextRange(updated, node2);
|
|
54815
54869
|
}
|
|
54870
|
+
return updated;
|
|
54816
54871
|
}
|
|
54817
|
-
return { introducesError, node };
|
|
54818
54872
|
}
|
|
54819
54873
|
function tryReuseExistingTypeNodeHelper(context, existing) {
|
|
54820
54874
|
if (cancellationToken && cancellationToken.throwIfCancellationRequested) {
|
|
@@ -54975,11 +55029,12 @@ function createTypeChecker(host) {
|
|
|
54975
55029
|
return visited;
|
|
54976
55030
|
}
|
|
54977
55031
|
if (isEntityName(node) || isEntityNameExpression(node)) {
|
|
55032
|
+
if (isDeclarationName(node)) {
|
|
55033
|
+
return node;
|
|
55034
|
+
}
|
|
54978
55035
|
const { introducesError, node: result } = trackExistingEntityName(node, context);
|
|
54979
55036
|
hadError = hadError || introducesError;
|
|
54980
|
-
|
|
54981
|
-
return result;
|
|
54982
|
-
}
|
|
55037
|
+
return result;
|
|
54983
55038
|
}
|
|
54984
55039
|
if (isTupleTypeNode(node) || isTypeLiteralNode(node) || isMappedTypeNode(node)) {
|
|
54985
55040
|
const visited = visitEachChild(
|
|
@@ -58508,7 +58563,7 @@ function createTypeChecker(host) {
|
|
|
58508
58563
|
for (const member of declaration.members) {
|
|
58509
58564
|
if (hasBindableName(member)) {
|
|
58510
58565
|
const memberSymbol = getSymbolOfDeclaration(member);
|
|
58511
|
-
const value = getEnumMemberValue(member);
|
|
58566
|
+
const value = getEnumMemberValue(member).value;
|
|
58512
58567
|
const memberType = getFreshTypeOfLiteralType(
|
|
58513
58568
|
value !== void 0 ? getEnumLiteralType(value, getSymbolId(symbol), memberSymbol) : createComputedEnumType(memberSymbol)
|
|
58514
58569
|
);
|
|
@@ -65644,8 +65699,8 @@ function createTypeChecker(host) {
|
|
|
65644
65699
|
}
|
|
65645
65700
|
return false;
|
|
65646
65701
|
}
|
|
65647
|
-
const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */));
|
|
65648
|
-
const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */));
|
|
65702
|
+
const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */)).value;
|
|
65703
|
+
const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */)).value;
|
|
65649
65704
|
if (sourceValue !== targetValue) {
|
|
65650
65705
|
const sourceIsString = typeof sourceValue === "string";
|
|
65651
65706
|
const targetIsString = typeof targetValue === "string";
|
|
@@ -80753,7 +80808,7 @@ function createTypeChecker(host) {
|
|
|
80753
80808
|
) || unknownType, isTemplateLiteralContextualType)) {
|
|
80754
80809
|
return getTemplateLiteralType(texts, types);
|
|
80755
80810
|
}
|
|
80756
|
-
const evaluated = node.parent.kind !== 215 /* TaggedTemplateExpression */ && evaluate(node);
|
|
80811
|
+
const evaluated = node.parent.kind !== 215 /* TaggedTemplateExpression */ && evaluate(node).value;
|
|
80757
80812
|
return evaluated ? getFreshTypeOfLiteralType(getStringLiteralType(evaluated)) : stringType;
|
|
80758
80813
|
}
|
|
80759
80814
|
function isTemplateLiteralContextualType(type) {
|
|
@@ -85658,14 +85713,14 @@ function createTypeChecker(host) {
|
|
|
85658
85713
|
let autoValue = 0;
|
|
85659
85714
|
let previous;
|
|
85660
85715
|
for (const member of node.members) {
|
|
85661
|
-
const
|
|
85662
|
-
getNodeLinks(member).enumMemberValue =
|
|
85663
|
-
autoValue = typeof value === "number" ? value + 1 : void 0;
|
|
85716
|
+
const result = computeEnumMemberValue(member, autoValue, previous);
|
|
85717
|
+
getNodeLinks(member).enumMemberValue = result;
|
|
85718
|
+
autoValue = typeof result.value === "number" ? result.value + 1 : void 0;
|
|
85664
85719
|
previous = member;
|
|
85665
85720
|
}
|
|
85666
85721
|
}
|
|
85667
85722
|
}
|
|
85668
|
-
function
|
|
85723
|
+
function computeEnumMemberValue(member, autoValue, previous) {
|
|
85669
85724
|
if (isComputedNonLiteralName(member.name)) {
|
|
85670
85725
|
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
|
|
85671
85726
|
} else {
|
|
@@ -85675,34 +85730,43 @@ function createTypeChecker(host) {
|
|
|
85675
85730
|
}
|
|
85676
85731
|
}
|
|
85677
85732
|
if (member.initializer) {
|
|
85678
|
-
return
|
|
85733
|
+
return computeConstantEnumMemberValue(member);
|
|
85679
85734
|
}
|
|
85680
85735
|
if (member.parent.flags & 33554432 /* Ambient */ && !isEnumConst(member.parent)) {
|
|
85681
|
-
return
|
|
85736
|
+
return evaluatorResult(
|
|
85737
|
+
/*value*/
|
|
85738
|
+
void 0
|
|
85739
|
+
);
|
|
85682
85740
|
}
|
|
85683
85741
|
if (autoValue === void 0) {
|
|
85684
85742
|
error2(member.name, Diagnostics.Enum_member_must_have_initializer);
|
|
85685
|
-
return
|
|
85686
|
-
|
|
85687
|
-
|
|
85688
|
-
error2(
|
|
85689
|
-
member.name,
|
|
85690
|
-
Diagnostics.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled
|
|
85743
|
+
return evaluatorResult(
|
|
85744
|
+
/*value*/
|
|
85745
|
+
void 0
|
|
85691
85746
|
);
|
|
85692
85747
|
}
|
|
85693
|
-
|
|
85748
|
+
if (getIsolatedModules(compilerOptions) && (previous == null ? void 0 : previous.initializer)) {
|
|
85749
|
+
const prevValue = getEnumMemberValue(previous);
|
|
85750
|
+
if (!(typeof prevValue.value === "number" && !prevValue.resolvedOtherFiles)) {
|
|
85751
|
+
error2(
|
|
85752
|
+
member.name,
|
|
85753
|
+
Diagnostics.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled
|
|
85754
|
+
);
|
|
85755
|
+
}
|
|
85756
|
+
}
|
|
85757
|
+
return evaluatorResult(autoValue);
|
|
85694
85758
|
}
|
|
85695
|
-
function
|
|
85759
|
+
function computeConstantEnumMemberValue(member) {
|
|
85696
85760
|
const isConstEnum = isEnumConst(member.parent);
|
|
85697
85761
|
const initializer = member.initializer;
|
|
85698
|
-
const
|
|
85699
|
-
if (value !== void 0) {
|
|
85700
|
-
if (isConstEnum && typeof value === "number" && !isFinite(value)) {
|
|
85762
|
+
const result = evaluate(initializer, member);
|
|
85763
|
+
if (result.value !== void 0) {
|
|
85764
|
+
if (isConstEnum && typeof result.value === "number" && !isFinite(result.value)) {
|
|
85701
85765
|
error2(
|
|
85702
85766
|
initializer,
|
|
85703
|
-
isNaN(value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value
|
|
85767
|
+
isNaN(result.value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value
|
|
85704
85768
|
);
|
|
85705
|
-
} else if (getIsolatedModules(compilerOptions) && typeof value === "string" && !isSyntacticallyString
|
|
85769
|
+
} else if (getIsolatedModules(compilerOptions) && typeof result.value === "string" && !result.isSyntacticallyString) {
|
|
85706
85770
|
error2(
|
|
85707
85771
|
initializer,
|
|
85708
85772
|
Diagnostics._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,
|
|
@@ -85716,19 +85780,7 @@ function createTypeChecker(host) {
|
|
|
85716
85780
|
} else {
|
|
85717
85781
|
checkTypeAssignableTo(checkExpression(initializer), numberType, initializer, Diagnostics.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values);
|
|
85718
85782
|
}
|
|
85719
|
-
return
|
|
85720
|
-
}
|
|
85721
|
-
function isSyntacticallyNumericConstant(expr) {
|
|
85722
|
-
expr = skipOuterExpressions(expr);
|
|
85723
|
-
switch (expr.kind) {
|
|
85724
|
-
case 224 /* PrefixUnaryExpression */:
|
|
85725
|
-
return isSyntacticallyNumericConstant(expr.operand);
|
|
85726
|
-
case 226 /* BinaryExpression */:
|
|
85727
|
-
return isSyntacticallyNumericConstant(expr.left) && isSyntacticallyNumericConstant(expr.right);
|
|
85728
|
-
case 9 /* NumericLiteral */:
|
|
85729
|
-
return true;
|
|
85730
|
-
}
|
|
85731
|
-
return false;
|
|
85783
|
+
return result;
|
|
85732
85784
|
}
|
|
85733
85785
|
function evaluateEntityNameExpression(expr, location) {
|
|
85734
85786
|
const symbol = resolveEntityName(
|
|
@@ -85738,7 +85790,10 @@ function createTypeChecker(host) {
|
|
|
85738
85790
|
true
|
|
85739
85791
|
);
|
|
85740
85792
|
if (!symbol)
|
|
85741
|
-
return
|
|
85793
|
+
return evaluatorResult(
|
|
85794
|
+
/*value*/
|
|
85795
|
+
void 0
|
|
85796
|
+
);
|
|
85742
85797
|
if (expr.kind === 80 /* Identifier */) {
|
|
85743
85798
|
const identifier = expr;
|
|
85744
85799
|
if (isInfinityOrNaNString(identifier.escapedText) && symbol === getGlobalSymbol(
|
|
@@ -85747,7 +85802,11 @@ function createTypeChecker(host) {
|
|
|
85747
85802
|
/*diagnostic*/
|
|
85748
85803
|
void 0
|
|
85749
85804
|
)) {
|
|
85750
|
-
return
|
|
85805
|
+
return evaluatorResult(
|
|
85806
|
+
+identifier.escapedText,
|
|
85807
|
+
/*isSyntacticallyString*/
|
|
85808
|
+
false
|
|
85809
|
+
);
|
|
85751
85810
|
}
|
|
85752
85811
|
}
|
|
85753
85812
|
if (symbol.flags & 8 /* EnumMember */) {
|
|
@@ -85756,9 +85815,23 @@ function createTypeChecker(host) {
|
|
|
85756
85815
|
if (isConstantVariable(symbol)) {
|
|
85757
85816
|
const declaration = symbol.valueDeclaration;
|
|
85758
85817
|
if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
85759
|
-
|
|
85818
|
+
const result = evaluate(declaration.initializer, declaration);
|
|
85819
|
+
if (location && getSourceFileOfNode(location) !== getSourceFileOfNode(declaration)) {
|
|
85820
|
+
return evaluatorResult(
|
|
85821
|
+
result.value,
|
|
85822
|
+
/*isSyntacticallyString*/
|
|
85823
|
+
false,
|
|
85824
|
+
/*resolvedOtherFiles*/
|
|
85825
|
+
true
|
|
85826
|
+
);
|
|
85827
|
+
}
|
|
85828
|
+
return result;
|
|
85760
85829
|
}
|
|
85761
85830
|
}
|
|
85831
|
+
return evaluatorResult(
|
|
85832
|
+
/*value*/
|
|
85833
|
+
void 0
|
|
85834
|
+
);
|
|
85762
85835
|
}
|
|
85763
85836
|
function evaluateElementAccessExpression(expr, location) {
|
|
85764
85837
|
const root = expr.expression;
|
|
@@ -85773,20 +85846,31 @@ function createTypeChecker(host) {
|
|
|
85773
85846
|
const name = escapeLeadingUnderscores(expr.argumentExpression.text);
|
|
85774
85847
|
const member = rootSymbol.exports.get(name);
|
|
85775
85848
|
if (member) {
|
|
85849
|
+
Debug.assert(getSourceFileOfNode(member.valueDeclaration) === getSourceFileOfNode(rootSymbol.valueDeclaration));
|
|
85776
85850
|
return location ? evaluateEnumMember(expr, member, location) : getEnumMemberValue(member.valueDeclaration);
|
|
85777
85851
|
}
|
|
85778
85852
|
}
|
|
85779
85853
|
}
|
|
85854
|
+
return evaluatorResult(
|
|
85855
|
+
/*value*/
|
|
85856
|
+
void 0
|
|
85857
|
+
);
|
|
85780
85858
|
}
|
|
85781
85859
|
function evaluateEnumMember(expr, symbol, location) {
|
|
85782
85860
|
const declaration = symbol.valueDeclaration;
|
|
85783
85861
|
if (!declaration || declaration === location) {
|
|
85784
85862
|
error2(expr, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(symbol));
|
|
85785
|
-
return
|
|
85863
|
+
return evaluatorResult(
|
|
85864
|
+
/*value*/
|
|
85865
|
+
void 0
|
|
85866
|
+
);
|
|
85786
85867
|
}
|
|
85787
85868
|
if (!isBlockScopedNameDeclaredBeforeUse(declaration, location)) {
|
|
85788
85869
|
error2(expr, Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums);
|
|
85789
|
-
return
|
|
85870
|
+
return evaluatorResult(
|
|
85871
|
+
/*value*/
|
|
85872
|
+
0
|
|
85873
|
+
);
|
|
85790
85874
|
}
|
|
85791
85875
|
return getEnumMemberValue(declaration);
|
|
85792
85876
|
}
|
|
@@ -87927,7 +88011,10 @@ function createTypeChecker(host) {
|
|
|
87927
88011
|
}
|
|
87928
88012
|
function getEnumMemberValue(node) {
|
|
87929
88013
|
computeEnumMemberValues(node.parent);
|
|
87930
|
-
return getNodeLinks(node).enumMemberValue
|
|
88014
|
+
return getNodeLinks(node).enumMemberValue ?? evaluatorResult(
|
|
88015
|
+
/*value*/
|
|
88016
|
+
void 0
|
|
88017
|
+
);
|
|
87931
88018
|
}
|
|
87932
88019
|
function canHaveConstantValue(node) {
|
|
87933
88020
|
switch (node.kind) {
|
|
@@ -87940,13 +88027,13 @@ function createTypeChecker(host) {
|
|
|
87940
88027
|
}
|
|
87941
88028
|
function getConstantValue2(node) {
|
|
87942
88029
|
if (node.kind === 306 /* EnumMember */) {
|
|
87943
|
-
return getEnumMemberValue(node);
|
|
88030
|
+
return getEnumMemberValue(node).value;
|
|
87944
88031
|
}
|
|
87945
88032
|
const symbol = getNodeLinks(node).resolvedSymbol;
|
|
87946
88033
|
if (symbol && symbol.flags & 8 /* EnumMember */) {
|
|
87947
88034
|
const member = symbol.valueDeclaration;
|
|
87948
88035
|
if (isEnumConst(member.parent)) {
|
|
87949
|
-
return getEnumMemberValue(member);
|
|
88036
|
+
return getEnumMemberValue(member).value;
|
|
87950
88037
|
}
|
|
87951
88038
|
}
|
|
87952
88039
|
return void 0;
|
|
@@ -88321,6 +88408,10 @@ function createTypeChecker(host) {
|
|
|
88321
88408
|
const node = getParseTreeNode(nodeIn, canHaveConstantValue);
|
|
88322
88409
|
return node ? getConstantValue2(node) : void 0;
|
|
88323
88410
|
},
|
|
88411
|
+
getEnumMemberValue: (nodeIn) => {
|
|
88412
|
+
const node = getParseTreeNode(nodeIn, isEnumMember);
|
|
88413
|
+
return node ? getEnumMemberValue(node) : void 0;
|
|
88414
|
+
},
|
|
88324
88415
|
collectLinkedAliases,
|
|
88325
88416
|
getReferencedValueDeclaration,
|
|
88326
88417
|
getReferencedValueDeclarations,
|
|
@@ -94726,7 +94817,8 @@ function transformTypeScript(context) {
|
|
|
94726
94817
|
/*generateNameForComputedPropertyName*/
|
|
94727
94818
|
false
|
|
94728
94819
|
);
|
|
94729
|
-
const
|
|
94820
|
+
const evaluated = resolver.getEnumMemberValue(member);
|
|
94821
|
+
const valueExpression = transformEnumMemberDeclarationValue(member, evaluated == null ? void 0 : evaluated.value);
|
|
94730
94822
|
const innerAssignment = factory2.createAssignment(
|
|
94731
94823
|
factory2.createElementAccessExpression(
|
|
94732
94824
|
currentNamespaceContainerName,
|
|
@@ -94734,7 +94826,7 @@ function transformTypeScript(context) {
|
|
|
94734
94826
|
),
|
|
94735
94827
|
valueExpression
|
|
94736
94828
|
);
|
|
94737
|
-
const outerAssignment =
|
|
94829
|
+
const outerAssignment = typeof (evaluated == null ? void 0 : evaluated.value) === "string" || (evaluated == null ? void 0 : evaluated.isSyntacticallyString) ? innerAssignment : factory2.createAssignment(
|
|
94738
94830
|
factory2.createElementAccessExpression(
|
|
94739
94831
|
currentNamespaceContainerName,
|
|
94740
94832
|
innerAssignment
|
|
@@ -94751,10 +94843,9 @@ function transformTypeScript(context) {
|
|
|
94751
94843
|
member
|
|
94752
94844
|
);
|
|
94753
94845
|
}
|
|
94754
|
-
function transformEnumMemberDeclarationValue(member) {
|
|
94755
|
-
|
|
94756
|
-
|
|
94757
|
-
return typeof value === "string" ? factory2.createStringLiteral(value) : value < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(-value)) : factory2.createNumericLiteral(value);
|
|
94846
|
+
function transformEnumMemberDeclarationValue(member, constantValue) {
|
|
94847
|
+
if (constantValue !== void 0) {
|
|
94848
|
+
return typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(-constantValue)) : factory2.createNumericLiteral(constantValue);
|
|
94758
94849
|
} else {
|
|
94759
94850
|
enableSubstitutionForNonQualifiedEnumMembers();
|
|
94760
94851
|
if (member.initializer) {
|
|
@@ -116105,6 +116196,7 @@ var notImplementedResolver = {
|
|
|
116105
116196
|
isEntityNameVisible: notImplemented,
|
|
116106
116197
|
// Returns the constant value this property access resolves to: notImplemented, or 'undefined' for a non-constant
|
|
116107
116198
|
getConstantValue: notImplemented,
|
|
116199
|
+
getEnumMemberValue: notImplemented,
|
|
116108
116200
|
getReferencedValueDeclaration: notImplemented,
|
|
116109
116201
|
getReferencedValueDeclarations: notImplemented,
|
|
116110
116202
|
getTypeReferenceSerializationKind: notImplemented,
|
|
@@ -122223,7 +122315,6 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
122223
122315
|
forEachResolvedProjectReference: forEachResolvedProjectReference2,
|
|
122224
122316
|
isSourceOfProjectReferenceRedirect,
|
|
122225
122317
|
getRedirectReferenceForResolutionFromSourceOfProject,
|
|
122226
|
-
getRedirectReferenceForResolution,
|
|
122227
122318
|
emitBuildInfo,
|
|
122228
122319
|
fileExists,
|
|
122229
122320
|
readFile,
|
|
@@ -127180,8 +127271,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
127180
127271
|
getResolutionWithResolvedFileName,
|
|
127181
127272
|
deferWatchingNonRelativeResolution,
|
|
127182
127273
|
shouldRetryResolution,
|
|
127183
|
-
logChanges
|
|
127184
|
-
canWatchFailedLookups
|
|
127274
|
+
logChanges
|
|
127185
127275
|
}) {
|
|
127186
127276
|
const path = resolutionHost.toPath(containingFile);
|
|
127187
127277
|
const resolutionsInFile = perFileCache.get(path) || perFileCache.set(path, createModeAwareCache()).get(path);
|
|
@@ -127204,14 +127294,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
127204
127294
|
}
|
|
127205
127295
|
resolutionsInFile.set(name, mode, resolution);
|
|
127206
127296
|
if (resolution !== existingResolution) {
|
|
127207
|
-
watchFailedLookupLocationsOfExternalModuleResolutions(
|
|
127208
|
-
name,
|
|
127209
|
-
resolution,
|
|
127210
|
-
path,
|
|
127211
|
-
getResolutionWithResolvedFileName,
|
|
127212
|
-
deferWatchingNonRelativeResolution,
|
|
127213
|
-
(resolution2) => canWatchFailedLookups(resolution2, (redirectedReference == null ? void 0 : redirectedReference.commandLine.options) || options, containingSourceFile)
|
|
127214
|
-
);
|
|
127297
|
+
watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution);
|
|
127215
127298
|
if (existingResolution) {
|
|
127216
127299
|
stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName);
|
|
127217
127300
|
}
|
|
@@ -127290,8 +127373,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
127290
127373
|
),
|
|
127291
127374
|
getResolutionWithResolvedFileName: getResolvedTypeReferenceDirective,
|
|
127292
127375
|
shouldRetryResolution: (resolution) => resolution.resolvedTypeReferenceDirective === void 0,
|
|
127293
|
-
deferWatchingNonRelativeResolution: false
|
|
127294
|
-
canWatchFailedLookups: canWatchFailedLookupsOfTypeReferencedDirective
|
|
127376
|
+
deferWatchingNonRelativeResolution: false
|
|
127295
127377
|
});
|
|
127296
127378
|
}
|
|
127297
127379
|
function resolveModuleNameLiterals(moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, reusedNames) {
|
|
@@ -127313,9 +127395,8 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
127313
127395
|
getResolutionWithResolvedFileName: getResolvedModule,
|
|
127314
127396
|
shouldRetryResolution: (resolution) => !resolution.resolvedModule || !resolutionExtensionIsTSOrJson(resolution.resolvedModule.extension),
|
|
127315
127397
|
logChanges: logChangesWhenResolvingModule,
|
|
127316
|
-
deferWatchingNonRelativeResolution: true
|
|
127398
|
+
deferWatchingNonRelativeResolution: true
|
|
127317
127399
|
// Defer non relative resolution watch because we could be using ambient modules
|
|
127318
|
-
canWatchFailedLookups: canWatchFailedLookupsOfResolvedModule
|
|
127319
127400
|
});
|
|
127320
127401
|
}
|
|
127321
127402
|
function resolveLibrary2(libraryName, resolveFrom, options, libFileName) {
|
|
@@ -127331,8 +127412,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
127331
127412
|
path,
|
|
127332
127413
|
getResolvedModule,
|
|
127333
127414
|
/*deferWatchingNonRelativeResolution*/
|
|
127334
|
-
false
|
|
127335
|
-
canWatchFailedLookupsOfResolvedLibrary
|
|
127415
|
+
false
|
|
127336
127416
|
);
|
|
127337
127417
|
resolvedLibraries.set(libFileName, resolution);
|
|
127338
127418
|
if (existingResolution) {
|
|
@@ -127379,18 +127459,16 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
127379
127459
|
function isNodeModulesAtTypesDirectory(dirPath) {
|
|
127380
127460
|
return endsWith(dirPath, "/node_modules/@types");
|
|
127381
127461
|
}
|
|
127382
|
-
function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution
|
|
127383
|
-
var _a
|
|
127462
|
+
function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution) {
|
|
127463
|
+
var _a;
|
|
127384
127464
|
if (resolution.refCount) {
|
|
127385
127465
|
resolution.refCount++;
|
|
127386
127466
|
Debug.assertIsDefined(resolution.files);
|
|
127387
127467
|
} else {
|
|
127388
127468
|
resolution.refCount = 1;
|
|
127389
127469
|
Debug.assert(!((_a = resolution.files) == null ? void 0 : _a.size));
|
|
127390
|
-
if (((_b = resolution.failedLookupLocations) == null ? void 0 : _b.length) && canWatchFailedLookups(resolution))
|
|
127391
|
-
resolution.canWatchFailedLookups = true;
|
|
127392
127470
|
if (!deferWatchingNonRelativeResolution || isExternalModuleNameRelative(name)) {
|
|
127393
|
-
|
|
127471
|
+
watchFailedLookupLocationOfResolution(resolution);
|
|
127394
127472
|
} else {
|
|
127395
127473
|
nonRelativeExternalModuleResolutions.add(name, resolution);
|
|
127396
127474
|
}
|
|
@@ -127426,16 +127504,15 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
127426
127504
|
}
|
|
127427
127505
|
return setAtRoot;
|
|
127428
127506
|
}
|
|
127429
|
-
function
|
|
127507
|
+
function watchFailedLookupLocationOfResolution(resolution) {
|
|
127430
127508
|
Debug.assert(!!resolution.refCount);
|
|
127431
127509
|
const { failedLookupLocations, affectingLocations, alternateResult } = resolution;
|
|
127432
127510
|
if (!(failedLookupLocations == null ? void 0 : failedLookupLocations.length) && !(affectingLocations == null ? void 0 : affectingLocations.length) && !alternateResult)
|
|
127433
127511
|
return;
|
|
127434
|
-
|
|
127435
|
-
if (addToFailedLookup)
|
|
127512
|
+
if ((failedLookupLocations == null ? void 0 : failedLookupLocations.length) || alternateResult)
|
|
127436
127513
|
resolutionsWithFailedLookups.add(resolution);
|
|
127437
127514
|
let setAtRoot = false;
|
|
127438
|
-
if (
|
|
127515
|
+
if (failedLookupLocations) {
|
|
127439
127516
|
for (const failedLookupLocation of failedLookupLocations) {
|
|
127440
127517
|
setAtRoot = watchFailedLookupLocation(failedLookupLocation, setAtRoot);
|
|
127441
127518
|
}
|
|
@@ -127450,7 +127527,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
127450
127527
|
true
|
|
127451
127528
|
);
|
|
127452
127529
|
}
|
|
127453
|
-
watchAffectingLocationsOfResolution(resolution, !
|
|
127530
|
+
watchAffectingLocationsOfResolution(resolution, !(failedLookupLocations == null ? void 0 : failedLookupLocations.length) && !alternateResult);
|
|
127454
127531
|
}
|
|
127455
127532
|
function watchAffectingLocationsOfResolution(resolution, addToResolutionsWithOnlyAffectingLocations) {
|
|
127456
127533
|
Debug.assert(!!resolution.refCount);
|
|
@@ -127537,7 +127614,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
127537
127614
|
function watchFailedLookupLocationOfNonRelativeModuleResolutions(resolutions, name) {
|
|
127538
127615
|
const program = resolutionHost.getCurrentProgram();
|
|
127539
127616
|
if (!program || !program.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(name)) {
|
|
127540
|
-
resolutions.forEach(
|
|
127617
|
+
resolutions.forEach(watchFailedLookupLocationOfResolution);
|
|
127541
127618
|
} else {
|
|
127542
127619
|
resolutions.forEach((resolution) => watchAffectingLocationsOfResolution(
|
|
127543
127620
|
resolution,
|
|
@@ -127588,10 +127665,10 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
127588
127665
|
if ((resolutions == null ? void 0 : resolutions.delete(resolution)) && !resolutions.size)
|
|
127589
127666
|
resolvedFileToResolution.delete(key);
|
|
127590
127667
|
}
|
|
127591
|
-
const {
|
|
127668
|
+
const { failedLookupLocations, affectingLocations, alternateResult } = resolution;
|
|
127592
127669
|
if (resolutionsWithFailedLookups.delete(resolution)) {
|
|
127593
127670
|
let removeAtRoot = false;
|
|
127594
|
-
if (
|
|
127671
|
+
if (failedLookupLocations) {
|
|
127595
127672
|
for (const failedLookupLocation of failedLookupLocations) {
|
|
127596
127673
|
removeAtRoot = stopWatchFailedLookupLocation(failedLookupLocation, removeAtRoot, syncDirWatcherRemove);
|
|
127597
127674
|
}
|
|
@@ -127764,7 +127841,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
127764
127841
|
return true;
|
|
127765
127842
|
if (!failedLookupChecks && !startsWithPathChecks && !isInDirectoryChecks)
|
|
127766
127843
|
return false;
|
|
127767
|
-
return
|
|
127844
|
+
return ((_a = resolution.failedLookupLocations) == null ? void 0 : _a.some((location) => isInvalidatedFailedLookup(resolutionHost.toPath(location)))) || !!resolution.alternateResult && isInvalidatedFailedLookup(resolutionHost.toPath(resolution.alternateResult));
|
|
127768
127845
|
}
|
|
127769
127846
|
function isInvalidatedFailedLookup(locationPath) {
|
|
127770
127847
|
return (failedLookupChecks == null ? void 0 : failedLookupChecks.has(locationPath)) || firstDefinedIterator((startsWithPathChecks == null ? void 0 : startsWithPathChecks.keys()) || [], (fileOrDirectoryPath) => startsWith(locationPath, fileOrDirectoryPath) ? true : void 0) || firstDefinedIterator((isInDirectoryChecks == null ? void 0 : isInDirectoryChecks.keys()) || [], (dirPath) => locationPath.length > dirPath.length && startsWith(locationPath, dirPath) && (isDiskPathRoot(dirPath) || locationPath[dirPath.length] === directorySeparator) ? true : void 0);
|
|
@@ -127827,16 +127904,6 @@ function resolutionIsSymlink(resolution) {
|
|
|
127827
127904
|
var _a, _b;
|
|
127828
127905
|
return !!(((_a = resolution.resolvedModule) == null ? void 0 : _a.originalPath) || ((_b = resolution.resolvedTypeReferenceDirective) == null ? void 0 : _b.originalPath));
|
|
127829
127906
|
}
|
|
127830
|
-
function canWatchFailedLookupsOfResolvedModule(resolution, optionsForFile, file) {
|
|
127831
|
-
var _a;
|
|
127832
|
-
return !resolution.resolvedModule || !!resolution.alternateResult || !!((_a = resolution.resolutionDiagnostics) == null ? void 0 : _a.length) || !!getResolutionDiagnostic(optionsForFile, resolution.resolvedModule, file);
|
|
127833
|
-
}
|
|
127834
|
-
function canWatchFailedLookupsOfTypeReferencedDirective(resolution) {
|
|
127835
|
-
return !resolution.resolvedTypeReferenceDirective;
|
|
127836
|
-
}
|
|
127837
|
-
function canWatchFailedLookupsOfResolvedLibrary(resolution) {
|
|
127838
|
-
return !resolution.resolvedModule;
|
|
127839
|
-
}
|
|
127840
127907
|
|
|
127841
127908
|
// src/compiler/watch.ts
|
|
127842
127909
|
var sysFormatDiagnosticsHost = sys ? {
|
|
@@ -144504,11 +144571,14 @@ var NodeObject = class {
|
|
|
144504
144571
|
constructor(kind, pos, end) {
|
|
144505
144572
|
this.pos = pos;
|
|
144506
144573
|
this.end = end;
|
|
144574
|
+
this.kind = kind;
|
|
144575
|
+
this.id = 0;
|
|
144507
144576
|
this.flags = 0 /* None */;
|
|
144508
144577
|
this.modifierFlagsCache = 0 /* None */;
|
|
144509
144578
|
this.transformFlags = 0 /* None */;
|
|
144510
144579
|
this.parent = void 0;
|
|
144511
|
-
this.
|
|
144580
|
+
this.original = void 0;
|
|
144581
|
+
this.emitNode = void 0;
|
|
144512
144582
|
}
|
|
144513
144583
|
assertHasRealPosition(message) {
|
|
144514
144584
|
Debug.assert(!positionIsSynthesized(this.pos) && !positionIsSynthesized(this.end), message || "Node must have a real position for this operation");
|
|
@@ -144559,7 +144629,7 @@ var NodeObject = class {
|
|
|
144559
144629
|
}
|
|
144560
144630
|
getChildren(sourceFile) {
|
|
144561
144631
|
this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine");
|
|
144562
|
-
return this
|
|
144632
|
+
return getNodeChildren(this) ?? setNodeChildren(this, createChildren(this, sourceFile));
|
|
144563
144633
|
}
|
|
144564
144634
|
getFirstToken(sourceFile) {
|
|
144565
144635
|
this.assertHasRealPosition();
|
|
@@ -144635,24 +144705,27 @@ function addSyntheticNodes(nodes, pos, end, parent2) {
|
|
|
144635
144705
|
}
|
|
144636
144706
|
function createSyntaxList(nodes, parent2) {
|
|
144637
144707
|
const list = createNode(352 /* SyntaxList */, nodes.pos, nodes.end, parent2);
|
|
144638
|
-
|
|
144708
|
+
const children = [];
|
|
144639
144709
|
let pos = nodes.pos;
|
|
144640
144710
|
for (const node of nodes) {
|
|
144641
|
-
addSyntheticNodes(
|
|
144642
|
-
|
|
144711
|
+
addSyntheticNodes(children, pos, node.pos, parent2);
|
|
144712
|
+
children.push(node);
|
|
144643
144713
|
pos = node.end;
|
|
144644
144714
|
}
|
|
144645
|
-
addSyntheticNodes(
|
|
144715
|
+
addSyntheticNodes(children, pos, nodes.end, parent2);
|
|
144716
|
+
setNodeChildren(list, children);
|
|
144646
144717
|
return list;
|
|
144647
144718
|
}
|
|
144648
144719
|
var TokenOrIdentifierObject = class {
|
|
144649
|
-
constructor(pos, end) {
|
|
144720
|
+
constructor(kind, pos, end) {
|
|
144650
144721
|
this.pos = pos;
|
|
144651
144722
|
this.end = end;
|
|
144723
|
+
this.kind = kind;
|
|
144724
|
+
this.id = 0;
|
|
144652
144725
|
this.flags = 0 /* None */;
|
|
144653
|
-
this.modifierFlagsCache = 0 /* None */;
|
|
144654
144726
|
this.transformFlags = 0 /* None */;
|
|
144655
144727
|
this.parent = void 0;
|
|
144728
|
+
this.emitNode = void 0;
|
|
144656
144729
|
}
|
|
144657
144730
|
getSourceFile() {
|
|
144658
144731
|
return getSourceFileOfNode(this);
|
|
@@ -144705,10 +144778,20 @@ var TokenOrIdentifierObject = class {
|
|
|
144705
144778
|
};
|
|
144706
144779
|
var SymbolObject = class {
|
|
144707
144780
|
constructor(flags, name) {
|
|
144708
|
-
this.id = 0;
|
|
144709
|
-
this.mergeId = 0;
|
|
144710
144781
|
this.flags = flags;
|
|
144711
144782
|
this.escapedName = name;
|
|
144783
|
+
this.declarations = void 0;
|
|
144784
|
+
this.valueDeclaration = void 0;
|
|
144785
|
+
this.id = 0;
|
|
144786
|
+
this.mergeId = 0;
|
|
144787
|
+
this.parent = void 0;
|
|
144788
|
+
this.members = void 0;
|
|
144789
|
+
this.exports = void 0;
|
|
144790
|
+
this.exportSymbol = void 0;
|
|
144791
|
+
this.constEnumOnlyModule = void 0;
|
|
144792
|
+
this.isReferenced = void 0;
|
|
144793
|
+
this.lastAssignmentPos = void 0;
|
|
144794
|
+
this.links = void 0;
|
|
144712
144795
|
}
|
|
144713
144796
|
getFlags() {
|
|
144714
144797
|
return this.flags;
|
|
@@ -144788,34 +144871,29 @@ var SymbolObject = class {
|
|
|
144788
144871
|
};
|
|
144789
144872
|
var TokenObject = class extends TokenOrIdentifierObject {
|
|
144790
144873
|
constructor(kind, pos, end) {
|
|
144791
|
-
super(pos, end);
|
|
144792
|
-
this.kind = kind;
|
|
144874
|
+
super(kind, pos, end);
|
|
144793
144875
|
}
|
|
144794
144876
|
};
|
|
144795
144877
|
var IdentifierObject = class extends TokenOrIdentifierObject {
|
|
144796
|
-
constructor(
|
|
144797
|
-
super(pos, end);
|
|
144798
|
-
this.kind = 80 /* Identifier */;
|
|
144878
|
+
constructor(kind, pos, end) {
|
|
144879
|
+
super(kind, pos, end);
|
|
144799
144880
|
}
|
|
144800
144881
|
get text() {
|
|
144801
144882
|
return idText(this);
|
|
144802
144883
|
}
|
|
144803
144884
|
};
|
|
144804
|
-
IdentifierObject.prototype.kind = 80 /* Identifier */;
|
|
144805
144885
|
var PrivateIdentifierObject = class extends TokenOrIdentifierObject {
|
|
144806
|
-
constructor(
|
|
144807
|
-
super(pos, end);
|
|
144808
|
-
this.kind = 81 /* PrivateIdentifier */;
|
|
144886
|
+
constructor(kind, pos, end) {
|
|
144887
|
+
super(kind, pos, end);
|
|
144809
144888
|
}
|
|
144810
144889
|
get text() {
|
|
144811
144890
|
return idText(this);
|
|
144812
144891
|
}
|
|
144813
144892
|
};
|
|
144814
|
-
PrivateIdentifierObject.prototype.kind = 81 /* PrivateIdentifier */;
|
|
144815
144893
|
var TypeObject = class {
|
|
144816
144894
|
constructor(checker, flags) {
|
|
144817
|
-
this.checker = checker;
|
|
144818
144895
|
this.flags = flags;
|
|
144896
|
+
this.checker = checker;
|
|
144819
144897
|
}
|
|
144820
144898
|
getFlags() {
|
|
144821
144899
|
return this.flags;
|
|
@@ -144905,8 +144983,8 @@ var TypeObject = class {
|
|
|
144905
144983
|
var SignatureObject = class {
|
|
144906
144984
|
// same
|
|
144907
144985
|
constructor(checker, flags) {
|
|
144908
|
-
this.checker = checker;
|
|
144909
144986
|
this.flags = flags;
|
|
144987
|
+
this.checker = checker;
|
|
144910
144988
|
}
|
|
144911
144989
|
getDeclaration() {
|
|
144912
144990
|
return this.declaration;
|
|
@@ -145002,7 +145080,6 @@ function findBaseOfDeclaration(checker, declaration, cb) {
|
|
|
145002
145080
|
var SourceFileObject = class extends NodeObject {
|
|
145003
145081
|
constructor(kind, pos, end) {
|
|
145004
145082
|
super(kind, pos, end);
|
|
145005
|
-
this.kind = 307 /* SourceFile */;
|
|
145006
145083
|
}
|
|
145007
145084
|
update(newText, textChangeRange) {
|
|
145008
145085
|
return updateSourceFile(this, newText, textChangeRange);
|
|
@@ -145153,7 +145230,7 @@ var SourceMapSourceObject = class {
|
|
|
145153
145230
|
constructor(fileName, text, skipTrivia2) {
|
|
145154
145231
|
this.fileName = fileName;
|
|
145155
145232
|
this.text = text;
|
|
145156
|
-
this.skipTrivia = skipTrivia2;
|
|
145233
|
+
this.skipTrivia = skipTrivia2 || ((pos) => pos);
|
|
145157
145234
|
}
|
|
145158
145235
|
getLineAndCharacterOfPosition(pos) {
|
|
145159
145236
|
return getLineAndCharacterOfPosition(this, pos);
|
|
@@ -150289,7 +150366,8 @@ function canConvertImportDeclarationForSpecifier(specifier, sourceFile, program)
|
|
|
150289
150366
|
const checker = program.getTypeChecker();
|
|
150290
150367
|
for (const specifier2 of nonTypeOnlySpecifiers) {
|
|
150291
150368
|
const isUsedAsValue = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(specifier2.name, checker, sourceFile, (usage) => {
|
|
150292
|
-
|
|
150369
|
+
const symbol = checker.getSymbolAtLocation(usage);
|
|
150370
|
+
return !!symbol && checker.symbolIsValue(symbol) || !isValidTypeOnlyAliasUseSite(usage);
|
|
150293
150371
|
});
|
|
150294
150372
|
if (isUsedAsValue) {
|
|
150295
150373
|
return false;
|
|
@@ -173942,9 +174020,6 @@ __export(ts_exports2, {
|
|
|
173942
174020
|
canWatchAffectingLocation: () => canWatchAffectingLocation,
|
|
173943
174021
|
canWatchAtTypes: () => canWatchAtTypes,
|
|
173944
174022
|
canWatchDirectoryOrFile: () => canWatchDirectoryOrFile,
|
|
173945
|
-
canWatchFailedLookupsOfResolvedLibrary: () => canWatchFailedLookupsOfResolvedLibrary,
|
|
173946
|
-
canWatchFailedLookupsOfResolvedModule: () => canWatchFailedLookupsOfResolvedModule,
|
|
173947
|
-
canWatchFailedLookupsOfTypeReferencedDirective: () => canWatchFailedLookupsOfTypeReferencedDirective,
|
|
173948
174023
|
cartesianProduct: () => cartesianProduct,
|
|
173949
174024
|
cast: () => cast,
|
|
173950
174025
|
chainBundle: () => chainBundle,
|
|
@@ -174225,6 +174300,7 @@ __export(ts_exports2, {
|
|
|
174225
174300
|
escapeSnippetText: () => escapeSnippetText,
|
|
174226
174301
|
escapeString: () => escapeString,
|
|
174227
174302
|
escapeTemplateSubstitution: () => escapeTemplateSubstitution,
|
|
174303
|
+
evaluatorResult: () => evaluatorResult,
|
|
174228
174304
|
every: () => every,
|
|
174229
174305
|
expandPreOrPostfixIncrementOrDecrementExpression: () => expandPreOrPostfixIncrementOrDecrementExpression,
|
|
174230
174306
|
explainFiles: () => explainFiles,
|
|
@@ -174591,6 +174667,7 @@ __export(ts_exports2, {
|
|
|
174591
174667
|
getNewLineOrDefaultFromHost: () => getNewLineOrDefaultFromHost,
|
|
174592
174668
|
getNewTargetContainer: () => getNewTargetContainer,
|
|
174593
174669
|
getNextJSDocCommentLocation: () => getNextJSDocCommentLocation,
|
|
174670
|
+
getNodeChildren: () => getNodeChildren,
|
|
174594
174671
|
getNodeForGeneratedName: () => getNodeForGeneratedName,
|
|
174595
174672
|
getNodeId: () => getNodeId,
|
|
174596
174673
|
getNodeKind: () => getNodeKind,
|
|
@@ -175444,7 +175521,6 @@ __export(ts_exports2, {
|
|
|
175444
175521
|
isSuperProperty: () => isSuperProperty,
|
|
175445
175522
|
isSupportedSourceFileName: () => isSupportedSourceFileName,
|
|
175446
175523
|
isSwitchStatement: () => isSwitchStatement,
|
|
175447
|
-
isSyntacticallyString: () => isSyntacticallyString,
|
|
175448
175524
|
isSyntaxList: () => isSyntaxList,
|
|
175449
175525
|
isSyntheticExpression: () => isSyntheticExpression,
|
|
175450
175526
|
isSyntheticReference: () => isSyntheticReference,
|
|
@@ -175776,6 +175852,7 @@ __export(ts_exports2, {
|
|
|
175776
175852
|
setInternalEmitFlags: () => setInternalEmitFlags,
|
|
175777
175853
|
setLocalizedDiagnosticMessages: () => setLocalizedDiagnosticMessages,
|
|
175778
175854
|
setModuleDefaultHelper: () => setModuleDefaultHelper,
|
|
175855
|
+
setNodeChildren: () => setNodeChildren,
|
|
175779
175856
|
setNodeFlags: () => setNodeFlags,
|
|
175780
175857
|
setObjectAllocator: () => setObjectAllocator,
|
|
175781
175858
|
setOriginalNode: () => setOriginalNode,
|
|
@@ -175970,6 +176047,7 @@ __export(ts_exports2, {
|
|
|
175970
176047
|
unorderedRemoveItem: () => unorderedRemoveItem,
|
|
175971
176048
|
unorderedRemoveItemAt: () => unorderedRemoveItemAt,
|
|
175972
176049
|
unreachableCodeIsError: () => unreachableCodeIsError,
|
|
176050
|
+
unsetNodeChildren: () => unsetNodeChildren,
|
|
175973
176051
|
unusedLabelIsError: () => unusedLabelIsError,
|
|
175974
176052
|
unwrapInnermostStatementOfLabel: () => unwrapInnermostStatementOfLabel,
|
|
175975
176053
|
updateErrorForNoInputFiles: () => updateErrorForNoInputFiles,
|
|
@@ -188161,9 +188239,6 @@ if (typeof console !== "undefined") {
|
|
|
188161
188239
|
canWatchAffectingLocation,
|
|
188162
188240
|
canWatchAtTypes,
|
|
188163
188241
|
canWatchDirectoryOrFile,
|
|
188164
|
-
canWatchFailedLookupsOfResolvedLibrary,
|
|
188165
|
-
canWatchFailedLookupsOfResolvedModule,
|
|
188166
|
-
canWatchFailedLookupsOfTypeReferencedDirective,
|
|
188167
188242
|
cartesianProduct,
|
|
188168
188243
|
cast,
|
|
188169
188244
|
chainBundle,
|
|
@@ -188444,6 +188519,7 @@ if (typeof console !== "undefined") {
|
|
|
188444
188519
|
escapeSnippetText,
|
|
188445
188520
|
escapeString,
|
|
188446
188521
|
escapeTemplateSubstitution,
|
|
188522
|
+
evaluatorResult,
|
|
188447
188523
|
every,
|
|
188448
188524
|
expandPreOrPostfixIncrementOrDecrementExpression,
|
|
188449
188525
|
explainFiles,
|
|
@@ -188810,6 +188886,7 @@ if (typeof console !== "undefined") {
|
|
|
188810
188886
|
getNewLineOrDefaultFromHost,
|
|
188811
188887
|
getNewTargetContainer,
|
|
188812
188888
|
getNextJSDocCommentLocation,
|
|
188889
|
+
getNodeChildren,
|
|
188813
188890
|
getNodeForGeneratedName,
|
|
188814
188891
|
getNodeId,
|
|
188815
188892
|
getNodeKind,
|
|
@@ -189663,7 +189740,6 @@ if (typeof console !== "undefined") {
|
|
|
189663
189740
|
isSuperProperty,
|
|
189664
189741
|
isSupportedSourceFileName,
|
|
189665
189742
|
isSwitchStatement,
|
|
189666
|
-
isSyntacticallyString,
|
|
189667
189743
|
isSyntaxList,
|
|
189668
189744
|
isSyntheticExpression,
|
|
189669
189745
|
isSyntheticReference,
|
|
@@ -189995,6 +190071,7 @@ if (typeof console !== "undefined") {
|
|
|
189995
190071
|
setInternalEmitFlags,
|
|
189996
190072
|
setLocalizedDiagnosticMessages,
|
|
189997
190073
|
setModuleDefaultHelper,
|
|
190074
|
+
setNodeChildren,
|
|
189998
190075
|
setNodeFlags,
|
|
189999
190076
|
setObjectAllocator,
|
|
190000
190077
|
setOriginalNode,
|
|
@@ -190189,6 +190266,7 @@ if (typeof console !== "undefined") {
|
|
|
190189
190266
|
unorderedRemoveItem,
|
|
190190
190267
|
unorderedRemoveItemAt,
|
|
190191
190268
|
unreachableCodeIsError,
|
|
190269
|
+
unsetNodeChildren,
|
|
190192
190270
|
unusedLabelIsError,
|
|
190193
190271
|
unwrapInnermostStatementOfLabel,
|
|
190194
190272
|
updateErrorForNoInputFiles,
|