Class BinaryOperatorExpression
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
Left Operator Right
public class BinaryOperatorExpression : Expression, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
BinaryOperatorExpression
- Implements
- Inherited Members
- Extension Methods
Constructors
BinaryOperatorExpression()
public BinaryOperatorExpression()
BinaryOperatorExpression(Expression, BinaryOperatorType, Expression)
public BinaryOperatorExpression(Expression left, BinaryOperatorType op, Expression right)
Parameters
left
Expressionop
BinaryOperatorTyperight
Expression
Fields
AddRole
public static readonly TokenRole AddRole
Field Value
BitwiseAndRole
public static readonly TokenRole BitwiseAndRole
Field Value
BitwiseOrRole
public static readonly TokenRole BitwiseOrRole
Field Value
ConditionalAndRole
public static readonly TokenRole ConditionalAndRole
Field Value
ConditionalOrRole
public static readonly TokenRole ConditionalOrRole
Field Value
DivideRole
public static readonly TokenRole DivideRole
Field Value
EqualityRole
public static readonly TokenRole EqualityRole
Field Value
ExclusiveOrRole
public static readonly TokenRole ExclusiveOrRole
Field Value
GreaterThanOrEqualRole
public static readonly TokenRole GreaterThanOrEqualRole
Field Value
GreaterThanRole
public static readonly TokenRole GreaterThanRole
Field Value
InEqualityRole
public static readonly TokenRole InEqualityRole
Field Value
IsKeywordRole
public static readonly TokenRole IsKeywordRole
Field Value
LeftRole
public static readonly Role<Expression> LeftRole
Field Value
LessThanOrEqualRole
public static readonly TokenRole LessThanOrEqualRole
Field Value
LessThanRole
public static readonly TokenRole LessThanRole
Field Value
ModulusRole
public static readonly TokenRole ModulusRole
Field Value
MultiplyRole
public static readonly TokenRole MultiplyRole
Field Value
NullCoalescingRole
public static readonly TokenRole NullCoalescingRole
Field Value
RangeRole
public static readonly TokenRole RangeRole
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 BinaryOperatorType 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
GetLinqNodeType(BinaryOperatorType, bool)
public static ExpressionType GetLinqNodeType(BinaryOperatorType op, bool checkForOverflow)
Parameters
op
BinaryOperatorTypecheckForOverflow
bool
Returns
GetOperatorRole(BinaryOperatorType)
public static TokenRole GetOperatorRole(BinaryOperatorType op)