26 references to UnaryMinus
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Operators.cs (2)
1454if (kind == UnaryOperatorKind.UnaryMinus && 3022case SyntaxKind.UnaryMinusExpression: return UnaryOperatorKind.UnaryMinus;
Binder\Semantics\Operators\OperatorFacts.cs (1)
174case UnaryOperatorKind.UnaryMinus: return isChecked ? WellKnownMemberNames.CheckedUnaryNegationOperatorName : WellKnownMemberNames.UnaryNegationOperatorName;
Binder\Semantics\Operators\OperatorKind.cs (15)
236IntUnaryMinus = Int | UnaryMinus, 237LongUnaryMinus = Long | UnaryMinus, 238NIntUnaryMinus = NInt | UnaryMinus, 239FloatUnaryMinus = Float | UnaryMinus, 240DoubleUnaryMinus = Double | UnaryMinus, 241DecimalUnaryMinus = Decimal | UnaryMinus, 242UserDefinedUnaryMinus = UserDefined | UnaryMinus, 243LiftedIntUnaryMinus = Lifted | Int | UnaryMinus, 244LiftedLongUnaryMinus = Lifted | Long | UnaryMinus, 245LiftedNIntUnaryMinus = Lifted | NInt | UnaryMinus, 246LiftedFloatUnaryMinus = Lifted | Float | UnaryMinus, 247LiftedDoubleUnaryMinus = Lifted | Double | UnaryMinus, 248LiftedDecimalUnaryMinus = Lifted | Decimal | UnaryMinus, 249LiftedUserDefinedUnaryMinus = Lifted | UserDefined | UnaryMinus, 250DynamicUnaryMinus = Dynamic | UnaryMinus,
Binder\Semantics\Operators\OperatorKindExtensions.cs (2)
75case UnaryOperatorKind.UnaryMinus: 393case UnaryOperatorKind.UnaryMinus: return ExpressionType.Negate;
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
548case UnaryOperatorKind.UnaryMinus:
CodeGen\EmitOperators.cs (2)
42case UnaryOperatorKind.UnaryMinus: 583Debug.Assert(expression.OperatorKind.Operator() == UnaryOperatorKind.UnaryMinus);
CodeGen\Optimizer.cs (1)
1655if (node.OperatorKind.IsChecked() && node.OperatorKind.Operator() == UnaryOperatorKind.UnaryMinus)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1151case UnaryOperatorKind.UnaryMinus:
Operations\CSharpOperationFactory_Methods.cs (1)
528case CSharp.UnaryOperatorKind.UnaryMinus: