matches method
List<TreeSitterQueryMatch>
matches(
- TreeSitterNode node, {
- String? source,
- TreeSitterUtf16Range? range,
- TreeSitterQueryTextProvider? textProvider,
Returns structural query matches without flattening their capture sets.
The SCM compiler represents every multi-capture or #set! pattern as a
structural pattern, which makes this the faithful input for injection
selection while preserving captures for existing highlighting clients.
Implementation
List<TreeSitterQueryMatch> matches(
TreeSitterNode node, {
String? source,
TreeSitterUtf16Range? range,
TreeSitterQueryTextProvider? textProvider,
}) => _evaluate(
node,
source: source,
range: range,
textProvider: textProvider,
includeMatchPatterns: true,
collectCaptures: false,
).matches;