pub fn render_annotated_yaml(
node: &AnnotatedNode,
source_labels: &[String],
) -> StringExpand description
Emit an AnnotatedNode as YAML with a trailing # <label> on each
leaf line, column-aligned for legibility.
source_labels[i] is the label shown for layer index i (typically a
filename). Sequences are rendered inline when all items are scalars
and the resulting line fits the INLINE_SEQ_LIMIT threshold; otherwise
they drop to block style with the source tag on the key line.