1 write to OperatorKind
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1256this.OperatorKind = operatorKind;
37 references to OperatorKind
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder.ValueChecks.cs (6)
4643Debug.Assert(increment.OperatorKind.IsUserDefined()); 4645var prefix = increment.OperatorKind.Operator() is UnaryOperatorKind.PrefixIncrement or UnaryOperatorKind.PrefixDecrement; 4646Debug.Assert(prefix || increment.OperatorKind.Operator() is UnaryOperatorKind.PostfixIncrement or UnaryOperatorKind.PostfixDecrement); 5396Debug.Assert(increment.OperatorKind.IsUserDefined()); 5398var prefix = increment.OperatorKind.Operator() is UnaryOperatorKind.PrefixIncrement or UnaryOperatorKind.PrefixDecrement; 5399Debug.Assert(prefix || increment.OperatorKind.Operator() is UnaryOperatorKind.PostfixIncrement or UnaryOperatorKind.PostfixDecrement);
Compilation\CSharpSemanticModel.cs (4)
3836UnaryOperatorKind operandType = increment.OperatorKind.OperandTypes(); 3837isDynamic = increment.OperatorKind.IsDynamic(); 3849UnaryOperatorKind op = increment.OperatorKind.Operator(); 3852OperatorFacts.UnaryOperatorNameFromOperatorKind(op, isChecked: increment.OperatorKind.IsChecked()),
FlowAnalysis\NullableWalker.cs (3)
11328bool isLifted = node.OperatorKind.IsLifted(); 11329MethodSymbol? incrementOperator = (node.OperatorKind.IsUserDefined() && node.MethodOpt?.ParameterCount == 1) ? node.MethodOpt : null; 11415var op = node.OperatorKind.Operator();
Generated\BoundNodes.xml.Generated.cs (5)
1285if (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)) 11124return node.Update(node.OperatorKind, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, originalUserDefinedOperatorsOpt, type); 12877updatedNode = node.Update(node.OperatorKind, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, infoAndType.Type!); 12882updatedNode = node.Update(node.OperatorKind, operand, methodOpt, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, node.Type); 15492new 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); 575bool isDynamic = node.OperatorKind.IsDynamic(); 576bool isChecked = node.OperatorKind.IsChecked(); 730if (node.OperatorKind.IsDynamic()) 732return _dynamicFactory.MakeDynamicUnaryOperator(node.OperatorKind, rewrittenValueToIncrement, node.Type).ToExpression(); 736if (node.OperatorKind.OperandTypes() == UnaryOperatorKind.UserDefined) 794bool isLifted = node.OperatorKind.IsLifted(); 795bool @checked = node.OperatorKind.IsChecked(); 921bool @checked = node.OperatorKind.IsChecked(); 928if (node.OperatorKind.OperandTypes() == UnaryOperatorKind.Pointer) 1058UnaryOperatorKind kind = node.OperatorKind.OperandTypes(); 1123if (node.OperatorKind.IsLifted()) 1138UnaryOperatorKind unaryOperatorKind = node.OperatorKind;
Operations\CSharpOperationFactory.cs (4)
1437OperationKind operationKind = Helper.IsDecrement(boundIncrementOperator.OperatorKind) ? OperationKind.Decrement : OperationKind.Increment; 1438bool isPostfix = Helper.IsPostfixIncrementOrDecrement(boundIncrementOperator.OperatorKind); 1439bool isLifted = boundIncrementOperator.OperatorKind.IsLifted(); 1440bool isChecked = boundIncrementOperator.OperatorKind.IsChecked() || (boundIncrementOperator.MethodOpt is not null && SyntaxFacts.IsCheckedOperator(boundIncrementOperator.MethodOpt.Name));