515 references to WRN_NullReferenceReturn
Microsoft.CodeAnalysis.CSharp (6)
Errors\ErrorFacts.cs (3)
30nullableWarnings.Add(GetId(ErrorCode.WRN_NullReferenceReturn)); 420case ErrorCode.WRN_NullReferenceReturn: 1890case ErrorCode.WRN_NullReferenceReturn:
FlowAnalysis\NullableWalker.cs (2)
2262ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullAsNonNullable, location); 2284ReportDiagnostic(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.Semantic.UnitTests (505)
Semantics\DelegateTypeTests.cs (2)
7019Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x2").WithLocation(11, 44), 7028Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").WithLocation(15, 44),
Semantics\LambdaTests.cs (24)
4232Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(9, 52) 4282Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(18, 51), 4285Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(19, 41), 4291Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(20, 41), 4294Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(21, 41), 4300Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(23, 52), 4303Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(24, 50), 4309Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(25, 50), 4312Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(26, 50) 4347Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(17, 42), 4350Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(19, 53), 4353Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(20, 51) 4403Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(18, 54), 4406Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(19, 44), 4412Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(20, 44), 4415Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(21, 44), 4421Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(23, 55), 4424Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(24, 52), 4430Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(25, 52), 4433Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(26, 52) 4627Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(14, 83), 4633Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(18, 64) 5173Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(9, 36), 5479Diagnostic(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 (468)
156Diagnostic(ErrorCode.WRN_NullReferenceReturn, @"b ? """" : default", isSuppressed: false).WithLocation(10, 37), 159Diagnostic(ErrorCode.WRN_NullReferenceReturn, @"b ? """" : null", isSuppressed: false).WithLocation(14, 37)); 2251Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 44), 2257Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(7, 45) 2290Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 50), 2296Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(7, 51) 2447Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(5, 69), 2453Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(11, 69), 5060Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 48) 14994Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 35), 19755Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y11.F1").WithLocation(63, 16)); 20288Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x1").WithLocation(10, 16) 25126Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 25165Diagnostic(ErrorCode.WRN_NullReferenceReturn, "item.Value").WithLocation(22, 24) 25204Diagnostic(ErrorCode.WRN_NullReferenceReturn, "item.Value").WithLocation(22, 24) 25240Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(17, 24) 25273Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(16, 24) 25405Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(15, 20) 25706Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(16, 24) 25773Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(21, 24) 25809Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(16, 24), 25812Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 25849Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(22, 24) 25882Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 25915Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 25948Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 25983Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").WithLocation(18, 24), 26052Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").WithLocation(18, 24) 26087Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").WithLocation(18, 24), 26154Diagnostic(ErrorCode.WRN_NullReferenceReturn, "c.Value").WithLocation(18, 24) 26192Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(21, 20), 26195Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(24, 16) 26259Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(19, 20) 26293Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(15, 20) 26327Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(19, 20) 26361Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t.Value").WithLocation(19, 20) 26395Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(15, 20) 26428Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").WithLocation(18, 24) 26509Diagnostic(ErrorCode.WRN_NullReferenceReturn, "IsOk switch { true => throw null!, _ => Value }").WithLocation(13, 16) 26559Diagnostic(ErrorCode.WRN_NullReferenceReturn, "IsOk ? throw null! : Value").WithLocation(13, 16) 27750Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16), 27756Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(15, 16) 27788Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16), 27794Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(15, 16) 27826Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16), 27829Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(15, 16) 30396Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default", isSuppressed: false).WithLocation(31, 20), 30399Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default", isSuppressed: false).WithLocation(41, 20)); 37530Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(35, 16), 37662Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(32, 16) 37742Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(35, 16), 37797Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(13, 22), 37803Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(25, 22), 37933Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(7, 22), 37936Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(13, 22), 37945Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(25, 22), 43617Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(13, 16), 43620Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(19, 20) 43645Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(11, 16) 43670Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(9, 20) 45906Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(4, 50) 46610Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(9, 20) 46635Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(11, 16) 53640Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").WithLocation(8, 57) 53665Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").WithLocation(8, 66) 53751Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s1?.ToString()").WithLocation(9, 48) 53908Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? null : null").WithLocation(9, 24) 53971Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : default").WithLocation(9, 24) 54038Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? x : y").WithLocation(11, 24) 54136Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { _ => null }").WithLocation(9, 24) 54170Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { true => x, _ => y }").WithLocation(11, 24) 54370Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(10, 31), 54373Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(11, 31), 55522Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 32) 56442Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b1.G").WithLocation(11, 16), 56448Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b3.G").WithLocation(30, 16)); 56497Diagnostic(ErrorCode.WRN_NullReferenceReturn, "a1.F").WithLocation(10, 16), 56500Diagnostic(ErrorCode.WRN_NullReferenceReturn, "a3.F").WithLocation(29, 16)); 57401Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u5").WithLocation(33, 16), 60774Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(12, 37), 60777Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(17, 49), 60780Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(24, 23), 60783Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(29, 35) 60874Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(20, 22), 60877Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(25, 22), 60880Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(30, 34), 60883Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(35, 34) 60983Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(19, 22), 60986Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(24, 22), 60989Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(29, 34), 60992Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").WithLocation(34, 34) 61092Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y1").WithLocation(22, 28), 61098Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").WithLocation(31, 28) 61147Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y1").WithLocation(22, 28), 61150Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").WithLocation(31, 28) 61430Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(22, 28) 61945Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(9, 56)); 61973Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(9, 43), 61976Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(10, 33), 61979Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").WithLocation(14, 33), 61982Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").WithLocation(15, 43)); 62855Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(8, 29), 63117Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(7, 48)); 64171Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(22, 22)); 64559Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(22, 16)); 65819Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").WithLocation(9, 26)); 65904Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T?>()").WithLocation(7, 28)); 65959Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<object?>()").WithLocation(10, 33), 72321Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 16), 72324Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(12, 60) 72362Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 22), 72365Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 22) 72410Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(11, 26), 72413Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(13, 26) 72443Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(6, 22), 72446Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(10, 22), 72449Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(14, 22) 72539Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 22) 72568Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(11, 26) 72643Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 22), 72646Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(9, 22), 72649Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(26, 26) 72696Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 22), 72699Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(9, 22), 72702Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(26, 26) 75491Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(10, 27), 75497Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(string)null").WithLocation(11, 27), 75500Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(string?)null").WithLocation(12, 27), 75503Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null as string").WithLocation(13, 27), 75509Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(string)").WithLocation(15, 27), 75512Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(16, 27), 75515Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(p != null) ? p.MiddleName : null").WithLocation(17, 35), 75518Diagnostic(ErrorCode.WRN_NullReferenceReturn, "p.MiddleName ?? null").WithLocation(18, 35) 77372Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 17)); 77510Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 26), 77513Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(4, 35)); 77521Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 26), 77524Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(4, 35)); 77532Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(3, 26), 77535Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(4, 35)); 78374Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(7, 12), 78377Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(10, 12), 78386Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(19, 12), 78389Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(22, 12), 78703Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(4, 37) 79015Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(4, 17)); 79459Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(4, 25), 79462Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(5, 33), 79465Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 40), 79468Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(7, 37), 79471Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(Task<T>)").WithLocation(8, 37), 79474Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(9, 53), 79477Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(10, 48)); 79510Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 39), 79513Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(8, 43), 79516Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(9, 43), 79519Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(10, 59), 79525Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(13, 40), 79528Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(14, 44)); 79617Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)null").WithLocation(6, 16), 79620Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)null").WithLocation(10, 16), 79623Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(14, 16), 79626Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(18, 16)); 87497Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(17, 20), 87503Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(19, 20), 87509Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o1").WithLocation(25, 20), 87512Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o2").WithLocation(27, 20)); 87556Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(19, 20), 87562Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(21, 20), 87568Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o1").WithLocation(27, 20), 87571Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o2").WithLocation(29, 20)); 105810Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(9, 16), 105813Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(15, 23), 105816Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T2)").WithLocation(16, 23), 105822Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(20, 16), 105825Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(26, 23), 105828Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T3)").WithLocation(27, 23), 105837Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(38, 23), 105840Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T4)").WithLocation(39, 23), 105846Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(43, 16), 105849Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(49, 23), 105852Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T5)").WithLocation(50, 23), 105858Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t5").WithLocation(54, 16), 105861Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(4, 23), 105864Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T1)").WithLocation(5, 23)); 106039Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(3, 34), 106042Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 50), 106045Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(7, 49), 106048Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 56), 106054Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)t").WithLocation(11, 34), 106060Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)t").WithLocation(14, 50), 106066Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)u").WithLocation(15, 49), 106072Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)u").WithLocation(18, 56)); 106110Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(19, 44), 106116Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(20, 51), 106125Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(22, 51), 106131Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(23, 32), 106295Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(4, 31), 106304Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(5, 47), 108697Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_g").WithLocation(15, 28), 108700Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_f").WithLocation(19, 28)); 108736Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_f").WithLocation(10, 28), 108742Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_g").WithLocation(18, 28)); 128125Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(8, 58), 128128Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 78) 133165Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(8, 32)); 135633Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(7, 32), 135636Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(11, 19), 135642Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(14, 28)); 135677Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(12, 19), 135683Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 28)); 135716Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(11, 24), 135722Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(14, 28)); 135757Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(12, 24), 135760Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").WithLocation(12, 24), 135769Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 28), 135772Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 28)); 135803Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(12, 42), 135806Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").WithLocation(14, 32)); 143263Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(9, 16), 143266Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(16, 16), 143269Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t3").WithLocation(23, 16), 143272Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(30, 16), 143275Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t7").WithLocation(51, 16)); 143354Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(9, 16), 143357Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(30, 16), 143360Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t7").WithLocation(51, 16)); 143481Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r2").WithLocation(22, 16), 143487Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r3").WithLocation(38, 16), 143493Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r4").WithLocation(54, 16), 143499Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r7").WithLocation(86, 16)); 143536Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(4, 26), 143539Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(5, 42), 143542Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(7, 44), 143545Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").WithLocation(8, 41), 143548Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").WithLocation(9, 48), 143551Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").WithLocation(11, 50), 143557Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(T)").WithLocation(12, 26), 143563Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(T)").WithLocation(13, 42), 143569Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(T)").WithLocation(15, 44), 143575Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(U)").WithLocation(16, 41), 143581Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(U)").WithLocation(17, 48), 143587Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(U)").WithLocation(19, 50), 143593Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)default(T)").WithLocation(20, 41), 143599Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)default(T)").WithLocation(21, 48), 143608Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)default(T)").WithLocation(23, 50), 143614Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)default(T)").WithLocation(24, 29), 143763Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(5, 40), 143766Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 56), 143769Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(8, 58), 143772Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 55), 143775Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 62), 143778Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(12, 64), 143781Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(13, 40), 143787Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(14, 56), 143790Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(16, 58), 143793Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(17, 55), 143796Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(18, 62), 143799Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(20, 64), 143802Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(21, 55), 143808Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(22, 62), 143814Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(24, 64), 143817Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(25, 43), 143826Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(5, 40), 143829Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 56), 143832Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(8, 58), 143835Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 55), 143838Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 62), 143841Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(12, 64), 143847Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(13, 40), 143853Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(14, 56), 143859Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(16, 58), 143865Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(17, 55), 143871Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(18, 62), 143877Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(20, 64), 143883Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(21, 55), 143889Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(22, 62), 143898Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").WithLocation(24, 64), 143904Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").WithLocation(25, 43), 143927Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(4, 46), 143930Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 52), 143936Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(6, 46), 143939Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(7, 52)); 143945Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(4, 46), 143948Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 52), 143954Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").WithLocation(6, 46), 143960Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").WithLocation(7, 52)); 144177Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(4, 36), 144180Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(5, 52), 144183Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(7, 54), 144186Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(8, 36), 144192Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(9, 52), 144195Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(11, 54)); 144201Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(4, 36), 144204Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(5, 52), 144207Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").WithLocation(7, 54), 144213Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(8, 36), 144219Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(9, 52), 144225Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").WithLocation(11, 54)); 144287Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(5, 46), 144290Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 62), 144293Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(8, 64), 144299Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(dynamic)t").WithLocation(9, 46), 144305Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(dynamic)t").WithLocation(10, 62), 144311Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(dynamic)t").WithLocation(12, 64)); 144405Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16), 144554Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T1>()").WithLocation(8, 16), 144557Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T2>()").WithLocation(12, 16), 144560Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T3>()").WithLocation(16, 16), 144563Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T4>()").WithLocation(20, 16)); 144644Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(9, 16), 144650Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(14, 16), 144656Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t3").WithLocation(19, 16), 144662Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(24, 16)); 144685Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 16)); 144709Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").WithLocation(7, 25), 144712Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").WithLocation(8, 43), 144715Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").WithLocation(9, 41), 144718Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").WithLocation(10, 42)); 144824Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : u").WithLocation(6, 67), 144827Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : u").WithLocation(7, 67), 144830Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : u").WithLocation(8, 78)); 144854Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? default").WithLocation(5, 28), 144857Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? default(T)").WithLocation(6, 28), 144860Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? default(U)").WithLocation(7, 43), 144863Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? u").WithLocation(9, 59), 144866Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? u").WithLocation(11, 70)); 144890Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= default").WithLocation(5, 28), 144896Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= default(T)").WithLocation(6, 28), 144902Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= default(U)").WithLocation(7, 43), 144908Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= u").WithLocation(9, 59), 144914Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= u").WithLocation(11, 70), 144947Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(8, 22), 144950Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(10, 22), 144953Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").WithLocation(14, 22), 144956Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u2").WithLocation(16, 22)); 145023Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => t, _ => default }").WithLocation(4, 36), 145026Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => default, _ => t }").WithLocation(5, 36), 145029Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => t, _ => default }").WithLocation(6, 52), 145032Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => default, _ => t }").WithLocation(7, 52), 145035Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => t, _ => default }").WithLocation(10, 54), 145038Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => default, _ => t }").WithLocation(11, 54)); 145062Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { t, default }[0]").WithLocation(4, 28), 145065Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { default, t }[0]").WithLocation(5, 28), 145068Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { t, default }[0]").WithLocation(6, 44), 145071Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { default, t }[0]").WithLocation(7, 44), 145074Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { t, default }[0]").WithLocation(10, 46), 145077Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { default, t }[0]").WithLocation(11, 46)); 145101Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : default").WithLocation(4, 36), 145104Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : t").WithLocation(5, 36), 145107Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : default").WithLocation(6, 52), 145110Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : t").WithLocation(7, 52), 145113Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : default").WithLocation(10, 54), 145116Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : t").WithLocation(11, 54)); 145141Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(5, 74), 145144Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(6, 64), 145147Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(7, 90), 145150Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(8, 80), 145153Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(11, 92), 145156Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(12, 82)); 145184Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").WithLocation(11, 24), 145187Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").WithLocation(13, 25)); 145213Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? Get<T>() : default").WithLocation(8, 31), 145216Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : Get<T>()").WithLocation(9, 31), 145219Diagnostic(ErrorCode.WRN_NullReferenceReturn, "false ? Get<T>() : default").WithLocation(10, 25), 145222Diagnostic(ErrorCode.WRN_NullReferenceReturn, "true ? default : Get<T>()").WithLocation(13, 25)); 145531Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(7, 16), 145534Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(13, 16)); 149199Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T1)").WithLocation(4, 27), 149202Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T2)").WithLocation(5, 44), 149205Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T3)").WithLocation(6, 45), 149208Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T4)").WithLocation(7, 46)); 149235Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T1?)").WithLocation(4, 27), 149238Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T2?)").WithLocation(5, 44), 149241Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T3?)").WithLocation(6, 45), 149244Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T4?)").WithLocation(7, 46)); 149297Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").WithLocation(10, 30), 149623Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 41), 149626Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 41), 149629Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 42)); 149648Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 41), 149651Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 41), 149654Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 42)); 149673Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 41), 149676Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 41), 149679Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 42)); 149698Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 41), 149701Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 41), 149704Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 42)); 149724Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(6, 41), 149727Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 41), 149730Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 42)); 149750Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(6, 41), 149753Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 41), 149756Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 42)); 149777Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(7, 26)); 149797Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(4, 33), 149800Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 34)); 149815Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 50)); 149830Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(4, 50), 149833Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 51)); 149848Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 51)); 149863Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 52)); 149887Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(6, 41), 149890Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(9, 41), 149893Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(10, 42)); 149917Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 48), 149920Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 49)); 149939Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(5, 49), 149942Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 49), 149945Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 50)); 149964Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(8, 50), 149967Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 51)); 149987Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 44), 149990Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 45)); 150010Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(6, 45), 150013Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(9, 45), 150016Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(10, 46)); 150048Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(5, 56), 150051Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(6, 56), 150054Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(7, 57), 150057Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(12, 56), 150060Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(13, 58), 150063Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(14, 58), 150066Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(15, 59)); 150098Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(7, 60), 150101Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(8, 59), 150104Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(9, 60), 150107Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(10, 60), 150110Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(11, 61), 150113Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(13, 61), 150116Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(15, 62), 150119Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(16, 61), 150122Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(17, 62), 150125Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(18, 62), 150128Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").WithLocation(19, 63)); 150423Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").WithLocation(7, 16), 150426Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").WithLocation(12, 16), 150429Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t3").WithLocation(17, 16), 150432Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").WithLocation(22, 16), 150435Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t5").WithLocation(27, 16)); 150491Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y1").WithLocation(8, 16), 150494Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").WithLocation(14, 16), 150497Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y3").WithLocation(20, 16), 150500Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y4").WithLocation(26, 16), 150503Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y5").WithLocation(32, 16)); 150559Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t1").WithLocation(6, 16), 150562Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t2").WithLocation(10, 16), 150565Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t3").WithLocation(14, 16), 150568Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t4").WithLocation(18, 16), 150571Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t5").WithLocation(22, 16)); 150835Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { y1, x1 }[0]").WithLocation(6, 23), 150838Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { x1, y1 }[0]").WithLocation(7, 16), 150841Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { y2, x2 }[0]").WithLocation(11, 23), 150844Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { x2, y2 }[0]").WithLocation(12, 16), 150847Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { y3, x3 }[0]").WithLocation(16, 23), 150850Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { x3, y3 }[0]").WithLocation(17, 16)); 151213Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(7, 16), 151216Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(12, 16), 151219Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(17, 16)); 151228Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(7, 16), 151234Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(12, 16), 151240Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").WithLocation(17, 16)); 151518Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").WithLocation(8, 16) 152767Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s2").WithLocation(23, 20), 152773Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s2").WithLocation(47, 20)); 154531Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(15, 43) 156147Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").WithLocation(9, 28));
Semantics\NullableReferenceTypesVsPatterns.cs (3)
2417Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").WithLocation(8, 80) 2442Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").WithLocation(8, 86) 2547Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s1?.ToString()").WithLocation(12, 35)
Semantics\OverloadResolutionPerfTests.cs (2)
555Diagnostic(ErrorCode.WRN_NullReferenceReturn, "i65535").WithLocation(65542, 16)); 587Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").WithLocation(16395, 16));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\NullablePublicAPITests.cs (1)
4777Diagnostic(ErrorCode.WRN_NullReferenceReturn, "z2").WithLocation(17, 16));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
322case ErrorCode.WRN_NullReferenceReturn: