531 references to WRN_NullReferenceReturn
Microsoft.CodeAnalysis.CSharp (6)
Errors\ErrorFacts.cs (3)
30nullableWarnings.Add(GetId(ErrorCode.WRN_NullReferenceReturn)); 432case ErrorCode.WRN_NullReferenceReturn: 1946or ErrorCode.WRN_NullReferenceReturn
FlowAnalysis\NullableWalker.cs (2)
2451ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullAsNonNullable, location); 2473ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullReferenceAssignment, location);
Generated\ErrorFacts.Generated.cs (1)
196case ErrorCode.WRN_NullReferenceReturn:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (2)
231Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(14, 16), 234Diagnostic(ErrorCode.WRN_NullReferenceReturn, "await G((string?)null)").WithLocation(20, 16),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
FieldKeywordTests.cs (13)
5789Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 39)); 6186Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16)); 6215Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16), 6273Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16)); 6302Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16)); 6637Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(12, 16)); 6659Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(7, 28)); 6702Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(7, 28)); 7108Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16)); 7170Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16), 7342Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(9, 16)); 11890Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(11, 20)); 11963Diagnostic(ErrorCode.WRN_NullReferenceReturn, "field").WithLocation(12, 20));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (507)
Semantics\DelegateTypeTests.cs (2)
9806Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x2").WithLocation(11, 44), 9815Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").WithLocation(15, 44),
Semantics\LambdaTests.cs (24)
4242Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(9, 52) 4292Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(18, 51), 4295Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(19, 41), 4301Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(20, 41), 4304Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(21, 41), 4310Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(23, 52), 4313Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(24, 50), 4319Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(25, 50), 4322Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(26, 50) 4357Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(17, 42), 4360Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(19, 53), 4363Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(20, 51) 4413Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(18, 54), 4416Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(19, 44), 4422Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(20, 44), 4425Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(21, 44), 4431Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(23, 55), 4434Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(24, 52), 4440Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(25, 52), 4443Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(26, 52) 4637Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(14, 83), 4643Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(18, 64) 5210Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(9, 36), 5508Diagnostic(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) 15009Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 35), 19791Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y11.F1").WithLocation(63, 16)); 20324Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x1").WithLocation(10, 16) 26953Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 26992Diagnostic(ErrorCode.WRN_NullReferenceReturn, "item.Value").WithLocation(22, 24) 27031Diagnostic(ErrorCode.WRN_NullReferenceReturn, "item.Value").WithLocation(22, 24) 27067Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(17, 24) 27100Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(16, 24) 27232Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(15, 20) 27610Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(16, 24) 27677Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(21, 24) 27713Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(16, 24), 27716Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 27753Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(22, 24) 27786Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 27819Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 27852Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 27887Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").WithLocation(18, 24), 27956Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").WithLocation(18, 24) 27991Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").WithLocation(18, 24), 28058Diagnostic(ErrorCode.WRN_NullReferenceReturn, "c.Value").WithLocation(18, 24) 28096Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(21, 20), 28099Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(24, 16) 28163Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(19, 20) 28197Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(15, 20) 28231Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(19, 20) 28265Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t.Value").WithLocation(19, 20) 28299Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(15, 20) 28332Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 28413Diagnostic(ErrorCode.WRN_NullReferenceReturn, "IsOk switch { true => throw null!, _ => Value }").WithLocation(13, 16) 28463Diagnostic(ErrorCode.WRN_NullReferenceReturn, "IsOk ? throw null! : Value").WithLocation(13, 16) 29689Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16), 29695Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(15, 16) 29727Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16), 29733Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(15, 16) 29765Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16), 29768Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(15, 16) 32335Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default", isSuppressed: false).WithLocation(31, 20), 32338Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default", isSuppressed: false).WithLocation(41, 20)); 39597Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(35, 16), 39729Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(32, 16) 39809Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(35, 16), 39864Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(13, 22), 39870Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(25, 22), 40000Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(7, 22), 40003Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(13, 22), 40012Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(25, 22), 45739Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(13, 16), 45742Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(19, 20) 45767Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(11, 16) 45792Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(9, 20) 48028Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(4, 50) 48732Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(9, 20) 48757Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(11, 16) 55863Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").WithLocation(8, 57) 55888Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").WithLocation(8, 66) 55974Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s1?.ToString()").WithLocation(9, 48) 56131Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? null : null").WithLocation(9, 24) 56194Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : default").WithLocation(9, 24) 56261Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? x : y").WithLocation(11, 24) 56359Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { _ => null }").WithLocation(9, 24) 56393Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { true => x, _ => y }").WithLocation(11, 24) 56593Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(10, 31), 56596Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(11, 31), 57113Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? x : y").WithLocation(4, 47), 57116Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? x : y!").WithLocation(6, 47)); 57991Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 32) 58911Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b1.G").WithLocation(11, 16), 58917Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b3.G").WithLocation(30, 16)); 58966Diagnostic(ErrorCode.WRN_NullReferenceReturn, "a1.F").WithLocation(10, 16), 58969Diagnostic(ErrorCode.WRN_NullReferenceReturn, "a3.F").WithLocation(29, 16)); 59898Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u5").WithLocation(33, 16), 63265Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(12, 37), 63268Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(17, 49), 63271Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(24, 23), 63274Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(29, 35) 63365Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(20, 22), 63368Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(25, 22), 63371Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(30, 34), 63374Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(35, 34) 63474Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(19, 22), 63477Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(24, 22), 63480Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(29, 34), 63483Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(34, 34) 63583Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y1").WithLocation(22, 28), 63589Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").WithLocation(31, 28) 63638Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y1").WithLocation(22, 28), 63641Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").WithLocation(31, 28) 63921Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(22, 28) 64465Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(9, 56)); 64493Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(9, 43), 64496Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(10, 33), 64499Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").WithLocation(14, 33), 64502Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").WithLocation(15, 43)); 65375Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(8, 29), 65637Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(7, 48)); 67606Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(22, 22)); 68017Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(22, 16)); 69302Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").WithLocation(9, 26)); 69387Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T?>()").WithLocation(7, 28)); 69442Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<object?>()").WithLocation(10, 33), 76040Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 16), 76043Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(12, 60) 76081Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 22), 76084Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 22) 76129Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(11, 26), 76132Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(13, 26) 76162Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(6, 22), 76165Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(10, 22), 76168Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(14, 22) 76258Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 22) 76287Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(11, 26) 76362Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 22), 76365Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(9, 22), 76368Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(26, 26) 76415Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 22), 76418Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(9, 22), 76421Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(26, 26) 79208Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(10, 27), 79214Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(string)null").WithLocation(11, 27), 79217Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(string?)null").WithLocation(12, 27), 79220Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null as string").WithLocation(13, 27), 79226Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(string)").WithLocation(15, 27), 79229Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(16, 27), 79232Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(p != null) ? p.MiddleName : null").WithLocation(17, 35), 79235Diagnostic(ErrorCode.WRN_NullReferenceReturn, "p.MiddleName ?? null").WithLocation(18, 35) 81089Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 17)); 81221Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 26), 81224Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(4, 35)); 81232Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 26), 81235Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(4, 35)); 81243Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 26), 81246Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(4, 35)); 82085Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(7, 12), 82088Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(10, 12), 82097Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(19, 12), 82100Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(22, 12), 82414Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(4, 37) 82726Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(4, 17)); 83170Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(4, 25), 83173Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(5, 33), 83176Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 40), 83179Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(7, 37), 83182Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(Task<T>)").WithLocation(8, 37), 83185Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(9, 53), 83188Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(10, 48)); 83221Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 39), 83224Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(8, 43), 83227Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(9, 43), 83230Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(10, 59), 83236Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(13, 40), 83239Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(14, 44)); 83328Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)null").WithLocation(6, 16), 83331Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)null").WithLocation(10, 16), 83334Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(14, 16), 83337Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(18, 16)); 91208Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(17, 20), 91214Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(19, 20), 91220Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o1").WithLocation(25, 20), 91223Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o2").WithLocation(27, 20)); 91267Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(19, 20), 91273Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(21, 20), 91279Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o1").WithLocation(27, 20), 91282Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o2").WithLocation(29, 20)); 109602Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(9, 16), 109605Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(15, 23), 109608Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T2)").WithLocation(16, 23), 109614Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(20, 16), 109617Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(26, 23), 109620Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T3)").WithLocation(27, 23), 109629Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(38, 23), 109632Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T4)").WithLocation(39, 23), 109638Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(43, 16), 109641Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(49, 23), 109644Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T5)").WithLocation(50, 23), 109650Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t5").WithLocation(54, 16), 109653Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(4, 23), 109656Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T1)").WithLocation(5, 23)); 109831Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(3, 34), 109834Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 50), 109837Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(7, 49), 109840Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 56), 109846Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)t").WithLocation(11, 34), 109852Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)t").WithLocation(14, 50), 109858Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)u").WithLocation(15, 49), 109864Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)u").WithLocation(18, 56)); 109902Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(19, 44), 109908Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(20, 51), 109917Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(22, 51), 109923Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(23, 32), 110087Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(4, 31), 110096Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(5, 47), 112489Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_g").WithLocation(15, 28), 112492Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_f").WithLocation(19, 28)); 112528Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_f").WithLocation(10, 28), 112534Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_g").WithLocation(18, 28)); 131914Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 58), 131917Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 78) 136954Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(8, 32)); 139952Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(7, 32), 139955Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(11, 19), 139961Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(14, 28)); 139996Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(12, 19), 140002Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 28)); 140035Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(11, 24), 140041Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(14, 28)); 140076Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(12, 24), 140079Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(12, 24), 140088Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 28), 140091Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 28)); 140122Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(12, 42), 140125Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(14, 32)); 147746Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(9, 16), 147749Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(16, 16), 147752Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t3").WithLocation(23, 16), 147755Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(30, 16), 147758Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t7").WithLocation(51, 16)); 147837Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(9, 16), 147840Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(30, 16), 147843Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t7").WithLocation(51, 16)); 147964Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r2").WithLocation(22, 16), 147970Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r3").WithLocation(38, 16), 147976Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r4").WithLocation(54, 16), 147982Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r7").WithLocation(86, 16)); 148019Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(4, 26), 148022Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(5, 42), 148025Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(7, 44), 148028Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").WithLocation(8, 41), 148031Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").WithLocation(9, 48), 148034Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").WithLocation(11, 50), 148040Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(T)").WithLocation(12, 26), 148046Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(T)").WithLocation(13, 42), 148052Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(T)").WithLocation(15, 44), 148058Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(U)").WithLocation(16, 41), 148064Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(U)").WithLocation(17, 48), 148070Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(U)").WithLocation(19, 50), 148076Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)default(T)").WithLocation(20, 41), 148082Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)default(T)").WithLocation(21, 48), 148091Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)default(T)").WithLocation(23, 50), 148097Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)default(T)").WithLocation(24, 29), 148246Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(5, 40), 148249Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 56), 148252Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(8, 58), 148255Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 55), 148258Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 62), 148261Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(12, 64), 148264Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(13, 40), 148270Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(14, 56), 148273Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(16, 58), 148276Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(17, 55), 148279Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(18, 62), 148282Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(20, 64), 148285Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(21, 55), 148291Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(22, 62), 148297Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(24, 64), 148300Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(25, 43), 148309Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(5, 40), 148312Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 56), 148315Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(8, 58), 148318Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 55), 148321Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 62), 148324Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(12, 64), 148330Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(13, 40), 148336Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(14, 56), 148342Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(16, 58), 148348Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(17, 55), 148354Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(18, 62), 148360Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(20, 64), 148366Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(21, 55), 148372Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(22, 62), 148381Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(24, 64), 148387Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(25, 43), 148410Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(4, 46), 148413Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 52), 148419Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(6, 46), 148422Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(7, 52)); 148428Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(4, 46), 148431Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 52), 148437Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(6, 46), 148443Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(7, 52)); 148660Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(4, 36), 148663Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(5, 52), 148666Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(7, 54), 148669Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(8, 36), 148675Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(9, 52), 148678Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(11, 54)); 148684Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(4, 36), 148687Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(5, 52), 148690Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(7, 54), 148696Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(8, 36), 148702Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(9, 52), 148708Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(11, 54)); 148770Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(5, 46), 148773Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 62), 148776Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(8, 64), 148782Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(dynamic)t").WithLocation(9, 46), 148788Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(dynamic)t").WithLocation(10, 62), 148794Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(dynamic)t").WithLocation(12, 64)); 148888Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16), 149037Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T1>()").WithLocation(8, 16), 149040Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T2>()").WithLocation(12, 16), 149043Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T3>()").WithLocation(16, 16), 149046Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T4>()").WithLocation(20, 16)); 149127Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(9, 16), 149133Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(14, 16), 149139Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t3").WithLocation(19, 16), 149145Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(24, 16)); 149168Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16)); 149192Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").WithLocation(7, 25), 149195Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").WithLocation(8, 43), 149198Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").WithLocation(9, 41), 149201Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").WithLocation(10, 42)); 149307Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : u").WithLocation(6, 67), 149310Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : u").WithLocation(7, 67), 149313Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : u").WithLocation(8, 78)); 149337Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? default").WithLocation(5, 28), 149340Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? default(T)").WithLocation(6, 28), 149343Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? default(U)").WithLocation(7, 43), 149346Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? u").WithLocation(9, 59), 149349Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? u").WithLocation(11, 70)); 149373Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= default").WithLocation(5, 28), 149379Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= default(T)").WithLocation(6, 28), 149385Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= default(U)").WithLocation(7, 43), 149391Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= u").WithLocation(9, 59), 149397Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= u").WithLocation(11, 70), 149430Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(8, 22), 149433Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(10, 22), 149436Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").WithLocation(14, 22), 149439Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u2").WithLocation(16, 22)); 149506Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => t, _ => default }").WithLocation(4, 36), 149509Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => default, _ => t }").WithLocation(5, 36), 149512Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => t, _ => default }").WithLocation(6, 52), 149515Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => default, _ => t }").WithLocation(7, 52), 149518Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => t, _ => default }").WithLocation(10, 54), 149521Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => default, _ => t }").WithLocation(11, 54)); 149545Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { t, default }[0]").WithLocation(4, 28), 149548Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { default, t }[0]").WithLocation(5, 28), 149551Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { t, default }[0]").WithLocation(6, 44), 149554Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { default, t }[0]").WithLocation(7, 44), 149557Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { t, default }[0]").WithLocation(10, 46), 149560Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { default, t }[0]").WithLocation(11, 46)); 149584Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : default").WithLocation(4, 36), 149587Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : t").WithLocation(5, 36), 149590Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : default").WithLocation(6, 52), 149593Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : t").WithLocation(7, 52), 149596Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : default").WithLocation(10, 54), 149599Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : t").WithLocation(11, 54)); 149624Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(5, 74), 149627Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(6, 64), 149630Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(7, 90), 149633Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(8, 80), 149636Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(11, 92), 149639Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(12, 82)); 149667Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(11, 24), 149670Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(13, 25)); 149696Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? Get<T>() : default").WithLocation(8, 31), 149699Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : Get<T>()").WithLocation(9, 31), 149702Diagnostic(ErrorCode.WRN_NullReferenceReturn, "false ? Get<T>() : default").WithLocation(10, 25), 149705Diagnostic(ErrorCode.WRN_NullReferenceReturn, "true ? default : Get<T>()").WithLocation(13, 25)); 150014Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(7, 16), 150017Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(13, 16)); 153682Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T1)").WithLocation(4, 27), 153685Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T2)").WithLocation(5, 44), 153688Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T3)").WithLocation(6, 45), 153691Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T4)").WithLocation(7, 46)); 153718Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T1?)").WithLocation(4, 27), 153721Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T2?)").WithLocation(5, 44), 153724Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T3?)").WithLocation(6, 45), 153727Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T4?)").WithLocation(7, 46)); 153780Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(10, 30), 154106Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 41), 154109Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 41), 154112Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 42)); 154131Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 41), 154134Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 41), 154137Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 42)); 154156Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 41), 154159Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 41), 154162Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 42)); 154181Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 41), 154184Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 41), 154187Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 42)); 154207Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(6, 41), 154210Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 41), 154213Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 42)); 154233Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(6, 41), 154236Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 41), 154239Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 42)); 154260Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(7, 26)); 154280Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(4, 33), 154283Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 34)); 154298Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 50)); 154313Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(4, 50), 154316Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 51)); 154331Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 51)); 154346Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 52)); 154370Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 41), 154373Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 41), 154376Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(10, 42)); 154400Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 48), 154403Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 49)); 154422Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 49), 154425Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 49), 154428Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 50)); 154447Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 50), 154450Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 51)); 154470Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 44), 154473Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 45)); 154493Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(6, 45), 154496Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 45), 154499Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 46)); 154531Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(5, 56), 154534Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(6, 56), 154537Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(7, 57), 154540Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(12, 56), 154543Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(13, 58), 154546Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(14, 58), 154549Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(15, 59)); 154581Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(7, 60), 154584Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(8, 59), 154587Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(9, 60), 154590Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(10, 60), 154593Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(11, 61), 154596Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(13, 61), 154599Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(15, 62), 154602Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(16, 61), 154605Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(17, 62), 154608Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(18, 62), 154611Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(19, 63)); 154906Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(7, 16), 154909Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(12, 16), 154912Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t3").WithLocation(17, 16), 154915Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(22, 16), 154918Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t5").WithLocation(27, 16)); 154974Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y1").WithLocation(8, 16), 154977Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").WithLocation(14, 16), 154980Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y3").WithLocation(20, 16), 154983Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y4").WithLocation(26, 16), 154986Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y5").WithLocation(32, 16)); 155042Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t1").WithLocation(6, 16), 155045Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t2").WithLocation(10, 16), 155048Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t3").WithLocation(14, 16), 155051Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t4").WithLocation(18, 16), 155054Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t5").WithLocation(22, 16)); 155318Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { y1, x1 }[0]").WithLocation(6, 23), 155321Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { x1, y1 }[0]").WithLocation(7, 16), 155324Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { y2, x2 }[0]").WithLocation(11, 23), 155327Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { x2, y2 }[0]").WithLocation(12, 16), 155330Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { y3, x3 }[0]").WithLocation(16, 23), 155333Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { x3, y3 }[0]").WithLocation(17, 16)); 155696Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(7, 16), 155699Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(12, 16), 155702Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(17, 16)); 155711Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(7, 16), 155717Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(12, 16), 155723Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(17, 16)); 156001Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(8, 16) 157296Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s2").WithLocation(23, 20), 157302Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s2").WithLocation(47, 20)); 159060Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 43) 160679Diagnostic(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: