mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Merge branch 'update-types3' of https://github.com/ajafff/TypeScript into ajafff-update-types3
This commit is contained in:
@@ -1179,11 +1179,11 @@ namespace ts {
|
||||
return emitResult;
|
||||
}
|
||||
|
||||
function getSourceFile(fileName: string): SourceFile {
|
||||
function getSourceFile(fileName: string): SourceFile | undefined {
|
||||
return getSourceFileByPath(toPath(fileName));
|
||||
}
|
||||
|
||||
function getSourceFileByPath(path: Path): SourceFile {
|
||||
function getSourceFileByPath(path: Path): SourceFile | undefined {
|
||||
return filesByName.get(path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user