pub fn build_scope_extents(
root: &SyntaxNode,
scope_id_sequence: &[ScopeId],
source_len: usize,
) -> Vec<(ScopeId, (u32, u32))>Expand description
Build list of (ScopeId, extent) where extent is (start_byte, end_byte).
Root scope (ScopeId(0)) is always first with extent (0, source_len).
Remaining entries are in walk order, matching scope_id_sequence.