Skip to main content

resolve_section_span

Function resolve_section_span 

Source
pub fn resolve_section_span(
    rule_id: &str,
    span_provider: &dyn SpanProvider,
) -> SourceSpan
Expand description

Maps a rule ID to its template section (via section_for_rule_id) and looks up the span through the given SpanProvider. Returns UNKNOWN_SPAN if the rule has no associated section or the section has no span.