11 references to Checked
Microsoft.CodeAnalysis.CSharp (11)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
1374Debug.Assert((kind & ~BinaryOperatorKind.Checked) == kind, "Did not expect operator to be checked. Consider using .Operator() to mask.");
Binder\Semantics\Operators\OperatorKindExtensions.cs (5)
217return 0 != (kind & BinaryOperatorKind.Checked); 246return kind | BinaryOperatorKind.Checked; 257return kind | BinaryOperatorKind.Checked; 264return kind & ~BinaryOperatorKind.Checked; 409if ((kind & BinaryOperatorKind.Checked) != 0) b.Append("Checked");
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
2276kind = kind & ~BinaryOperatorKind.Checked; 2438multiplicationKind |= BinaryOperatorKind.Checked; 2468kind & ~BinaryOperatorKind.Checked, // For some reason, dev10 never checks for subtraction overflow.
Lowering\LocalRewriter\LocalRewriter_PointerElementAccess.cs (1)
68additionKind |= BinaryOperatorKind.Checked;
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
148BinaryOperatorKind multiplicationKind = BinaryOperatorKind.Checked | BinaryOperatorKind.UIntMultiplication; //"UInt" just to make it unsigned