1045 references to BinaryOperatorKind
Microsoft.CodeAnalysis.VisualBasic (992)
Analysis\FlowAnalysis\AbstractFlowPass.vb (9)
2146
Select Case binary.OperatorKind And
BinaryOperatorKind
.OpMask
2147
Case
BinaryOperatorKind
.AndAlso,
2148
BinaryOperatorKind
.OrElse
2155
Select Case binary.OperatorKind And
BinaryOperatorKind
.OpMask
2156
Case
BinaryOperatorKind
.AndAlso
2166
Case
BinaryOperatorKind
.OrElse
2186
Select Case binary.OperatorKind And
BinaryOperatorKind
.OpMask
2187
Case
BinaryOperatorKind
.AndAlso,
2188
BinaryOperatorKind
.OrElse
Binding\Binder_Expressions.vb (2)
4394
Dim value = OverloadResolution.TryFoldConstantBinaryOperator(
BinaryOperatorKind
.Add, upperBound, one, int32Type, integerOverflow, divideByZero, Nothing)
4406
BinaryOperatorKind
.Add,
Binding\Binder_Operators.vb (98)
48
If([isNot],
BinaryOperatorKind
.IsNot,
BinaryOperatorKind
.Is),
130
Dim preliminaryOperatorKind As
BinaryOperatorKind
= OverloadResolution.MapBinaryOperatorKind(node.Kind)
132
(preliminaryOperatorKind =
BinaryOperatorKind
.AndAlso OrElse
133
preliminaryOperatorKind =
BinaryOperatorKind
.OrElse)
201
preliminaryOperatorKind As
BinaryOperatorKind
,
238
If (preliminaryOperatorKind =
BinaryOperatorKind
.Concatenate AndAlso leftIsDBNull <> rightIsDBNull) OrElse
239
(preliminaryOperatorKind =
BinaryOperatorKind
.Add AndAlso
259
Dim operatorKind As
BinaryOperatorKind
= OverloadResolution.ResolveBinaryOperator(preliminaryOperatorKind, left, right, Me,
270
If operatorKind =
BinaryOperatorKind
.UserDefined Then
280
If preliminaryOperatorKind =
BinaryOperatorKind
.AndAlso OrElse preliminaryOperatorKind =
BinaryOperatorKind
.OrElse Then
289
operatorKind =
BinaryOperatorKind
.Error
292
If operatorKind =
BinaryOperatorKind
.Error Then
295
Return New BoundBinaryOperator(node, preliminaryOperatorKind Or
BinaryOperatorKind
.Error, left, right, CheckOverflow, ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
308
If (operatorKind And
BinaryOperatorKind
.Lifted) = 0 OrElse leftType.IsNullableType() Then
317
(operatorKind And
BinaryOperatorKind
.Lifted) <> 0, diagnostics)
327
Case
BinaryOperatorKind
.Equals,
328
BinaryOperatorKind
.NotEquals,
329
BinaryOperatorKind
.LessThanOrEqual,
330
BinaryOperatorKind
.GreaterThanOrEqual,
331
BinaryOperatorKind
.LessThan,
332
BinaryOperatorKind
.GreaterThan,
333
BinaryOperatorKind
.Like
336
operatorKind = operatorKind Or
BinaryOperatorKind
.CompareText
340
(isOperandOfConditionalBranch AndAlso preliminaryOperatorKind <>
BinaryOperatorKind
.Like) Then
345
If (operatorKind And
BinaryOperatorKind
.Lifted) <> 0 Then
349
If (preliminaryOperatorKind =
BinaryOperatorKind
.Equals OrElse preliminaryOperatorKind =
BinaryOperatorKind
.NotEquals) AndAlso
354
If(preliminaryOperatorKind =
BinaryOperatorKind
.Equals,
362
Debug.Assert(isOperandOfConditionalBranch AndAlso preliminaryOperatorKind <>
BinaryOperatorKind
.Like)
403
If Not isSelectCase OrElse preliminaryOperatorKind <>
BinaryOperatorKind
.OrElse Then
405
If(preliminaryOperatorKind =
BinaryOperatorKind
.Equals, ERRID.WRN_ObjectMath1,
406
If(preliminaryOperatorKind =
BinaryOperatorKind
.NotEquals, ERRID.WRN_ObjectMath1Not, ERRID.WRN_ObjectMath2)))
424
If preliminaryOperatorKind =
BinaryOperatorKind
.Concatenate Then
427
Debug.Assert((operatorKind And
BinaryOperatorKind
.Lifted) = 0)
451
If (preliminaryOperatorKind =
BinaryOperatorKind
.LeftShift OrElse preliminaryOperatorKind =
BinaryOperatorKind
.RightShift) AndAlso
461
If (operatorKind And
BinaryOperatorKind
.Lifted) <> 0 Then
480
If (operatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.Add AndAlso operatorResultType.IsStringType() Then
482
operatorKind = (operatorKind And (Not
BinaryOperatorKind
.OpMask))
483
operatorKind = operatorKind Or
BinaryOperatorKind
.Concatenate
521
Dim result As BoundExpression = New BoundBinaryOperator(node, operatorKind Or If(isOperandOfConditionalBranch,
BinaryOperatorKind
.IsOperandOfConditionalBranch, Nothing),
557
opKind As
BinaryOperatorKind
,
565
opKind = opKind Or
BinaryOperatorKind
.UserDefined
584
opKind = opKind Or
BinaryOperatorKind
.Lifted
623
opKind As
BinaryOperatorKind
,
629
Debug.Assert(opKind =
BinaryOperatorKind
.AndAlso OrElse opKind =
BinaryOperatorKind
.OrElse)
632
Dim bitwiseKind As
BinaryOperatorKind
= If(opKind =
BinaryOperatorKind
.AndAlso,
BinaryOperatorKind
.And,
BinaryOperatorKind
.Or) Or
BinaryOperatorKind
.UserDefined
654
bitwiseKind = bitwiseKind Or
BinaryOperatorKind
.Lifted
662
SyntaxFacts.GetText(If(opKind =
BinaryOperatorKind
.AndAlso,
678
If opKind =
BinaryOperatorKind
.AndAlso Then
692
SyntaxFacts.GetText(If(opKind =
BinaryOperatorKind
.AndAlso, SyntaxKind.IsFalseKeyword, SyntaxKind.IsTrueKeyword)),
693
SyntaxFacts.GetText(If(opKind =
BinaryOperatorKind
.AndAlso, SyntaxKind.AndAlsoKeyword, SyntaxKind.OrElseKeyword)))
707
SyntaxFacts.GetText(If(opKind =
BinaryOperatorKind
.AndAlso, SyntaxKind.AndAlsoKeyword, SyntaxKind.OrElseKeyword)),
738
If(opKind =
BinaryOperatorKind
.AndAlso,
768
preliminaryOperatorKind As
BinaryOperatorKind
,
773
If(preliminaryOperatorKind =
BinaryOperatorKind
.Equals OrElse preliminaryOperatorKind =
BinaryOperatorKind
.NotEquals,
934
operatorKind As
BinaryOperatorKind
,
951
(operatorKind =
BinaryOperatorKind
.Equals OrElse operatorKind =
BinaryOperatorKind
.NotEquals) AndAlso
976
operatorKind As
BinaryOperatorKind
,
981
Debug.Assert((operatorKind And
BinaryOperatorKind
.OpMask) = operatorKind AndAlso operatorKind <> 0)
993
Case
BinaryOperatorKind
.Concatenate,
994
BinaryOperatorKind
.Like
997
Case
BinaryOperatorKind
.OrElse,
998
BinaryOperatorKind
.AndAlso
1001
Case
BinaryOperatorKind
.Add,
1002
BinaryOperatorKind
.Equals,
1003
BinaryOperatorKind
.NotEquals,
1004
BinaryOperatorKind
.LessThanOrEqual,
1005
BinaryOperatorKind
.GreaterThanOrEqual,
1006
BinaryOperatorKind
.LessThan,
1007
BinaryOperatorKind
.GreaterThan,
1008
BinaryOperatorKind
.Subtract,
1009
BinaryOperatorKind
.Multiply,
1010
BinaryOperatorKind
.Power,
1011
BinaryOperatorKind
.Divide,
1012
BinaryOperatorKind
.Modulo,
1013
BinaryOperatorKind
.IntegerDivide,
1014
BinaryOperatorKind
.LeftShift,
1015
BinaryOperatorKind
.RightShift,
1016
BinaryOperatorKind
.Xor,
1017
BinaryOperatorKind
.Or,
1018
BinaryOperatorKind
.And
1041
Case
BinaryOperatorKind
.Concatenate,
1042
BinaryOperatorKind
.Like
1055
Case
BinaryOperatorKind
.LeftShift,
1056
BinaryOperatorKind
.RightShift
1081
Case
BinaryOperatorKind
.Concatenate,
1082
BinaryOperatorKind
.Like
Binding\Binder_Query.vb (6)
3473
Dim operatorKind As
BinaryOperatorKind
= OverloadResolution.ResolveBinaryOperator(
BinaryOperatorKind
.Equals,
3481
If (operatorKind And
BinaryOperatorKind
.Equals) <> 0 AndAlso
3482
(operatorKind And Not (
BinaryOperatorKind
.Equals Or
BinaryOperatorKind
.Lifted)) = 0 AndAlso
3488
(operatorKind And
BinaryOperatorKind
.Lifted) <> 0, diagnostics)
Binding\Binder_SelectCase.vb (17)
210
Dim operatorKind As
BinaryOperatorKind
212
Case SyntaxKind.CaseEqualsClause : operatorKind =
BinaryOperatorKind
.Equals
213
Case SyntaxKind.CaseNotEqualsClause : operatorKind =
BinaryOperatorKind
.NotEquals
214
Case SyntaxKind.CaseLessThanOrEqualClause : operatorKind =
BinaryOperatorKind
.LessThanOrEqual
215
Case SyntaxKind.CaseGreaterThanOrEqualClause : operatorKind =
BinaryOperatorKind
.GreaterThanOrEqual
216
Case SyntaxKind.CaseLessThanClause : operatorKind =
BinaryOperatorKind
.LessThan
217
Case SyntaxKind.CaseGreaterThanClause : operatorKind =
BinaryOperatorKind
.GreaterThan
260
operatorKind:=
BinaryOperatorKind
.Equals,
292
operatorKind:=
BinaryOperatorKind
.GreaterThanOrEqual,
304
operatorKind:=
BinaryOperatorKind
.LessThanOrEqual,
317
operatorKind As
BinaryOperatorKind
,
426
preliminaryOperatorKind:=
BinaryOperatorKind
.OrElse,
496
preliminaryOperatorKind:=
BinaryOperatorKind
.Equals,
517
preliminaryOperatorKind:=
BinaryOperatorKind
.GreaterThanOrEqual,
533
preliminaryOperatorKind:=
BinaryOperatorKind
.LessThanOrEqual,
544
preliminaryOperatorKind:=
BinaryOperatorKind
.AndAlso,
595
relationalClause.OperatorKind <>
BinaryOperatorKind
.Equals OrElse
Binding\Binder_Statements.vb (22)
1999
operatorKind As
BinaryOperatorKind
,
2127
Dim operatorKind As
BinaryOperatorKind
2132
operatorKind =
BinaryOperatorKind
.Add
2135
operatorKind =
BinaryOperatorKind
.Subtract
2138
operatorKind =
BinaryOperatorKind
.Multiply
2141
operatorKind =
BinaryOperatorKind
.Divide
2144
operatorKind =
BinaryOperatorKind
.IntegerDivide
2147
operatorKind =
BinaryOperatorKind
.Power
2150
operatorKind =
BinaryOperatorKind
.LeftShift
2153
operatorKind =
BinaryOperatorKind
.RightShift
2156
operatorKind =
BinaryOperatorKind
.Concatenate
3178
Dim addition As BoundUserDefinedBinaryOperator = BindForLoopUserDefinedOperator(syntax,
BinaryOperatorKind
.Add, leftOperandPlaceholder, rightOperandPlaceholder, diagnostics)
3179
Dim subtraction As BoundUserDefinedBinaryOperator = BindForLoopUserDefinedOperator(syntax,
BinaryOperatorKind
.Subtract, leftOperandPlaceholder, rightOperandPlaceholder, diagnostics)
3181
Dim lessThanOrEqual As BoundExpression = BindForLoopUserDefinedOperator(syntax,
BinaryOperatorKind
.LessThanOrEqual, leftOperandPlaceholder, rightOperandPlaceholder, diagnostics)
3187
Dim greaterThanOrEqual As BoundExpression = BindForLoopUserDefinedOperator(syntax,
BinaryOperatorKind
.GreaterThanOrEqual, leftOperandPlaceholder, rightOperandPlaceholder, diagnostics)
3242
opCode As
BinaryOperatorKind
,
3248
Debug.Assert(opCode =
BinaryOperatorKind
.Add OrElse opCode =
BinaryOperatorKind
.Subtract OrElse opCode =
BinaryOperatorKind
.LessThanOrEqual OrElse opCode =
BinaryOperatorKind
.GreaterThanOrEqual)
3250
Dim isRelational As Boolean = (opCode =
BinaryOperatorKind
.LessThanOrEqual OrElse opCode =
BinaryOperatorKind
.GreaterThanOrEqual)
Binding\DocumentationCommentCrefBinder.vb (21)
927
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.Add)
936
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.Subtract)
942
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.Multiply)
948
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.Divide)
954
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.IntegerDivide)
960
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.Modulo)
966
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.Power)
972
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.Equals)
978
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.NotEquals)
984
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.LessThan)
990
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.GreaterThan)
996
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.LessThanOrEqual)
1002
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.GreaterThanOrEqual)
1008
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.Like)
1014
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.Concatenate)
1020
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.And)
1029
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.Or)
1038
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.Xor)
1044
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.LeftShift)
1053
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.RightShift)
1062
Dim opInfo As New OverloadResolution.OperatorInfo(
BinaryOperatorKind
.RightShift)
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (7)
141
expression = New BoundBinaryOperator(syntax,
BinaryOperatorKind
.Multiply,
145
Dim boundCondition = New BoundBinaryOperator(syntax,
BinaryOperatorKind
.Is,
170
expression = New BoundBinaryOperator(syntax,
BinaryOperatorKind
.Add, expression,
310
If(reverse,
BinaryOperatorKind
.IsNot,
BinaryOperatorKind
.Is),
315
Return New BoundBinaryOperator(Syntax,
BinaryOperatorKind
.AndAlso,
320
Return New BoundBinaryOperator(Syntax,
BinaryOperatorKind
.OrElse,
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (2)
261
BinaryOperatorKind
.IsNot,
341
BinaryOperatorKind
.IsNot,
Binding\SyntheticBoundTrees\SynthesizedStringSwitchHashMethod.vb (5)
98
F.Binary(
BinaryOperatorKind
.IsNot, Me.ContainingAssembly.GetSpecialType(SpecialType.System_Boolean),
107
F.Binary(
BinaryOperatorKind
.Multiply, hashCode.Type,
108
F.Binary(
BinaryOperatorKind
.Xor, hashCode.Type,
114
F.Binary(
BinaryOperatorKind
.Add, i.Type,
119
F.Binary(
BinaryOperatorKind
.LessThan, Me.ContainingAssembly.GetSpecialType(SpecialType.System_Boolean),
BoundTree\BoundBinaryOperator.vb (16)
15
operatorKind As
BinaryOperatorKind
,
32
(OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.LeftShift OrElse
33
(OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.RightShift OrElse
34
(OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.Is OrElse
35
(OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.IsNot)
41
If (OperatorKind And
BinaryOperatorKind
.Error) = 0 Then
42
Dim op As
BinaryOperatorKind
= (OperatorKind And
BinaryOperatorKind
.OpMask)
47
(op =
BinaryOperatorKind
.Multiply OrElse
48
op =
BinaryOperatorKind
.Add OrElse
49
op =
BinaryOperatorKind
.Subtract OrElse
50
op =
BinaryOperatorKind
.IntegerDivide)
BoundTree\BoundCaseClause.vb (3)
10
Protected Shared Sub ValidateValueAndCondition(valueOpt As BoundExpression, conditionOpt As BoundExpression, operatorKind As
BinaryOperatorKind
)
17
Debug.Assert((binaryOp.OperatorKind And
BinaryOperatorKind
.OpMask) = operatorKind)
21
Debug.Assert((binaryOp.OperatorKind And
BinaryOperatorKind
.OpMask) = operatorKind)
BoundTree\BoundRangeCaseClause.vb (2)
11
ValidateValueAndCondition(LowerBoundOpt, LowerBoundConditionOpt,
BinaryOperatorKind
.GreaterThanOrEqual)
12
ValidateValueAndCondition(UpperBoundOpt, UpperBoundConditionOpt,
BinaryOperatorKind
.LessThanOrEqual)
BoundTree\BoundSimpleCaseClause.vb (1)
15
ValidateValueAndCondition(ValueOpt, ConditionOpt,
BinaryOperatorKind
.Equals)
BoundTree\BoundUserDefinedBinaryOperator.vb (2)
34
Debug.Assert((OperatorKind And
BinaryOperatorKind
.UserDefined) <> 0)
41
If (OperatorKind And
BinaryOperatorKind
.Lifted) <> 0 Then
CodeGen\EmitConversion.vb (7)
118
Select Case (DirectCast(conversion.Operand, BoundBinaryOperator).OperatorKind And
BinaryOperatorKind
.OpMask)
119
Case
BinaryOperatorKind
.Add,
120
BinaryOperatorKind
.Subtract,
121
BinaryOperatorKind
.Multiply,
122
BinaryOperatorKind
.Divide,
123
BinaryOperatorKind
.Modulo,
124
BinaryOperatorKind
.Power
CodeGen\EmitOperators.vb (65)
98
Dim operationKind = expression.OperatorKind And
BinaryOperatorKind
.OpMask
99
Dim shortCircuit As Boolean = operationKind =
BinaryOperatorKind
.AndAlso OrElse operationKind =
BinaryOperatorKind
.OrElse
116
Private Function IsCondOperator(operationKind As
BinaryOperatorKind
) As Boolean
117
Select Case (operationKind And
BinaryOperatorKind
.OpMask)
118
Case
BinaryOperatorKind
.OrElse,
119
BinaryOperatorKind
.AndAlso,
120
BinaryOperatorKind
.Equals,
121
BinaryOperatorKind
.NotEquals,
122
BinaryOperatorKind
.LessThanOrEqual,
123
BinaryOperatorKind
.GreaterThanOrEqual,
124
BinaryOperatorKind
.LessThan,
125
BinaryOperatorKind
.GreaterThan,
126
BinaryOperatorKind
.Is,
127
BinaryOperatorKind
.IsNot
178
Select Case (binary.OperatorKind And
BinaryOperatorKind
.OpMask)
179
Case
BinaryOperatorKind
.And
182
Case
BinaryOperatorKind
.Xor
185
Case
BinaryOperatorKind
.Or
199
Select Case (expression.OperatorKind And
BinaryOperatorKind
.OpMask)
200
Case
BinaryOperatorKind
.And
205
Case
BinaryOperatorKind
.Xor
210
Case
BinaryOperatorKind
.Or
221
Dim type = expression.OperatorKind And
BinaryOperatorKind
.OpMask
224
Case
BinaryOperatorKind
.Divide,
225
BinaryOperatorKind
.Modulo,
226
BinaryOperatorKind
.IntegerDivide
229
Case
BinaryOperatorKind
.Multiply,
230
BinaryOperatorKind
.Add,
231
BinaryOperatorKind
.Subtract
249
Dim opKind = expression.OperatorKind And
BinaryOperatorKind
.OpMask
252
Case
BinaryOperatorKind
.Multiply
265
Case
BinaryOperatorKind
.Modulo
272
Case
BinaryOperatorKind
.Add
284
Case
BinaryOperatorKind
.Subtract
296
Case
BinaryOperatorKind
.Divide,
297
BinaryOperatorKind
.IntegerDivide
305
Case
BinaryOperatorKind
.LeftShift
319
Case
BinaryOperatorKind
.RightShift
346
opKind <>
BinaryOperatorKind
.LeftShift AndAlso
347
opKind <>
BinaryOperatorKind
.RightShift)
415
Dim opKind = (binOp.OperatorKind And
BinaryOperatorKind
.OpMask)
418
Debug.Assert(operandType IsNot Nothing OrElse (binOp.Left.IsNothingLiteral() AndAlso (opKind =
BinaryOperatorKind
.Is OrElse opKind =
BinaryOperatorKind
.IsNot)))
424
Case
BinaryOperatorKind
.LessThan
425
opKind =
BinaryOperatorKind
.GreaterThan
426
Case
BinaryOperatorKind
.LessThanOrEqual
427
opKind =
BinaryOperatorKind
.GreaterThanOrEqual
428
Case
BinaryOperatorKind
.GreaterThan
429
opKind =
BinaryOperatorKind
.LessThan
430
Case
BinaryOperatorKind
.GreaterThanOrEqual
431
opKind =
BinaryOperatorKind
.LessThanOrEqual
436
Case
BinaryOperatorKind
.OrElse
440
Case
BinaryOperatorKind
.AndAlso
452
Case
BinaryOperatorKind
.IsNot
456
Case
BinaryOperatorKind
.Is
460
Case
BinaryOperatorKind
.NotEquals
465
Case
BinaryOperatorKind
.Equals
497
Case
BinaryOperatorKind
.Or
504
Case
BinaryOperatorKind
.And
511
Case
BinaryOperatorKind
.Xor
524
Case
BinaryOperatorKind
.LessThan
527
Case
BinaryOperatorKind
.LessThanOrEqual
531
Case
BinaryOperatorKind
.GreaterThan
534
Case
BinaryOperatorKind
.GreaterThanOrEqual
CodeGen\EmitStatement.vb (40)
496
Dim opKind = condition.OperatorKind And
BinaryOperatorKind
.OpMask
498
Debug.Assert(opKind =
BinaryOperatorKind
.Equals OrElse
499
opKind =
BinaryOperatorKind
.NotEquals OrElse
500
opKind =
BinaryOperatorKind
.Is OrElse
501
opKind =
BinaryOperatorKind
.IsNot)
520
Debug.Assert(nonConstType IsNot Nothing OrElse (nonConstOp.IsNothingLiteral() AndAlso (opKind =
BinaryOperatorKind
.Is OrElse opKind =
BinaryOperatorKind
.IsNot)))
537
If opKind =
BinaryOperatorKind
.NotEquals OrElse opKind =
BinaryOperatorKind
.IsNot Then
564
Dim opKind = (expression.OperatorKind And
BinaryOperatorKind
.OpMask)
567
Debug.Assert(operandType IsNot Nothing OrElse (expression.Left.IsNothingLiteral() AndAlso (opKind =
BinaryOperatorKind
.Is OrElse opKind =
BinaryOperatorKind
.IsNot)))
573
Case
BinaryOperatorKind
.LessThan
574
opKind =
BinaryOperatorKind
.GreaterThan
575
Case
BinaryOperatorKind
.LessThanOrEqual
576
opKind =
BinaryOperatorKind
.GreaterThanOrEqual
577
Case
BinaryOperatorKind
.GreaterThan
578
opKind =
BinaryOperatorKind
.LessThan
579
Case
BinaryOperatorKind
.GreaterThanOrEqual
580
opKind =
BinaryOperatorKind
.LessThanOrEqual
585
Case
BinaryOperatorKind
.IsNot
589
Case
BinaryOperatorKind
.Is
593
Case
BinaryOperatorKind
.Equals
596
Case
BinaryOperatorKind
.NotEquals
599
Case
BinaryOperatorKind
.LessThan
602
Case
BinaryOperatorKind
.LessThanOrEqual
605
Case
BinaryOperatorKind
.GreaterThan
608
Case
BinaryOperatorKind
.GreaterThanOrEqual
696
Select Case binOp.OperatorKind And
BinaryOperatorKind
.OpMask
697
Case
BinaryOperatorKind
.OrElse
701
Case
BinaryOperatorKind
.AndAlso
721
Case
BinaryOperatorKind
.IsNot,
722
BinaryOperatorKind
.Is
727
Case
BinaryOperatorKind
.Equals,
728
BinaryOperatorKind
.NotEquals
737
Case
BinaryOperatorKind
.LessThan,
738
BinaryOperatorKind
.LessThanOrEqual,
739
BinaryOperatorKind
.GreaterThan,
740
BinaryOperatorKind
.GreaterThanOrEqual
1004
Debug.Assert(relationalCaseClause.OperatorKind =
BinaryOperatorKind
.Equals)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (6)
938
Select Case (binary.OperatorKind And
BinaryOperatorKind
.OpMask)
939
Case
BinaryOperatorKind
.AndAlso,
BinaryOperatorKind
.OrElse
976
Select Case (node.OperatorKind And
BinaryOperatorKind
.OpMask)
977
Case
BinaryOperatorKind
.AndAlso,
BinaryOperatorKind
.OrElse
CodeGen\ResumableStateMachineStateAllocator.vb (2)
81
If(_increasing,
BinaryOperatorKind
.GreaterThanOrEqual,
BinaryOperatorKind
.LessThanOrEqual),
Compilation\VisualBasicCompilation.vb (10)
2959
If opInfo.BinaryOperatorKind =
BinaryOperatorKind
.Xor OrElse
2960
opInfo.BinaryOperatorKind =
BinaryOperatorKind
.And OrElse
2961
opInfo.BinaryOperatorKind =
BinaryOperatorKind
.Or Then
2979
If opInfo.BinaryOperatorKind =
BinaryOperatorKind
.Equals OrElse
2980
opInfo.BinaryOperatorKind =
BinaryOperatorKind
.NotEquals OrElse
2981
opInfo.BinaryOperatorKind =
BinaryOperatorKind
.LessThanOrEqual OrElse
2982
opInfo.BinaryOperatorKind =
BinaryOperatorKind
.GreaterThanOrEqual OrElse
2983
opInfo.BinaryOperatorKind =
BinaryOperatorKind
.LessThan OrElse
2984
opInfo.BinaryOperatorKind =
BinaryOperatorKind
.GreaterThan OrElse
2985
opInfo.BinaryOperatorKind =
BinaryOperatorKind
.Like Then
Generated\BoundNodes.xml.Generated.vb (12)
1510
Public Sub New(syntax As SyntaxNode, operatorKind As
BinaryOperatorKind
, left As BoundExpression, right As BoundExpression, checked As Boolean, constantValueOpt As ConstantValue, type As TypeSymbol, Optional hasErrors As Boolean = False)
1530
Private ReadOnly _OperatorKind As
BinaryOperatorKind
1531
Public ReadOnly Property OperatorKind As
BinaryOperatorKind
1570
Public Function Update(operatorKind As
BinaryOperatorKind
, left As BoundExpression, right As BoundExpression, checked As Boolean, constantValueOpt As ConstantValue, type As TypeSymbol) As BoundBinaryOperator
1583
Public Sub New(syntax As SyntaxNode, operatorKind As
BinaryOperatorKind
, underlyingExpression As BoundExpression, checked As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
1600
Private ReadOnly _OperatorKind As
BinaryOperatorKind
1601
Public ReadOnly Property OperatorKind As
BinaryOperatorKind
1626
Public Function Update(operatorKind As
BinaryOperatorKind
, underlyingExpression As BoundExpression, checked As Boolean, type As TypeSymbol) As BoundUserDefinedBinaryOperator
5226
Public Sub New(syntax As SyntaxNode, operatorKind As
BinaryOperatorKind
, valueOpt As BoundExpression, conditionOpt As BoundExpression, Optional hasErrors As Boolean = False)
5237
Private ReadOnly _OperatorKind As
BinaryOperatorKind
5238
Public ReadOnly Property OperatorKind As
BinaryOperatorKind
5249
Public Function Update(operatorKind As
BinaryOperatorKind
, valueOpt As BoundExpression, conditionOpt As BoundExpression) As BoundRelationalCaseClause
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (7)
169
Dim operatorKind As
BinaryOperatorKind
= rewritten.OperatorKind And
BinaryOperatorKind
.OpMask
170
Debug.Assert(operatorKind = (rewritten.OperatorKind And Not (
BinaryOperatorKind
.IsOperandOfConditionalBranch Or
BinaryOperatorKind
.OptimizableForConditionalBranch)))
171
If operatorKind =
BinaryOperatorKind
.AndAlso OrElse operatorKind =
BinaryOperatorKind
.OrElse Then
179
If(operatorKind =
BinaryOperatorKind
.AndAlso,
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (5)
88
Dim opKind As
BinaryOperatorKind
= node.OperatorKind And
BinaryOperatorKind
.OpMask
91
Case
BinaryOperatorKind
.Like,
92
BinaryOperatorKind
.Concatenate
96
If (node.OperatorKind And
BinaryOperatorKind
.Lifted) <> 0 Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (159)
22
Debug.Assert((node.OperatorKind And
BinaryOperatorKind
.UserDefined) = 0)
24
Select Case node.OperatorKind And
BinaryOperatorKind
.OpMask
25
Case
BinaryOperatorKind
.And,
26
BinaryOperatorKind
.Or,
27
BinaryOperatorKind
.Xor,
28
BinaryOperatorKind
.Power,
29
BinaryOperatorKind
.Multiply,
30
BinaryOperatorKind
.Add,
31
BinaryOperatorKind
.Subtract,
32
BinaryOperatorKind
.Divide,
33
BinaryOperatorKind
.Modulo,
34
BinaryOperatorKind
.IntegerDivide,
35
BinaryOperatorKind
.Concatenate,
36
BinaryOperatorKind
.LeftShift,
37
BinaryOperatorKind
.RightShift
40
Case
BinaryOperatorKind
.Is,
41
BinaryOperatorKind
.IsNot,
42
BinaryOperatorKind
.Equals,
43
BinaryOperatorKind
.NotEquals,
44
BinaryOperatorKind
.LessThanOrEqual,
45
BinaryOperatorKind
.GreaterThanOrEqual,
46
BinaryOperatorKind
.LessThan,
47
BinaryOperatorKind
.GreaterThan
50
Case
BinaryOperatorKind
.OrElse,
51
BinaryOperatorKind
.AndAlso
54
Case
BinaryOperatorKind
.Like
64
Dim opKind As
BinaryOperatorKind
= node.OperatorKind And
BinaryOperatorKind
.OpMask
65
Dim isLifted As Boolean = (node.OperatorKind And
BinaryOperatorKind
.Lifted) <> 0
69
Case
BinaryOperatorKind
.Like,
70
BinaryOperatorKind
.Concatenate
73
Case
BinaryOperatorKind
.Is,
74
BinaryOperatorKind
.IsNot,
75
BinaryOperatorKind
.Equals,
76
BinaryOperatorKind
.NotEquals,
77
BinaryOperatorKind
.LessThanOrEqual,
78
BinaryOperatorKind
.GreaterThanOrEqual,
79
BinaryOperatorKind
.LessThan,
80
BinaryOperatorKind
.GreaterThan
104
Dim opKind As
BinaryOperatorKind
= operand.OperatorKind And
BinaryOperatorKind
.OpMask
110
opKind = If(opKind =
BinaryOperatorKind
.And,
BinaryOperatorKind
.AndAlso,
BinaryOperatorKind
.OrElse)
121
Dim opKind As
BinaryOperatorKind
= node.OperatorKind
123
If (opKind And
BinaryOperatorKind
.Lifted) = 0 Then
141
Dim opKind = node.OperatorKind And
BinaryOperatorKind
.OpMask
142
Debug.Assert(opKind =
BinaryOperatorKind
.Is OrElse opKind =
BinaryOperatorKind
.IsNot OrElse
143
opKind =
BinaryOperatorKind
.Equals OrElse opKind =
BinaryOperatorKind
.NotEquals OrElse
144
opKind =
BinaryOperatorKind
.LessThan OrElse opKind =
BinaryOperatorKind
.GreaterThan OrElse
145
opKind =
BinaryOperatorKind
.LessThanOrEqual OrElse opKind =
BinaryOperatorKind
.GreaterThanOrEqual)
146
Debug.Assert((node.OperatorKind And
BinaryOperatorKind
.UserDefined) = 0)
156
Dim isIsIsNot As Boolean = (opKind =
BinaryOperatorKind
.Is) OrElse (opKind =
BinaryOperatorKind
.IsNot)
222
Case
BinaryOperatorKind
.LessThan
223
opMethod = GetBinaryOperatorMethodName(
BinaryOperatorKind
.GreaterThan, isChecked)
226
Case
BinaryOperatorKind
.LessThanOrEqual
227
opMethod = GetBinaryOperatorMethodName(
BinaryOperatorKind
.GreaterThanOrEqual, isChecked)
230
Case
BinaryOperatorKind
.GreaterThan
231
opMethod = GetBinaryOperatorMethodName(
BinaryOperatorKind
.LessThan, isChecked)
234
Case
BinaryOperatorKind
.GreaterThanOrEqual
235
opMethod = GetBinaryOperatorMethodName(
BinaryOperatorKind
.LessThanOrEqual, isChecked)
274
Dim opKind = node.OperatorKind And
BinaryOperatorKind
.OpMask
275
Debug.Assert(opKind =
BinaryOperatorKind
.AndAlso OrElse opKind =
BinaryOperatorKind
.OrElse)
276
Debug.Assert((node.OperatorKind And
BinaryOperatorKind
.UserDefined) = 0)
315
Dim opKind = node.OperatorKind And
BinaryOperatorKind
.OpMask
316
Debug.Assert(opKind =
BinaryOperatorKind
.And OrElse opKind =
BinaryOperatorKind
.Or OrElse opKind =
BinaryOperatorKind
.Xor OrElse
317
opKind =
BinaryOperatorKind
.Power OrElse opKind =
BinaryOperatorKind
.Multiply OrElse
318
opKind =
BinaryOperatorKind
.Add OrElse opKind =
BinaryOperatorKind
.Subtract OrElse
319
opKind =
BinaryOperatorKind
.Divide OrElse opKind =
BinaryOperatorKind
.IntegerDivide OrElse
320
opKind =
BinaryOperatorKind
.Modulo OrElse opKind =
BinaryOperatorKind
.Concatenate OrElse
321
opKind =
BinaryOperatorKind
.LeftShift OrElse opKind =
BinaryOperatorKind
.RightShift)
322
Debug.Assert((node.OperatorKind And
BinaryOperatorKind
.UserDefined) = 0)
332
ElseIf opKind =
BinaryOperatorKind
.Concatenate Then
335
ElseIf opKind =
BinaryOperatorKind
.Power Then
361
If opKind =
BinaryOperatorKind
.LeftShift OrElse opKind =
BinaryOperatorKind
.RightShift Then
489
Private Function GetHelperForDecimalBinaryOperation(opKind As
BinaryOperatorKind
) As MethodSymbol
490
opKind = opKind And
BinaryOperatorKind
.OpMask
494
Case
BinaryOperatorKind
.Add
496
Case
BinaryOperatorKind
.Subtract
498
Case
BinaryOperatorKind
.Multiply
500
Case
BinaryOperatorKind
.Divide
502
Case
BinaryOperatorKind
.Modulo
505
Case
BinaryOperatorKind
.Equals,
506
BinaryOperatorKind
.Is
508
Case
BinaryOperatorKind
.NotEquals,
509
BinaryOperatorKind
.IsNot
511
Case
BinaryOperatorKind
.LessThan
513
Case
BinaryOperatorKind
.LessThanOrEqual
515
Case
BinaryOperatorKind
.GreaterThan
517
Case
BinaryOperatorKind
.GreaterThanOrEqual
526
Private Function GetHelperForDateTimeBinaryOperation(opKind As
BinaryOperatorKind
) As MethodSymbol
527
opKind = opKind And
BinaryOperatorKind
.OpMask
531
Case
BinaryOperatorKind
.Equals,
532
BinaryOperatorKind
.Is
534
Case
BinaryOperatorKind
.NotEquals,
535
BinaryOperatorKind
.IsNot
537
Case
BinaryOperatorKind
.LessThan
539
Case
BinaryOperatorKind
.LessThanOrEqual
541
Case
BinaryOperatorKind
.GreaterThan
543
Case
BinaryOperatorKind
.GreaterThanOrEqual
553
Private Function GetHelperForObjectBinaryOperation(opKind As
BinaryOperatorKind
) As MethodSymbol
554
opKind = opKind And
BinaryOperatorKind
.OpMask
558
Case
BinaryOperatorKind
.Add
560
Case
BinaryOperatorKind
.Subtract
562
Case
BinaryOperatorKind
.Multiply
564
Case
BinaryOperatorKind
.Divide
566
Case
BinaryOperatorKind
.IntegerDivide
568
Case
BinaryOperatorKind
.Modulo
570
Case
BinaryOperatorKind
.Power
572
Case
BinaryOperatorKind
.And
574
Case
BinaryOperatorKind
.Xor
576
Case
BinaryOperatorKind
.Or
578
Case
BinaryOperatorKind
.LeftShift
580
Case
BinaryOperatorKind
.RightShift
582
Case
BinaryOperatorKind
.Concatenate
592
Private Shared Function GetBinaryOperatorMethodName(opKind As
BinaryOperatorKind
, isChecked As Boolean) As String
593
Select Case (opKind And
BinaryOperatorKind
.OpMask)
594
Case
BinaryOperatorKind
.Add
596
Case
BinaryOperatorKind
.Subtract
598
Case
BinaryOperatorKind
.Multiply
600
Case
BinaryOperatorKind
.IntegerDivide,
601
BinaryOperatorKind
.Divide
603
Case
BinaryOperatorKind
.Modulo
605
Case
BinaryOperatorKind
.Power
607
Case
BinaryOperatorKind
.And
609
Case
BinaryOperatorKind
.Or
611
Case
BinaryOperatorKind
.Xor
613
Case
BinaryOperatorKind
.LeftShift
615
Case
BinaryOperatorKind
.RightShift
617
Case
BinaryOperatorKind
.Is,
618
BinaryOperatorKind
.Equals
620
Case
BinaryOperatorKind
.IsNot,
621
BinaryOperatorKind
.NotEquals
623
Case
BinaryOperatorKind
.LessThan
625
Case
BinaryOperatorKind
.LessThanOrEqual
627
Case
BinaryOperatorKind
.GreaterThan
629
Case
BinaryOperatorKind
.GreaterThanOrEqual
631
Case
BinaryOperatorKind
.AndAlso
633
Case
BinaryOperatorKind
.OrElse
657
Private Function AdjustCallForLiftedOperator(opKind As
BinaryOperatorKind
, [call] As BoundCall, resultType As TypeSymbol) As BoundExpression
658
Debug.Assert((opKind And
BinaryOperatorKind
.Lifted) <> 0)
659
Debug.Assert((opKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.Like OrElse
660
(opKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.Concatenate)
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
284
BinaryOperatorKind
.Equals,
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
439
Dim condition = New BoundBinaryOperator(syntaxNode,
BinaryOperatorKind
.Is,
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (17)
367
If (binaryOperator.OperatorKind And
BinaryOperatorKind
.UserDefined) = 0 Then
368
Select Case (binaryOperator.OperatorKind And
BinaryOperatorKind
.OpMask)
369
Case
BinaryOperatorKind
.Power,
370
BinaryOperatorKind
.Divide,
371
BinaryOperatorKind
.Modulo,
372
BinaryOperatorKind
.IntegerDivide,
373
BinaryOperatorKind
.Concatenate,
374
BinaryOperatorKind
.And,
375
BinaryOperatorKind
.AndAlso,
376
BinaryOperatorKind
.Or,
377
BinaryOperatorKind
.OrElse,
378
BinaryOperatorKind
.Xor,
379
BinaryOperatorKind
.Multiply,
380
BinaryOperatorKind
.Add,
381
BinaryOperatorKind
.Subtract,
382
BinaryOperatorKind
.LeftShift,
383
BinaryOperatorKind
.RightShift
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (81)
23
If (node.OperatorKind And
BinaryOperatorKind
.Lifted) <> 0 Then
89
Dim optimizeForConditionalBranch As Boolean = (node.OperatorKind And
BinaryOperatorKind
.OptimizableForConditionalBranch) <> 0
105
Select Case (binary.OperatorKind And
BinaryOperatorKind
.OpMask)
106
Case
BinaryOperatorKind
.AndAlso,
BinaryOperatorKind
.OrElse
132
If (binary.OperatorKind And
BinaryOperatorKind
.Lifted) <> 0 Then
146
If optimizeForConditionalBranch AndAlso (binary.OperatorKind And
BinaryOperatorKind
.OpMask) <>
BinaryOperatorKind
.OrElse Then
147
Debug.Assert((binary.OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.AndAlso)
165
If (node.OperatorKind And
BinaryOperatorKind
.Lifted) <> 0 Then
236
Debug.Assert((opKind And
BinaryOperatorKind
.Lifted) = 0)
238
Select Case (opKind And
BinaryOperatorKind
.OpMask)
239
Case
BinaryOperatorKind
.Is,
BinaryOperatorKind
.IsNot
253
Case
BinaryOperatorKind
.Concatenate ' Concat needs to be done before expr trees, so in LocalRewriter instead of VBSemanticsRewriter
260
Case
BinaryOperatorKind
.Like
267
Case
BinaryOperatorKind
.Equals
289
Case
BinaryOperatorKind
.NotEquals
308
Case
BinaryOperatorKind
.LessThanOrEqual
327
Case
BinaryOperatorKind
.GreaterThanOrEqual
346
Case
BinaryOperatorKind
.LessThan
365
Case
BinaryOperatorKind
.GreaterThan
384
Case
BinaryOperatorKind
.Add
391
Case
BinaryOperatorKind
.Subtract
398
Case
BinaryOperatorKind
.Multiply
405
Case
BinaryOperatorKind
.Modulo
412
Case
BinaryOperatorKind
.Divide
419
Case
BinaryOperatorKind
.IntegerDivide
424
Case
BinaryOperatorKind
.Power
431
Case
BinaryOperatorKind
.LeftShift
436
Case
BinaryOperatorKind
.RightShift
441
Case
BinaryOperatorKind
.OrElse,
BinaryOperatorKind
.AndAlso
446
Case
BinaryOperatorKind
.Xor
451
Case
BinaryOperatorKind
.Or
456
Case
BinaryOperatorKind
.And
494
node.OperatorKind And
BinaryOperatorKind
.OpMask,
533
node.OperatorKind And
BinaryOperatorKind
.OpMask,
608
Dim op = New BoundBinaryOperator(node.Syntax, node.OperatorKind And
BinaryOperatorKind
.OpMask, left, right, False, left.Type)
685
Dim compareText As Boolean = (node.OperatorKind And
BinaryOperatorKind
.CompareText) <> 0
709
result = New BoundBinaryOperator(node.Syntax, (node.OperatorKind And
BinaryOperatorKind
.OpMask),
725
Dim compareText As Boolean = (node.OperatorKind And
BinaryOperatorKind
.CompareText) <> 0
757
Dim compareText As Boolean = (node.OperatorKind And
BinaryOperatorKind
.CompareText) <> 0
807
Debug.Assert((node.OperatorKind And
BinaryOperatorKind
.Lifted) <> 0)
809
(node.OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.OrElse OrElse
810
(node.OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.AndAlso)
823
(leftHasValue OrElse Not Me._inExpressionLambda OrElse (node.OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.OrElse) Then
852
Select Case (node.OperatorKind And
BinaryOperatorKind
.OpMask)
854
Case
BinaryOperatorKind
.And,
855
BinaryOperatorKind
.Or,
856
BinaryOperatorKind
.AndAlso,
857
BinaryOperatorKind
.OrElse
920
BinaryOperatorKind
.And,
958
Debug.Assert(leftHasValue OrElse Not Me._inExpressionLambda OrElse (node.OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.OrElse)
967
If (node.OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.OrElse Then
976
Debug.Assert((node.OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.AndAlso)
1000
BinaryOperatorKind
.AndAlso,
1002
BinaryOperatorKind
.OrElse,
1010
BinaryOperatorKind
.AndAlso,
1030
Debug.Assert(leftHasValue OrElse (node.OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.OrElse)
1075
Dim op = node.OperatorKind And
BinaryOperatorKind
.OpMask
1076
Dim isOr As Boolean = (op =
BinaryOperatorKind
.OrElse) OrElse
1077
(op =
BinaryOperatorKind
.Or)
1127
MakeBooleanBinaryExpression(syntax,
BinaryOperatorKind
.And,
1171
Dim IsShortCircuited = (op =
BinaryOperatorKind
.AndAlso Or op =
BinaryOperatorKind
.OrElse)
1268
BinaryOperatorKind
.AndAlso,
1316
Debug.Assert(node.OperatorKind =
BinaryOperatorKind
.Is OrElse node.OperatorKind =
BinaryOperatorKind
.IsNot)
1322
Return RewriteNullableIsOrIsNotOperator((node.OperatorKind And
BinaryOperatorKind
.OpMask) =
BinaryOperatorKind
.Is, If(left.IsNothingLiteral, right, left), node.Type)
1447
condition = MakeBooleanBinaryExpression(node.Syntax,
BinaryOperatorKind
.And, leftHasValueExpression, rightHasValueExpression)
1505
Dim unliftedOpKind = originalOperator.OperatorKind And (Not
BinaryOperatorKind
.Lifted)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (7)
82
Select Case binary.OperatorKind And
BinaryOperatorKind
.OpMask
83
Case
BinaryOperatorKind
.Equals,
84
BinaryOperatorKind
.NotEquals,
85
BinaryOperatorKind
.LessThan,
86
BinaryOperatorKind
.LessThanOrEqual,
87
BinaryOperatorKind
.GreaterThan,
88
BinaryOperatorKind
.GreaterThanOrEqual
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
389
BinaryOperatorKind
.Add,
468
BinaryOperatorKind
.LessThan,
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (15)
137
BinaryOperatorKind
.GreaterThanOrEqual,
146
BinaryOperatorKind
.AndAlso,
580
BinaryOperatorKind
.And,
590
BinaryOperatorKind
.Add,
637
New BoundBinaryOperator(value.Syntax,
BinaryOperatorKind
.RightShift, [step], shiftConst, False, [step].Type))
639
Return TransformRewrittenBinaryOperator(New BoundBinaryOperator(value.Syntax,
BinaryOperatorKind
.Xor, shiftedStep, value, False, value.Type))
685
BinaryOperatorKind
.LessThanOrEqual,
695
Dim comparisonOperator As
BinaryOperatorKind
697
comparisonOperator =
BinaryOperatorKind
.GreaterThanOrEqual
699
comparisonOperator =
BinaryOperatorKind
.LessThanOrEqual
722
BinaryOperatorKind
.LessThanOrEqual,
736
BinaryOperatorKind
.And,
748
BinaryOperatorKind
.LessThanOrEqual,
756
BinaryOperatorKind
.GreaterThanOrEqual,
779
BinaryOperatorKind
.AndAlso,
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (3)
211
BinaryOperatorKind
.Is, flagAsObject,
268
BinaryOperatorKind
.Equals,
277
BinaryOperatorKind
.Equals,
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (11)
372
binaryOpKind As
BinaryOperatorKind
,
396
Case
BinaryOperatorKind
.Subtract
401
Case
BinaryOperatorKind
.Add,
402
BinaryOperatorKind
.Or,
403
BinaryOperatorKind
.OrElse
423
Case
BinaryOperatorKind
.And,
424
BinaryOperatorKind
.AndAlso,
425
BinaryOperatorKind
.Multiply
445
Case
BinaryOperatorKind
.Equals
454
Case
BinaryOperatorKind
.NotEquals
473
binaryOpKind As
BinaryOperatorKind
,
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
77
BinaryOperatorKind
.Is,
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
367
Debug.Assert(relationalCaseClause.OperatorKind =
BinaryOperatorKind
.Equals)
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (1)
261
BinaryOperatorKind
.Equals,
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (6)
46
If (binary.OperatorKind And
BinaryOperatorKind
.IsOperandOfConditionalBranch) <> 0 Then
47
Select Case (binary.OperatorKind And
BinaryOperatorKind
.OpMask)
48
Case
BinaryOperatorKind
.AndAlso,
BinaryOperatorKind
.OrElse
49
Debug.Assert((binary.OperatorKind And
BinaryOperatorKind
.Lifted) <> 0)
51
Return binary.Update(binary.OperatorKind Or
BinaryOperatorKind
.OptimizableForConditionalBranch,
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (3)
236
nodeFactory.Conditional(nodeFactory.Binary(
BinaryOperatorKind
.GreaterThan,
297
nodeFactory.Binary(
BinaryOperatorKind
.NotEquals,
407
nodeFactory.Binary(
BinaryOperatorKind
.Equals,
Lowering\SyntheticBoundNodeFactory.vb (8)
423
Return Binary(
BinaryOperatorKind
.AndAlso, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right)
427
Return Binary(
BinaryOperatorKind
.OrElse, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right)
431
Return Binary(
BinaryOperatorKind
.Equals, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right)
435
Return Binary(
BinaryOperatorKind
.LessThan, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right)
1025
Public Function Binary(kind As
BinaryOperatorKind
, type As TypeSymbol, left As BoundExpression, right As BoundExpression) As BoundBinaryOperator
1032
Dim boundNode = Binary(
BinaryOperatorKind
.Is, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right)
1039
Dim boundNode = Binary(
BinaryOperatorKind
.Is, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), operand, Me.Null(operand.Type))
1046
Dim boundNode = Binary(
BinaryOperatorKind
.IsNot, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), operand, Me.Null(operand.Type))
Operations\VisualBasicOperationFactory_Methods.vb (29)
131
isLifted:=(boundBinaryOperator.OperatorKind And VisualBasic.
BinaryOperatorKind
.Lifted) <> 0,
133
isCompareText:=(boundBinaryOperator.OperatorKind And VisualBasic.
BinaryOperatorKind
.CompareText) <> 0)
142
isLifted:=(boundUserDefinedBinaryOperator.OperatorKind And VisualBasic.
BinaryOperatorKind
.Lifted) <> 0,
633
Friend Shared Function DeriveBinaryOperatorKind(operatorKind As VisualBasic.
BinaryOperatorKind
, leftOpt As BoundExpression) As BinaryOperatorKind
634
Select Case operatorKind And VisualBasic.
BinaryOperatorKind
.OpMask
635
Case VisualBasic.
BinaryOperatorKind
.Add
637
Case VisualBasic.
BinaryOperatorKind
.Subtract
639
Case VisualBasic.
BinaryOperatorKind
.Multiply
641
Case VisualBasic.
BinaryOperatorKind
.Divide
643
Case VisualBasic.
BinaryOperatorKind
.IntegerDivide
645
Case VisualBasic.
BinaryOperatorKind
.Modulo
647
Case VisualBasic.
BinaryOperatorKind
.And
649
Case VisualBasic.
BinaryOperatorKind
.Or
651
Case VisualBasic.
BinaryOperatorKind
.Xor
653
Case VisualBasic.
BinaryOperatorKind
.AndAlso
655
Case VisualBasic.
BinaryOperatorKind
.OrElse
657
Case VisualBasic.
BinaryOperatorKind
.LeftShift
659
Case VisualBasic.
BinaryOperatorKind
.RightShift
661
Case VisualBasic.
BinaryOperatorKind
.LessThan
663
Case VisualBasic.
BinaryOperatorKind
.LessThanOrEqual
665
Case VisualBasic.
BinaryOperatorKind
.Equals
667
Case VisualBasic.
BinaryOperatorKind
.NotEquals
669
Case VisualBasic.
BinaryOperatorKind
.Is
671
Case VisualBasic.
BinaryOperatorKind
.IsNot
673
Case VisualBasic.
BinaryOperatorKind
.GreaterThanOrEqual
675
Case VisualBasic.
BinaryOperatorKind
.GreaterThan
677
Case VisualBasic.
BinaryOperatorKind
.Power
679
Case VisualBasic.
BinaryOperatorKind
.Like
681
Case VisualBasic.
BinaryOperatorKind
.Concatenate
Semantics\Operators.vb (251)
35
Public Sub New(op As
BinaryOperatorKind
)
67
Public ReadOnly Property BinaryOperatorKind As
BinaryOperatorKind
70
Return
BinaryOperatorKind
.Error
73
Return CType(_Id >> 2,
BinaryOperatorKind
)
95
operators.Add(WellKnownMemberNames.AdditionOperatorName, New OperatorInfo(
BinaryOperatorKind
.Add))
97
operators.Add(WellKnownMemberNames.SubtractionOperatorName, New OperatorInfo(
BinaryOperatorKind
.Subtract))
98
operators.Add(WellKnownMemberNames.MultiplyOperatorName, New OperatorInfo(
BinaryOperatorKind
.Multiply))
99
operators.Add(WellKnownMemberNames.DivisionOperatorName, New OperatorInfo(
BinaryOperatorKind
.Divide))
100
operators.Add(WellKnownMemberNames.IntegerDivisionOperatorName, New OperatorInfo(
BinaryOperatorKind
.IntegerDivide))
101
operators.Add(WellKnownMemberNames.ModulusOperatorName, New OperatorInfo(
BinaryOperatorKind
.Modulo))
102
operators.Add(WellKnownMemberNames.ExponentOperatorName, New OperatorInfo(
BinaryOperatorKind
.Power))
103
operators.Add(WellKnownMemberNames.EqualityOperatorName, New OperatorInfo(
BinaryOperatorKind
.Equals))
104
operators.Add(WellKnownMemberNames.InequalityOperatorName, New OperatorInfo(
BinaryOperatorKind
.NotEquals))
105
operators.Add(WellKnownMemberNames.LessThanOperatorName, New OperatorInfo(
BinaryOperatorKind
.LessThan))
106
operators.Add(WellKnownMemberNames.GreaterThanOperatorName, New OperatorInfo(
BinaryOperatorKind
.GreaterThan))
107
operators.Add(WellKnownMemberNames.LessThanOrEqualOperatorName, New OperatorInfo(
BinaryOperatorKind
.LessThanOrEqual))
108
operators.Add(WellKnownMemberNames.GreaterThanOrEqualOperatorName, New OperatorInfo(
BinaryOperatorKind
.GreaterThanOrEqual))
109
operators.Add(WellKnownMemberNames.LikeOperatorName, New OperatorInfo(
BinaryOperatorKind
.Like))
110
operators.Add(WellKnownMemberNames.ConcatenateOperatorName, New OperatorInfo(
BinaryOperatorKind
.Concatenate))
111
operators.Add(WellKnownMemberNames.BitwiseAndOperatorName, New OperatorInfo(
BinaryOperatorKind
.And))
112
operators.Add(WellKnownMemberNames.BitwiseOrOperatorName, New OperatorInfo(
BinaryOperatorKind
.Or))
113
operators.Add(WellKnownMemberNames.ExclusiveOrOperatorName, New OperatorInfo(
BinaryOperatorKind
.Xor))
114
operators.Add(WellKnownMemberNames.LeftShiftOperatorName, New OperatorInfo(
BinaryOperatorKind
.LeftShift))
115
operators.Add(WellKnownMemberNames.RightShiftOperatorName, New OperatorInfo(
BinaryOperatorKind
.RightShift))
121
operators.Add(WellKnownMemberNames.LogicalAndOperatorName, New OperatorInfo(
BinaryOperatorKind
.And))
122
operators.Add(WellKnownMemberNames.LogicalOrOperatorName, New OperatorInfo(
BinaryOperatorKind
.Or))
123
operators.Add(WellKnownMemberNames.UnsignedLeftShiftOperatorName, New OperatorInfo(
BinaryOperatorKind
.LeftShift))
124
operators.Add(WellKnownMemberNames.UnsignedRightShiftOperatorName, New OperatorInfo(
BinaryOperatorKind
.RightShift))
161
Friend Shared Function GetOperatorTokenKind(op As
BinaryOperatorKind
) As SyntaxKind
163
Case
BinaryOperatorKind
.Add
165
Case
BinaryOperatorKind
.Subtract
167
Case
BinaryOperatorKind
.Multiply
169
Case
BinaryOperatorKind
.Divide
171
Case
BinaryOperatorKind
.IntegerDivide
173
Case
BinaryOperatorKind
.Modulo
175
Case
BinaryOperatorKind
.Power
177
Case
BinaryOperatorKind
.Equals
179
Case
BinaryOperatorKind
.NotEquals
181
Case
BinaryOperatorKind
.LessThan
183
Case
BinaryOperatorKind
.GreaterThan
185
Case
BinaryOperatorKind
.LessThanOrEqual
187
Case
BinaryOperatorKind
.GreaterThanOrEqual
189
Case
BinaryOperatorKind
.Like
191
Case
BinaryOperatorKind
.Concatenate
193
Case
BinaryOperatorKind
.And
195
Case
BinaryOperatorKind
.Or
197
Case
BinaryOperatorKind
.Xor
199
Case
BinaryOperatorKind
.LeftShift
201
Case
BinaryOperatorKind
.RightShift
203
Case
BinaryOperatorKind
.AndAlso
205
Case
BinaryOperatorKind
.OrElse
207
Case
BinaryOperatorKind
.Is
209
Case
BinaryOperatorKind
.IsNot
217
Friend Shared Function TryGetOperatorName(op As
BinaryOperatorKind
, isChecked As Boolean) As String
219
Select Case (op And
BinaryOperatorKind
.OpMask)
220
Case
BinaryOperatorKind
.Add
222
Case
BinaryOperatorKind
.Concatenate
224
Case
BinaryOperatorKind
.Like
226
Case
BinaryOperatorKind
.Equals
228
Case
BinaryOperatorKind
.NotEquals
230
Case
BinaryOperatorKind
.LessThanOrEqual
232
Case
BinaryOperatorKind
.GreaterThanOrEqual
234
Case
BinaryOperatorKind
.LessThan
236
Case
BinaryOperatorKind
.GreaterThan
238
Case
BinaryOperatorKind
.Subtract
240
Case
BinaryOperatorKind
.Multiply
242
Case
BinaryOperatorKind
.Power
244
Case
BinaryOperatorKind
.Divide
246
Case
BinaryOperatorKind
.Modulo
248
Case
BinaryOperatorKind
.IntegerDivide
250
Case
BinaryOperatorKind
.LeftShift
252
Case
BinaryOperatorKind
.RightShift
254
Case
BinaryOperatorKind
.Xor
256
Case
BinaryOperatorKind
.Or
258
Case
BinaryOperatorKind
.And
358
Case
BinaryOperatorKind
.LeftShift,
BinaryOperatorKind
.RightShift
362
SyntaxFacts.GetText(If(opInfo.BinaryOperatorKind =
BinaryOperatorKind
.LeftShift,
810
Public Shared Function MapBinaryOperatorKind(opCode As SyntaxKind) As
BinaryOperatorKind
811
Dim result As
BinaryOperatorKind
814
Case SyntaxKind.AddExpression : result =
BinaryOperatorKind
.Add
815
Case SyntaxKind.ConcatenateExpression : result =
BinaryOperatorKind
.Concatenate
816
Case SyntaxKind.LikeExpression : result =
BinaryOperatorKind
.Like
817
Case SyntaxKind.EqualsExpression : result =
BinaryOperatorKind
.Equals
818
Case SyntaxKind.NotEqualsExpression : result =
BinaryOperatorKind
.NotEquals
819
Case SyntaxKind.LessThanOrEqualExpression : result =
BinaryOperatorKind
.LessThanOrEqual
820
Case SyntaxKind.GreaterThanOrEqualExpression : result =
BinaryOperatorKind
.GreaterThanOrEqual
821
Case SyntaxKind.LessThanExpression : result =
BinaryOperatorKind
.LessThan
822
Case SyntaxKind.GreaterThanExpression : result =
BinaryOperatorKind
.GreaterThan
823
Case SyntaxKind.SubtractExpression : result =
BinaryOperatorKind
.Subtract
824
Case SyntaxKind.MultiplyExpression : result =
BinaryOperatorKind
.Multiply
825
Case SyntaxKind.ExponentiateExpression : result =
BinaryOperatorKind
.Power
826
Case SyntaxKind.DivideExpression : result =
BinaryOperatorKind
.Divide
827
Case SyntaxKind.ModuloExpression : result =
BinaryOperatorKind
.Modulo
828
Case SyntaxKind.IntegerDivideExpression : result =
BinaryOperatorKind
.IntegerDivide
829
Case SyntaxKind.LeftShiftExpression : result =
BinaryOperatorKind
.LeftShift
830
Case SyntaxKind.RightShiftExpression : result =
BinaryOperatorKind
.RightShift
831
Case SyntaxKind.ExclusiveOrExpression : result =
BinaryOperatorKind
.Xor
832
Case SyntaxKind.OrExpression : result =
BinaryOperatorKind
.Or
833
Case SyntaxKind.OrElseExpression : result =
BinaryOperatorKind
.OrElse
834
Case SyntaxKind.AndExpression : result =
BinaryOperatorKind
.And
835
Case SyntaxKind.AndAlsoExpression : result =
BinaryOperatorKind
.AndAlso
853
opCode As
BinaryOperatorKind
,
861
) As
BinaryOperatorKind
863
Debug.Assert((opCode And
BinaryOperatorKind
.OpMask) = opCode AndAlso opCode <>
BinaryOperatorKind
.Error)
865
opCode = (opCode And
BinaryOperatorKind
.OpMask)
889
Return
BinaryOperatorKind
.Error
896
(opCode =
BinaryOperatorKind
.Subtract AndAlso
909
Return
BinaryOperatorKind
.Error
913
Return
BinaryOperatorKind
.UserDefined
935
Return
BinaryOperatorKind
.Error
938
Dim result As
BinaryOperatorKind
=
BinaryOperatorKind
.Error
941
(opCode =
BinaryOperatorKind
.Xor OrElse opCode =
BinaryOperatorKind
.And OrElse opCode =
BinaryOperatorKind
.Or) AndAlso
949
result = result Or
BinaryOperatorKind
.Lifted
973
If result <>
BinaryOperatorKind
.Error AndAlso
978
opCode <>
BinaryOperatorKind
.Concatenate AndAlso opCode <>
BinaryOperatorKind
.Like Then
979
result = result Or
BinaryOperatorKind
.Lifted
986
Public Shared Function UseUserDefinedBinaryOperators(opCode As
BinaryOperatorKind
, leftType As TypeSymbol, rightType As TypeSymbol) As Boolean
999
opCode =
BinaryOperatorKind
.Subtract) Then ' Let (Date - Date) use operator overloading.
1020
operatorKind As
BinaryOperatorKind
,
1049
Dim op As
BinaryOperatorKind
= (operatorKind And
BinaryOperatorKind
.OpMask)
1053
If op <>
BinaryOperatorKind
.Like AndAlso
1054
(operatorKind And
BinaryOperatorKind
.CompareText) = 0 AndAlso
1060
op =
BinaryOperatorKind
.LeftShift OrElse op =
BinaryOperatorKind
.RightShift)
1096
Debug.Assert((operatorKind And
BinaryOperatorKind
.CompareText) = 0)
1120
op As
BinaryOperatorKind
,
1129
Debug.Assert((op And
BinaryOperatorKind
.OpMask) = op)
1142
Case
BinaryOperatorKind
.Equals
1147
Case
BinaryOperatorKind
.NotEquals
1152
Case
BinaryOperatorKind
.LessThanOrEqual
1157
Case
BinaryOperatorKind
.GreaterThanOrEqual
1162
Case
BinaryOperatorKind
.LessThan
1167
Case
BinaryOperatorKind
.GreaterThan
1185
Case
BinaryOperatorKind
.Add
1198
Case
BinaryOperatorKind
.Subtract
1212
Case
BinaryOperatorKind
.Multiply
1216
Case
BinaryOperatorKind
.IntegerDivide
1232
Case
BinaryOperatorKind
.Modulo
1248
Case
BinaryOperatorKind
.Xor
1252
Case
BinaryOperatorKind
.Or
1256
Case
BinaryOperatorKind
.And
1260
Case
BinaryOperatorKind
.LeftShift
1271
Case
BinaryOperatorKind
.RightShift
1295
op As
BinaryOperatorKind
,
1302
Debug.Assert((op And
BinaryOperatorKind
.OpMask) = op)
1314
Case
BinaryOperatorKind
.Equals
1317
Case
BinaryOperatorKind
.NotEquals
1320
Case
BinaryOperatorKind
.LessThanOrEqual
1323
Case
BinaryOperatorKind
.GreaterThanOrEqual
1326
Case
BinaryOperatorKind
.LessThan
1329
Case
BinaryOperatorKind
.GreaterThan
1347
Case
BinaryOperatorKind
.Add
1350
Case
BinaryOperatorKind
.Subtract
1353
Case
BinaryOperatorKind
.Multiply
1356
Case
BinaryOperatorKind
.Power
1379
Case
BinaryOperatorKind
.Divide
1385
Case
BinaryOperatorKind
.Modulo
1418
op As
BinaryOperatorKind
,
1424
Debug.Assert((op And
BinaryOperatorKind
.OpMask) = op)
1438
Case
BinaryOperatorKind
.Equals
1441
Case
BinaryOperatorKind
.NotEquals
1444
Case
BinaryOperatorKind
.LessThanOrEqual
1447
Case
BinaryOperatorKind
.GreaterThanOrEqual
1450
Case
BinaryOperatorKind
.LessThan
1453
Case
BinaryOperatorKind
.GreaterThan
1467
Case
BinaryOperatorKind
.Add
1470
Case
BinaryOperatorKind
.Subtract
1473
Case
BinaryOperatorKind
.Multiply
1476
Case
BinaryOperatorKind
.Divide
1479
Case
BinaryOperatorKind
.Modulo
1506
op As
BinaryOperatorKind
,
1510
Debug.Assert((op And
BinaryOperatorKind
.OpMask) = op)
1515
Case
BinaryOperatorKind
.Concatenate
1532
Case
BinaryOperatorKind
.GreaterThan,
1533
BinaryOperatorKind
.LessThan,
1534
BinaryOperatorKind
.GreaterThanOrEqual,
1535
BinaryOperatorKind
.LessThanOrEqual,
1536
BinaryOperatorKind
.Equals,
1537
BinaryOperatorKind
.NotEquals
1547
Case
BinaryOperatorKind
.Equals
1550
Case
BinaryOperatorKind
.NotEquals
1553
Case
BinaryOperatorKind
.GreaterThan
1556
Case
BinaryOperatorKind
.GreaterThanOrEqual
1559
Case
BinaryOperatorKind
.LessThan
1562
Case
BinaryOperatorKind
.LessThanOrEqual
1577
op As
BinaryOperatorKind
,
1581
Debug.Assert((op And
BinaryOperatorKind
.OpMask) = op)
1592
Case
BinaryOperatorKind
.Equals
1595
Case
BinaryOperatorKind
.NotEquals
1598
Case
BinaryOperatorKind
.GreaterThan
1602
Case
BinaryOperatorKind
.GreaterThanOrEqual
1605
Case
BinaryOperatorKind
.LessThan
1608
Case
BinaryOperatorKind
.LessThanOrEqual
1611
Case
BinaryOperatorKind
.Xor
1614
Case
BinaryOperatorKind
.OrElse,
1615
BinaryOperatorKind
.Or
1619
Case
BinaryOperatorKind
.AndAlso,
1620
BinaryOperatorKind
.And
1636
opCode As
BinaryOperatorKind
,
1651
Case
BinaryOperatorKind
.Add
1654
Case
BinaryOperatorKind
.Subtract,
1655
BinaryOperatorKind
.Multiply,
1656
BinaryOperatorKind
.Modulo
1659
Case
BinaryOperatorKind
.Divide
1662
Case
BinaryOperatorKind
.IntegerDivide
1665
Case
BinaryOperatorKind
.Power
1668
Case
BinaryOperatorKind
.LeftShift,
1669
BinaryOperatorKind
.RightShift
1672
Case
BinaryOperatorKind
.OrElse,
1673
BinaryOperatorKind
.AndAlso
1676
Case
BinaryOperatorKind
.Concatenate,
1677
BinaryOperatorKind
.Like
1680
Case
BinaryOperatorKind
.Equals,
1681
BinaryOperatorKind
.NotEquals,
1682
BinaryOperatorKind
.LessThanOrEqual,
1683
BinaryOperatorKind
.GreaterThanOrEqual,
1684
BinaryOperatorKind
.LessThan,
1685
BinaryOperatorKind
.GreaterThan
1688
Case
BinaryOperatorKind
.Xor,
1689
BinaryOperatorKind
.Or,
1690
BinaryOperatorKind
.And
3019
opKind As
BinaryOperatorKind
,
3027
Case
BinaryOperatorKind
.Add
3032
Case
BinaryOperatorKind
.Subtract
3037
Case
BinaryOperatorKind
.Multiply
3042
Case
BinaryOperatorKind
.Divide
3047
Case
BinaryOperatorKind
.IntegerDivide
3052
Case
BinaryOperatorKind
.Modulo
3057
Case
BinaryOperatorKind
.Power
3062
Case
BinaryOperatorKind
.Equals
3067
Case
BinaryOperatorKind
.NotEquals
3072
Case
BinaryOperatorKind
.LessThan
3077
Case
BinaryOperatorKind
.GreaterThan
3082
Case
BinaryOperatorKind
.LessThanOrEqual
3087
Case
BinaryOperatorKind
.GreaterThanOrEqual
3092
Case
BinaryOperatorKind
.Like
3097
Case
BinaryOperatorKind
.Concatenate
3102
Case
BinaryOperatorKind
.And,
BinaryOperatorKind
.AndAlso
3109
Case
BinaryOperatorKind
.Or,
BinaryOperatorKind
.OrElse
3115
Case
BinaryOperatorKind
.Xor
3120
Case
BinaryOperatorKind
.LeftShift
3126
Case
BinaryOperatorKind
.RightShift
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
401
(opInfo.IsBinary AndAlso opInfo.BinaryOperatorKind <>
BinaryOperatorKind
.Error) Then
Symbols\Metadata\PE\PEMethodSymbol.vb (20)
445
Case
BinaryOperatorKind
.Add,
446
BinaryOperatorKind
.Subtract,
447
BinaryOperatorKind
.Multiply,
448
BinaryOperatorKind
.Divide,
449
BinaryOperatorKind
.IntegerDivide,
450
BinaryOperatorKind
.Modulo,
451
BinaryOperatorKind
.Power,
452
BinaryOperatorKind
.Equals,
453
BinaryOperatorKind
.NotEquals,
454
BinaryOperatorKind
.LessThan,
455
BinaryOperatorKind
.GreaterThan,
456
BinaryOperatorKind
.LessThanOrEqual,
457
BinaryOperatorKind
.GreaterThanOrEqual,
458
BinaryOperatorKind
.Like,
459
BinaryOperatorKind
.Concatenate,
460
BinaryOperatorKind
.Xor
463
Case
BinaryOperatorKind
.And
469
Case
BinaryOperatorKind
.Or
475
Case
BinaryOperatorKind
.LeftShift
481
Case
BinaryOperatorKind
.RightShift
Symbols\Source\SourceMemberContainerTypeSymbol.vb (6)
3661
Case
BinaryOperatorKind
.Equals
3663
Case
BinaryOperatorKind
.NotEquals
3665
Case
BinaryOperatorKind
.LessThan
3667
Case
BinaryOperatorKind
.GreaterThan
3669
Case
BinaryOperatorKind
.LessThanOrEqual
3671
Case
BinaryOperatorKind
.GreaterThanOrEqual
Symbols\Source\SynthesizedEventAccessorSymbol.vb (1)
458
BinaryOperatorKind
.Is,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (53)
Semantics\BinaryOperators.vb (53)
877
Dim operators() As
BinaryOperatorKind
=
879
BinaryOperatorKind
.Add,
880
BinaryOperatorKind
.Concatenate,
881
BinaryOperatorKind
.Like,
882
BinaryOperatorKind
.Equals,
883
BinaryOperatorKind
.NotEquals,
884
BinaryOperatorKind
.LessThanOrEqual,
885
BinaryOperatorKind
.GreaterThanOrEqual,
886
BinaryOperatorKind
.LessThan,
887
BinaryOperatorKind
.GreaterThan,
888
BinaryOperatorKind
.Subtract,
889
BinaryOperatorKind
.Multiply,
890
BinaryOperatorKind
.Power,
891
BinaryOperatorKind
.Divide,
892
BinaryOperatorKind
.Modulo,
893
BinaryOperatorKind
.IntegerDivide,
894
BinaryOperatorKind
.LeftShift,
895
BinaryOperatorKind
.RightShift,
896
BinaryOperatorKind
.Xor,
897
BinaryOperatorKind
.Or,
898
BinaryOperatorKind
.And,
899
BinaryOperatorKind
.OrElse,
900
BinaryOperatorKind
.AndAlso,
901
BinaryOperatorKind
.Is,
902
BinaryOperatorKind
.IsNot
1019
op As
BinaryOperatorKind
,
1041
op =
BinaryOperatorKind
.Subtract) Then ' Let (Date - Date) use operator overloading.
1080
Case
BinaryOperatorKind
.AndAlso,
BinaryOperatorKind
.OrElse,
BinaryOperatorKind
.Is,
BinaryOperatorKind
.IsNot
1097
(op =
BinaryOperatorKind
.Subtract AndAlso leftSpecial = SpecialType.System_DateTime AndAlso rightSpecial = SpecialType.System_DateTime)) Then
1175
Case
BinaryOperatorKind
.Equals,
1176
BinaryOperatorKind
.NotEquals,
1177
BinaryOperatorKind
.LessThanOrEqual,
1178
BinaryOperatorKind
.GreaterThanOrEqual,
1179
BinaryOperatorKind
.LessThan,
1180
BinaryOperatorKind
.GreaterThan,
1181
BinaryOperatorKind
.Like
1187
Case
BinaryOperatorKind
.LeftShift,
BinaryOperatorKind
.RightShift
1192
Case
BinaryOperatorKind
.Xor,
BinaryOperatorKind
.And,
BinaryOperatorKind
.Or
1203
If(op =
BinaryOperatorKind
.Add AndAlso resultType = SpecialType.System_String,
1204
BinaryOperatorKind
.Concatenate,
1212
If(op =
BinaryOperatorKind
.Add AndAlso resultType = SpecialType.System_String,
1213
BinaryOperatorKind
.Concatenate,
1220
If op =
BinaryOperatorKind
.Add AndAlso resultType = SpecialType.System_String Then
1232
Assert.Equal((op =
BinaryOperatorKind
.Multiply OrElse
1233
op =
BinaryOperatorKind
.Add OrElse
1234
op =
BinaryOperatorKind
.Subtract OrElse
1235
op =
BinaryOperatorKind
.IntegerDivide) AndAlso