Merge pull request #7584 from Microsoft/LS-rename-getSourceFile

mark LanguageService.getSourceFile as internal and rename it
This commit is contained in:
Vladimir Matveev
2016-03-24 14:05:49 -07:00
5 changed files with 7 additions and 7 deletions

View File

@@ -613,7 +613,7 @@ namespace ts.server {
throw new Error("SourceFile objects are not serializable through the server protocol.");
}
getSourceFile(fileName: string): SourceFile {
getNonBoundSourceFile(fileName: string): SourceFile {
throw new Error("SourceFile objects are not serializable through the server protocol.");
}

View File

@@ -1326,7 +1326,7 @@ namespace ts.server {
}
isExternalModule(filename: string): boolean {
const sourceFile = this.languageService.getSourceFile(filename);
const sourceFile = this.languageService.getNonBoundSourceFile(filename);
return ts.isExternalModule(sourceFile);
}