Skip to main content

comments

Function comments 

Source
pub fn comments(src: &str) -> Vec<Comment>
Expand description

Every comment in src, with its byte span and whether it sits alone on its line.

own_line is the distinction that decides placement: a comment alone on its line belongs before the form that follows, while one after code on the same line belongs to that line. Conflating them moves a trailing note onto the wrong row.