refactor(compiler-cli): decouple host element creation logic from TypeScript

Reworks the logic for constructing a `HostElement` node so that we can reuse it without depending on TypeScript APIs.
This commit is contained in:
Kristiyan Kostadinov
2026-03-23 06:56:14 +01:00
committed by Leon Senft
parent 6d2eed61a1
commit 63ac1bd2fd
6 changed files with 302 additions and 209 deletions
@@ -28,3 +28,11 @@ export type {ReferenceEmitter} from '../src/ngtsc/imports';
export type {ReflectionHost, ClassDeclaration} from '../src/ngtsc/reflection';
export {ClassPropertyMapping} from '../src/ngtsc/metadata/src/property_mapping';
export type {TypeCheckSourceResolver} from '../src/ngtsc/typecheck/src/tcb_util';
export {
createHostElement,
type SourceNode,
type StaticSourceNode,
type HostObjectLiteralBinding,
type HostListenerDecorator,
type HostBindingDecorator,
} from '../src/ngtsc/typecheck/src/host_bindings';