addressed PR feedback

This commit is contained in:
Vladimir Matveev
2015-08-04 21:22:37 -07:00
parent a72994d78c
commit 03aaf7cd7c
12 changed files with 185 additions and 182 deletions
@@ -1,6 +1,6 @@
error TS6053: File 'a.ts' not found.
error TS6054: File 'a.t' has unsupported extension. The only supported extensions are '.ts', '.d.ts', '.tsx'.
error TS6054: File 'a.t' has unsupported extension. The only supported extensions are '.ts', '.tsx', '.d.ts'.
!!! error TS6053: File 'a.ts' not found.
!!! error TS6054: File 'a.t' has unsupported extension. The only supported extensions are '.ts', '.d.ts', '.tsx'.
!!! error TS6054: File 'a.t' has unsupported extension. The only supported extensions are '.ts', '.tsx', '.d.ts'.
@@ -1,6 +1,6 @@
error TS6053: File 'a.ts' not found.
error TS6054: File 'a.t' has unsupported extension. The only supported extensions are '.ts', '.d.ts', '.tsx'.
error TS6054: File 'a.t' has unsupported extension. The only supported extensions are '.ts', '.tsx', '.d.ts'.
!!! error TS6053: File 'a.ts' not found.
!!! error TS6054: File 'a.t' has unsupported extension. The only supported extensions are '.ts', '.d.ts', '.tsx'.
!!! error TS6054: File 'a.t' has unsupported extension. The only supported extensions are '.ts', '.tsx', '.d.ts'.
@@ -104,10 +104,6 @@ module ts {
files[t.name] = file;
}
let moduleResolutionHost: ModuleResolutionHost = {
fileExists: fileName => hasProperty(files, fileName)
}
return {
getSourceFile(fileName): SourceFile {
return files[fileName];
@@ -130,7 +126,11 @@ module ts {
getNewLine(): string {
return sys.newLine;
},
getModuleResolutionHost: () => moduleResolutionHost
fileExists: fileName => hasProperty(files, fileName),
readFile: fileName => {
let file = lookUp(files, fileName);
return file && file.text;
}
}
}