source_slice

Function source_slice 

Source
fn source_slice(text: &str, span: Span) -> String
Expand description

Extract the source slice covered by a proc_macro2::Span. Used to read line-comment skip markers (e.g. ## skip check-validity-events ##) which syn discards from the AST.