pub fn parse_document_with_spans( content: &str, ) -> Result<(EtlDocument, SpanIndex), String>
Parse the document with serde_yaml (producing the typed AST) and build a SpanIndex over the same content.
serde_yaml
SpanIndex