Skip to main content

find_pattern_in_files

Function find_pattern_in_files 

Source
pub fn find_pattern_in_files(
    config: &PatternReplaceConfig,
) -> Result<Vec<PatternMatch>>
Expand description

Find all occurrences of a text pattern in files matching a glob pattern.

This function performs text-based search and uses tree-sitter to confirm that matches are in valid AST nodes (not in comments or strings, unless the pattern specifically targets those).