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