Expand description
Predicate evaluation for tree-sitter queries.
Tree-sitter compiles #match?, #eq?, etc. into QueryPredicate structs but
does not evaluate them at match time — the caller is responsible for
filtering matches that fail their predicates.
satisfies_predicates evaluates the standard tree-sitter predicates so that
query authors can use them in .scm files and have them honoured at runtime.
Functions§
- satisfies_
predicates - Return
trueif all predicates onm’s pattern are satisfied,falseotherwise.