Block Ast Class
A ScriptBlockAst is the root ast node for a complete script.
public ref class ScriptBlockAst : System::Management::Automation::Language::Ast
public class ScriptBlockAst : System.Management.Automation.Language.Ast
type ScriptBlockAst = class inherit Ast
Public Class ScriptBlockAst Inherits Ast
The asts for attributes (such as [DscLocalConfigurationManager()]) used before the scriptblock. This property is never null.
The ast representing the begin block for a script block, or null if no begin block was specified.
The ast representing the dynamicparam block for a script block, or null if no dynamicparam block was specified.
The ast representing the end block for a script block, or null if no end block was specified.
The extent in the source this ast represents.(Inherited from Ast)
The ast representing the parameters for a script block, or null if no param block was specified.
The parent tree for this node.(Inherited from Ast)
The ast representing the process block for a script block, or null if no process block was specified.
All of the parsed information from any #requires in the script, or null if #requires was not used. This property is only set for the top level script block (where Parent) is null.
Copy the ScriptBlockAst 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
Return the help content, if any, for the script block.
Convert the ast into a script block that can be invoked.
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)