75 references to Operator
Microsoft.CodeAnalysis.CSharp (75)
Binder\Binder_Operators.cs (9)
35BinaryOperatorKind kindOperator = kind.Operator(); 180isUnsignedRightShift: bestSignature.Kind.Operator() == BinaryOperatorKind.UnsignedRightShift, bestSignature.ConstrainedToTypeOpt, diagnostics); 627isUnsignedRightShift: resultOperatorKind.Operator() == BinaryOperatorKind.UnsignedRightShift, signature.ConstrainedToTypeOpt, diagnostics); 730(signature.Kind.Operator() == BinaryOperatorKind.Equal || signature.Kind.Operator() == BinaryOperatorKind.NotEqual) && 1743BinaryOperatorKind newKind = kind.Operator().WithType(newLeftOperand.Type!.SpecialType); 1745switch (newKind.Operator()) 1765throw ExceptionUtilities.UnexpectedValue(newKind.Operator()); 1943BinaryOperatorKind op = kind.Operator();
Binder\DecisionDagBuilder.cs (3)
714var values = fac?.Related(rel.Relation.Operator(), rel.ConstantValue); 1162IValueSet fromTestPassing = valueFac.Related(relation.Operator(), value); 1753var operatorName = r.Relation.Operator() switch
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
376switch (OperatorKindExtensions.Operator(kind)) 752if (kind.Operator() is BinaryOperatorKind.Addition &&
Binder\Semantics\Operators\OperatorKindExtensions.cs (8)
129return ((int)kind.Operator() >> 8) - 16; 202switch (kind.Operator()) 227switch (kind.Operator()) 251switch (kind.Operator()) 332BinaryOperatorKind type = kind.Operator(); 340switch (kind.Operator()) 356switch (kind.Operator()) 377throw ExceptionUtilities.UnexpectedValue(kind.Operator());
BoundTree\BoundDagRelationalTest.cs (1)
9public BinaryOperatorKind Relation => OperatorKind.Operator();
BoundTree\BoundDagTest.cs (1)
92var operatorName = r.Relation.Operator() switch
BoundTree\BoundDecisionDag.cs (1)
195return f.Related(d.Relation.Operator(), inputConstant, d.Value);
CodeGen\EmitOperators.cs (7)
177switch (expression.OperatorKind.Operator()) 245throw ExceptionUtilities.UnexpectedValue(expression.OperatorKind.Operator()); 649switch (expression.OperatorKind.Operator() | expression.OperatorKind.OperandTypes()) 700switch (expression.OperatorKind.Operator()) 736throw ExceptionUtilities.UnexpectedValue(expression.OperatorKind.Operator()); 742switch (kind.Operator()) 779Debug.Assert(opKind.Operator() != BinaryOperatorKind.UnsignedRightShift);
CodeGen\EmitStatement.cs (3)
230var opKind = condition.OperatorKind.Operator(); 303switch (op.OperatorKind.Operator()) 330throw ExceptionUtilities.UnexpectedValue(op.OperatorKind.Operator());
Compilation\BuiltInOperators.cs (1)
705switch (kind.Operator())
Compilation\CSharpSemanticModel.cs (2)
3843BinaryOperatorKind op = binaryOperator.OperatorKind.Operator(); 3916BinaryOperatorKind op = compoundAssignment.Operator.Kind.Operator();
FlowAnalysis\AbstractFlowPass.cs (3)
2473var op = kind.Operator(); 2624return kind.Operator() is BinaryOperatorKind.Equal or BinaryOperatorKind.NotEqual 2636=> binary.OperatorKind.Operator() == BinaryOperatorKind.Equal;
FlowAnalysis\NullableWalker.cs (4)
4859switch (operatorKind.Operator() | operatorKind.OperandTypes()) 4963=> binary.OperatorKind.Operator() == BinaryOperatorKind.Equal; 5176&& operatorKind.Operator() is BinaryOperatorKind.GreaterThan or BinaryOperatorKind.GreaterThanOrEqual or BinaryOperatorKind.LessThan or BinaryOperatorKind.LessThanOrEqual) 5220BinaryOperatorKind op = binary.OperatorKind.Operator();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
391switch (opKind.Operator()) 478throw ExceptionUtilities.UnexpectedValue(opKind.Operator());
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
708var unary = node.OperatorKind.Operator() == BinaryOperatorKind.And ? node.FalseOperator : node.TrueOperator;
Lowering\DiagnosticsPass_Warnings.cs (5)
278if (_inExpressionLambda && node.OperatorKind.Operator() == BinaryOperatorKind.UnsignedRightShift) 756switch (node.OperatorKind.Operator()) 765string always = node.OperatorKind.Operator() == BinaryOperatorKind.NotEqual ? "true" : "false"; 789switch (node.OperatorKind.Operator()) 814string always = node.OperatorKind.Operator() == BinaryOperatorKind.NotEqual ? "true" : "false";
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
648op = op.Operator();
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.ValueDispatchNode.cs (2)
95public override string ToString() => $"RelationalDispatch.{Height}({Left} {Operator.Operator()} {Value} {Right})"; 100private static bool IsReversed(BinaryOperatorKind op) => op.Operator() switch { BinaryOperatorKind.GreaterThan => true, BinaryOperatorKind.GreaterThanOrEqual => true, _ => false };
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
406Debug.Assert(operatorKind.Operator() == BinaryOperatorKind.Equal);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (13)
89operatorKind.Operator() == BinaryOperatorKind.And ? node.FalseOperator : node.TrueOperator, boundTemp); 206switch (operatorKind.Operator() | operatorKind.OperandTypes()) 566if (operatorKind.Operator() == BinaryOperatorKind.NotEqual || 567operatorKind.Operator() == BinaryOperatorKind.Equal) 606Debug.Assert(operatorKind.Operator() == BinaryOperatorKind.And || operatorKind.Operator() == BinaryOperatorKind.Or); 617bool isAnd = operatorKind.Operator() == BinaryOperatorKind.And; 816return MakeLiteral(syntax, ConstantValue.Create(kind.Operator() == BinaryOperatorKind.Equal), boolType); 839BinaryOperatorKind operatorKind = kind.Operator(); 1000if (kind.Operator() is BinaryOperatorKind.Equal or BinaryOperatorKind.NotEqual) 1040BinaryOperatorKind operatorKind = kind.Operator(); 1212BinaryOperatorKind operatorKind = kind.Operator(); 2271Debug.Assert(kind.Operator() == BinaryOperatorKind.Addition);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
33var binaryOperator = kind.Operator();
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
810switch (oper.Operator()) 815throw ExceptionUtilities.UnexpectedValue(oper.Operator());
Operations\CSharpOperationFactory.cs (2)
1487IMethodSymbol unaryOperatorMethod = boundBinaryOperator.OperatorKind.Operator() == CSharp.BinaryOperatorKind.And ? 1498GetConstrainedToTypeForOperator(boundBinaryOperator.OperatorKind.Operator() == CSharp.BinaryOperatorKind.And ?