1 write to OperatorKind
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1253
this.
OperatorKind
= operatorKind;
37 references to OperatorKind
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder.ValueChecks.cs (6)
4642
Debug.Assert(increment.
OperatorKind
.IsUserDefined());
4644
var prefix = increment.
OperatorKind
.Operator() is UnaryOperatorKind.PrefixIncrement or UnaryOperatorKind.PrefixDecrement;
4645
Debug.Assert(prefix || increment.
OperatorKind
.Operator() is UnaryOperatorKind.PostfixIncrement or UnaryOperatorKind.PostfixDecrement);
5436
Debug.Assert(increment.
OperatorKind
.IsUserDefined());
5438
var prefix = increment.
OperatorKind
.Operator() is UnaryOperatorKind.PrefixIncrement or UnaryOperatorKind.PrefixDecrement;
5439
Debug.Assert(prefix || increment.
OperatorKind
.Operator() is UnaryOperatorKind.PostfixIncrement or UnaryOperatorKind.PostfixDecrement);
Compilation\CSharpSemanticModel.cs (4)
3843
UnaryOperatorKind operandType = increment.
OperatorKind
.OperandTypes();
3844
isDynamic = increment.
OperatorKind
.IsDynamic();
3856
UnaryOperatorKind op = increment.
OperatorKind
.Operator();
3859
OperatorFacts.UnaryOperatorNameFromOperatorKind(op, isChecked: increment.
OperatorKind
.IsChecked()),
FlowAnalysis\NullableWalker.cs (3)
11806
bool isLifted = node.
OperatorKind
.IsLifted();
11807
MethodSymbol? incrementOperator = (node.
OperatorKind
.IsUserDefined() && node.MethodOpt?.ParameterCount == 1) ? node.MethodOpt : null;
11905
var op = node.
OperatorKind
.Operator();
Generated\BoundNodes.xml.Generated.cs (5)
1282
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))
11268
return node.Update(node.
OperatorKind
, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, originalUserDefinedOperatorsOpt, type);
13049
updatedNode = node.Update(node.
OperatorKind
, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, infoAndType.Type!);
13054
updatedNode = node.Update(node.
OperatorKind
, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, node.Type);
15693
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);
576
bool isDynamic = node.
OperatorKind
.IsDynamic();
577
bool isChecked = node.
OperatorKind
.IsChecked();
732
if (node.
OperatorKind
.IsDynamic())
734
return _dynamicFactory.MakeDynamicUnaryOperator(node.
OperatorKind
, rewrittenValueToIncrement, node.Type).ToExpression();
738
if (node.
OperatorKind
.OperandTypes() == UnaryOperatorKind.UserDefined)
796
bool isLifted = node.
OperatorKind
.IsLifted();
797
bool @checked = node.
OperatorKind
.IsChecked();
923
bool @checked = node.
OperatorKind
.IsChecked();
930
if (node.
OperatorKind
.OperandTypes() == UnaryOperatorKind.Pointer)
1060
UnaryOperatorKind kind = node.
OperatorKind
.OperandTypes();
1125
if (node.
OperatorKind
.IsLifted())
1140
UnaryOperatorKind unaryOperatorKind = node.
OperatorKind
;
Operations\CSharpOperationFactory.cs (4)
1462
OperationKind operationKind = Helper.IsDecrement(boundIncrementOperator.
OperatorKind
) ? OperationKind.Decrement : OperationKind.Increment;
1463
bool isPostfix = Helper.IsPostfixIncrementOrDecrement(boundIncrementOperator.
OperatorKind
);
1464
bool isLifted = boundIncrementOperator.
OperatorKind
.IsLifted();
1465
bool isChecked = boundIncrementOperator.
OperatorKind
.IsChecked() || (boundIncrementOperator.MethodOpt is not null && SyntaxFacts.IsCheckedOperator(boundIncrementOperator.MethodOpt.Name));