Skip to main content

span_extract_comments

Function span_extract_comments 

Source
pub fn span_extract_comments<'sm>(
    sm: impl HasSourceMap<'sm>,
    span: Span,
) -> Vec<String>
Expand description

Returns all the comments a given span contains.

Comments are returned wrapped with their relevant delimiters.