clippy_utils

Function span_extract_comment

source
pub fn span_extract_comment(sm: &SourceMap, span: Span) -> String
Expand description

Returns all the comments a given span contains

Comments are returned wrapped with their relevant delimiters