System.Management.Automation.Language
Namespace
Classes
| ArrayExpressionAst |
The ast that represents an array expression, e.g. |
| ArrayLiteralAst |
The ast that represents an array literal expression, e.g. |
| ArrayTypeName |
Represents the name of an array type including the dimensions. |
| AssignmentStatementAst |
The ast that represents an assignment statement, e.g. |
| Ast |
The abstract base class for all PowerShell abstract syntax tree nodes. |
| AstVisitor |
AstVisitor is used for basic scenarios requiring traveral of the nodes in an Ast. An implementation of AstVisitor does not explicitly traverse the Ast, instead, the engine traverses all nodes in the Ast and calls the appropriate method on each node. By default, |
| AstVisitor2 | |
| AttributeAst |
The ast representing an attribute with optional positional and named arguments. |
| AttributeBaseAst |
An abstract base class representing attributes that accept optional arguments, e.g. |
| AttributedExpressionAst |
The ast that represents an expression with an attribute. This is normally allowed only on parameters or variables
being assigned, e.g. |
| BaseCtorInvokeMemberExpressionAst | |
| BinaryExpressionAst |
The ast representing a binary expression, e.g. |
| BlockStatementAst |
The ast that represents a scriptblock with a keyword name. This is normally allowed only for script workflow.
e.g. |
| BreakStatementAst |
The ast representing the break statement. |
| CatchClauseAst |
The ast that represents a single catch as part of a try statement. |
| CodeGeneration | |
| CommandAst |
The ast for a command invocation, e.g. |
| CommandBaseAst |
An abstract base class for a command and an expression wrapper that allows an expression as a command in a pipeline. |
| CommandElementAst |
An abstract base class for the components of a CommandAst. |
| CommandExpressionAst |
The ast representing an expression when the expression is used as the first command of a pipeline. |
| CommandParameterAst |
The ast that represents a parameter to a command, e.g.
|
| CommentHelpInfo |
The help content specified via help comments for a given script or script function. |
| ConfigurationDefinitionAst | |
| ConstantExpressionAst |
The ast representing constant values, such as numbers. Constant values mean truly constant, as in, the value is
always the same. Expandable strings with variable references (e.g. |
| ContinueStatementAst |
The ast representing the continue statement. |
| ConvertExpressionAst |
The ast that represents a cast expression, e.g. |
| DataStatementAst |
The ast representing the data statement. |
| DefaultCustomAstVisitor | |
| DefaultCustomAstVisitor2 | |
| DoUntilStatementAst |
The ast that represents a do/until statement. |
| DoWhileStatementAst |
The ast that represents the do/while statement. |
| DynamicKeyword | |
| DynamicKeywordParameter | |
| DynamicKeywordProperty | |
| DynamicKeywordStatementAst | |
| ErrorExpressionAst |
A placeholder expression used when there are syntactic errors in the source script. |
| ErrorStatementAst |
A placeholder statement used when there are syntactic errors in the source script. |
| ExitStatementAst |
The ast representing the exit statement. |
| ExpandableStringExpressionAst |
The ast that repesents a double quoted string (here string or normal string) and can have nested variable
references or sub-expressions, e.g. |
| ExpressionAst |
An abstract base class that represents all PowerShell expressions. |
| FileRedirectionAst |
The ast representing a redirection to a file, e.g. |
| FileRedirectionToken |
A file redirection. |
| ForEachStatementAst |
The ast representing the foreach statement. |
| ForStatementAst |
The ast for a for statement. |
| FunctionDefinitionAst |
The ast that represents a function or filter definition. The function is always named. |
| FunctionMemberAst | |
| GenericTypeName |
Represent a close generic type including it's arguments. |
| HashtableAst |
The ast that represents a hash literal, e.g. |
| IfStatementAst |
The ast that represents an if statement. |
| IndexExpressionAst |
The ast that represents an index expression, e.g. |
| InputRedirectionToken |
The (currently unimplemented) input redirection. |
| InvokeMemberExpressionAst |
The ast that represents the invocation of a method, e.g. |
| LabeledStatementAst |
An abstract base class for statements that have labels such as a while statement or a switch statement. |
| LabelToken | |
| LoopStatementAst |
An abstract base class for looping statements including a the do/while statement, the do/until statement, the foreach statement, the for statement, and the while statement. |
| MemberAst | |
| MemberExpressionAst |
The ast that represents accessing a member as a property, e.g. |
| MergingRedirectionAst |
The ast representing a redirection that merges 2 streams, e.g. |
| MergingRedirectionToken |
A merging redirection. |
| NamedAttributeArgumentAst |
The ast representing a named attribute argument. For example, in |
| NamedBlockAst |
The ast representing a begin, process, end, or dynamicparam block in a scriptblock. This ast is used even when the block is unnamed, in which case the block is either an end block (for functions) or process block (for filters). |
| NullString |
This type is introduced to provide a way to pass null into a .NET method that has a string parameter |
| NumberToken |
A constant number token. The value may be any numeric type including int, long, double, or decimal. |
| ParamBlockAst |
The ast representing the param statement in a script block. |
| ParameterAst |
The ast representing a parameter to a script. Parameters may appear in one of 2 places, either just after the
name of the function, e.g. |
| ParameterBindingResult | |
| ParameterToken |
A parameter to a cmdlet (always starts with a dash, like -Path). |
| ParenExpressionAst |
The ast that represents an expression (or pipeline) that is enclosed in parentheses, e.g. |
| ParseError | |
| Parser |
The parser that parses PowerShell script and returns a ScriptBlockAst, tokens, and error messages if the script cannot be parsed successfullly. |
| PipelineAst |
The ast that repesents a PowerShell pipeline, e.g. |
| PipelineBaseAst |
An abstract base class for statements that include command invocations, pipelines, expressions, and assignements. Any statement that does not begin with a keyword is derives from PipelineBastAst. |
| PropertyMemberAst | |
| RedirectionAst |
An abstract base class representing both file redirections and merging redirections. |
| RedirectionToken |
An abstract base class for merging and file redirections. |
| ReflectionTypeName |
A class that allows a Type to be used directly in the PowerShell ast. |
| ReturnStatementAst |
The ast representing the return statement. |
| ScriptBlockAst |
A ScriptBlockAst is the root ast node for a complete script. |
| ScriptBlockExpressionAst |
The ast that represents an anonymous script block expression, e.g. |
| ScriptExtent |
A script extent used to customize the display of error location information |
| ScriptPosition |
Represents a single point in a script. The script may come from a file or interactive input. |
| ScriptRequirements | |
| StatementAst |
An abstract base class for any statement like an if statement or while statement. |
| StatementBlockAst |
The ast representing a block of statements. The block of statements could be part of a script block or some other statement such as an if statement or while statement. |
| StaticBindingError | |
| StaticBindingResult | |
| StaticParameterBinder | |
| StringConstantExpressionAst |
The ast that represents a constant string expression that is always constant. This includes both single and double quoted strings, but the double quoted strings will not be scanned for variable references and sub-expressions. If expansion of the string is required, use ExpandableStringExpressionAst. |
| StringExpandableToken |
A double quoted string, or a double quoted here string. |
| StringLiteralToken |
A single quoted string, or a single quoted here string. |
| StringToken |
The base class for any string token, including single quoted string, double quoted strings, and here strings. |
| SubExpressionAst |
The ast that represents a subexpression, e.g. |
| SwitchStatementAst |
The ast that represents a switch statement. |
| ThrowStatementAst |
The ast representing the throw statement. |
| Token |
Represents many of the various PowerShell tokens, and is the base class for all PowerShell tokens. |
| TokenTraits |
A utility class to get statically known traits and invariant traits about PowerShell tokens. |
| TrapStatementAst |
The ast that represents the trap statement. |
| TryStatementAst |
The ast that represents a try statement. |
| TypeConstraintAst |
The ast representing a type constraint, which is simply a typename with no arguments. |
| TypeDefinitionAst | |
| TypeExpressionAst |
The ast that represents a type literal expression, e.g. |
| TypeName |
A simple type that is not an array or does not have generic arguments. |
| UnaryExpressionAst |
The ast representing an expression with a unary operator. |
| UsingExpressionAst |
The ast that represents a "using" expression, e.g. |
| UsingStatementAst | |
| VariableExpressionAst |
The ast representing a variable reference, either normal references, e.g.
|
| VariableToken |
A variable token - either a regular variable, such as $_, or a splatted variable like @PSBoundParameters. |
| WhileStatementAst |
The ast for a while statement. |
Interfaces
| IAstPostVisitHandler | |
| ICustomAstVisitor | |
| ICustomAstVisitor2 | |
| IScriptExtent |
Represents the a span of text in a script. |
| IScriptPosition |
Represents a single point in a script. The script may come from a file or interactive input. |
| ITypeName |
The name and attributes of a type. |
Enums
| AstVisitAction |
Each Visit* method in |
| ConfigurationType | |
| DynamicKeywordBodyMode | |
| DynamicKeywordNameMode | |
| ForEachFlags |
Flags that are specified on a foreach statement. Values may be or'ed together, not all invalid combinations of flags are detected. |
| MethodAttributes | |
| PropertyAttributes | |
| RedirectionStream |
The stream number that is redirected. |
| StringConstantType |
The kind of string constant. |
| SwitchFlags |
Flags that are specified on a switch statement. Values may be or'ed together, not all invalid combinations of flags are detected. |
| TokenFlags |
Flags that specify additional information about a given token. |
| TokenKind |
The specific kind of token. |
| TypeAttributes | |
| UsingStatementKind |