AssignmentStatementAst.GetAssignmentTargets Method

Definition

Return all of the expressions assigned by the assignment statement. Typically it's just a variable expression, but if Left is an ArrayLiteralAst, then all of the elements are assigned.

public:
 System::Collections::Generic::IEnumerable<System::Management::Automation::Language::ExpressionAst ^> ^ GetAssignmentTargets();
public System.Collections.Generic.IEnumerable<System.Management.Automation.Language.ExpressionAst> GetAssignmentTargets ();
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(System.Management.Automation.Language.AssignmentStatementAst+<GetAssignmentTargets>d__14))]
public System.Collections.Generic.IEnumerable<System.Management.Automation.Language.ExpressionAst> GetAssignmentTargets ();
member this.GetAssignmentTargets : unit -> seq<System.Management.Automation.Language.ExpressionAst>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(System.Management.Automation.Language.AssignmentStatementAst+<GetAssignmentTargets>d__14))>]
member this.GetAssignmentTargets : unit -> seq<System.Management.Automation.Language.ExpressionAst>
Public Function GetAssignmentTargets () As IEnumerable(Of ExpressionAst)
Public Iterator Function GetAssignmentTargets () As IEnumerable(Of ExpressionAst)

Returns

All of the expressions assigned by the assignment statement.

Attributes

Applies to