Skip to main content

span_contains_comment

Function span_contains_comment 

Source
pub fn span_contains_comment<'sm>(
    sm: impl HasSourceMap<'sm>,
    span: Span,
) -> bool
Expand description

Checks whether a given span has any comment token This checks for all types of comment: line “//”, block “/**”, doc “///” “//!”