78 references to Operator
Microsoft.CodeAnalysis.CSharp (78)
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);
700
(signature.Kind.
Operator
() == BinaryOperatorKind.Equal || signature.Kind.
Operator
() == BinaryOperatorKind.NotEqual) &&
1712
BinaryOperatorKind newKind = kind.
Operator
().WithType(newLeftOperand.Type!.SpecialType);
1714
switch (newKind.
Operator
())
1734
throw ExceptionUtilities.UnexpectedValue(newKind.
Operator
());
1912
BinaryOperatorKind op = kind.
Operator
();
Binder\DecisionDagBuilder.cs (3)
684
var values = fac?.Related(rel.Relation.
Operator
(), rel.ConstantValue);
1113
IValueSet fromTestPassing = valueFac.Related(relation.
Operator
(), value);
1718
var operatorName = r.Relation.
Operator
() switch
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (4)
376
switch (OperatorKindExtensions.
Operator
(kind))
734
if (kind.
Operator
() is BinaryOperatorKind.Addition &&
804
Debug.Assert(op.Signature.Kind.
Operator
() == existingSignature.Kind.
Operator
());
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)
189
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
());
577
switch (expression.OperatorKind.
Operator
() | expression.OperatorKind.OperandTypes())
628
switch (expression.OperatorKind.
Operator
())
664
throw ExceptionUtilities.UnexpectedValue(expression.OperatorKind.
Operator
());
670
switch (kind.
Operator
())
707
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)
708
switch (kind.
Operator
())
Compilation\CSharpSemanticModel.cs (2)
3831
BinaryOperatorKind op = binaryOperator.OperatorKind.
Operator
();
3904
BinaryOperatorKind op = compoundAssignment.Operator.Kind.
Operator
();
FlowAnalysis\AbstractFlowPass.cs (3)
2281
var op = kind.
Operator
();
2432
return kind.
Operator
() is BinaryOperatorKind.Equal or BinaryOperatorKind.NotEqual
2444
=> binary.OperatorKind.
Operator
() == BinaryOperatorKind.Equal;
FlowAnalysis\NullableWalker.cs (6)
4432
switch (operatorKind.
Operator
() | operatorKind.OperandTypes())
4465
&& binary.OperatorKind.
Operator
() is BinaryOperatorKind.Equal or BinaryOperatorKind.NotEqual)
4536
=> binary.OperatorKind.
Operator
() == BinaryOperatorKind.Equal;
4568
if (binary.OperatorKind.
Operator
() is not (BinaryOperatorKind.Equal or BinaryOperatorKind.NotEqual))
4729
&& binary.OperatorKind.
Operator
() is BinaryOperatorKind.GreaterThan or BinaryOperatorKind.GreaterThanOrEqual or BinaryOperatorKind.LessThan or BinaryOperatorKind.LessThanOrEqual)
4774
BinaryOperatorKind op = binary.OperatorKind.
Operator
();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
393
switch (opKind.
Operator
())
412
throw ExceptionUtilities.UnexpectedValue(opKind.
Operator
());
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
643
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)
649
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 (12)
87
operatorKind.
Operator
() == BinaryOperatorKind.And ? node.FalseOperator : node.TrueOperator, boundTemp);
204
switch (operatorKind.
Operator
() | operatorKind.OperandTypes())
564
if (operatorKind.
Operator
() == BinaryOperatorKind.NotEqual ||
565
operatorKind.
Operator
() == BinaryOperatorKind.Equal)
604
Debug.Assert(operatorKind.
Operator
() == BinaryOperatorKind.And || operatorKind.
Operator
() == BinaryOperatorKind.Or);
615
bool isAnd = operatorKind.
Operator
() == BinaryOperatorKind.And;
803
return MakeLiteral(syntax, ConstantValue.Create(kind.
Operator
() == BinaryOperatorKind.Equal), boolType);
826
BinaryOperatorKind operatorKind = kind.
Operator
();
987
BinaryOperatorKind operatorKind = kind.
Operator
();
1140
BinaryOperatorKind operatorKind = kind.
Operator
();
2191
Debug.Assert(kind.
Operator
() == BinaryOperatorKind.Addition);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
33
var binaryOperator = kind.
Operator
();
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
793
switch (oper.
Operator
())
798
throw ExceptionUtilities.UnexpectedValue(oper.
Operator
());
Operations\CSharpOperationFactory.cs (2)
1420
IMethodSymbol unaryOperatorMethod = boundBinaryOperator.OperatorKind.
Operator
() == CSharp.BinaryOperatorKind.And ?
1431
GetConstrainedToTypeForOperator(boundBinaryOperator.OperatorKind.
Operator
() == CSharp.BinaryOperatorKind.And ?