Use builder state in the semantic/emit builder as well

This commit is contained in:
Sheetal Nandi
2017-12-07 16:46:36 -08:00
parent bb0fc0d2bc
commit 965f40f213
4 changed files with 219 additions and 529 deletions

View File

@@ -460,7 +460,7 @@ namespace ts.server {
return [];
}
this.updateGraph();
this.builderState = createBuilderState(this.program, this.projectService.toCanonicalFileName, this.builderState);
this.builderState = BuilderState.create(this.program, this.projectService.toCanonicalFileName, this.builderState);
return mapDefined(BuilderState.getFilesAffectedBy(this.builderState, this.program, scriptInfo.path, this.cancellationToken, data => this.projectService.host.createHash(data)),
sourceFile => this.shouldEmitFile(this.projectService.getScriptInfoForPath(sourceFile.path)) ? sourceFile.fileName : undefined);
}