refactor(compiler): emit OutputAst and not sources (#16832)
This is in preparation for creating typescript nodes directly from `OutputAst` nodes.
This commit is contained in:

committed by
Chuck Jazdzewski

parent
6123b9c0c6
commit
de8d7c65f2
@ -33,8 +33,7 @@ export class AotCompiler {
|
||||
private _styleCompiler: StyleCompiler, private _viewCompiler: ViewCompiler,
|
||||
private _ngModuleCompiler: NgModuleCompiler, private _outputEmitter: OutputEmitter,
|
||||
private _summaryResolver: SummaryResolver<StaticSymbol>, private _localeId: string|null,
|
||||
private _translationFormat: string|null, private _genFilePreamble: string|null,
|
||||
private _symbolResolver: StaticSymbolResolver) {}
|
||||
private _translationFormat: string|null, private _symbolResolver: StaticSymbolResolver) {}
|
||||
|
||||
clearCache() { this._metadataResolver.clearCache(); }
|
||||
|
||||
@ -273,10 +272,7 @@ export class AotCompiler {
|
||||
}
|
||||
|
||||
private _codegenSourceModule(srcFileUrl: string, ctx: OutputContext): GeneratedFile {
|
||||
return new GeneratedFile(
|
||||
srcFileUrl, ctx.genFilePath,
|
||||
this._outputEmitter.emitStatements(
|
||||
sourceUrl(srcFileUrl), ctx.genFilePath, ctx.statements, this._genFilePreamble));
|
||||
return new GeneratedFile(srcFileUrl, ctx.genFilePath, ctx.statements);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user