async fn find_all_occurrences_by_type(
    word: Word,
    lang_type: &str,
    dir: &Option<PathBuf>,
    comments: &[String],
) -> Result<Vec<Match>> {
    let command = format!(
        "rg --json --word-regexp '{}' --type {}",
        word.raw, lang_type
    );

    collect_matches(command, dir, Some(comments)).await
}
/// Finds all the occurrences of `word`.
///
/// Basically the occurrences are composed of definitions and usages.
Finds all the occurrences of `word`.
Basically the occurrences are composed of definitions and usages.
Finds all the occurrences of ` word ` . Basically the occurrences are composed of definitions and usages .
async fn find_all_occurrences_by_type(
    word: Word,
    lang_type: &str,
    dir: &Option<PathBuf>,
    comments: &[String],
) -> Result<Vec<Match>> {
    let command = format!(
        "rg --json --word-regexp '{}' --type {}",
        word.raw, lang_type
    );
    collect_matches(command, dir, Some(comments)).await
}
async fn find_all_occurrences_by_type ( word : Word , lang_type : & str , dir : & Option < PathBuf > , comments : & [ String ] , ) -> Result < Vec < Match > > { let command = format ! ( " " word raw lang_type ) ; collect_matches ( command , dir , Some ( comments ) ) . await }
Finds all the occurrences of `word`.
Finds all the occurrences of ` word ` .
word
Word
lang_type
&str
dir
&Option<PathBuf>
comments
&[String]