23 references to WRN_UnboxPossibleNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
44
nullableWarnings.Add(GetId(ErrorCode.
WRN_UnboxPossibleNull
));
457
case ErrorCode.
WRN_UnboxPossibleNull
:
1892
case ErrorCode.
WRN_UnboxPossibleNull
:
FlowAnalysis\NullableWalker.cs (1)
8057
ReportDiagnostic(ErrorCode.
WRN_UnboxPossibleNull
, diagnosticLocationOpt);
Generated\ErrorFacts.Generated.cs (1)
199
case ErrorCode.
WRN_UnboxPossibleNull
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\NullableReferenceTypesTests.cs (17)
78731
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(T) v").WithLocation(13, 18));
78753
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(S)i").WithLocation(7, 15));
78800
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(S)c?.i").WithLocation(12, 15));
78853
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(S)i").WithLocation(7, 15));
78900
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(T)i").WithLocation(7, 15));
106119
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(U)t").WithLocation(21, 52),
106310
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(U)(object)t").WithLocation(6, 48)
126301
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(U)x").WithLocation(9, 17),
143602
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(U)default(T)").WithLocation(22, 49),
143661
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(U)default(T)").WithLocation(23, 68),
143694
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(U)default(T)").WithLocation(23, 68),
143811
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(U)t").WithLocation(23, 63),
143892
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(U)t").WithLocation(23, 63),
144001
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(U)t").WithLocation(23, 71),
144016
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(U)t").WithLocation(23, 71),
144088
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(U)t").WithLocation(23, 82),
144121
Diagnostic(ErrorCode.
WRN_UnboxPossibleNull
, "(U)t").WithLocation(23, 82),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
356
case ErrorCode.
WRN_UnboxPossibleNull
: