531 references to WRN_NullReferenceReturn
Microsoft.CodeAnalysis.CSharp (6)
Errors\ErrorFacts.cs (3)
30nullableWarnings.Add(GetId(ErrorCode.WRN_NullReferenceReturn)); 433case ErrorCode.WRN_NullReferenceReturn: 1947or ErrorCode.WRN_NullReferenceReturn
FlowAnalysis\NullableWalker.cs (2)
2427ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullAsNonNullable, location); 2449ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullReferenceAssignment, location);
Generated\ErrorFacts.Generated.cs (1)
197case ErrorCode.WRN_NullReferenceReturn:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (2)
230Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(14, 16), 233Diagnostic(ErrorCode.WRN_NullReferenceReturn, "await G((string?)null)").WithLocation(20, 16),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
FieldKeywordTests.cs (13)
5664Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 39)); 6061Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16)); 6090Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16), 6148Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16)); 6177Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16)); 6512Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(12, 16)); 6534Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(7, 28)); 6577Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(7, 28)); 6983Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16)); 7045Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16), 7217Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16)); 11765Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(11, 20)); 11838Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(12, 20));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (507)
Semantics\DelegateTypeTests.cs (2)
9832Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x2").WithLocation(11, 44), 9841Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").WithLocation(15, 44),
Semantics\LambdaTests.cs (24)
4247Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(9, 52) 4297Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(18, 51), 4300Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(19, 41), 4306Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(20, 41), 4309Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(21, 41), 4315Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(23, 52), 4318Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(24, 50), 4324Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(25, 50), 4327Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(26, 50) 4362Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(17, 42), 4365Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(19, 53), 4368Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(20, 51) 4418Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(18, 54), 4421Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(19, 44), 4427Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(20, 44), 4430Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(21, 44), 4436Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(23, 55), 4439Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(24, 52), 4445Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(25, 52), 4448Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(26, 52) 4642Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(14, 83), 4648Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(18, 64) 5215Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(9, 36), 5515Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").WithLocation(7, 65),
Semantics\NullableContextTests.cs (6)
203Diagnostic(ErrorCode.WRN_NullReferenceReturn, "C1").WithLocation(7, 27)); 892Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(7, 20)); 1235Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(7, 12)); 1259Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 22), 1333Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(7, 47)); 1351Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(4, 39));
Semantics\NullableReferenceTypesTests.cs (470)
168Diagnostic(ErrorCode.WRN_NullReferenceReturn, @"b ? """" : default", isSuppressed: false).WithLocation(10, 37), 171Diagnostic(ErrorCode.WRN_NullReferenceReturn, @"b ? """" : null", isSuppressed: false).WithLocation(14, 37)); 2263Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 44), 2269Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(7, 45) 2302Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 50), 2308Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(7, 51) 2459Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(5, 69), 2465Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(11, 69), 5072Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 48) 15012Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 35), 19794Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y11.F1").WithLocation(63, 16)); 20327Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x1").WithLocation(10, 16) 26952Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 26991Diagnostic(ErrorCode.WRN_NullReferenceReturn, "item.Value").WithLocation(22, 24) 27030Diagnostic(ErrorCode.WRN_NullReferenceReturn, "item.Value").WithLocation(22, 24) 27066Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(17, 24) 27099Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(16, 24) 27231Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(15, 20) 27609Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(16, 24) 27676Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(21, 24) 27712Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(16, 24), 27715Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 27752Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(22, 24) 27785Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 27818Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 27851Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 27886Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").WithLocation(18, 24), 27955Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").WithLocation(18, 24) 27990Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").WithLocation(18, 24), 28057Diagnostic(ErrorCode.WRN_NullReferenceReturn, "c.Value").WithLocation(18, 24) 28095Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(21, 20), 28098Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(24, 16) 28162Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(19, 20) 28196Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(15, 20) 28230Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(19, 20) 28264Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t.Value").WithLocation(19, 20) 28298Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(15, 20) 28331Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 28412Diagnostic(ErrorCode.WRN_NullReferenceReturn, "IsOk switch { true => throw null!, _ => Value }").WithLocation(13, 16) 28462Diagnostic(ErrorCode.WRN_NullReferenceReturn, "IsOk ? throw null! : Value").WithLocation(13, 16) 29688Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16), 29694Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(15, 16) 29726Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16), 29732Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(15, 16) 29764Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16), 29767Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(15, 16) 32334Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default", isSuppressed: false).WithLocation(31, 20), 32337Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default", isSuppressed: false).WithLocation(41, 20)); 39596Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(35, 16), 39728Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(32, 16) 39808Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(35, 16), 39863Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(13, 22), 39869Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(25, 22), 39999Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(7, 22), 40002Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(13, 22), 40011Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(25, 22), 45738Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(13, 16), 45741Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(19, 20) 45766Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(11, 16) 45791Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(9, 20) 48027Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(4, 50) 48731Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(9, 20) 48756Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(11, 16) 55862Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").WithLocation(8, 57) 55887Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").WithLocation(8, 66) 55973Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s1?.ToString()").WithLocation(9, 48) 56130Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? null : null").WithLocation(9, 24) 56193Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : default").WithLocation(9, 24) 56260Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? x : y").WithLocation(11, 24) 56358Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { _ => null }").WithLocation(9, 24) 56392Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { true => x, _ => y }").WithLocation(11, 24) 56592Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(10, 31), 56595Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(11, 31), 57112Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? x : y").WithLocation(4, 47), 57115Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? x : y!").WithLocation(6, 47)); 57990Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 32) 58910Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b1.G").WithLocation(11, 16), 58916Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b3.G").WithLocation(30, 16)); 58965Diagnostic(ErrorCode.WRN_NullReferenceReturn, "a1.F").WithLocation(10, 16), 58968Diagnostic(ErrorCode.WRN_NullReferenceReturn, "a3.F").WithLocation(29, 16)); 59897Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u5").WithLocation(33, 16), 63264Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(12, 37), 63267Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(17, 49), 63270Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(24, 23), 63273Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(29, 35) 63364Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(20, 22), 63367Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(25, 22), 63370Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(30, 34), 63373Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(35, 34) 63473Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(19, 22), 63476Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(24, 22), 63479Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(29, 34), 63482Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(34, 34) 63582Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y1").WithLocation(22, 28), 63588Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").WithLocation(31, 28) 63637Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y1").WithLocation(22, 28), 63640Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").WithLocation(31, 28) 63920Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(22, 28) 64464Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(9, 56)); 64492Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(9, 43), 64495Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(10, 33), 64498Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").WithLocation(14, 33), 64501Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").WithLocation(15, 43)); 65374Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(8, 29), 65636Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(7, 48)); 67605Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(22, 22)); 67993Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(22, 16)); 69278Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").WithLocation(9, 26)); 69363Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T?>()").WithLocation(7, 28)); 69418Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<object?>()").WithLocation(10, 33), 76016Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 16), 76019Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(12, 60) 76057Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 22), 76060Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 22) 76105Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(11, 26), 76108Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(13, 26) 76138Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(6, 22), 76141Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(10, 22), 76144Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(14, 22) 76234Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 22) 76263Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(11, 26) 76338Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 22), 76341Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(9, 22), 76344Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(26, 26) 76391Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 22), 76394Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(9, 22), 76397Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(26, 26) 79186Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(10, 27), 79192Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(string)null").WithLocation(11, 27), 79195Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(string?)null").WithLocation(12, 27), 79198Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null as string").WithLocation(13, 27), 79204Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(string)").WithLocation(15, 27), 79207Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(16, 27), 79210Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(p != null) ? p.MiddleName : null").WithLocation(17, 35), 79213Diagnostic(ErrorCode.WRN_NullReferenceReturn, "p.MiddleName ?? null").WithLocation(18, 35) 81067Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 17)); 81199Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 26), 81202Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(4, 35)); 81210Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 26), 81213Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(4, 35)); 81221Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 26), 81224Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(4, 35)); 82063Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(7, 12), 82066Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(10, 12), 82075Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(19, 12), 82078Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(22, 12), 82392Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(4, 37) 82704Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(4, 17)); 83148Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(4, 25), 83151Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(5, 33), 83154Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 40), 83157Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(7, 37), 83160Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(Task<T>)").WithLocation(8, 37), 83163Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(9, 53), 83166Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(10, 48)); 83199Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 39), 83202Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(8, 43), 83205Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(9, 43), 83208Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(10, 59), 83214Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(13, 40), 83217Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(14, 44)); 83306Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)null").WithLocation(6, 16), 83309Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)null").WithLocation(10, 16), 83312Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(14, 16), 83315Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(18, 16)); 91186Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(17, 20), 91192Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(19, 20), 91198Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o1").WithLocation(25, 20), 91201Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o2").WithLocation(27, 20)); 91245Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(19, 20), 91251Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(21, 20), 91257Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o1").WithLocation(27, 20), 91260Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o2").WithLocation(29, 20)); 109580Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(9, 16), 109583Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(15, 23), 109586Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T2)").WithLocation(16, 23), 109592Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(20, 16), 109595Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(26, 23), 109598Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T3)").WithLocation(27, 23), 109607Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(38, 23), 109610Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T4)").WithLocation(39, 23), 109616Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(43, 16), 109619Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(49, 23), 109622Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T5)").WithLocation(50, 23), 109628Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t5").WithLocation(54, 16), 109631Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(4, 23), 109634Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T1)").WithLocation(5, 23)); 109809Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(3, 34), 109812Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 50), 109815Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(7, 49), 109818Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 56), 109824Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)t").WithLocation(11, 34), 109830Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)t").WithLocation(14, 50), 109836Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)u").WithLocation(15, 49), 109842Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)u").WithLocation(18, 56)); 109880Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(19, 44), 109886Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(20, 51), 109895Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(22, 51), 109901Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(23, 32), 110065Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(4, 31), 110074Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(5, 47), 112467Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_g").WithLocation(15, 28), 112470Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_f").WithLocation(19, 28)); 112506Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_f").WithLocation(10, 28), 112512Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_g").WithLocation(18, 28)); 131895Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 58), 131898Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 78) 136935Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(8, 32)); 139933Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(7, 32), 139936Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(11, 19), 139942Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(14, 28)); 139977Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(12, 19), 139983Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 28)); 140016Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(11, 24), 140022Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(14, 28)); 140057Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(12, 24), 140060Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(12, 24), 140069Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 28), 140072Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 28)); 140103Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(12, 42), 140106Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(14, 32)); 147693Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(9, 16), 147696Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(16, 16), 147699Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t3").WithLocation(23, 16), 147702Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(30, 16), 147705Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t7").WithLocation(51, 16)); 147784Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(9, 16), 147787Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(30, 16), 147790Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t7").WithLocation(51, 16)); 147911Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r2").WithLocation(22, 16), 147917Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r3").WithLocation(38, 16), 147923Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r4").WithLocation(54, 16), 147929Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r7").WithLocation(86, 16)); 147966Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(4, 26), 147969Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(5, 42), 147972Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(7, 44), 147975Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").WithLocation(8, 41), 147978Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").WithLocation(9, 48), 147981Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").WithLocation(11, 50), 147987Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(T)").WithLocation(12, 26), 147993Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(T)").WithLocation(13, 42), 147999Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(T)").WithLocation(15, 44), 148005Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(U)").WithLocation(16, 41), 148011Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(U)").WithLocation(17, 48), 148017Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(U)").WithLocation(19, 50), 148023Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)default(T)").WithLocation(20, 41), 148029Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)default(T)").WithLocation(21, 48), 148038Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)default(T)").WithLocation(23, 50), 148044Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)default(T)").WithLocation(24, 29), 148193Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(5, 40), 148196Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 56), 148199Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(8, 58), 148202Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 55), 148205Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 62), 148208Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(12, 64), 148211Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(13, 40), 148217Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(14, 56), 148220Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(16, 58), 148223Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(17, 55), 148226Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(18, 62), 148229Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(20, 64), 148232Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(21, 55), 148238Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(22, 62), 148244Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(24, 64), 148247Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(25, 43), 148256Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(5, 40), 148259Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 56), 148262Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(8, 58), 148265Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 55), 148268Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 62), 148271Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(12, 64), 148277Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(13, 40), 148283Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(14, 56), 148289Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(16, 58), 148295Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(17, 55), 148301Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(18, 62), 148307Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(20, 64), 148313Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(21, 55), 148319Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(22, 62), 148328Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(24, 64), 148334Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(25, 43), 148357Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(4, 46), 148360Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 52), 148366Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(6, 46), 148369Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(7, 52)); 148375Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(4, 46), 148378Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 52), 148384Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(6, 46), 148390Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(7, 52)); 148607Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(4, 36), 148610Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(5, 52), 148613Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(7, 54), 148616Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(8, 36), 148622Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(9, 52), 148625Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(11, 54)); 148631Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(4, 36), 148634Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(5, 52), 148637Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(7, 54), 148643Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(8, 36), 148649Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(9, 52), 148655Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(11, 54)); 148717Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(5, 46), 148720Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 62), 148723Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(8, 64), 148729Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(dynamic)t").WithLocation(9, 46), 148735Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(dynamic)t").WithLocation(10, 62), 148741Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(dynamic)t").WithLocation(12, 64)); 148835Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16), 148984Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T1>()").WithLocation(8, 16), 148987Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T2>()").WithLocation(12, 16), 148990Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T3>()").WithLocation(16, 16), 148993Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T4>()").WithLocation(20, 16)); 149074Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(9, 16), 149080Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(14, 16), 149086Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t3").WithLocation(19, 16), 149092Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(24, 16)); 149115Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16)); 149139Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").WithLocation(7, 25), 149142Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").WithLocation(8, 43), 149145Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").WithLocation(9, 41), 149148Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").WithLocation(10, 42)); 149254Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : u").WithLocation(6, 67), 149257Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : u").WithLocation(7, 67), 149260Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : u").WithLocation(8, 78)); 149284Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? default").WithLocation(5, 28), 149287Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? default(T)").WithLocation(6, 28), 149290Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? default(U)").WithLocation(7, 43), 149293Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? u").WithLocation(9, 59), 149296Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? u").WithLocation(11, 70)); 149320Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= default").WithLocation(5, 28), 149326Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= default(T)").WithLocation(6, 28), 149332Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= default(U)").WithLocation(7, 43), 149338Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= u").WithLocation(9, 59), 149344Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= u").WithLocation(11, 70), 149377Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(8, 22), 149380Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(10, 22), 149383Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").WithLocation(14, 22), 149386Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u2").WithLocation(16, 22)); 149453Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => t, _ => default }").WithLocation(4, 36), 149456Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => default, _ => t }").WithLocation(5, 36), 149459Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => t, _ => default }").WithLocation(6, 52), 149462Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => default, _ => t }").WithLocation(7, 52), 149465Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => t, _ => default }").WithLocation(10, 54), 149468Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => default, _ => t }").WithLocation(11, 54)); 149492Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { t, default }[0]").WithLocation(4, 28), 149495Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { default, t }[0]").WithLocation(5, 28), 149498Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { t, default }[0]").WithLocation(6, 44), 149501Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { default, t }[0]").WithLocation(7, 44), 149504Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { t, default }[0]").WithLocation(10, 46), 149507Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { default, t }[0]").WithLocation(11, 46)); 149531Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : default").WithLocation(4, 36), 149534Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : t").WithLocation(5, 36), 149537Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : default").WithLocation(6, 52), 149540Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : t").WithLocation(7, 52), 149543Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : default").WithLocation(10, 54), 149546Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : t").WithLocation(11, 54)); 149571Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(5, 74), 149574Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(6, 64), 149577Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(7, 90), 149580Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(8, 80), 149583Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(11, 92), 149586Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(12, 82)); 149614Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(11, 24), 149617Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(13, 25)); 149643Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? Get<T>() : default").WithLocation(8, 31), 149646Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : Get<T>()").WithLocation(9, 31), 149649Diagnostic(ErrorCode.WRN_NullReferenceReturn, "false ? Get<T>() : default").WithLocation(10, 25), 149652Diagnostic(ErrorCode.WRN_NullReferenceReturn, "true ? default : Get<T>()").WithLocation(13, 25)); 149961Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(7, 16), 149964Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(13, 16)); 153629Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T1)").WithLocation(4, 27), 153632Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T2)").WithLocation(5, 44), 153635Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T3)").WithLocation(6, 45), 153638Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T4)").WithLocation(7, 46)); 153665Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T1?)").WithLocation(4, 27), 153668Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T2?)").WithLocation(5, 44), 153671Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T3?)").WithLocation(6, 45), 153674Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T4?)").WithLocation(7, 46)); 153727Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(10, 30), 154053Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 41), 154056Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 41), 154059Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 42)); 154078Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 41), 154081Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 41), 154084Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 42)); 154103Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 41), 154106Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 41), 154109Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 42)); 154128Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 41), 154131Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 41), 154134Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 42)); 154154Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(6, 41), 154157Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 41), 154160Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 42)); 154180Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(6, 41), 154183Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 41), 154186Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 42)); 154207Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(7, 26)); 154227Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(4, 33), 154230Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 34)); 154245Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 50)); 154260Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(4, 50), 154263Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 51)); 154278Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 51)); 154293Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 52)); 154317Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 41), 154320Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 41), 154323Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(10, 42)); 154347Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 48), 154350Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 49)); 154369Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 49), 154372Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 49), 154375Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 50)); 154394Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 50), 154397Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 51)); 154417Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 44), 154420Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 45)); 154440Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(6, 45), 154443Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 45), 154446Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 46)); 154478Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(5, 56), 154481Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(6, 56), 154484Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(7, 57), 154487Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(12, 56), 154490Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(13, 58), 154493Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(14, 58), 154496Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(15, 59)); 154528Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(7, 60), 154531Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(8, 59), 154534Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(9, 60), 154537Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(10, 60), 154540Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(11, 61), 154543Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(13, 61), 154546Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(15, 62), 154549Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(16, 61), 154552Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(17, 62), 154555Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(18, 62), 154558Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(19, 63)); 154853Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(7, 16), 154856Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(12, 16), 154859Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t3").WithLocation(17, 16), 154862Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(22, 16), 154865Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t5").WithLocation(27, 16)); 154921Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y1").WithLocation(8, 16), 154924Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").WithLocation(14, 16), 154927Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y3").WithLocation(20, 16), 154930Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y4").WithLocation(26, 16), 154933Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y5").WithLocation(32, 16)); 154989Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t1").WithLocation(6, 16), 154992Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t2").WithLocation(10, 16), 154995Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t3").WithLocation(14, 16), 154998Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t4").WithLocation(18, 16), 155001Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t5").WithLocation(22, 16)); 155265Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { y1, x1 }[0]").WithLocation(6, 23), 155268Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { x1, y1 }[0]").WithLocation(7, 16), 155271Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { y2, x2 }[0]").WithLocation(11, 23), 155274Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { x2, y2 }[0]").WithLocation(12, 16), 155277Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { y3, x3 }[0]").WithLocation(16, 23), 155280Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { x3, y3 }[0]").WithLocation(17, 16)); 155643Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(7, 16), 155646Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(12, 16), 155649Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(17, 16)); 155658Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(7, 16), 155664Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(12, 16), 155670Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(17, 16)); 155948Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(8, 16) 157243Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s2").WithLocation(23, 20), 157249Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s2").WithLocation(47, 20)); 159007Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 43) 160626Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").WithLocation(9, 28));
Semantics\NullableReferenceTypesVsPatterns.cs (3)
2414Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").WithLocation(8, 80) 2439Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").WithLocation(8, 86) 2544Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s1?.ToString()").WithLocation(12, 35)
Semantics\OverloadResolutionPerfTests.cs (2)
624Diagnostic(ErrorCode.WRN_NullReferenceReturn, "i65535").WithLocation(65542, 16)); 656Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").WithLocation(16395, 16));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\PartialPropertiesTests.cs (1)
1757Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(27, 16),
Symbols\Source\NullablePublicAPITests.cs (1)
4773Diagnostic(ErrorCode.WRN_NullReferenceReturn, "z2").WithLocation(17, 16));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
344case ErrorCode.WRN_NullReferenceReturn: