32 references to OperandTypes
Microsoft.CodeAnalysis.CSharp (32)
Binder\Binder_Operators.cs (3)
635if (foundOperator && (resultOperatorKind.OperandTypes() != BinaryOperatorKind.NullableNull)) 1000var resultKind = kind | signature.Kind.OperandTypes(); 1106Debug.Assert(signature.Kind.OperandTypes() == BinaryOperatorKind.UserDefined);
Binder\Semantics\Operators\OperatorKindExtensions.cs (3)
197return kind.OperandTypes() == BinaryOperatorKind.Dynamic; 270switch (kind.OperandTypes()) 288switch (kind.OperandTypes())
CodeGen\EmitOperators.cs (4)
649switch (expression.OperatorKind.Operator() | expression.OperatorKind.OperandTypes()) 781BinaryOperatorKind type = opKind.OperandTypes(); 829return opKind.OperandTypes() == BinaryOperatorKind.Bool; 837var type = opKind.OperandTypes();
Compilation\BuiltInOperators.cs (5)
679switch (op.Kind.OperandTypes()) 746switch (kind.OperandTypes()) 778switch (kind.OperandTypes()) 810switch (kind.OperandTypes()) 837var typeArgument = kind.OperandTypes() switch
Compilation\CSharpSemanticModel.cs (2)
3842BinaryOperatorKind operandType = binaryOperator.OperatorKind.OperandTypes(); 3915BinaryOperatorKind operandType = compoundAssignment.Operator.Kind.OperandTypes();
FlowAnalysis\AbstractFlowPass.cs (1)
2475var isBool = kind.OperandTypes() == BinaryOperatorKind.Bool;
FlowAnalysis\NullableWalker.cs (1)
4920switch (operatorKind.Operator() | operatorKind.OperandTypes())
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
503switch (opKind.OperandTypes()) 509var enumOperand = (opKind.OperandTypes() == BinaryOperatorKind.UnderlyingAndEnum) ? right : left;
Lowering\DiagnosticsPass_Warnings.cs (1)
751if (node.OperatorKind.OperandTypes() != BinaryOperatorKind.NullableNull)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.ValueDispatchNode.cs (2)
88Debug.Assert(op.OperandTypes() != 0); 142Debug.Assert(op.OperandTypes() != 0);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
412if (operatorKind.OperandTypes() == BinaryOperatorKind.Int && comparisonType.SpecialType != SpecialType.System_Int32)
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
206switch (operatorKind.Operator() | operatorKind.OperandTypes()) 250switch (operatorKind.OperatorWithLogical() | operatorKind.OperandTypes()) 1057operatorKind: leftOperator.WithType(kind.OperandTypes()),
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (4)
744Debug.Assert(binaryOperatorKind.OperandTypes() != 0); 771Debug.Assert(binaryOperatorKind.OperandTypes() == BinaryOperatorKind.PointerAndInt); 1089switch (binaryOperatorKind.OperandTypes()) 1120throw ExceptionUtilities.UnexpectedValue(binaryOperatorKind.OperandTypes());