FlattenParseTree(IParseTree)

Method in Compiler

Summary

Flattens a tree of Antlr4.Runtime.Tree.IParseTree objects by recursively visiting their children, and converting them into a flat System.Collections.Generic.IEnumerable`1 .

public static IEnumerable<IParseTree> FlattenParseTree(IParseTree node)

Parameters

NameDescription

Antlr4.Runtime.Tree.IParseTree node

The root node to begin work from.

Returns

An System.Collections.Generic.IEnumerable`1 that contains a flattened version of the hierarchy rooted at node .

Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.