Show / Hide Table of Contents

Class TreeVisitor

Base class for visitors over non-generic trees.

Inheritance
System.Object
TreeVisitor
Implements
ITreeVisitor
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public class TreeVisitor : Object, ITreeVisitor

Constructors

TreeVisitor()

Declaration
public TreeVisitor()

Methods

Visit(IReadOnlyList<ITree>)

Visits the specified tree nodes.

Declaration
protected IReadOnlyList<ITree> Visit(IReadOnlyList<ITree> nodes)
Parameters
Type Name Description
System.Collections.Generic.IReadOnlyList<ITree> nodes

Tree nodes to visit.

Returns
Type Description
System.Collections.Generic.IReadOnlyList<ITree>

Result of visiting the tree nodes. This collection will be equal to the original collection if none of the tree nodes changed.

Visit(ITree)

Visits the specified tree.

Declaration
public virtual ITree Visit(ITree node)
Parameters
Type Name Description
ITree node

Tree to visit.

Returns
Type Description
ITree

Result of the visit.

Implements

ITreeVisitor
In This Article
Back to top Generated by DocFX