Expand description
Generic tree-sitter and ast-grep query execution.
Provides low-level query runners that operate on a single file’s content. Higher-level file discovery and dispatch lives in the CLI tier.
Structs§
- Match
Result - Match result from either pattern type.
Functions§
- is_
sexp_ pattern - Detect if pattern is a tree-sitter S-expression (starts with
() or an ast-grep pattern (anything else). - run_
astgrep_ query - Run an ast-grep pattern query against a single file’s content.
- run_
sexp_ query - Run a tree-sitter S-expression query against a single file’s content.