Skip to content

Commit

Permalink
Update LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Feb 10, 2025
1 parent fb59c19 commit 48eb13f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 12 deletions.
29 changes: 23 additions & 6 deletions lib/_tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -86184,7 +86184,7 @@ function createTypeChecker(host) {
name,
meaning,
/*ignoreErrors*/
false,
true,
/*dontResolveAlias*/
true
);
Expand All @@ -86194,7 +86194,9 @@ function createTypeChecker(host) {
return resolveEntityName(
name,
/*meaning*/
1 /* FunctionScopedVariable */
1 /* FunctionScopedVariable */,
/*ignoreErrors*/
true
);
}
return void 0;
Expand Down Expand Up @@ -86379,7 +86381,12 @@ function createTypeChecker(host) {
}
function getShorthandAssignmentValueSymbol(location) {
if (location && location.kind === 304 /* ShorthandPropertyAssignment */) {
return resolveEntityName(location.name, 111551 /* Value */ | 2097152 /* Alias */);
return resolveEntityName(
location.name,
111551 /* Value */ | 2097152 /* Alias */,
/*ignoreErrors*/
true
);
}
return void 0;
}
Expand All @@ -86388,10 +86395,20 @@ function createTypeChecker(host) {
const name = node.propertyName || node.name;
return node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node) : name.kind === 11 /* StringLiteral */ ? void 0 : (
// Skip for invalid syntax like this: export { "x" }
resolveEntityName(name, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */)
resolveEntityName(
name,
111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */,
/*ignoreErrors*/
true
)
);
} else {
return resolveEntityName(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */);
return resolveEntityName(
node,
111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */,
/*ignoreErrors*/
true
);
}
}
function getTypeOfNode(node) {
Expand Down Expand Up @@ -111857,7 +111874,7 @@ function transformECMAScriptModule(context) {
if (node === (importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim[0])) {
return visitImportOrRequireCall(importsAndRequiresToRewriteOrShim.shift());
}
break;
// fallthrough
default:
if ((importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim.length) && rangeContainsRange(node, importsAndRequiresToRewriteOrShim[0])) {
return visitEachChild(node, visitor, context);
Expand Down
29 changes: 23 additions & 6 deletions lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -90794,7 +90794,7 @@ function createTypeChecker(host) {
name,
meaning,
/*ignoreErrors*/
false,
true,
/*dontResolveAlias*/
true
);
Expand All @@ -90804,7 +90804,9 @@ function createTypeChecker(host) {
return resolveEntityName(
name,
/*meaning*/
1 /* FunctionScopedVariable */
1 /* FunctionScopedVariable */,
/*ignoreErrors*/
true
);
}
return void 0;
Expand Down Expand Up @@ -90989,7 +90991,12 @@ function createTypeChecker(host) {
}
function getShorthandAssignmentValueSymbol(location) {
if (location && location.kind === 304 /* ShorthandPropertyAssignment */) {
return resolveEntityName(location.name, 111551 /* Value */ | 2097152 /* Alias */);
return resolveEntityName(
location.name,
111551 /* Value */ | 2097152 /* Alias */,
/*ignoreErrors*/
true
);
}
return void 0;
}
Expand All @@ -90998,10 +91005,20 @@ function createTypeChecker(host) {
const name = node.propertyName || node.name;
return node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node) : name.kind === 11 /* StringLiteral */ ? void 0 : (
// Skip for invalid syntax like this: export { "x" }
resolveEntityName(name, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */)
resolveEntityName(
name,
111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */,
/*ignoreErrors*/
true
)
);
} else {
return resolveEntityName(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */);
return resolveEntityName(
node,
111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */,
/*ignoreErrors*/
true
);
}
}
function getTypeOfNode(node) {
Expand Down Expand Up @@ -116649,7 +116666,7 @@ function transformECMAScriptModule(context) {
if (node === (importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim[0])) {
return visitImportOrRequireCall(importsAndRequiresToRewriteOrShim.shift());
}
break;
// fallthrough
default:
if ((importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim.length) && rangeContainsRange(node, importsAndRequiresToRewriteOrShim[0])) {
return visitEachChild(node, visitor, context);
Expand Down

0 comments on commit 48eb13f

Please sign in to comment.