refactor(compiler-cli): setup compilation mode to enable generating linker code (#38938)

This is a precursor to introducing the Angular linker. As an initial
step, a compiler option to configure the compilation mode is introduced.
This option is initially internal until the linker is considered ready.

PR Close #38938
This commit is contained in:
JoostK
2020-09-09 21:32:56 +02:00
committed by Joey Perrott
parent eec9f4a84e
commit 9d04b95166
15 changed files with 213 additions and 30 deletions

View File

@ -209,7 +209,7 @@ class DetectDecoratorHandler implements DecoratorHandler<unknown, unknown, unkno
return {};
}
compile(node: ClassDeclaration): CompileResult|CompileResult[] {
compileFull(node: ClassDeclaration): CompileResult|CompileResult[] {
return [];
}
}
@ -227,7 +227,7 @@ class DiagnosticProducingHandler implements DecoratorHandler<unknown, unknown, u
return {diagnostics: [makeDiagnostic(9999, node, 'test diagnostic')]};
}
compile(node: ClassDeclaration): CompileResult|CompileResult[] {
compileFull(node: ClassDeclaration): CompileResult|CompileResult[] {
return [];
}
}