angular-docs-cn/packages/compiler-cli/linker/test/ast
JoostK e23fd1f382 refactor(compiler-cli): emit `forwardRef` invocation for forward type references (#40117)
The types of directives and pipes that are used in a component's
template may be emitted into the partial declaration wrapped inside a
closure, which is needed when the type is declared later in the module.
This poses a problem for JIT compilation of partial declarations, as
this closure is indistinguishable from a class reference itself. To mark
the forward reference function as such, this commit changes the partial
declaration codegen to emit a `forwardRef` invocation wrapped around
the closure, which ensures that the closure is properly tagged as a
forward reference. This allows the forward reference to be treated as
such during JIT compilation.

PR Close #40117
2020-12-22 08:39:58 -08:00
..
typescript refactor(compiler-cli): emit `forwardRef` invocation for forward type references (#40117) 2020-12-22 08:39:58 -08:00
ast_value_spec.ts refactor(compiler-cli): emit `forwardRef` invocation for forward type references (#40117) 2020-12-22 08:39:58 -08:00