MCPcopy Index your code
hub / github.com/angular/angular / R3TestCompiler

Class R3TestCompiler

packages/core/testing/src/test_bed_compiler.ts:1245–1266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1243}
1244
1245class R3TestCompiler implements Compiler {
1246 constructor(private testBed: TestBedCompiler) {}
1247
1248 compileModuleSync<T>(moduleType: Type<T>): NgModuleFactory<T> {
1249 this.testBed._compileNgModuleSync(moduleType);
1250 return new R3NgModuleFactory(moduleType);
1251 }
1252
1253 async compileModuleAsync<T>(moduleType: Type<T>): Promise<NgModuleFactory<T>> {
1254 await this.testBed._compileNgModuleAsync(moduleType);
1255 return new R3NgModuleFactory(moduleType);
1256 }
1257
1258 clearCache(): void {}
1259
1260 clearCacheFor(type: Type<any>): void {}
1261
1262 getModuleId(moduleType: Type<any>): string | undefined {
1263 const meta = this.testBed._getModuleResolver().resolve(moduleType);
1264 return (meta && meta.id) || undefined;
1265 }
1266}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…