Function clippy_utils::source::get_source_text
source · pub fn get_source_text(
cx: &impl LintContext,
sp: impl SpanRange
) -> Option<SourceFileRange>
Expand description
Gets the source file, and range in the file, of the given span. Returns None
if the span
extends through multiple files, or is malformed.