move logInternalError to where it is used

This commit is contained in:
Mohamed Hegazy 2014-07-24 15:58:33 -07:00
parent f1ef966442
commit 70b8a569d9
2 changed files with 4 additions and 4 deletions

View File

@ -368,10 +368,6 @@ module TypeScript.Services {
dispose(): void;
}
export function logInternalError(logger: TypeScript.Logger, err: Error) {
logger.log("*INTERNAL ERROR* - Exception in typescript services: " + err.message);
}
export interface ReferenceEntry {
fileName: string;
minChar: number;

View File

@ -249,6 +249,10 @@ module TypeScript.Services {
return settings;
}
function logInternalError(logger: TypeScript.Logger, err: Error) {
logger.log("*INTERNAL ERROR* - Exception in typescript services: " + err.message);
}
class ScriptSnapshotShimAdapter implements TypeScript.IScriptSnapshot {
private lineStartPositions: number[] = null;