25 references to Operator
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.ValueChecks.cs (4)
4511
var prefix = increment.OperatorKind.
Operator
() is UnaryOperatorKind.PrefixIncrement or UnaryOperatorKind.PrefixDecrement;
4512
Debug.Assert(prefix || increment.OperatorKind.
Operator
() is UnaryOperatorKind.PostfixIncrement or UnaryOperatorKind.PostfixDecrement);
5331
var prefix = increment.OperatorKind.
Operator
() is UnaryOperatorKind.PrefixIncrement or UnaryOperatorKind.PrefixDecrement;
5332
Debug.Assert(prefix || increment.OperatorKind.
Operator
() is UnaryOperatorKind.PostfixIncrement or UnaryOperatorKind.PostfixDecrement);
Binder\Binder_Operators.cs (2)
4253
UnaryOperatorKind newKind = kind.
Operator
().WithType(upconvertSpecialType);
4261
var binder = kind.
Operator
() == UnaryOperatorKind.BitwiseComplement ?
Binder\Semantics\Operators\OperatorKindExtensions.cs (4)
21
return ((int)kind.
Operator
() >> 8) - 16;
69
switch (kind.
Operator
())
382
switch (kind.
Operator
())
399
throw ExceptionUtilities.UnexpectedValue(kind.
Operator
());
CodeGen\EmitOperators.cs (3)
40
switch (operatorKind.
Operator
())
54
throw ExceptionUtilities.UnexpectedValue(operatorKind.
Operator
());
583
Debug.Assert(expression.OperatorKind.
Operator
() == UnaryOperatorKind.UnaryMinus);
CodeGen\Optimizer.cs (1)
1664
if (node.OperatorKind.IsChecked() && node.OperatorKind.
Operator
() == UnaryOperatorKind.UnaryMinus)
Compilation\CSharpSemanticModel.cs (2)
3820
UnaryOperatorKind op = unaryOperator.OperatorKind.
Operator
();
3843
UnaryOperatorKind op = increment.OperatorKind.
Operator
();
FlowAnalysis\NullableWalker.cs (1)
11109
var op = node.OperatorKind.
Operator
();
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (5)
32
switch (node.OperatorKind.
Operator
())
125
else if (kind.
Operator
() == UnaryOperatorKind.UnaryPlus)
141
UnaryOperatorKind newKind = kind.
Operator
().WithType(upconvertSpecialType);
378
var op = node.OperatorKind.
Operator
();
384
var op = node.OperatorKind.
Operator
();
Operations\CSharpOperationFactory_Methods.cs (3)
497
switch (operatorKind.
Operator
())
510
switch (operatorKind.
Operator
())
523
switch (operatorKind.
Operator
())