The ast for a command invocation, e.g.
public ref class CommandAst : System::Management::Automation::Language::CommandBaseAst
public class CommandAst : System.Management.Automation.Language.CommandBaseAst
type CommandAst = class inherit CommandBaseAst
Public Class CommandAst Inherits CommandBaseAst
|CommandAst(IScriptExtent, IEnumerable<CommandElementAst>, TokenKind, IEnumerable<RedirectionAst>)||
Construct a command invocation.
A non-empty collection of command elements. This property is never null.
If this command was synthesiszed out of a dynamic keyword, this property will point to the DynamicKeyword data structure that was used to create this command.
The extent in the source this ast represents.(Inherited from Ast)
The parent tree for this node.(Inherited from Ast)
The possibly empty collection of redirections for this command.(Inherited from CommandBaseAst)
Copy the CommandAst instance
Traverse the entire Ast, returning the first node in the tree for which
Traverse the entire Ast, returning all nodes in the tree for which
Returns the name of the command invoked by this ast.
This command name may not be known statically, in which case null is returned.
For example, if the command name is in a variable:
returns a module instead of a string.
Constructs the resultant object from the AST and returns it if it is safe.(Inherited from Ast)
Formats the ast and returns a string.(Inherited from Ast)
Visit each node in the Ast, calling the methods in
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.(Inherited from Ast)