< Back

Get-AstStatement

Fri Jan 10, 2020 9:11 pm

NAME Get-AstStatement



SYNTAX

Get-AstStatement [-Ast] <Ast> [[-Type] {StatementAst | PipelineBaseAst | ErrorStatementAst | PipelineAst |

AssignmentStatementAst | TypeDefinitionAst | UsingStatementAst | FunctionDefinitionAst | IfStatementAst |

DataStatementAst | LabeledStatementAst | LoopStatementAst | ForEachStatementAst | ForStatementAst |

DoWhileStatementAst | DoUntilStatementAst | WhileStatementAst | SwitchStatementAst | TryStatementAst |

TrapStatementAst | BreakStatementAst | ContinueStatementAst | ReturnStatementAst | ExitStatementAst |

ThrowStatementAst | CommandBaseAst | CommandAst | CommandExpressionAst | ConfigurationDefinitionAst |

DynamicKeywordStatementAst | BlockStatementAst | CommandElementAst | ExpressionAst | ErrorExpressionAst |

BinaryExpressionAst | UnaryExpressionAst | AttributedExpressionAst | ConvertExpressionAst | MemberExpressionAst |

InvokeMemberExpressionAst | BaseCtorInvokeMemberExpressionAst | TypeExpressionAst | VariableExpressionAst |

ConstantExpressionAst | StringConstantExpressionAst | ExpandableStringExpressionAst | ScriptBlockExpressionAst |

ArrayLiteralAst | HashtableAst | ArrayExpressionAst | ParenExpressionAst | SubExpressionAst | UsingExpressionAst |

IndexExpressionAst | CommandParameterAst | ScriptBlockAst | ParamBlockAst | NamedBlockAst |

NamedAttributeArgumentAst | AttributeBaseAst | AttributeAst | TypeConstraintAst | ParameterAst | StatementBlockAst

| MemberAst | PropertyMemberAst | FunctionMemberAst | CatchClauseAst | RedirectionAst | MergingRedirectionAst |

FileRedirectionAst}] [[-ExcludeType] {StatementAst | PipelineBaseAst | ErrorStatementAst | PipelineAst |

AssignmentStatementAst | TypeDefinitionAst | UsingStatementAst | FunctionDefinitionAst | IfStatementAst |

DataStatementAst | LabeledStatementAst | LoopStatementAst | ForEachStatementAst | ForStatementAst |

DoWhileStatementAst | DoUntilStatementAst | WhileStatementAst | SwitchStatementAst | TryStatementAst |

TrapStatementAst | BreakStatementAst | ContinueStatementAst | ReturnStatementAst | ExitStatementAst |

ThrowStatementAst | CommandBaseAst | CommandAst | CommandExpressionAst | ConfigurationDefinitionAst |

DynamicKeywordStatementAst | BlockStatementAst | CommandElementAst | ExpressionAst | ErrorExpressionAst |

BinaryExpressionAst | UnaryExpressionAst | AttributedExpressionAst | ConvertExpressionAst | MemberExpressionAst |

InvokeMemberExpressionAst | BaseCtorInvokeMemberExpressionAst | TypeExpressionAst | VariableExpressionAst |

ConstantExpressionAst | StringConstantExpressionAst | ExpandableStringExpressionAst | ScriptBlockExpressionAst |

ArrayLiteralAst | HashtableAst | ArrayExpressionAst | ParenExpressionAst | SubExpressionAst | UsingExpressionAst |

IndexExpressionAst | CommandParameterAst | ScriptBlockAst | ParamBlockAst | NamedBlockAst |

NamedAttributeArgumentAst | AttributeBaseAst | AttributeAst | TypeConstraintAst | ParameterAst | StatementBlockAst

| MemberAst | PropertyMemberAst | FunctionMemberAst | CatchClauseAst | RedirectionAst | MergingRedirectionAst |

FileRedirectionAst}] [-Recurse] [<CommonParameters>]





PARAMETERS

-Ast <Ast>



Required? true

Position? 0

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-ExcludeType <string>



Required? false

Position? 2

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Recurse



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Type <string>



Required? false

Position? 1

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).





INPUTS

None





OUTPUTS

System.Object



ALIASES

None





REMARKS

None