1 write to OperatorKind
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1231this.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)
10426MethodSymbol? incrementOperator = (node.OperatorKind.IsUserDefined() && node.MethodOpt?.ParameterCount == 1) ? node.MethodOpt : null; 10498var op = node.OperatorKind.Operator();
Generated\BoundNodes.xml.Generated.cs (5)
1260if (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)) 10945return node.Update(node.OperatorKind, operand, node.MethodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, type); 12541updatedNode = node.Update(node.OperatorKind, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, infoAndType.Type!); 12546updatedNode = node.Update(node.OperatorKind, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, node.Type); 15173new 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));