Condividi tramite


Ast.Visit Method

Definition

Overloads

Visit(AstVisitor)

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

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 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
Public Sub Visit (astVisitor As AstVisitor)

Parameters

astVisitor
AstVisitor

The visitor.

Applies to

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

astVisitor
ICustomAstVisitor

The visitor.

Returns

Returns the value returned by the visitor.

Applies to