System.Management.Automation.Language.ScriptBlockAst
represents the root of the Abstract Syntax Tree (AST) of a parsed PowerShell script. Such an instance is returned by methods of the class System.Management.Automation.Language.Parser
. ScriptBlockAst
is also returned by the Ast
Propert of a script block (i. e. a System.Management.Automation.ScriptBlock
object): PS: C:\> {}.Ast.GetType().FullName System.Management.Automation.Language.ScriptBlockAst