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
Expressionop
AssignmentOperatorTyperight
Expression
AssignmentExpression(Expression, Expression)
public AssignmentExpression(Expression left, Expression right)
Parameters
left
Expressionright
Expression
Fields
AddRole
public static readonly TokenRole AddRole
Field Value
AssignRole
public static readonly TokenRole AssignRole
Field Value
BitwiseAndRole
public static readonly TokenRole BitwiseAndRole
Field Value
BitwiseOrRole
public static readonly TokenRole BitwiseOrRole
Field Value
DivideRole
public static readonly TokenRole DivideRole
Field Value
ExclusiveOrRole
public static readonly TokenRole ExclusiveOrRole
Field Value
LeftRole
public static readonly Role<Expression> LeftRole
Field Value
ModulusRole
public static readonly TokenRole ModulusRole
Field Value
MultiplyRole
public static readonly TokenRole MultiplyRole
Field Value
RightRole
public static readonly Role<Expression> RightRole
Field Value
ShiftLeftRole
public static readonly TokenRole ShiftLeftRole
Field Value
ShiftRightRole
public static readonly TokenRole ShiftRightRole
Field Value
SubtractRole
public static readonly TokenRole SubtractRole
Field Value
UnsignedShiftRightRole
public static readonly TokenRole UnsignedShiftRightRole
Field Value
Properties
Left
public Expression Left { get; set; }
Property Value
Operator
public AssignmentOperatorType Operator { get; set; }
Property Value
OperatorToken
public CSharpTokenNode OperatorToken { get; }
Property Value
Right
public Expression Right { get; set; }
Property Value
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
Returns
GetAssignmentOperatorTypeFromExpressionType(ExpressionType)
public static AssignmentOperatorType? GetAssignmentOperatorTypeFromExpressionType(ExpressionType expressionType)
Parameters
expressionType
ExpressionType
Returns
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
Returns
GetLinqNodeType(AssignmentOperatorType, bool)
public static ExpressionType GetLinqNodeType(AssignmentOperatorType op, bool checkForOverflow)
Parameters
op
AssignmentOperatorTypecheckForOverflow
bool
Returns
GetOperatorRole(AssignmentOperatorType)
public static TokenRole GetOperatorRole(AssignmentOperatorType op)