Another repair to diagnostic fixup

This commit is contained in:
Tony Garnock-Jones 2023-02-14 11:43:05 +01:00
parent fec72f1269
commit fe78147cb8
1 changed files with 6 additions and 0 deletions

View File

@ -202,6 +202,12 @@ function runBuildOnce(options: CommandLineArguments): boolean {
syntheticSourceFiles.set(d.file.fileName, sf);
}
d.file = syntheticSourceFiles.get(d.file.fileName);
if (!('__syndicate_translated__' in d)) {
const p = info.targetToSourceMap.get(d.start)!;
d.start = p.firstItem.start.pos + p.offset;
(d as any).__syndicate_translated__ = true;
}
}
}