85 references to OperatorKind
Microsoft.CodeAnalysis.VisualBasic (85)
Analysis\FlowAnalysis\AbstractFlowPass.vb (3)
2162Select Case binary.OperatorKind And BinaryOperatorKind.OpMask 2171Select Case binary.OperatorKind And BinaryOperatorKind.OpMask 2202Select Case binary.OperatorKind And BinaryOperatorKind.OpMask
BoundTree\BoundBinaryOperator.vb (7)
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) 41If (OperatorKind And BinaryOperatorKind.Error) = 0 Then 42Dim op As BinaryOperatorKind = (OperatorKind And BinaryOperatorKind.OpMask) 51Dim opName As String = OverloadResolution.TryGetOperatorName(OperatorKind, isChecked)
BoundTree\BoundCaseClause.vb (1)
17Debug.Assert((binaryOp.OperatorKind And BinaryOperatorKind.OpMask) = operatorKind)
BoundTree\BoundTreeRewriter.vb (1)
137left = binary.Update(binary.OperatorKind, left, right, binary.Checked, binary.ConstantValueOpt, type)
CodeGen\EmitConversion.vb (1)
118Select Case (DirectCast(conversion.Operand, BoundBinaryOperator).OperatorKind And BinaryOperatorKind.OpMask)
CodeGen\EmitOperators.vb (9)
98Dim operationKind = expression.OperatorKind And BinaryOperatorKind.OpMask 165If IsCondOperator(binary.OperatorKind) Then 183If IsCondOperator(binary.OperatorKind) Then 195Select Case (binary.OperatorKind And BinaryOperatorKind.OpMask) 216Select Case (expression.OperatorKind And BinaryOperatorKind.OpMask) 238Dim type = expression.OperatorKind And BinaryOperatorKind.OpMask 266Dim opKind = expression.OperatorKind And BinaryOperatorKind.OpMask 432Dim opKind = (binOp.OperatorKind And BinaryOperatorKind.OpMask) 657If IsComparisonOperator(binOp.OperatorKind) Then
CodeGen\EmitStatement.vb (3)
496Dim opKind = condition.OperatorKind And BinaryOperatorKind.OpMask 564Dim opKind = (expression.OperatorKind And BinaryOperatorKind.OpMask) 696Select Case binOp.OperatorKind And BinaryOperatorKind.OpMask
CodeGen\Optimizer\StackScheduler.Analyzer.vb (4)
938Select Case (binary.OperatorKind And BinaryOperatorKind.OpMask) 958left = binary.Update(binary.OperatorKind, left, right, binary.Checked, binary.ConstantValueOpt, type) 976Select Case (node.OperatorKind And BinaryOperatorKind.OpMask) 992Return node.Update(node.OperatorKind, left, right, node.Checked, node.ConstantValueOpt, node.Type)
CodeGen\Optimizer\StackScheduler.Rewriter.vb (1)
91left = binary.Update(binary.OperatorKind, left, right, binary.Checked, binary.ConstantValueOpt, type)
Generated\BoundNodes.xml.Generated.vb (3)
1590If operatorKind <> Me.OperatorKind OrElse left IsNot Me.Left OrElse right IsNot Me.Right OrElse checked <> Me.Checked OrElse constantValueOpt IsNot Me.ConstantValueOpt OrElse type IsNot Me.Type Then 12217Return node.Update(node.OperatorKind, left, right, node.Checked, node.ConstantValueOpt, type) 13364New TreeDumperNode("operatorKind", node.OperatorKind, Nothing),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (3)
240Dim operatorKind As BinaryOperatorKind = rewritten.OperatorKind And BinaryOperatorKind.OpMask 241Debug.Assert(operatorKind = (rewritten.OperatorKind And Not (BinaryOperatorKind.IsOperandOfConditionalBranch Or BinaryOperatorKind.OptimizableForConditionalBranch))) 264rewritten.Update(rewritten.OperatorKind,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (10)
12Debug.Assert((node.OperatorKind And BinaryOperatorKind.UserDefined) = 0) 14Select Case node.OperatorKind And BinaryOperatorKind.OpMask 46Throw ExceptionUtilities.UnexpectedValue(node.OperatorKind) 49Throw ExceptionUtilities.UnexpectedValue(node.OperatorKind) 205Dim opKind = node.OperatorKind And BinaryOperatorKind.OpMask 210Debug.Assert((node.OperatorKind And BinaryOperatorKind.UserDefined) = 0) 339Dim opKind = node.OperatorKind And BinaryOperatorKind.OpMask 341Debug.Assert((node.OperatorKind And BinaryOperatorKind.UserDefined) = 0) 389Dim opKind = node.OperatorKind And BinaryOperatorKind.OpMask 396Debug.Assert((node.OperatorKind And BinaryOperatorKind.UserDefined) = 0)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (2)
367If (binaryOperator.OperatorKind And BinaryOperatorKind.UserDefined) = 0 Then 368Select Case (binaryOperator.OperatorKind And BinaryOperatorKind.OpMask)
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (31)
84Dim optimizeForConditionalBranch As Boolean = (node.OperatorKind And BinaryOperatorKind.OptimizableForConditionalBranch) <> 0 100Select Case (binary.OperatorKind And BinaryOperatorKind.OpMask) 127If (binary.OperatorKind And BinaryOperatorKind.Lifted) <> 0 Then 130left = TransformRewrittenBinaryOperator(binary.Update(binary.OperatorKind, left, right, binary.Checked, binary.ConstantValueOpt, Me.VisitType(binary.Type))) 141If optimizeForConditionalBranch AndAlso (binary.OperatorKind And BinaryOperatorKind.OpMask) <> BinaryOperatorKind.OrElse Then 142Debug.Assert((binary.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.AndAlso) 160If (node.OperatorKind And BinaryOperatorKind.Lifted) <> 0 Then 229Dim opKind = node.OperatorKind 235node = node.Update(node.OperatorKind, 489node.OperatorKind And BinaryOperatorKind.OpMask, 528node.OperatorKind And BinaryOperatorKind.OpMask, 603Dim op = New BoundBinaryOperator(node.Syntax, node.OperatorKind And BinaryOperatorKind.OpMask, left, right, False, left.Type) 680Dim compareText As Boolean = (node.OperatorKind And BinaryOperatorKind.CompareText) <> 0 704result = New BoundBinaryOperator(node.Syntax, (node.OperatorKind And BinaryOperatorKind.OpMask), 720Dim compareText As Boolean = (node.OperatorKind And BinaryOperatorKind.CompareText) <> 0 752Dim compareText As Boolean = (node.OperatorKind And BinaryOperatorKind.CompareText) <> 0 802Debug.Assert((node.OperatorKind And BinaryOperatorKind.Lifted) <> 0) 804(node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.OrElse OrElse 805(node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.AndAlso) 818(leftHasValue OrElse Not Me._inExpressionLambda OrElse (node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.OrElse) Then 824Return node.Update(node.OperatorKind, left, right, node.Checked, node.ConstantValueOpt, node.Type) 847Select Case (node.OperatorKind And BinaryOperatorKind.OpMask) 953Debug.Assert(leftHasValue OrElse Not Me._inExpressionLambda OrElse (node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.OrElse) 962If (node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.OrElse Then 971Debug.Assert((node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.AndAlso) 1025Debug.Assert(leftHasValue OrElse (node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.OrElse) 1070Dim op = node.OperatorKind And BinaryOperatorKind.OpMask 1311Debug.Assert(node.OperatorKind = BinaryOperatorKind.Is OrElse node.OperatorKind = BinaryOperatorKind.IsNot) 1317Return RewriteNullableIsOrIsNotOperator((node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.Is, If(left.IsNothingLiteral, right, left), node.Type) 1500Dim unliftedOpKind = originalOperator.OperatorKind And (Not BinaryOperatorKind.Lifted)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
82Select Case binary.OperatorKind And BinaryOperatorKind.OpMask 93Return Visit(binary.Update(binary.OperatorKind,
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (4)
46If (binary.OperatorKind And BinaryOperatorKind.IsOperandOfConditionalBranch) <> 0 Then 47Select Case (binary.OperatorKind And BinaryOperatorKind.OpMask) 49Debug.Assert((binary.OperatorKind And BinaryOperatorKind.Lifted) <> 0) 51Return binary.Update(binary.OperatorKind Or BinaryOperatorKind.OptimizableForConditionalBranch,