Skip to content

Commit 2366be8

Browse files
Removed redundant check for synthetic nodes.
1 parent 2c453d3 commit 2366be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6009,7 +6009,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
60096009
if (!nodeIsSynthesized(range) && !(range.flags & NodeFlags.Synthesized) && (!context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(range))) {
60106010
range = factory.cloneNode(range);
60116011
}
6012-
if (!location || nodeIsSynthesized(location)) {
6012+
if (!location) {
60136013
return range;
60146014
}
60156015
if (!context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(getOriginalNode(location))) {

0 commit comments

Comments
 (0)