mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
fix(54580): Bad operation for find-all-references on import.meta when meta occurs in a comment (#54581)
This commit is contained in:
@@ -1725,7 +1725,10 @@ export namespace Core {
|
||||
}
|
||||
|
||||
function getPossibleSymbolReferenceNodes(sourceFile: SourceFile, symbolName: string, container: Node = sourceFile): readonly Node[] {
|
||||
return getPossibleSymbolReferencePositions(sourceFile, symbolName, container).map(pos => getTouchingPropertyName(sourceFile, pos));
|
||||
return mapDefined(getPossibleSymbolReferencePositions(sourceFile, symbolName, container), pos => {
|
||||
const referenceLocation = getTouchingPropertyName(sourceFile, pos);
|
||||
return referenceLocation === sourceFile ? undefined : referenceLocation;
|
||||
});
|
||||
}
|
||||
|
||||
function getPossibleSymbolReferencePositions(sourceFile: SourceFile, symbolName: string, container: Node = sourceFile): readonly number[] {
|
||||
|
||||
Reference in New Issue
Block a user