Table of Contents

Class AssignmentExpression

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll

Left Operator= Right

public class AssignmentExpression : Expression, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
AssignmentExpression
Implements
Inherited Members
Extension Methods

Constructors

AssignmentExpression()

public AssignmentExpression()

AssignmentExpression(Expression, AssignmentOperatorType, Expression)

public AssignmentExpression(Expression left, AssignmentOperatorType op, Expression right)

Parameters

left Expression
op AssignmentOperatorType
right Expression

AssignmentExpression(Expression, Expression)

public AssignmentExpression(Expression left, Expression right)

Parameters

left Expression
right Expression

Fields

AddRole

public static readonly TokenRole AddRole

Field Value

TokenRole

AssignRole

public static readonly TokenRole AssignRole

Field Value

TokenRole

BitwiseAndRole

public static readonly TokenRole BitwiseAndRole

Field Value

TokenRole

BitwiseOrRole

public static readonly TokenRole BitwiseOrRole

Field Value

TokenRole

DivideRole

public static readonly TokenRole DivideRole

Field Value

TokenRole

ExclusiveOrRole

public static readonly TokenRole ExclusiveOrRole

Field Value

TokenRole

LeftRole

public static readonly Role<Expression> LeftRole

Field Value

Role<Expression>

ModulusRole

public static readonly TokenRole ModulusRole

Field Value

TokenRole

MultiplyRole

public static readonly TokenRole MultiplyRole

Field Value

TokenRole

RightRole

public static readonly Role<Expression> RightRole

Field Value

Role<Expression>

ShiftLeftRole

public static readonly TokenRole ShiftLeftRole

Field Value

TokenRole

ShiftRightRole

public static readonly TokenRole ShiftRightRole

Field Value

TokenRole

SubtractRole

public static readonly TokenRole SubtractRole

Field Value

TokenRole

UnsignedShiftRightRole

public static readonly TokenRole UnsignedShiftRightRole

Field Value

TokenRole

Properties

Left

public Expression Left { get; set; }

Property Value

Expression

Operator

public AssignmentOperatorType Operator { get; set; }

Property Value

AssignmentOperatorType

OperatorToken

public CSharpTokenNode OperatorToken { get; }

Property Value

CSharpTokenNode

Right

public Expression Right { get; set; }

Property Value

Expression

Methods

AcceptVisitor(IAstVisitor)

public override void AcceptVisitor(IAstVisitor visitor)

Parameters

visitor IAstVisitor

AcceptVisitor<T>(IAstVisitor<T>)

public override T AcceptVisitor<T>(IAstVisitor<T> visitor)

Parameters

visitor IAstVisitor<T>

Returns

T

Type Parameters

T

AcceptVisitor<T, S>(IAstVisitor<T, S>, T)

public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)

Parameters

visitor IAstVisitor<T, S>
data T

Returns

S

Type Parameters

T
S

DoMatch(AstNode, Match)

protected override bool DoMatch(AstNode other, Match match)

Parameters

other AstNode
match Match

Returns

bool

GetAssignmentOperatorTypeFromExpressionType(ExpressionType)

public static AssignmentOperatorType? GetAssignmentOperatorTypeFromExpressionType(ExpressionType expressionType)

Parameters

expressionType ExpressionType

Returns

AssignmentOperatorType?

GetCorrespondingBinaryOperator(AssignmentOperatorType)

Gets the binary operator for the specified compound assignment operator. Returns null if 'op' is not a compound assignment.

public static BinaryOperatorType? GetCorrespondingBinaryOperator(AssignmentOperatorType op)

Parameters

op AssignmentOperatorType

Returns

BinaryOperatorType?

GetLinqNodeType(AssignmentOperatorType, bool)

public static ExpressionType GetLinqNodeType(AssignmentOperatorType op, bool checkForOverflow)

Parameters

op AssignmentOperatorType
checkForOverflow bool

Returns

ExpressionType

GetOperatorRole(AssignmentOperatorType)

public static TokenRole GetOperatorRole(AssignmentOperatorType op)

Parameters

op AssignmentOperatorType

Returns

TokenRole