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