12 references to WRN_ConstOutOfRangeChecked
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (1)
1683
Error(diagnostics, ErrorCode.
WRN_ConstOutOfRangeChecked
, syntax, sourceValue.Value!, destination!);
Errors\ErrorFacts.cs (2)
474
case ErrorCode.
WRN_ConstOutOfRangeChecked
:
1994
case ErrorCode.
WRN_ConstOutOfRangeChecked
:
Generated\ErrorFacts.Generated.cs (1)
245
case ErrorCode.
WRN_ConstOutOfRangeChecked
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Emit\NumericIntPtrTests.cs (3)
2197
Diagnostic(ErrorCode.
WRN_ConstOutOfRangeChecked
, "(IntPtr)x").WithArguments("1152921504606846975", "nint").WithLocation(7, 34));
2221
Diagnostic(ErrorCode.
WRN_ConstOutOfRangeChecked
, "(nint)x").WithArguments("1152921504606846975", "nint").WithLocation(9, 30));
2344
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)
6341
Diagnostic(ErrorCode.
WRN_ConstOutOfRangeChecked
, "(nint)x").WithArguments("1152921504606846975", "nint").WithLocation(7, 32));
6365
Diagnostic(ErrorCode.
WRN_ConstOutOfRangeChecked
, "(nint)x").WithArguments("1152921504606846975", "nint").WithLocation(9, 30));
6490
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)
371
case ErrorCode.
WRN_ConstOutOfRangeChecked
:
488
ErrorCode.
WRN_ConstOutOfRangeChecked
,