Table of Contents

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 Expression
op BinaryOperatorType
right Expression

Fields

AddRole

public static readonly TokenRole AddRole

Field Value

TokenRole

BitwiseAndRole

public static readonly TokenRole BitwiseAndRole

Field Value

TokenRole

BitwiseOrRole

public static readonly TokenRole BitwiseOrRole

Field Value

TokenRole

ConditionalAndRole

public static readonly TokenRole ConditionalAndRole

Field Value

TokenRole

ConditionalOrRole

public static readonly TokenRole ConditionalOrRole

Field Value

TokenRole

DivideRole

public static readonly TokenRole DivideRole

Field Value

TokenRole

EqualityRole

public static readonly TokenRole EqualityRole

Field Value

TokenRole

ExclusiveOrRole

public static readonly TokenRole ExclusiveOrRole

Field Value

TokenRole

GreaterThanOrEqualRole

public static readonly TokenRole GreaterThanOrEqualRole

Field Value

TokenRole

GreaterThanRole

public static readonly TokenRole GreaterThanRole

Field Value

TokenRole

InEqualityRole

public static readonly TokenRole InEqualityRole

Field Value

TokenRole

IsKeywordRole

public static readonly TokenRole IsKeywordRole

Field Value

TokenRole

LeftRole

public static readonly Role<Expression> LeftRole

Field Value

Role<Expression>

LessThanOrEqualRole

public static readonly TokenRole LessThanOrEqualRole

Field Value

TokenRole

LessThanRole

public static readonly TokenRole LessThanRole

Field Value

TokenRole

ModulusRole

public static readonly TokenRole ModulusRole

Field Value

TokenRole

MultiplyRole

public static readonly TokenRole MultiplyRole

Field Value

TokenRole

NullCoalescingRole

public static readonly TokenRole NullCoalescingRole

Field Value

TokenRole

RangeRole

public static readonly TokenRole RangeRole

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 BinaryOperatorType Operator { get; set; }

Property Value

BinaryOperatorType

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

GetLinqNodeType(BinaryOperatorType, bool)

public static ExpressionType GetLinqNodeType(BinaryOperatorType op, bool checkForOverflow)

Parameters

op BinaryOperatorType
checkForOverflow bool

Returns

ExpressionType

GetOperatorRole(BinaryOperatorType)

public static TokenRole GetOperatorRole(BinaryOperatorType op)

Parameters

op BinaryOperatorType

Returns

TokenRole