Ast.Visit Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Visit(AstVisitor) |
Visit each node in the Ast, calling the methods in |
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.