fix build errors

This commit is contained in:
Vladimir Matveev 2016-03-09 22:24:16 -08:00
parent f077be052e
commit 7e7680790c
2 changed files with 7 additions and 4 deletions

View file

@ -86,6 +86,11 @@ function analyze(libFileName: string, files: string[], outputFolder: string): Pr
error: (s) => { }
};
const cancellationToken: ts.CancellationToken = {
isCancellationRequested: () => false,
throwIfCancellationRequested: () => {}
}
let documentRegistry: ts.DocumentRegistry = {
acquireDocument: (fileName, settings, snapshot, version) => program.getSourceFile(fileName),
releaseDocument: (fileName, settings) => { },
@ -358,10 +363,6 @@ function analyze(libFileName: string, files: string[], outputFolder: string): Pr
return fileName + "|" + start;
}
const cancellationToken: ts.CancellationToken = {
isCancellationRequested: () => false,
throwIfCancellationRequested: () => {}
}
function createProgram(files: string[]): ts.Program {
let host: ts.CompilerHost = {
getSourceFile: (filename, languageVersion) => {

View file

@ -2,6 +2,8 @@
var ActiveXObject: { new(...args: any[]): any }
declare function setInterval(handler: any, timeout?: any, ...args: any[]): number;
declare module Intl {
interface CollatorOptions {
usage?: string;