mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:00:41 -05:00
some more cleanup
This commit is contained in:
@@ -127,7 +127,7 @@ module TypeScript {
|
||||
}
|
||||
|
||||
var totalTime = new Date().getTime() - start;
|
||||
TypeScript.fileResolutionScanImportsTime += totalTime;
|
||||
//TypeScript.fileResolutionScanImportsTime += totalTime;
|
||||
}
|
||||
|
||||
function processTripleSlashDirectives(fileName: string, text: ISimpleText, firstToken: ISyntaxToken): ITripleSlashDirectiveProperties {
|
||||
|
||||
@@ -156,7 +156,7 @@ module TypeScript {
|
||||
}
|
||||
while (parentDirectory);
|
||||
|
||||
TypeScript.fileResolutionImportFileSearchTime += new Date().getTime() - start;
|
||||
//TypeScript.fileResolutionImportFileSearchTime += new Date().getTime() - start;
|
||||
|
||||
if (!searchFilePath) {
|
||||
// Cannot find file import, do not reprot an error, the typeChecker will report it later on
|
||||
@@ -179,7 +179,7 @@ module TypeScript {
|
||||
var start = new Date().getTime();
|
||||
var scriptSnapshot = this.host.getScriptSnapshot(normalizedPath);
|
||||
var totalTime = new Date().getTime() - start;
|
||||
TypeScript.fileResolutionIOTime += totalTime;
|
||||
//TypeScript.fileResolutionIOTime += totalTime;
|
||||
|
||||
var lineMap = LineMap1.fromScriptSnapshot(scriptSnapshot);
|
||||
var preprocessedFileInformation = TypeScript.preProcessFile(normalizedPath, scriptSnapshot);
|
||||
|
||||
@@ -129,29 +129,10 @@ module TypeScript {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
export var version = "1.0.3.0";
|
||||
export var fileResolutionTime = 0;
|
||||
export var fileResolutionIOTime = 0;
|
||||
export var fileResolutionScanImportsTime = 0;
|
||||
export var fileResolutionImportFileSearchTime = 0;
|
||||
export var fileResolutionGetDefaultLibraryTime = 0;
|
||||
}
|
||||
|
||||
|
||||
module TypeScript.Services {
|
||||
export function copyDataObject(dst: any, src: any): any {
|
||||
for (var e in dst) {
|
||||
if (typeof dst[e] == "object") {
|
||||
copyDataObject(dst[e], src[e]);
|
||||
}
|
||||
else if (typeof dst[e] != "function") {
|
||||
dst[e] = src[e];
|
||||
}
|
||||
}
|
||||
return dst;
|
||||
}
|
||||
|
||||
export class TypeScriptServicesFactory implements IShimFactory {
|
||||
private _shims: IShim[] = [];
|
||||
private documentRegistry: DocumentRegistry = new DocumentRegistry();
|
||||
|
||||
Reference in New Issue
Block a user