| 1243 | } |
| 1244 | |
| 1245 | class 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…