1 write to OperatorKind
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1189this.OperatorKind = operatorKind;
39 references to OperatorKind
Microsoft.CodeAnalysis.CSharp (39)
BoundTree\BoundExpression.cs (1)
605return this.Condition.Kind == BoundKind.UnaryOperator && ((BoundUnaryOperator)this.Condition).OperatorKind.IsDynamic();
BoundTree\BoundNode_Source.cs (1)
316append($" {unary.OperatorKind.ToString()} ");
CodeGen\EmitOperators.cs (4)
19var operatorKind = expression.OperatorKind; 575Debug.Assert(unOp.OperatorKind == UnaryOperatorKind.BoolLogicalNegation); 583Debug.Assert(expression.OperatorKind.Operator() == UnaryOperatorKind.UnaryMinus); 584var type = expression.OperatorKind.OperandTypes();
CodeGen\EmitStatement.cs (1)
577if (unOp.OperatorKind == UnaryOperatorKind.BoolLogicalNegation)
CodeGen\Optimizer.cs (3)
1655if (node.OperatorKind.IsChecked() && node.OperatorKind.Operator() == UnaryOperatorKind.UnaryMinus) 1660return node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.MethodOpt, node.ConstrainedToTypeOpt, node.ResultKind, node.Type);
Compilation\CSharpSemanticModel.cs (5)
2007UnaryOperatorKind operatorKind = @operator.OperatorKind; 3795UnaryOperatorKind operandType = unaryOperator.OperatorKind.OperandTypes(); 3796isDynamic = unaryOperator.OperatorKind.IsDynamic(); 3808UnaryOperatorKind op = unaryOperator.OperatorKind.Operator(); 3810OperatorFacts.UnaryOperatorNameFromOperatorKind(op, isChecked: unaryOperator.OperatorKind.IsChecked()),
FlowAnalysis\AbstractFlowPass.cs (1)
2756if (node.OperatorKind == UnaryOperatorKind.BoolLogicalNegation)
FlowAnalysis\NullableWalker.cs (4)
11230switch (node.OperatorKind) 11254if (node.OperatorKind.IsUserDefined() && 11261bool isLifted = node.OperatorKind.IsLifted(); 11293TypeWithState.Create(node.Type, node.OperatorKind.IsLifted() ? argumentResult.State : NullableFlowState.NotNull);
Generated\BoundNodes.xml.Generated.cs (5)
1212if (operatorKind != this.OperatorKind || operand != this.Operand || constantValueOpt != this.ConstantValueOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.ConsiderEverything) || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 10934return node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.MethodOpt, constrainedToTypeOpt, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, type); 12517updatedNode = node.Update(node.OperatorKind, operand, node.ConstantValueOpt, methodOpt, constrainedToTypeOpt, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, infoAndType.Type!); 12522updatedNode = node.Update(node.OperatorKind, operand, node.ConstantValueOpt, methodOpt, constrainedToTypeOpt, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, node.Type); 15159new TreeDumperNode("operatorKind", node.OperatorKind, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
1137var opKind = node.OperatorKind; 1185if (node.OperatorKind.OperandTypes() == UnaryOperatorKind.Enum && (opKind & UnaryOperatorKind.Lifted) != 0)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
721if (_inExpressionLambda && node.OperatorKind.IsDynamic())
Lowering\DiagnosticsPass_Warnings.cs (1)
737if (!node.OperatorKind.IsLifted())
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
623Debug.Assert(applyParentUnaryOperator == null || applyParentUnaryOperator.OperatorKind == testOperator);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (4)
31switch (node.OperatorKind.Operator()) 51if (node.OperatorKind == UnaryOperatorKind.DynamicTrue && binaryOperator.OperatorKind == BinaryOperatorKind.DynamicLogicalOr || 52node.OperatorKind == UnaryOperatorKind.DynamicFalse && binaryOperator.OperatorKind == BinaryOperatorKind.DynamicLogicalAnd) 59return MakeUnaryOperator(node, node.OperatorKind, node.Syntax, node.MethodOpt, node.ConstrainedToTypeOpt, loweredOperand, node.Type);
Lowering\MethodToClassRewriter.cs (1)
283node.OperatorKind,
Lowering\SpillSequenceSpiller.cs (1)
1508return UpdateExpression(builder, node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.MethodOpt, node.ConstrainedToTypeOpt, node.ResultKind, node.Type));
Operations\CSharpOperationFactory.cs (3)
1433UnaryOperatorKind unaryOperatorKind = Helper.DeriveUnaryOperatorKind(boundUnaryOperator.OperatorKind); 1439bool isLifted = boundUnaryOperator.OperatorKind.IsLifted(); 1440bool isChecked = boundUnaryOperator.OperatorKind.IsChecked() || (boundUnaryOperator.MethodOpt is not null && SyntaxFacts.IsCheckedOperator(boundUnaryOperator.MethodOpt.Name));