Skip to main content

extract

Function extract 

Source
pub fn extract(source: &str, language: Language) -> Vec<Comment>
Expand description

Extract every comment from source for the given language.

Comments are returned in source order. Byte ranges refer to the input source. Line numbers are 1-based.