pub fn serialize_pairs(tree: &AozoraTree<'_>) -> StringExpand description
Project an AozoraTree’s pair table into a
{ schema_version, data } JSON envelope. Every entry has the shape
{ kind, open: { start, end }, close: { start, end } }.
One entry per matched open/close pair; unmatched closes and
unclosed opens are excluded (they have no partner span and would
only confuse editor surfaces). Useful for LSP requests like
textDocument/linkedEditingRange and
textDocument/documentHighlight.
Empty parse → {"schema_version":1,"data":[]}.