Skip to main content

find_declaration_span

Function find_declaration_span 

Source
pub fn find_declaration_span(source: &str, name: &str) -> Option<Span>
Expand description

Return the source span of the declaration named name in the given source text. Returns None if no declaration matches.