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