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