12 references to WRN_ConstOutOfRangeChecked
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (1)
3260
Error(diagnostics, ErrorCode.
WRN_ConstOutOfRangeChecked
, syntax, sourceValue.Value!, destination!);
Errors\ErrorFacts.cs (2)
487
case ErrorCode.
WRN_ConstOutOfRangeChecked
:
2051
or ErrorCode.
WRN_ConstOutOfRangeChecked
Generated\ErrorFacts.Generated.cs (1)
245
case ErrorCode.
WRN_ConstOutOfRangeChecked
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Emit\NumericIntPtrTests.cs (3)
2237
Diagnostic(ErrorCode.
WRN_ConstOutOfRangeChecked
, "(IntPtr)x").WithArguments("1152921504606846975", "nint").WithLocation(7, 34));
2261
Diagnostic(ErrorCode.
WRN_ConstOutOfRangeChecked
, "(nint)x").WithArguments("1152921504606846975", "nint").WithLocation(9, 30));
2384
static DiagnosticDescription warningOutOfRangeChecked(string destinationType, string value) => Diagnostic(ErrorCode.
WRN_ConstOutOfRangeChecked
, $"({destinationType})x").WithArguments(value, AsNative(destinationType));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\NativeIntegerTests.cs (3)
6372
Diagnostic(ErrorCode.
WRN_ConstOutOfRangeChecked
, "(nint)x").WithArguments("1152921504606846975", "nint").WithLocation(7, 32));
6396
Diagnostic(ErrorCode.
WRN_ConstOutOfRangeChecked
, "(nint)x").WithArguments("1152921504606846975", "nint").WithLocation(9, 30));
6521
static DiagnosticDescription warningOutOfRangeChecked(string destinationType, string value) => Diagnostic(ErrorCode.
WRN_ConstOutOfRangeChecked
, $"({destinationType})x").WithArguments(value, destinationType);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (2)
393
case ErrorCode.
WRN_ConstOutOfRangeChecked
:
526
ErrorCode.
WRN_ConstOutOfRangeChecked
,