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)
79245
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(10, 27),
79251
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(string)null").WithLocation(11, 27),
79254
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(string?)null").WithLocation(12, 27),
79257
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null as string").WithLocation(13, 27),
79263
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(string)").WithLocation(15, 27),
79266
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(16, 27),
79269
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(p != null) ? p.MiddleName : null").WithLocation(17, 35),
79272
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "p.MiddleName ?? null").WithLocation(18, 35)
81126
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 17));
81258
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 26),
81261
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(4, 35));
81269
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 26),
81272
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(4, 35));
81280
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 26),
81283
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(4, 35));
82122
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(7, 12),
82125
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(10, 12),
82134
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(19, 12),
82137
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(22, 12),
82451
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(4, 37)
82763
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(4, 17));
83207
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(4, 25),
83210
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(5, 33),
83213
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 40),
83216
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(7, 37),
83219
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(Task<T>)").WithLocation(8, 37),
83222
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(9, 53),
83225
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(10, 48));
83258
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 39),
83261
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(8, 43),
83264
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(9, 43),
83267
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(10, 59),
83273
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(13, 40),
83276
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(14, 44));
83365
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)null").WithLocation(6, 16),
83368
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)null").WithLocation(10, 16),
83371
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(14, 16),
83374
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(18, 16));
91239
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(17, 20),
91245
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(19, 20),
91251
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o1").WithLocation(25, 20),
91254
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o2").WithLocation(27, 20));
91298
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(19, 20),
91304
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(21, 20),
91310
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o1").WithLocation(27, 20),
91313
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o2").WithLocation(29, 20));
109661
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(9, 16),
109664
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(15, 23),
109667
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T2)").WithLocation(16, 23),
109673
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(20, 16),
109676
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(26, 23),
109679
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T3)").WithLocation(27, 23),
109688
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(38, 23),
109691
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T4)").WithLocation(39, 23),
109697
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(43, 16),
109700
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(49, 23),
109703
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T5)").WithLocation(50, 23),
109709
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t5").WithLocation(54, 16),
109712
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(4, 23),
109715
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T1)").WithLocation(5, 23));
109890
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(3, 34),
109893
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 50),
109896
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(7, 49),
109899
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 56),
109905
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(object)t").WithLocation(11, 34),
109911
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(object)t").WithLocation(14, 50),
109917
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(object)u").WithLocation(15, 49),
109923
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(object)u").WithLocation(18, 56));
109961
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(19, 44),
109967
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(20, 51),
109976
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(22, 51),
109982
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(23, 32),
110146
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(4, 31),
110155
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(5, 47),
112548
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "_g").WithLocation(15, 28),
112551
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "_f").WithLocation(19, 28));
112587
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "_f").WithLocation(10, 28),
112593
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "_g").WithLocation(18, 28));
131973
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(8, 58),
131976
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 78)
137013
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(8, 32));
140011
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(7, 32),
140014
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(11, 19),
140020
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(14, 28));
140055
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(12, 19),
140061
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 28));
140094
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(11, 24),
140100
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(14, 28));
140135
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(12, 24),
140138
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(12, 24),
140147
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 28),
140150
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 28));
140181
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(12, 42),
140184
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(14, 32));
147805
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(9, 16),
147808
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(16, 16),
147811
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t3").WithLocation(23, 16),
147814
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(30, 16),
147817
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t7").WithLocation(51, 16));
147896
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(9, 16),
147899
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(30, 16),
147902
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t7").WithLocation(51, 16));
148023
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "r2").WithLocation(22, 16),
148029
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "r3").WithLocation(38, 16),
148035
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "r4").WithLocation(54, 16),
148041
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "r7").WithLocation(86, 16));
148078
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(4, 26),
148081
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(5, 42),
148084
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(7, 44),
148087
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(U)").WithLocation(8, 41),
148090
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(U)").WithLocation(9, 48),
148093
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(U)").WithLocation(11, 50),
148099
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(T)").WithLocation(12, 26),
148105
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(T)").WithLocation(13, 42),
148111
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(T)").WithLocation(15, 44),
148117
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(U)").WithLocation(16, 41),
148123
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(U)").WithLocation(17, 48),
148129
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(U)").WithLocation(19, 50),
148135
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)default(T)").WithLocation(20, 41),
148141
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)default(T)").WithLocation(21, 48),
148150
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)default(T)").WithLocation(23, 50),
148156
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)default(T)").WithLocation(24, 29),
148305
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(5, 40),
148308
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 56),
148311
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(8, 58),
148314
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 55),
148317
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 62),
148320
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(12, 64),
148323
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(13, 40),
148329
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(14, 56),
148332
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(16, 58),
148335
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(17, 55),
148338
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(18, 62),
148341
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(20, 64),
148344
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(21, 55),
148350
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(22, 62),
148356
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(24, 64),
148359
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(25, 43),
148368
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(5, 40),
148371
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 56),
148374
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(8, 58),
148377
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 55),
148380
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 62),
148383
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(12, 64),
148389
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(13, 40),
148395
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(14, 56),
148401
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(16, 58),
148407
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(17, 55),
148413
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(18, 62),
148419
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(20, 64),
148425
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(21, 55),
148431
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(22, 62),
148440
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(24, 64),
148446
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(25, 43),
148469
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(4, 46),
148472
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 52),
148478
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(6, 46),
148481
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(7, 52));
148487
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(4, 46),
148490
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 52),
148496
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(6, 46),
148502
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(7, 52));
148719
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(4, 36),
148722
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(5, 52),
148725
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(7, 54),
148728
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(8, 36),
148734
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(9, 52),
148737
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(11, 54));
148743
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(4, 36),
148746
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(5, 52),
148749
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(7, 54),
148755
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(8, 36),
148761
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(9, 52),
148767
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(11, 54));
148829
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(5, 46),
148832
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 62),
148835
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(8, 64),
148841
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(dynamic)t").WithLocation(9, 46),
148847
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(dynamic)t").WithLocation(10, 62),
148853
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(dynamic)t").WithLocation(12, 64));
148947
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 16),
149096
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T1>()").WithLocation(8, 16),
149099
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T2>()").WithLocation(12, 16),
149102
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T3>()").WithLocation(16, 16),
149105
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T4>()").WithLocation(20, 16));
149186
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(9, 16),
149192
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(14, 16),
149198
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t3").WithLocation(19, 16),
149204
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(24, 16));
149227
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 16));
149251
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Identity(F<T>())").WithLocation(7, 25),
149254
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Identity(F<T>())").WithLocation(8, 43),
149257
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Identity(F<T>())").WithLocation(9, 41),
149260
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Identity(F<T>())").WithLocation(10, 42));
149366
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : u").WithLocation(6, 67),
149369
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : u").WithLocation(7, 67),
149372
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : u").WithLocation(8, 78));
149396
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? default").WithLocation(5, 28),
149399
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? default(T)").WithLocation(6, 28),
149402
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? default(U)").WithLocation(7, 43),
149405
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? u").WithLocation(9, 59),
149408
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? u").WithLocation(11, 70));
149432
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= default").WithLocation(5, 28),
149438
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= default(T)").WithLocation(6, 28),
149444
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= default(U)").WithLocation(7, 43),
149450
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= u").WithLocation(9, 59),
149456
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= u").WithLocation(11, 70),
149489
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(8, 22),
149492
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(10, 22),
149495
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(U)").WithLocation(14, 22),
149498
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u2").WithLocation(16, 22));
149565
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => t, _ => default }").WithLocation(4, 36),
149568
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => default, _ => t }").WithLocation(5, 36),
149571
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => t, _ => default }").WithLocation(6, 52),
149574
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => default, _ => t }").WithLocation(7, 52),
149577
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => t, _ => default }").WithLocation(10, 54),
149580
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => default, _ => t }").WithLocation(11, 54));
149604
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { t, default }[0]").WithLocation(4, 28),
149607
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { default, t }[0]").WithLocation(5, 28),
149610
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { t, default }[0]").WithLocation(6, 44),
149613
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { default, t }[0]").WithLocation(7, 44),
149616
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { t, default }[0]").WithLocation(10, 46),
149619
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { default, t }[0]").WithLocation(11, 46));
149643
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : default").WithLocation(4, 36),
149646
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : t").WithLocation(5, 36),
149649
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : default").WithLocation(6, 52),
149652
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : t").WithLocation(7, 52),
149655
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : default").WithLocation(10, 54),
149658
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : t").WithLocation(11, 54));
149683
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(5, 74),
149686
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(6, 64),
149689
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(7, 90),
149692
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(8, 80),
149695
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(11, 92),
149698
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(12, 82));
149726
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(11, 24),
149729
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y").WithLocation(13, 25));
149755
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? Get<T>() : default").WithLocation(8, 31),
149758
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : Get<T>()").WithLocation(9, 31),
149761
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "false ? Get<T>() : default").WithLocation(10, 25),
149764
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "true ? default : Get<T>()").WithLocation(13, 25));
150073
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(7, 16),
150076
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(13, 16));
153741
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T1)").WithLocation(4, 27),
153744
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T2)").WithLocation(5, 44),
153747
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T3)").WithLocation(6, 45),
153750
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T4)").WithLocation(7, 46));
153777
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T1?)").WithLocation(4, 27),
153780
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T2?)").WithLocation(5, 44),
153783
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T3?)").WithLocation(6, 45),
153786
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T4?)").WithLocation(7, 46));
153839
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(10, 30),
154165
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 41),
154168
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 41),
154171
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 42));
154190
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 41),
154193
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 41),
154196
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 42));
154215
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 41),
154218
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 41),
154221
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 42));
154240
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 41),
154243
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 41),
154246
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 42));
154266
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(6, 41),
154269
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 41),
154272
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 42));
154292
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(6, 41),
154295
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 41),
154298
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 42));
154319
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(7, 26));
154339
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(4, 33),
154342
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 34));
154357
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 50));
154372
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(4, 50),
154375
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 51));
154390
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 51));
154405
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 52));
154429
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 41),
154432
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 41),
154435
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(10, 42));
154459
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 48),
154462
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 49));
154481
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 49),
154484
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 49),
154487
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 50));
154506
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 50),
154509
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 51));
154529
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 44),
154532
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 45));
154552
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(6, 45),
154555
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 45),
154558
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 46));
154590
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(5, 56),
154593
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(6, 56),
154596
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(7, 57),
154599
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(12, 56),
154602
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(13, 58),
154605
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(14, 58),
154608
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(15, 59));
154640
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(7, 60),
154643
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(8, 59),
154646
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(9, 60),
154649
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(10, 60),
154652
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(11, 61),
154655
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(13, 61),
154658
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(15, 62),
154661
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(16, 61),
154664
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(17, 62),
154667
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(18, 62),
154670
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(19, 63));
154965
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(7, 16),
154968
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(12, 16),
154971
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t3").WithLocation(17, 16),
154974
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(22, 16),
154977
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t5").WithLocation(27, 16));
155033
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y1").WithLocation(8, 16),
155036
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y2").WithLocation(14, 16),
155039
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y3").WithLocation(20, 16),
155042
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y4").WithLocation(26, 16),
155045
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y5").WithLocation(32, 16));
155101
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t1").WithLocation(6, 16),
155104
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t2").WithLocation(10, 16),
155107
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t3").WithLocation(14, 16),
155110
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t4").WithLocation(18, 16),
155113
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t5").WithLocation(22, 16));
155377
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { y1, x1 }[0]").WithLocation(6, 23),
155380
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { x1, y1 }[0]").WithLocation(7, 16),
155383
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { y2, x2 }[0]").WithLocation(11, 23),
155386
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { x2, y2 }[0]").WithLocation(12, 16),
155389
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { y3, x3 }[0]").WithLocation(16, 23),
155392
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { x3, y3 }[0]").WithLocation(17, 16));
155755
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(7, 16),
155758
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(12, 16),
155761
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(17, 16));
155770
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(7, 16),
155776
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(12, 16),
155782
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(17, 16));
156060
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(8, 16)
157355
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s2").WithLocation(23, 20),
157361
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s2").WithLocation(47, 20));
159119
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 43)
160741
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)
1784
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
: