You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(aot): @HostListener on accessor fields is silently dropped #546
Minor parity gap found while reviewing #544 / #545.
Problem
OXC's extract_host_listeners_in (crates/oxc_angular_compiler/src/directive/property_decorators.rs, ~line 1646) only matches ClassElement::MethodDefinition and ClassElement::PropertyDefinition, so a @HostListener on an accessor keyword field (accessor x = ...) or accessor handler is silently dropped. Upstream getMembersOfClass reflects TS accessor declarations as PropertyDeclarations, so filterToMembersWithDecorator sees them.
Expected
Include ClassElement::AccessorProperty in the host-listener element match (or document the divergence). Rare in practice.
References
Upstream: packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts (reflectClassMember / getMembersOfClass — TS accessor is a PropertyDeclaration)
OXC: crates/oxc_angular_compiler/src/directive/property_decorators.rs (extract_host_listeners_in element match)
Activity