pub fn detect_declaration(
lines: &[&str],
target_idx: usize,
) -> Option<Declaration>Expand description
Detect the declaration enclosing target_idx, if any.
target_idx is a zero-based line index. The returned Declaration carries
one-based start and end lines plus the verbatim source of the block.