mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
add prefixes for getCanonicalName
This commit is contained in:
parent
35ec15538a
commit
e9cd8a0e88
@ -556,7 +556,7 @@ module Harness {
|
||||
},
|
||||
getDefaultLibFilename: () => 'lib.d.ts',
|
||||
writeFile: writeFile,
|
||||
getCanonicalFileName: getCanonicalFileName,
|
||||
getCanonicalFileName: ts.getCanonicalFileName,
|
||||
useCaseSensitiveFileNames: () => sys.useCaseSensitiveFileNames
|
||||
}
|
||||
}
|
||||
|
||||
@ -222,7 +222,7 @@ class ProjectRunner extends RunnerBase {
|
||||
getDefaultLibFilename: () => "lib.d.ts",
|
||||
writeFile: writeFile,
|
||||
getCurrentDirectory: getCurrentDirectory,
|
||||
getCanonicalFileName: getCanonicalFileName,
|
||||
getCanonicalFileName: ts.getCanonicalFileName,
|
||||
useCaseSensitiveFileNames: () => sys.useCaseSensitiveFileNames
|
||||
};
|
||||
}
|
||||
|
||||
@ -111,7 +111,7 @@ module RWC {
|
||||
},
|
||||
getDefaultLibFilename: () => libPath,
|
||||
writeFile: (fn, contents) => emitterIOHost.writeFile(fn, contents, false),
|
||||
getCanonicalFileName: getCanonicalFileName,
|
||||
getCanonicalFileName: ts.getCanonicalFileName,
|
||||
useCaseSensitiveFileNames: () => sys.useCaseSensitiveFileNames
|
||||
};
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
/// <reference path='..\..\src\compiler\prototype\tc.ts'/>
|
||||
/// <reference path='..\..\src\compiler\tc.ts'/>
|
||||
|
||||
module TypeScript.WebTsc {
|
||||
|
||||
@ -31,10 +31,11 @@ module TypeScript.WebTsc {
|
||||
}
|
||||
return s;
|
||||
},
|
||||
writeFile(fileName: string, data: string): void {
|
||||
writeFile(fileName: string, data: string): boolean {
|
||||
var f = fso.CreateTextFile(fileName, true);
|
||||
f.Write(data);
|
||||
f.Close();
|
||||
return true;
|
||||
},
|
||||
resolvePath(path: string): string {
|
||||
return fso.GetAbsolutePathName(path);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user