pub(crate) fn emit_union_alias(
out: &mut String,
name: &str,
shared_fields: &[String],
arms: &[(String, String)],
)Expand description
Emit a typed discriminated-union alias: one arm per union variant (data
type mirroring the parser output) plus the parser’s unknown default arm,
with any non-union fields shared into every arm. Shared by the interface
emitter (input aliases) and the parser result aliases.