captures

Iterate over all the individual captures in the order that they appear.

This is useful if you don't care about which pattern matched.

Parameters

node

The node that the query will run on.

predicate

A function that handles custom predicates.

expect fun captures(node: Node, predicate: QueryPredicate.(QueryMatch) -> Boolean = { true }): Sequence<Pair<UInt, QueryMatch>>(source)

Iterate over all the individual captures in the order that they appear.

This is useful if you don't care about which pattern matched.

Parameters

node

The node that the query will run on.

predicate

A function that handles custom predicates.

Iterate over all the individual captures in the order that they appear.

This is useful if you don't care about which pattern matched.

Parameters

node

The node that the query will run on.

predicate

A function that handles custom predicates.

actual fun captures(node: Node, predicate: QueryPredicate.(QueryMatch) -> Boolean = { true }): Sequence<Pair<UInt, QueryMatch>>(source)

Iterate over all the individual captures in the order that they appear.

This is useful if you don't care about which pattern matched.

Parameters

node

The node that the query will run on.

predicate

A function that handles custom predicates.