Function ast_grep_napi::js::find_in_files
source ยท pub fn find_in_files(
config: FindConfig,
callback: JsFunction
) -> Result<AsyncTask<IterateFiles<(ThreadsafeFunction<PinnedNodes, CalleeHandled>, RuleCore<SupportLang>)>>>
Expand description
Discover and parse multiple files in Rust.
config
specifies the file path and matcher.
callback
will receive matching nodes found in a file.