Merge branch 'update-types3' of https://github.com/ajafff/TypeScript into ajafff-update-types3

This commit is contained in:
Mohamed Hegazy
2017-11-07 15:23:38 -08:00
4 changed files with 8 additions and 8 deletions

View File

@@ -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);
}