MCPcopy Create free account
hub / github.com/angular/angular / getTsProgram

Method getTsProgram

packages/compiler-cli/test/ngtsc/env.ts:197–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 }
196
197 getTsProgram(): ts.Program {
198 if (this.lastTsProgram !== null) {
199 return this.lastTsProgram;
200 }
201 if (this.oldProgram === null) {
202 throw new Error('No ts.Program has been created yet.');
203 }
204 return this.oldProgram.getTsProgram();
205 }
206
207 getReuseTsProgram(): ts.Program {
208 if (this.oldProgram === null) {

Callers

nothing calls this directly

Calls 1

getTsProgramMethod · 0.65

Tested by

no test coverage detected