1 write to OperatorKind
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1213
this.
OperatorKind
= operatorKind;
37 references to OperatorKind
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder.ValueChecks.cs (6)
4593
Debug.Assert(increment.
OperatorKind
.IsUserDefined());
4595
var prefix = increment.
OperatorKind
.Operator() is UnaryOperatorKind.PrefixIncrement or UnaryOperatorKind.PrefixDecrement;
4596
Debug.Assert(prefix || increment.
OperatorKind
.Operator() is UnaryOperatorKind.PostfixIncrement or UnaryOperatorKind.PostfixDecrement);
5341
Debug.Assert(increment.
OperatorKind
.IsUserDefined());
5343
var prefix = increment.
OperatorKind
.Operator() is UnaryOperatorKind.PrefixIncrement or UnaryOperatorKind.PrefixDecrement;
5344
Debug.Assert(prefix || increment.
OperatorKind
.Operator() is UnaryOperatorKind.PostfixIncrement or UnaryOperatorKind.PostfixDecrement);
Compilation\CSharpSemanticModel.cs (4)
3830
UnaryOperatorKind operandType = increment.
OperatorKind
.OperandTypes();
3831
isDynamic = increment.
OperatorKind
.IsDynamic();
3843
UnaryOperatorKind op = increment.
OperatorKind
.Operator();
3846
OperatorFacts.UnaryOperatorNameFromOperatorKind(op, isChecked: increment.
OperatorKind
.IsChecked()),
FlowAnalysis\NullableWalker.cs (3)
11022
bool isLifted = node.
OperatorKind
.IsLifted();
11023
MethodSymbol? incrementOperator = (node.
OperatorKind
.IsUserDefined() && node.MethodOpt?.ParameterCount == 1) ? node.MethodOpt : null;
11109
var op = node.
OperatorKind
.Operator();
Generated\BoundNodes.xml.Generated.cs (5)
1242
if (operatorKind != this.
OperatorKind
|| operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.ConsiderEverything) || operandPlaceholder != this.OperandPlaceholder || operandConversion != this.OperandConversion || resultPlaceholder != this.ResultPlaceholder || resultConversion != this.ResultConversion || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
10998
return node.Update(node.
OperatorKind
, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, originalUserDefinedOperatorsOpt, type);
12730
updatedNode = node.Update(node.
OperatorKind
, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, infoAndType.Type!);
12735
updatedNode = node.Update(node.
OperatorKind
, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, node.Type);
15348
new TreeDumperNode("operatorKind", node.
OperatorKind
, null),
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (15)
378
var op = node.
OperatorKind
.Operator();
384
var op = node.
OperatorKind
.Operator();
453
return MakeInstanceCompoundAssignmentOperatorResult(node.Syntax, node.Operand, rightOpt: null, node.MethodOpt, node.
OperatorKind
.IsChecked(), AssignmentKind.IncrementDecrement);
575
bool isDynamic = node.
OperatorKind
.IsDynamic();
576
bool isChecked = node.
OperatorKind
.IsChecked();
730
if (node.
OperatorKind
.IsDynamic())
732
return _dynamicFactory.MakeDynamicUnaryOperator(node.
OperatorKind
, rewrittenValueToIncrement, node.Type).ToExpression();
736
if (node.
OperatorKind
.OperandTypes() == UnaryOperatorKind.UserDefined)
794
bool isLifted = node.
OperatorKind
.IsLifted();
795
bool @checked = node.
OperatorKind
.IsChecked();
921
bool @checked = node.
OperatorKind
.IsChecked();
928
if (node.
OperatorKind
.OperandTypes() == UnaryOperatorKind.Pointer)
1058
UnaryOperatorKind kind = node.
OperatorKind
.OperandTypes();
1123
if (node.
OperatorKind
.IsLifted())
1138
UnaryOperatorKind unaryOperatorKind = node.
OperatorKind
;
Operations\CSharpOperationFactory.cs (4)
1387
OperationKind operationKind = Helper.IsDecrement(boundIncrementOperator.
OperatorKind
) ? OperationKind.Decrement : OperationKind.Increment;
1388
bool isPostfix = Helper.IsPostfixIncrementOrDecrement(boundIncrementOperator.
OperatorKind
);
1389
bool isLifted = boundIncrementOperator.
OperatorKind
.IsLifted();
1390
bool isChecked = boundIncrementOperator.
OperatorKind
.IsChecked() || (boundIncrementOperator.MethodOpt is not null && SyntaxFacts.IsCheckedOperator(boundIncrementOperator.MethodOpt.Name));