1 write to OperatorKind
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1231
this.
OperatorKind
= operatorKind;
29 references to OperatorKind
Microsoft.CodeAnalysis.CSharp (29)
Compilation\CSharpSemanticModel.cs (4)
3818
UnaryOperatorKind operandType = increment.
OperatorKind
.OperandTypes();
3819
isDynamic = increment.
OperatorKind
.IsDynamic();
3831
UnaryOperatorKind op = increment.
OperatorKind
.Operator();
3834
OperatorFacts.UnaryOperatorNameFromOperatorKind(op, isChecked: increment.
OperatorKind
.IsChecked()),
FlowAnalysis\NullableWalker.cs (2)
10426
MethodSymbol? incrementOperator = (node.
OperatorKind
.IsUserDefined() && node.MethodOpt?.ParameterCount == 1) ? node.MethodOpt : null;
10498
var op = node.
OperatorKind
.Operator();
Generated\BoundNodes.xml.Generated.cs (5)
1260
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))
10945
return node.Update(node.
OperatorKind
, operand, node.MethodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, type);
12541
updatedNode = node.Update(node.
OperatorKind
, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, infoAndType.Type!);
12546
updatedNode = node.Update(node.
OperatorKind
, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, node.Type);
15173
new TreeDumperNode("operatorKind", node.
OperatorKind
, null),
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (14)
377
var op = node.
OperatorKind
.Operator();
383
var op = node.
OperatorKind
.Operator();
428
bool isDynamic = node.
OperatorKind
.IsDynamic();
429
bool isChecked = node.
OperatorKind
.IsChecked();
571
if (node.
OperatorKind
.IsDynamic())
573
return _dynamicFactory.MakeDynamicUnaryOperator(node.
OperatorKind
, rewrittenValueToIncrement, node.Type).ToExpression();
577
if (node.
OperatorKind
.OperandTypes() == UnaryOperatorKind.UserDefined)
635
bool isLifted = node.
OperatorKind
.IsLifted();
636
bool @checked = node.
OperatorKind
.IsChecked();
762
bool @checked = node.
OperatorKind
.IsChecked();
769
if (node.
OperatorKind
.OperandTypes() == UnaryOperatorKind.Pointer)
899
UnaryOperatorKind kind = node.
OperatorKind
.OperandTypes();
964
if (node.
OperatorKind
.IsLifted())
979
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));