1 write to OperatorKind
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1232this.OperatorKind = operatorKind;
29 references to OperatorKind
Microsoft.CodeAnalysis.CSharp (29)
Compilation\CSharpSemanticModel.cs (4)
3818UnaryOperatorKind operandType = increment.OperatorKind.OperandTypes(); 3819isDynamic = increment.OperatorKind.IsDynamic(); 3831UnaryOperatorKind op = increment.OperatorKind.Operator(); 3834OperatorFacts.UnaryOperatorNameFromOperatorKind(op, isChecked: increment.OperatorKind.IsChecked()),
FlowAnalysis\NullableWalker.cs (2)
10423MethodSymbol? incrementOperator = (node.OperatorKind.IsUserDefined() && node.MethodOpt?.ParameterCount == 1) ? node.MethodOpt : null; 10495var op = node.OperatorKind.Operator();
Generated\BoundNodes.xml.Generated.cs (5)
1261if (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)) 10946return node.Update(node.OperatorKind, operand, node.MethodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, type); 12542updatedNode = node.Update(node.OperatorKind, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, infoAndType.Type!); 12547updatedNode = node.Update(node.OperatorKind, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, node.Type); 15174new TreeDumperNode("operatorKind", node.OperatorKind, null),
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (14)
377var op = node.OperatorKind.Operator(); 383var op = node.OperatorKind.Operator(); 428bool isDynamic = node.OperatorKind.IsDynamic(); 429bool isChecked = node.OperatorKind.IsChecked(); 571if (node.OperatorKind.IsDynamic()) 573return _dynamicFactory.MakeDynamicUnaryOperator(node.OperatorKind, rewrittenValueToIncrement, node.Type).ToExpression(); 577if (node.OperatorKind.OperandTypes() == UnaryOperatorKind.UserDefined) 635bool isLifted = node.OperatorKind.IsLifted(); 636bool @checked = node.OperatorKind.IsChecked(); 762bool @checked = node.OperatorKind.IsChecked(); 769if (node.OperatorKind.OperandTypes() == UnaryOperatorKind.Pointer) 899UnaryOperatorKind kind = node.OperatorKind.OperandTypes(); 964if (node.OperatorKind.IsLifted()) 979UnaryOperatorKind unaryOperatorKind = node.OperatorKind;
Operations\CSharpOperationFactory.cs (4)
1387OperationKind operationKind = Helper.IsDecrement(boundIncrementOperator.OperatorKind) ? OperationKind.Decrement : OperationKind.Increment; 1388bool isPostfix = Helper.IsPostfixIncrementOrDecrement(boundIncrementOperator.OperatorKind); 1389bool isLifted = boundIncrementOperator.OperatorKind.IsLifted(); 1390bool isChecked = boundIncrementOperator.OperatorKind.IsChecked() || (boundIncrementOperator.MethodOpt is not null && SyntaxFacts.IsCheckedOperator(boundIncrementOperator.MethodOpt.Name));