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
:
1947
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),
5079
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 48)
15016
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(8, 35),
19798
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y11.F1").WithLocation(63, 16));
20331
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "x1").WithLocation(10, 16)
26960
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(18, 24)
26999
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "item.Value").WithLocation(22, 24)
27038
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "item.Value").WithLocation(22, 24)
27074
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(17, 24),
27110
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(16, 24)
27248
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(15, 20)
27635
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(16, 24)
27705
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(21, 24)
27741
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(16, 24),
27744
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(18, 24)
27781
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(22, 24)
27814
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(18, 24)
27847
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(18, 24)
27880
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(18, 24)
27915
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "value").WithLocation(18, 24),
27984
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "value").WithLocation(18, 24)
28019
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "value").WithLocation(18, 24),
28086
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "c.Value").WithLocation(18, 24)
28124
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(21, 20),
28127
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(24, 16)
28191
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(19, 20)
28225
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(15, 20)
28259
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(19, 20)
28293
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t.Value").WithLocation(19, 20)
28327
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(15, 20)
28360
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(18, 24)
28441
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "IsOk switch { true => throw null!, _ => Value }").WithLocation(13, 16)
28491
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "IsOk ? throw null! : Value").WithLocation(13, 16)
29717
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 16),
29723
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(15, 16)
29755
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 16),
29761
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(15, 16)
29793
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 16),
29796
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(15, 16)
32363
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default", isSuppressed: false).WithLocation(31, 20),
32366
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default", isSuppressed: false).WithLocation(41, 20));
39625
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(35, 16),
39757
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(32, 16)
39837
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(35, 16),
39892
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(13, 22),
39898
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(25, 22),
40028
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(7, 22),
40031
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(13, 22),
40040
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(25, 22),
45767
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(13, 16),
45770
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(19, 20)
45795
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(11, 16)
45820
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(9, 20)
48056
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(4, 50)
48760
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(9, 20)
48785
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(11, 16)
55903
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s?.ToString()").WithLocation(8, 57)
55928
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s?.ToString()").WithLocation(8, 66)
56014
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s1?.ToString()").WithLocation(9, 48)
56171
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? null : null").WithLocation(9, 24)
56234
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : default").WithLocation(9, 24)
56301
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? x : y").WithLocation(11, 24)
56399
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { _ => null }").WithLocation(9, 24)
56433
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { true => x, _ => y }").WithLocation(11, 24)
56633
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(10, 31),
56636
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(11, 31),
57153
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? x : y").WithLocation(4, 47),
57156
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? x : y!").WithLocation(6, 47));
58031
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 32)
58951
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b1.G").WithLocation(11, 16),
58957
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b3.G").WithLocation(30, 16));
59006
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "a1.F").WithLocation(10, 16),
59009
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "a3.F").WithLocation(29, 16));
59938
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u5").WithLocation(33, 16),
63305
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(12, 37),
63308
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(17, 49),
63311
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(24, 23),
63314
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(29, 35)
63405
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(20, 22),
63408
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(25, 22),
63411
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(30, 34),
63414
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(35, 34)
63514
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(19, 22),
63517
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(24, 22),
63520
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(29, 34),
63523
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(34, 34)
63623
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y1").WithLocation(22, 28),
63629
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y2").WithLocation(31, 28)
63678
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y1").WithLocation(22, 28),
63681
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y2").WithLocation(31, 28)
63961
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(22, 28)
64505
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y").WithLocation(9, 56));
64533
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y").WithLocation(9, 43),
64536
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y").WithLocation(10, 33),
64539
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "x").WithLocation(14, 33),
64542
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "x").WithLocation(15, 43));
65415
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y").WithLocation(8, 29),
65677
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(7, 48));
67646
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(22, 22));
68057
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(22, 16));
69342
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "x").WithLocation(9, 26));
69427
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T?>()").WithLocation(7, 28));
69482
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<object?>()").WithLocation(10, 33),
76080
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 16),
76083
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(12, 60)
76121
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 22),
76124
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(8, 22)
76169
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(11, 26),
76172
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(13, 26)
76202
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(6, 22),
76205
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(10, 22),
76208
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(14, 22)
76298
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 22)
76327
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(11, 26)
76402
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(8, 22),
76405
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(9, 22),
76408
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(26, 26)
76455
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(8, 22),
76458
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(9, 22),
76461
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(26, 26)
79248
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(10, 27),
79254
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(string)null").WithLocation(11, 27),
79257
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(string?)null").WithLocation(12, 27),
79260
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null as string").WithLocation(13, 27),
79266
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(string)").WithLocation(15, 27),
79269
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(16, 27),
79272
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(p != null) ? p.MiddleName : null").WithLocation(17, 35),
79275
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "p.MiddleName ?? null").WithLocation(18, 35)
81129
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 17));
81261
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 26),
81264
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(4, 35));
81272
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 26),
81275
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(4, 35));
81283
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 26),
81286
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(4, 35));
82125
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(7, 12),
82128
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(10, 12),
82137
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(19, 12),
82140
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(22, 12),
82454
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(4, 37)
82766
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(4, 17));
83210
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(4, 25),
83213
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(5, 33),
83216
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 40),
83219
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(7, 37),
83222
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(Task<T>)").WithLocation(8, 37),
83225
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(9, 53),
83228
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(10, 48));
83261
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 39),
83264
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(8, 43),
83267
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(9, 43),
83270
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(10, 59),
83276
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(13, 40),
83279
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(14, 44));
83368
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)null").WithLocation(6, 16),
83371
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)null").WithLocation(10, 16),
83374
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(14, 16),
83377
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(18, 16));
91242
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(17, 20),
91248
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(19, 20),
91254
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o1").WithLocation(25, 20),
91257
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o2").WithLocation(27, 20));
91301
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(19, 20),
91307
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(21, 20),
91313
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o1").WithLocation(27, 20),
91316
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o2").WithLocation(29, 20));
109664
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(9, 16),
109667
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(15, 23),
109670
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T2)").WithLocation(16, 23),
109676
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(20, 16),
109679
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(26, 23),
109682
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T3)").WithLocation(27, 23),
109691
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(38, 23),
109694
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T4)").WithLocation(39, 23),
109700
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(43, 16),
109703
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(49, 23),
109706
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T5)").WithLocation(50, 23),
109712
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t5").WithLocation(54, 16),
109715
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(4, 23),
109718
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T1)").WithLocation(5, 23));
109893
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(3, 34),
109896
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 50),
109899
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(7, 49),
109902
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 56),
109908
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(object)t").WithLocation(11, 34),
109914
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(object)t").WithLocation(14, 50),
109920
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(object)u").WithLocation(15, 49),
109926
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(object)u").WithLocation(18, 56));
109964
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(19, 44),
109970
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(20, 51),
109979
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(22, 51),
109985
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(23, 32),
110149
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(4, 31),
110158
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(5, 47),
112551
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "_g").WithLocation(15, 28),
112554
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "_f").WithLocation(19, 28));
112590
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "_f").WithLocation(10, 28),
112596
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "_g").WithLocation(18, 28));
131976
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(8, 58),
131979
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 78)
137016
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(8, 32));
140014
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(7, 32),
140017
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(11, 19),
140023
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(14, 28));
140058
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(12, 19),
140064
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 28));
140097
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(11, 24),
140103
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(14, 28));
140138
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(12, 24),
140141
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(12, 24),
140150
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 28),
140153
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 28));
140184
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(12, 42),
140187
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(14, 32));
147808
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(9, 16),
147811
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(16, 16),
147814
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t3").WithLocation(23, 16),
147817
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(30, 16),
147820
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t7").WithLocation(51, 16));
147899
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(9, 16),
147902
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(30, 16),
147905
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t7").WithLocation(51, 16));
148026
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "r2").WithLocation(22, 16),
148032
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "r3").WithLocation(38, 16),
148038
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "r4").WithLocation(54, 16),
148044
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "r7").WithLocation(86, 16));
148081
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(4, 26),
148084
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(5, 42),
148087
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(7, 44),
148090
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(U)").WithLocation(8, 41),
148093
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(U)").WithLocation(9, 48),
148096
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(U)").WithLocation(11, 50),
148102
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(T)").WithLocation(12, 26),
148108
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(T)").WithLocation(13, 42),
148114
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(T)").WithLocation(15, 44),
148120
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(U)").WithLocation(16, 41),
148126
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(U)").WithLocation(17, 48),
148132
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(U)").WithLocation(19, 50),
148138
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)default(T)").WithLocation(20, 41),
148144
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)default(T)").WithLocation(21, 48),
148153
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)default(T)").WithLocation(23, 50),
148159
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)default(T)").WithLocation(24, 29),
148308
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(5, 40),
148311
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 56),
148314
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(8, 58),
148317
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 55),
148320
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 62),
148323
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(12, 64),
148326
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(13, 40),
148332
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(14, 56),
148335
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(16, 58),
148338
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(17, 55),
148341
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(18, 62),
148344
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(20, 64),
148347
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(21, 55),
148353
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(22, 62),
148359
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(24, 64),
148362
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(25, 43),
148371
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(5, 40),
148374
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 56),
148377
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(8, 58),
148380
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 55),
148383
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 62),
148386
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(12, 64),
148392
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(13, 40),
148398
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(14, 56),
148404
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(16, 58),
148410
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(17, 55),
148416
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(18, 62),
148422
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(20, 64),
148428
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(21, 55),
148434
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(22, 62),
148443
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(24, 64),
148449
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(25, 43),
148472
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(4, 46),
148475
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 52),
148481
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(6, 46),
148484
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(7, 52));
148490
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(4, 46),
148493
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 52),
148499
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(6, 46),
148505
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(7, 52));
148722
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(4, 36),
148725
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(5, 52),
148728
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(7, 54),
148731
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(8, 36),
148737
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(9, 52),
148740
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(11, 54));
148746
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(4, 36),
148749
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(5, 52),
148752
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(7, 54),
148758
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(8, 36),
148764
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(9, 52),
148770
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(11, 54));
148832
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(5, 46),
148835
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 62),
148838
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(8, 64),
148844
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(dynamic)t").WithLocation(9, 46),
148850
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(dynamic)t").WithLocation(10, 62),
148856
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(dynamic)t").WithLocation(12, 64));
148950
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 16),
149099
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T1>()").WithLocation(8, 16),
149102
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T2>()").WithLocation(12, 16),
149105
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T3>()").WithLocation(16, 16),
149108
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T4>()").WithLocation(20, 16));
149189
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(9, 16),
149195
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(14, 16),
149201
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t3").WithLocation(19, 16),
149207
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(24, 16));
149230
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 16));
149254
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Identity(F<T>())").WithLocation(7, 25),
149257
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Identity(F<T>())").WithLocation(8, 43),
149260
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Identity(F<T>())").WithLocation(9, 41),
149263
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Identity(F<T>())").WithLocation(10, 42));
149369
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : u").WithLocation(6, 67),
149372
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : u").WithLocation(7, 67),
149375
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : u").WithLocation(8, 78));
149399
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? default").WithLocation(5, 28),
149402
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? default(T)").WithLocation(6, 28),
149405
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? default(U)").WithLocation(7, 43),
149408
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? u").WithLocation(9, 59),
149411
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? u").WithLocation(11, 70));
149435
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= default").WithLocation(5, 28),
149441
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= default(T)").WithLocation(6, 28),
149447
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= default(U)").WithLocation(7, 43),
149453
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= u").WithLocation(9, 59),
149459
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= u").WithLocation(11, 70),
149492
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(8, 22),
149495
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(10, 22),
149498
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(U)").WithLocation(14, 22),
149501
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u2").WithLocation(16, 22));
149568
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => t, _ => default }").WithLocation(4, 36),
149571
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => default, _ => t }").WithLocation(5, 36),
149574
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => t, _ => default }").WithLocation(6, 52),
149577
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => default, _ => t }").WithLocation(7, 52),
149580
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => t, _ => default }").WithLocation(10, 54),
149583
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => default, _ => t }").WithLocation(11, 54));
149607
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { t, default }[0]").WithLocation(4, 28),
149610
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { default, t }[0]").WithLocation(5, 28),
149613
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { t, default }[0]").WithLocation(6, 44),
149616
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { default, t }[0]").WithLocation(7, 44),
149619
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { t, default }[0]").WithLocation(10, 46),
149622
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { default, t }[0]").WithLocation(11, 46));
149646
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : default").WithLocation(4, 36),
149649
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : t").WithLocation(5, 36),
149652
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : default").WithLocation(6, 52),
149655
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : t").WithLocation(7, 52),
149658
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : default").WithLocation(10, 54),
149661
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : t").WithLocation(11, 54));
149686
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(5, 74),
149689
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(6, 64),
149692
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(7, 90),
149695
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(8, 80),
149698
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(11, 92),
149701
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(12, 82));
149729
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(11, 24),
149732
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y").WithLocation(13, 25));
149758
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? Get<T>() : default").WithLocation(8, 31),
149761
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : Get<T>()").WithLocation(9, 31),
149764
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "false ? Get<T>() : default").WithLocation(10, 25),
149767
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "true ? default : Get<T>()").WithLocation(13, 25));
150076
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(7, 16),
150079
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(13, 16));
153744
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T1)").WithLocation(4, 27),
153747
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T2)").WithLocation(5, 44),
153750
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T3)").WithLocation(6, 45),
153753
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T4)").WithLocation(7, 46));
153780
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T1?)").WithLocation(4, 27),
153783
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T2?)").WithLocation(5, 44),
153786
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T3?)").WithLocation(6, 45),
153789
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T4?)").WithLocation(7, 46));
153842
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(10, 30),
154168
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 41),
154171
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 41),
154174
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 42));
154193
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 41),
154196
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 41),
154199
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 42));
154218
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 41),
154221
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 41),
154224
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 42));
154243
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 41),
154246
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 41),
154249
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 42));
154269
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(6, 41),
154272
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 41),
154275
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 42));
154295
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(6, 41),
154298
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 41),
154301
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 42));
154322
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(7, 26));
154342
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(4, 33),
154345
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 34));
154360
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 50));
154375
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(4, 50),
154378
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 51));
154393
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 51));
154408
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 52));
154432
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 41),
154435
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 41),
154438
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(10, 42));
154462
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 48),
154465
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 49));
154484
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 49),
154487
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 49),
154490
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 50));
154509
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 50),
154512
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 51));
154532
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 44),
154535
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 45));
154555
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(6, 45),
154558
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 45),
154561
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 46));
154593
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(5, 56),
154596
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(6, 56),
154599
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(7, 57),
154602
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(12, 56),
154605
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(13, 58),
154608
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(14, 58),
154611
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(15, 59));
154643
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(7, 60),
154646
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(8, 59),
154649
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(9, 60),
154652
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(10, 60),
154655
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(11, 61),
154658
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(13, 61),
154661
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(15, 62),
154664
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(16, 61),
154667
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(17, 62),
154670
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(18, 62),
154673
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(19, 63));
154968
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(7, 16),
154971
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(12, 16),
154974
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t3").WithLocation(17, 16),
154977
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(22, 16),
154980
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t5").WithLocation(27, 16));
155036
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y1").WithLocation(8, 16),
155039
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y2").WithLocation(14, 16),
155042
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y3").WithLocation(20, 16),
155045
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y4").WithLocation(26, 16),
155048
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y5").WithLocation(32, 16));
155104
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t1").WithLocation(6, 16),
155107
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t2").WithLocation(10, 16),
155110
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t3").WithLocation(14, 16),
155113
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t4").WithLocation(18, 16),
155116
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t5").WithLocation(22, 16));
155380
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { y1, x1 }[0]").WithLocation(6, 23),
155383
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { x1, y1 }[0]").WithLocation(7, 16),
155386
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { y2, x2 }[0]").WithLocation(11, 23),
155389
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { x2, y2 }[0]").WithLocation(12, 16),
155392
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { y3, x3 }[0]").WithLocation(16, 23),
155395
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { x3, y3 }[0]").WithLocation(17, 16));
155758
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(7, 16),
155761
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(12, 16),
155764
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(17, 16));
155773
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(7, 16),
155779
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(12, 16),
155785
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(17, 16));
156063
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(8, 16)
157358
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s2").WithLocation(23, 20),
157364
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s2").WithLocation(47, 20));
159122
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 43)
160744
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "x").WithLocation(9, 28));
Semantics\NullableReferenceTypesVsPatterns.cs (3)
2426
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s?.ToString()").WithLocation(8, 80)
2451
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s?.ToString()").WithLocation(8, 86)
2556
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)
332
case ErrorCode.
WRN_NullReferenceReturn
: