flattenAST

open fun flattenAST(@Nullable n: @Nullable Node): List<Node>

Flattens the tree, starting at Node n into a list.

Return

the flattened nodes

Parameters

n

the node which contains the ast children to flatten