rename LanguageService.getSourceFile to LanguageService.getNonBoundSourceFile and mark it as internal

This commit is contained in:
Vladimir Matveev committed 2016-03-18 11:27:21 -07:00
1 parent 279fec7a7d
commit 200f162bf6
5 files changed
+7 -7

No files matched your search

+1 -1
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.");
}
+1 -1
View File
@@ -1330,7 +1330,7 @@ namespace ts.server {
}
isExternalModule(filename: string): boolean {
const sourceFile = this.languageService.getSourceFile(filename);
const sourceFile = this.languageService.getNonBoundSourceFile(filename);
return ts.isExternalModule(sourceFile);
}