23 references to WRN_UnboxPossibleNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
44nullableWarnings.Add(GetId(ErrorCode.WRN_UnboxPossibleNull)); 469case ErrorCode.WRN_UnboxPossibleNull: 1949or ErrorCode.WRN_UnboxPossibleNull
FlowAnalysis\NullableWalker.cs (1)
9561ReportDiagnostic(ErrorCode.WRN_UnboxPossibleNull, getDiagnosticLocation());
Generated\ErrorFacts.Generated.cs (1)
198case ErrorCode.WRN_UnboxPossibleNull:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\NullableReferenceTypesTests.cs (17)
82482Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(T) v").WithLocation(13, 18)); 82504Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(S)i").WithLocation(7, 15)); 82551Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(S)c?.i").WithLocation(12, 15)); 82604Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(S)i").WithLocation(7, 15)); 82651Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(T)i").WithLocation(7, 15)); 109973Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").WithLocation(21, 52), 110164Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)(object)t").WithLocation(6, 48) 130155Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)x").WithLocation(9, 17), 148147Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)default(T)").WithLocation(22, 49), 148206Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)default(T)").WithLocation(23, 68), 148239Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)default(T)").WithLocation(23, 68), 148356Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").WithLocation(23, 63), 148437Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").WithLocation(23, 63), 148546Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").WithLocation(23, 71), 148561Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").WithLocation(23, 71), 148633Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").WithLocation(23, 82), 148666Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").WithLocation(23, 82),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
366case ErrorCode.WRN_UnboxPossibleNull: