mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
Fixing self import (#58718)
This commit is contained in:
@@ -1149,7 +1149,7 @@ export function getExistingLocals(sourceFile: SourceFile, statements: readonly S
|
||||
for (const statement of statements) {
|
||||
forEachReference(statement, checker, s => {
|
||||
const symbol = skipAlias(s, checker);
|
||||
if (symbol.valueDeclaration && getSourceFileOfNode(symbol.valueDeclaration) === sourceFile) {
|
||||
if (symbol.valueDeclaration && getSourceFileOfNode(symbol.valueDeclaration).path === sourceFile.path) {
|
||||
existingLocals.add(symbol);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user