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