pub fn recovered_aggregate_fields(
source: &str,
span: Range<usize>,
) -> Vec<RecoveredAggregateField>Expand description
Recover the direct members of an aggregate body region the ordinary parse could not place.
An object-like field-list macro invocation inside a member list has no
grammar rule, so tree-sitter collapses the aggregate’s head and body into
one ERROR container and the members after the invocation lose their
declaration shape. Reparsing the exact byte slice that follows the
invocation as a synthetic aggregate body restores that shape from the
grammar, and every returned range maps back to the original source.