60 references to Subtraction
Microsoft.CodeAnalysis.CSharp (60)
Binder\Binder_Operators.cs (4)
39case BinaryOperatorKind.Subtraction: 260Debug.Assert(opKind == BinaryOperatorKind.Addition || opKind == BinaryOperatorKind.Subtraction); 1753case BinaryOperatorKind.Subtraction: 2240case SyntaxKind.SubtractExpression: return BinaryOperatorKind.Subtraction;
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (5)
316case BinaryOperatorKind.Subtraction: 350case BinaryOperatorKind.Subtraction: 489case BinaryOperatorKind.Subtraction: 560case BinaryOperatorKind.Subtraction: 639case BinaryOperatorKind.Subtraction:
Binder\Semantics\Operators\OperatorFacts.cs (1)
207case BinaryOperatorKind.Subtraction: return isChecked ? WellKnownMemberNames.CheckedSubtractionOperatorName : WellKnownMemberNames.SubtractionOperatorName;
Binder\Semantics\Operators\OperatorKind.cs (33)
460IntSubtraction = Int | Subtraction, 461UIntSubtraction = UInt | Subtraction, 462LongSubtraction = Long | Subtraction, 463ULongSubtraction = ULong | Subtraction, 464NIntSubtraction = NInt | Subtraction, 465NUIntSubtraction = NUInt | Subtraction, 466FloatSubtraction = Float | Subtraction, 467DoubleSubtraction = Double | Subtraction, 468DecimalSubtraction = Decimal | Subtraction, 469EnumSubtraction = Enum | Subtraction, 470EnumAndUnderlyingSubtraction = EnumAndUnderlying | Subtraction, 471UnderlyingAndEnumSubtraction = UnderlyingAndEnum | Subtraction, 472UserDefinedSubtraction = UserDefined | Subtraction, 473LiftedIntSubtraction = Lifted | Int | Subtraction, 474LiftedUIntSubtraction = Lifted | UInt | Subtraction, 475LiftedLongSubtraction = Lifted | Long | Subtraction, 476LiftedULongSubtraction = Lifted | ULong | Subtraction, 477LiftedNIntSubtraction = Lifted | NInt | Subtraction, 478LiftedNUIntSubtraction = Lifted | NUInt | Subtraction, 479LiftedFloatSubtraction = Lifted | Float | Subtraction, 480LiftedDoubleSubtraction = Lifted | Double | Subtraction, 481LiftedDecimalSubtraction = Lifted | Decimal | Subtraction, 482LiftedEnumSubtraction = Lifted | Enum | Subtraction, 483LiftedEnumAndUnderlyingSubtraction = Lifted | EnumAndUnderlying | Subtraction, 484LiftedUnderlyingAndEnumSubtraction = Lifted | UnderlyingAndEnum | Subtraction, 485LiftedUserDefinedSubtraction = Lifted | UserDefined | Subtraction, 486DelegateRemoval = Delegate | Subtraction, 487PointerAndIntSubtraction = PointerAndInt | Subtraction, 488PointerAndUIntSubtraction = PointerAndUInt | Subtraction, 489PointerAndLongSubtraction = PointerAndLong | Subtraction, 490PointerAndULongSubtraction = PointerAndULong | Subtraction, 491PointerSubtraction = Pointer | Subtraction, 492DynamicSubtraction = Dynamic | Subtraction,
Binder\Semantics\Operators\OperatorKindExtensions.cs (4)
230case BinaryOperatorKind.Subtraction: 254case BinaryOperatorKind.Subtraction: 344case BinaryOperatorKind.Subtraction: return ExpressionType.SubtractAssign; 360case BinaryOperatorKind.Subtraction: return ExpressionType.Subtract;
CodeGen\EmitOperators.cs (2)
187case BinaryOperatorKind.Subtraction: 724case BinaryOperatorKind.Subtraction:
Compilation\BuiltInOperators.cs (1)
709case BinaryOperatorKind.Subtraction:
Compilation\CSharpCompilation.cs (5)
4312if (binaryKind is BinaryOperatorKind.Addition or BinaryOperatorKind.Subtraction && 4355if (binaryKind is BinaryOperatorKind.Addition or BinaryOperatorKind.Subtraction) 4373if (binaryKind is BinaryOperatorKind.Subtraction && 4414if (binaryKind is BinaryOperatorKind.Subtraction && 4423if (binaryKind is BinaryOperatorKind.Subtraction &&
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
409case BinaryOperatorKind.Subtraction:
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
42(binaryOperator == BinaryOperatorKind.Addition || binaryOperator == BinaryOperatorKind.Subtraction))
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
735binaryOperatorKind |= IsIncrement(node) ? BinaryOperatorKind.Addition : BinaryOperatorKind.Subtraction; 813case BinaryOperatorKind.Subtraction: member = SpecialMember.System_Decimal__op_Decrement; break;
Operations\CSharpOperationFactory_Methods.cs (1)
554case CSharp.BinaryOperatorKind.Subtraction: