We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c453d3 commit 2366be8Copy full SHA for 2366be8
src/compiler/checker.ts
@@ -6009,7 +6009,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
6009
if (!nodeIsSynthesized(range) && !(range.flags & NodeFlags.Synthesized) && (!context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(range))) {
6010
range = factory.cloneNode(range);
6011
}
6012
- if (!location || nodeIsSynthesized(location)) {
+ if (!location) {
6013
return range;
6014
6015
if (!context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(getOriginalNode(location))) {
0 commit comments