pub fn normalize_syntax_pattern(
pattern: &SyntaxPattern,
self_short: Option<u32>,
canonical_map: &HashMap<u128, u128>,
) -> SyntaxPatternExpand description
Normalizes a syntax pattern by converting explicit references to the defining
character’s Short ID (or any equivalent ID) into SyntaxTerm::SelfChar (~),
and mapping target references to their canonical equivalents under canonical_map.