pub fn compute_form_spans(text: &str, file: Option<&str>) -> Vec<Span>Expand description
Compute (line, col) source positions for every top-level link in text.
Mirrors compute_form_spans in the JavaScript implementation.
A “top-level link” is a parenthesized form not nested inside another; the
position is the 1-based line/col of its opening (. Full-line # ...
comments and inline # ... comments after a closing paren plus whitespace
are skipped so that parens inside a comment don’t disturb the depth
counter.