Ast.Visit Ast.Visit Ast.Visit Ast.Visit Method

Definition

Overloads

Visit(AstVisitor) Visit(AstVisitor) Visit(AstVisitor)

Visit each node in the Ast, calling the methods in astVisitor for each node in the ast.

Visit(ICustomAstVisitor) Visit(ICustomAstVisitor) Visit(ICustomAstVisitor) Visit(ICustomAstVisitor)

Visit the Ast using a visitor that can choose how the tree traversal is performed. This visit method is for advanced uses of the visitor pattern where an AstVisitor is insufficient.

Visit(AstVisitor) Visit(AstVisitor) Visit(AstVisitor)

Visit each node in the Ast, calling the methods in astVisitor for each node in the ast.

public:
 void Visit(System::Management::Automation::Language::AstVisitor ^ astVisitor);
public void Visit (System.Management.Automation.Language.AstVisitor astVisitor);
member this.Visit : System.Management.Automation.Language.AstVisitor -> unit
Parameters
astVisitor
AstVisitor AstVisitor AstVisitor AstVisitor

The visitor

Visit(ICustomAstVisitor) Visit(ICustomAstVisitor) Visit(ICustomAstVisitor) Visit(ICustomAstVisitor)

Visit the Ast using a visitor that can choose how the tree traversal is performed. This visit method is for advanced uses of the visitor pattern where an AstVisitor is insufficient.

public:
 System::Object ^ Visit(System::Management::Automation::Language::ICustomAstVisitor ^ astVisitor);
public object Visit (System.Management.Automation.Language.ICustomAstVisitor astVisitor);
member this.Visit : System.Management.Automation.Language.ICustomAstVisitor -> obj
Public Function Visit (astVisitor As ICustomAstVisitor) As Object
Parameters
Returns

Returns the value returned by the visitor.

Applies to