87 references to OperatorKind
Microsoft.CodeAnalysis.VisualBasic (87)
Analysis\FlowAnalysis\AbstractFlowPass.vb (3)
2146Select Case binary.OperatorKind And BinaryOperatorKind.OpMask 2155Select Case binary.OperatorKind And BinaryOperatorKind.OpMask 2186Select 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 (8)
98Dim operationKind = expression.OperatorKind And BinaryOperatorKind.OpMask 148If IsCondOperator(binary.OperatorKind) Then 166If IsCondOperator(binary.OperatorKind) Then 178Select Case (binary.OperatorKind And BinaryOperatorKind.OpMask) 199Select Case (expression.OperatorKind And BinaryOperatorKind.OpMask) 221Dim type = expression.OperatorKind And BinaryOperatorKind.OpMask 249Dim opKind = expression.OperatorKind And BinaryOperatorKind.OpMask 415Dim opKind = (binOp.OperatorKind And BinaryOperatorKind.OpMask)
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)
1571If 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 12183Return node.Update(node.OperatorKind, left, right, node.Checked, node.ConstantValueOpt, type) 13327New TreeDumperNode("operatorKind", node.OperatorKind, Nothing),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (3)
169Dim operatorKind As BinaryOperatorKind = rewritten.OperatorKind And BinaryOperatorKind.OpMask 170Debug.Assert(operatorKind = (rewritten.OperatorKind And Not (BinaryOperatorKind.IsOperandOfConditionalBranch Or BinaryOperatorKind.OptimizableForConditionalBranch))) 193rewritten.Update(rewritten.OperatorKind,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (10)
22Debug.Assert((node.OperatorKind And BinaryOperatorKind.UserDefined) = 0) 24Select Case node.OperatorKind And BinaryOperatorKind.OpMask 56Throw ExceptionUtilities.UnexpectedValue(node.OperatorKind) 59Throw ExceptionUtilities.UnexpectedValue(node.OperatorKind) 141Dim opKind = node.OperatorKind And BinaryOperatorKind.OpMask 146Debug.Assert((node.OperatorKind And BinaryOperatorKind.UserDefined) = 0) 274Dim opKind = node.OperatorKind And BinaryOperatorKind.OpMask 276Debug.Assert((node.OperatorKind And BinaryOperatorKind.UserDefined) = 0) 315Dim opKind = node.OperatorKind And BinaryOperatorKind.OpMask 322Debug.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)
89Dim optimizeForConditionalBranch As Boolean = (node.OperatorKind And BinaryOperatorKind.OptimizableForConditionalBranch) <> 0 105Select Case (binary.OperatorKind And BinaryOperatorKind.OpMask) 132If (binary.OperatorKind And BinaryOperatorKind.Lifted) <> 0 Then 135left = TransformRewrittenBinaryOperator(binary.Update(binary.OperatorKind, left, right, binary.Checked, binary.ConstantValueOpt, Me.VisitType(binary.Type))) 146If optimizeForConditionalBranch AndAlso (binary.OperatorKind And BinaryOperatorKind.OpMask) <> BinaryOperatorKind.OrElse Then 147Debug.Assert((binary.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.AndAlso) 165If (node.OperatorKind And BinaryOperatorKind.Lifted) <> 0 Then 234Dim opKind = node.OperatorKind 240node = node.Update(node.OperatorKind, 494node.OperatorKind And BinaryOperatorKind.OpMask, 533node.OperatorKind And BinaryOperatorKind.OpMask, 608Dim op = New BoundBinaryOperator(node.Syntax, node.OperatorKind And BinaryOperatorKind.OpMask, left, right, False, left.Type) 685Dim compareText As Boolean = (node.OperatorKind And BinaryOperatorKind.CompareText) <> 0 709result = New BoundBinaryOperator(node.Syntax, (node.OperatorKind And BinaryOperatorKind.OpMask), 725Dim compareText As Boolean = (node.OperatorKind And BinaryOperatorKind.CompareText) <> 0 757Dim compareText As Boolean = (node.OperatorKind And BinaryOperatorKind.CompareText) <> 0 807Debug.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 829Return node.Update(node.OperatorKind, left, right, node.Checked, node.ConstantValueOpt, node.Type) 852Select Case (node.OperatorKind And BinaryOperatorKind.OpMask) 958Debug.Assert(leftHasValue OrElse Not Me._inExpressionLambda OrElse (node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.OrElse) 967If (node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.OrElse Then 976Debug.Assert((node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.AndAlso) 1030Debug.Assert(leftHasValue OrElse (node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.OrElse) 1075Dim op = node.OperatorKind And BinaryOperatorKind.OpMask 1316Debug.Assert(node.OperatorKind = BinaryOperatorKind.Is OrElse node.OperatorKind = BinaryOperatorKind.IsNot) 1322Return RewriteNullableIsOrIsNotOperator((node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.Is, If(left.IsNothingLiteral, right, left), node.Type) 1505Dim 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,
Operations\VisualBasicOperationFactory_Methods.vb (3)
129binaryOperatorKind:=Helper.DeriveBinaryOperatorKind(boundBinaryOperator.OperatorKind, boundBinaryOperator.Left), 131isLifted:=(boundBinaryOperator.OperatorKind And VisualBasic.BinaryOperatorKind.Lifted) <> 0, 133isCompareText:=(boundBinaryOperator.OperatorKind And VisualBasic.BinaryOperatorKind.CompareText) <> 0)