findNodes

Finds all nodes of the given type (and subtypes) in the node tree.

@nogc
void
findNodes
(
T
)
(,
ref T[] list
)
if (
is(T : Node)
)

Parameters

root Node

The root node to start searching from.

list T[]

The list to write the results to.

Meta