Share via


AssignmentStatementAst Constructor

Definition

Construct an assignment statement.

public:
 AssignmentStatementAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::ExpressionAst ^ left, System::Management::Automation::Language::TokenKind operator, System::Management::Automation::Language::StatementAst ^ right, System::Management::Automation::Language::IScriptExtent ^ errorPosition);
public AssignmentStatementAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.ExpressionAst left, System.Management.Automation.Language.TokenKind operator, System.Management.Automation.Language.StatementAst right, System.Management.Automation.Language.IScriptExtent errorPosition);
new System.Management.Automation.Language.AssignmentStatementAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.ExpressionAst * System.Management.Automation.Language.TokenKind * System.Management.Automation.Language.StatementAst * System.Management.Automation.Language.IScriptExtent -> System.Management.Automation.Language.AssignmentStatementAst
Public Sub New (extent As IScriptExtent, left As ExpressionAst, operator As TokenKind, right As StatementAst, errorPosition As IScriptExtent)

Parameters

extent
IScriptExtent

The extent of the assignment statement.

left
ExpressionAst

The value being assigned.

operator
TokenKind

The assignment operator, e.g. '=' or '+='.

right
StatementAst

The value to assign.

errorPosition
IScriptExtent

The position to report an error if an error occurs at runtime.

Exceptions

If extent, left, right, or errorPosition is null.

Applies to