531 references to WRN_NullReferenceReturn
Microsoft.CodeAnalysis.CSharp (6)
Errors\ErrorFacts.cs (3)
30
nullableWarnings.Add(GetId(ErrorCode.
WRN_NullReferenceReturn
));
433
case ErrorCode.
WRN_NullReferenceReturn
:
1947
or ErrorCode.
WRN_NullReferenceReturn
FlowAnalysis\NullableWalker.cs (2)
2427
ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.
WRN_NullReferenceReturn
: ErrorCode.WRN_NullAsNonNullable, location);
2449
ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.
WRN_NullReferenceReturn
: ErrorCode.WRN_NullReferenceAssignment, location);
Generated\ErrorFacts.Generated.cs (1)
197
case ErrorCode.
WRN_NullReferenceReturn
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (2)
230
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(14, 16),
233
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "await G((string?)null)").WithLocation(20, 16),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
FieldKeywordTests.cs (13)
5664
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(9, 39));
6061
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(9, 16));
6090
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(9, 16),
6148
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(9, 16));
6177
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(9, 16));
6512
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(12, 16));
6534
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(7, 28));
6577
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(7, 28));
6983
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(9, 16));
7045
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(9, 16),
7217
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(9, 16));
11765
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(11, 20));
11838
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "field").WithLocation(12, 20));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (507)
Semantics\DelegateTypeTests.cs (2)
9832
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "x2").WithLocation(11, 44),
9841
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y2").WithLocation(15, 44),
Semantics\LambdaTests.cs (24)
4247
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(9, 52)
4297
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(18, 51),
4300
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(19, 41),
4306
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(20, 41),
4309
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(21, 41),
4315
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(23, 52),
4318
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(24, 50),
4324
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(25, 50),
4327
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(26, 50)
4362
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(17, 42),
4365
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(19, 53),
4368
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(20, 51)
4418
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(18, 54),
4421
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(19, 44),
4427
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(20, 44),
4430
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(21, 44),
4436
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(23, 55),
4439
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(24, 52),
4445
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(25, 52),
4448
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(26, 52)
4642
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(14, 83),
4648
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(18, 64)
5215
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(9, 36),
5515
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "x").WithLocation(7, 65),
Semantics\NullableContextTests.cs (6)
203
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "C1").WithLocation(7, 27));
892
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(7, 20));
1235
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(7, 12));
1259
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 22),
1333
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(7, 47));
1351
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(4, 39));
Semantics\NullableReferenceTypesTests.cs (470)
168
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, @"b ? """" : default", isSuppressed: false).WithLocation(10, 37),
171
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, @"b ? """" : null", isSuppressed: false).WithLocation(14, 37));
2263
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 44),
2269
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(7, 45)
2302
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 50),
2308
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(7, 51)
2459
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(5, 69),
2465
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(11, 69),
5072
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 48)
15012
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(8, 35),
19794
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y11.F1").WithLocation(63, 16));
20327
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "x1").WithLocation(10, 16)
26952
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(18, 24)
26991
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "item.Value").WithLocation(22, 24)
27030
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "item.Value").WithLocation(22, 24)
27066
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(17, 24)
27099
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(16, 24)
27231
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(15, 20)
27609
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(16, 24)
27676
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(21, 24)
27712
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(16, 24),
27715
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(18, 24)
27752
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(22, 24)
27785
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(18, 24)
27818
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(18, 24)
27851
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(18, 24)
27886
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "value").WithLocation(18, 24),
27955
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "value").WithLocation(18, 24)
27990
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "value").WithLocation(18, 24),
28057
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "c.Value").WithLocation(18, 24)
28095
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(21, 20),
28098
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(24, 16)
28162
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(19, 20)
28196
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(15, 20)
28230
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(19, 20)
28264
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t.Value").WithLocation(19, 20)
28298
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(15, 20)
28331
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Value").WithLocation(18, 24)
28412
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "IsOk switch { true => throw null!, _ => Value }").WithLocation(13, 16)
28462
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "IsOk ? throw null! : Value").WithLocation(13, 16)
29688
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 16),
29694
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(15, 16)
29726
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 16),
29732
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(15, 16)
29764
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 16),
29767
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(15, 16)
32334
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default", isSuppressed: false).WithLocation(31, 20),
32337
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default", isSuppressed: false).WithLocation(41, 20));
39596
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(35, 16),
39728
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(32, 16)
39808
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(35, 16),
39863
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(13, 22),
39869
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(25, 22),
39999
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(7, 22),
40002
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(13, 22),
40011
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(25, 22),
45738
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(13, 16),
45741
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(19, 20)
45766
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(11, 16)
45791
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(9, 20)
48027
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(4, 50)
48731
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(9, 20)
48756
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(11, 16)
55862
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s?.ToString()").WithLocation(8, 57)
55887
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s?.ToString()").WithLocation(8, 66)
55973
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s1?.ToString()").WithLocation(9, 48)
56130
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? null : null").WithLocation(9, 24)
56193
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : default").WithLocation(9, 24)
56260
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? x : y").WithLocation(11, 24)
56358
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { _ => null }").WithLocation(9, 24)
56392
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { true => x, _ => y }").WithLocation(11, 24)
56592
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(10, 31),
56595
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(11, 31),
57112
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? x : y").WithLocation(4, 47),
57115
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? x : y!").WithLocation(6, 47));
57990
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 32)
58910
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b1.G").WithLocation(11, 16),
58916
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b3.G").WithLocation(30, 16));
58965
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "a1.F").WithLocation(10, 16),
58968
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "a3.F").WithLocation(29, 16));
59897
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u5").WithLocation(33, 16),
63264
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(12, 37),
63267
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(17, 49),
63270
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(24, 23),
63273
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(29, 35)
63364
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(20, 22),
63367
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(25, 22),
63370
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(30, 34),
63373
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(35, 34)
63473
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(19, 22),
63476
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(24, 22),
63479
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(29, 34),
63482
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "M1()").WithLocation(34, 34)
63582
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y1").WithLocation(22, 28),
63588
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y2").WithLocation(31, 28)
63637
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y1").WithLocation(22, 28),
63640
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y2").WithLocation(31, 28)
63920
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(22, 28)
64464
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y").WithLocation(9, 56));
64492
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y").WithLocation(9, 43),
64495
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y").WithLocation(10, 33),
64498
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "x").WithLocation(14, 33),
64501
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "x").WithLocation(15, 43));
65374
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y").WithLocation(8, 29),
65636
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(7, 48));
67605
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(22, 22));
67993
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(22, 16));
69278
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "x").WithLocation(9, 26));
69363
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T?>()").WithLocation(7, 28));
69418
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<object?>()").WithLocation(10, 33),
76016
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 16),
76019
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(12, 60)
76057
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 22),
76060
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(8, 22)
76105
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(11, 26),
76108
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(13, 26)
76138
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(6, 22),
76141
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(10, 22),
76144
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(14, 22)
76234
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 22)
76263
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(11, 26)
76338
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(8, 22),
76341
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(9, 22),
76344
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(26, 26)
76391
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(8, 22),
76394
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(9, 22),
76397
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(26, 26)
79186
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(10, 27),
79192
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(string)null").WithLocation(11, 27),
79195
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(string?)null").WithLocation(12, 27),
79198
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null as string").WithLocation(13, 27),
79204
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(string)").WithLocation(15, 27),
79207
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(16, 27),
79210
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(p != null) ? p.MiddleName : null").WithLocation(17, 35),
79213
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "p.MiddleName ?? null").WithLocation(18, 35)
81067
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 17));
81199
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 26),
81202
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(4, 35));
81210
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 26),
81213
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(4, 35));
81221
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(3, 26),
81224
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(4, 35));
82063
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(7, 12),
82066
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(10, 12),
82075
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(19, 12),
82078
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(22, 12),
82392
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(4, 37)
82704
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(4, 17));
83148
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(4, 25),
83151
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(5, 33),
83154
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 40),
83157
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(7, 37),
83160
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(Task<T>)").WithLocation(8, 37),
83163
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(9, 53),
83166
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(10, 48));
83199
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(6, 39),
83202
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(8, 43),
83205
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(9, 43),
83208
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(10, 59),
83214
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(13, 40),
83217
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(14, 44));
83306
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)null").WithLocation(6, 16),
83309
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)null").WithLocation(10, 16),
83312
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(14, 16),
83315
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(18, 16));
91186
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(17, 20),
91192
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(19, 20),
91198
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o1").WithLocation(25, 20),
91201
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o2").WithLocation(27, 20));
91245
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(19, 20),
91251
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(21, 20),
91257
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o1").WithLocation(27, 20),
91260
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o2").WithLocation(29, 20));
109580
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(9, 16),
109583
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(15, 23),
109586
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T2)").WithLocation(16, 23),
109592
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(20, 16),
109595
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(26, 23),
109598
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T3)").WithLocation(27, 23),
109607
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(38, 23),
109610
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T4)").WithLocation(39, 23),
109616
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(43, 16),
109619
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(49, 23),
109622
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T5)").WithLocation(50, 23),
109628
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t5").WithLocation(54, 16),
109631
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(4, 23),
109634
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T1)").WithLocation(5, 23));
109809
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(3, 34),
109812
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 50),
109815
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(7, 49),
109818
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 56),
109824
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(object)t").WithLocation(11, 34),
109830
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(object)t").WithLocation(14, 50),
109836
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(object)u").WithLocation(15, 49),
109842
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(object)u").WithLocation(18, 56));
109880
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(19, 44),
109886
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(20, 51),
109895
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(22, 51),
109901
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(23, 32),
110065
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(4, 31),
110074
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(5, 47),
112467
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "_g").WithLocation(15, 28),
112470
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "_f").WithLocation(19, 28));
112506
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "_f").WithLocation(10, 28),
112512
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "_g").WithLocation(18, 28));
131895
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(8, 58),
131898
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 78)
136935
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(8, 32));
139933
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(7, 32),
139936
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(11, 19),
139942
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(14, 28));
139977
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(12, 19),
139983
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 28));
140016
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(11, 24),
140022
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(14, 28));
140057
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(12, 24),
140060
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "o").WithLocation(12, 24),
140069
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 28),
140072
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 28));
140103
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(12, 42),
140106
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s").WithLocation(14, 32));
147693
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(9, 16),
147696
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(16, 16),
147699
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t3").WithLocation(23, 16),
147702
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(30, 16),
147705
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t7").WithLocation(51, 16));
147784
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(9, 16),
147787
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(30, 16),
147790
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t7").WithLocation(51, 16));
147911
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "r2").WithLocation(22, 16),
147917
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "r3").WithLocation(38, 16),
147923
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "r4").WithLocation(54, 16),
147929
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "r7").WithLocation(86, 16));
147966
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(4, 26),
147969
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(5, 42),
147972
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(7, 44),
147975
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(U)").WithLocation(8, 41),
147978
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(U)").WithLocation(9, 48),
147981
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(U)").WithLocation(11, 50),
147987
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(T)").WithLocation(12, 26),
147993
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(T)").WithLocation(13, 42),
147999
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(T)").WithLocation(15, 44),
148005
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(U)").WithLocation(16, 41),
148011
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(U)").WithLocation(17, 48),
148017
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)default(U)").WithLocation(19, 50),
148023
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)default(T)").WithLocation(20, 41),
148029
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)default(T)").WithLocation(21, 48),
148038
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)default(T)").WithLocation(23, 50),
148044
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)default(T)").WithLocation(24, 29),
148193
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(5, 40),
148196
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 56),
148199
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(8, 58),
148202
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 55),
148205
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 62),
148208
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(12, 64),
148211
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(13, 40),
148217
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(14, 56),
148220
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(16, 58),
148223
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(17, 55),
148226
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(18, 62),
148229
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(20, 64),
148232
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(21, 55),
148238
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(22, 62),
148244
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(24, 64),
148247
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(25, 43),
148256
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(5, 40),
148259
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 56),
148262
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(8, 58),
148265
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 55),
148268
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 62),
148271
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(12, 64),
148277
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(13, 40),
148283
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(14, 56),
148289
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(16, 58),
148295
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(17, 55),
148301
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(18, 62),
148307
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(20, 64),
148313
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(21, 55),
148319
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(22, 62),
148328
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)t").WithLocation(24, 64),
148334
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(U)(object)t").WithLocation(25, 43),
148357
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(4, 46),
148360
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 52),
148366
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(6, 46),
148369
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(7, 52));
148375
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(4, 46),
148378
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 52),
148384
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)t").WithLocation(6, 46),
148390
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)u").WithLocation(7, 52));
148607
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(4, 36),
148610
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(5, 52),
148613
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(7, 54),
148616
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(8, 36),
148622
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(9, 52),
148625
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(11, 54));
148631
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(4, 36),
148634
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(5, 52),
148637
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "d").WithLocation(7, 54),
148643
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(8, 36),
148649
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(9, 52),
148655
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T)d").WithLocation(11, 54));
148717
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(5, 46),
148720
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 62),
148723
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(8, 64),
148729
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(dynamic)t").WithLocation(9, 46),
148735
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(dynamic)t").WithLocation(10, 62),
148741
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(dynamic)t").WithLocation(12, 64));
148835
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 16),
148984
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T1>()").WithLocation(8, 16),
148987
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T2>()").WithLocation(12, 16),
148990
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T3>()").WithLocation(16, 16),
148993
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "F<T4>()").WithLocation(20, 16));
149074
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(9, 16),
149080
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(14, 16),
149086
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t3").WithLocation(19, 16),
149092
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(24, 16));
149115
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 16));
149139
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Identity(F<T>())").WithLocation(7, 25),
149142
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Identity(F<T>())").WithLocation(8, 43),
149145
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Identity(F<T>())").WithLocation(9, 41),
149148
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "Identity(F<T>())").WithLocation(10, 42));
149254
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : u").WithLocation(6, 67),
149257
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : u").WithLocation(7, 67),
149260
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : u").WithLocation(8, 78));
149284
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? default").WithLocation(5, 28),
149287
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? default(T)").WithLocation(6, 28),
149290
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? default(U)").WithLocation(7, 43),
149293
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? u").WithLocation(9, 59),
149296
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ?? u").WithLocation(11, 70));
149320
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= default").WithLocation(5, 28),
149326
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= default(T)").WithLocation(6, 28),
149332
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= default(U)").WithLocation(7, 43),
149338
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= u").WithLocation(9, 59),
149344
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t ??= u").WithLocation(11, 70),
149377
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(8, 22),
149380
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(10, 22),
149383
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(U)").WithLocation(14, 22),
149386
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u2").WithLocation(16, 22));
149453
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => t, _ => default }").WithLocation(4, 36),
149456
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => default, _ => t }").WithLocation(5, 36),
149459
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => t, _ => default }").WithLocation(6, 52),
149462
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => default, _ => t }").WithLocation(7, 52),
149465
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => t, _ => default }").WithLocation(10, 54),
149468
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b switch { false => default, _ => t }").WithLocation(11, 54));
149492
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { t, default }[0]").WithLocation(4, 28),
149495
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { default, t }[0]").WithLocation(5, 28),
149498
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { t, default }[0]").WithLocation(6, 44),
149501
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { default, t }[0]").WithLocation(7, 44),
149504
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { t, default }[0]").WithLocation(10, 46),
149507
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { default, t }[0]").WithLocation(11, 46));
149531
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : default").WithLocation(4, 36),
149534
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : t").WithLocation(5, 36),
149537
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : default").WithLocation(6, 52),
149540
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : t").WithLocation(7, 52),
149543
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? t : default").WithLocation(10, 54),
149546
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : t").WithLocation(11, 54));
149571
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(5, 74),
149574
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(6, 64),
149577
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(7, 90),
149580
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(8, 80),
149583
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(11, 92),
149586
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(12, 82));
149614
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T)").WithLocation(11, 24),
149617
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y").WithLocation(13, 25));
149643
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? Get<T>() : default").WithLocation(8, 31),
149646
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "b ? default : Get<T>()").WithLocation(9, 31),
149649
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "false ? Get<T>() : default").WithLocation(10, 25),
149652
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "true ? default : Get<T>()").WithLocation(13, 25));
149961
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(7, 16),
149964
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(13, 16));
153629
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T1)").WithLocation(4, 27),
153632
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T2)").WithLocation(5, 44),
153635
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T3)").WithLocation(6, 45),
153638
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T4)").WithLocation(7, 46));
153665
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T1?)").WithLocation(4, 27),
153668
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T2?)").WithLocation(5, 44),
153671
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T3?)").WithLocation(6, 45),
153674
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default(T4?)").WithLocation(7, 46));
153727
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "default").WithLocation(10, 30),
154053
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 41),
154056
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 41),
154059
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 42));
154078
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 41),
154081
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 41),
154084
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 42));
154103
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 41),
154106
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 41),
154109
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 42));
154128
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 41),
154131
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 41),
154134
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 42));
154154
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(6, 41),
154157
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 41),
154160
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 42));
154180
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(6, 41),
154183
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 41),
154186
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 42));
154207
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(7, 26));
154227
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(4, 33),
154230
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 34));
154245
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 50));
154260
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(4, 50),
154263
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 51));
154278
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 51));
154293
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 52));
154317
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(6, 41),
154320
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(9, 41),
154323
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(10, 42));
154347
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 48),
154350
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 49));
154369
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(5, 49),
154372
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 49),
154375
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 50));
154394
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(8, 50),
154397
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 51));
154417
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 44),
154420
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 45));
154440
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(6, 45),
154443
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(9, 45),
154446
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(10, 46));
154478
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(5, 56),
154481
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(6, 56),
154484
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(7, 57),
154487
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(12, 56),
154490
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(13, 58),
154493
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(14, 58),
154496
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(15, 59));
154528
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(7, 60),
154531
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(8, 59),
154534
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(9, 60),
154537
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(10, 60),
154540
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(11, 61),
154543
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(13, 61),
154546
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(15, 62),
154549
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(16, 61),
154552
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(17, 62),
154555
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(18, 62),
154558
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "v").WithLocation(19, 63));
154853
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t1").WithLocation(7, 16),
154856
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t2").WithLocation(12, 16),
154859
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t3").WithLocation(17, 16),
154862
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t4").WithLocation(22, 16),
154865
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t5").WithLocation(27, 16));
154921
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y1").WithLocation(8, 16),
154924
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y2").WithLocation(14, 16),
154927
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y3").WithLocation(20, 16),
154930
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y4").WithLocation(26, 16),
154933
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "y5").WithLocation(32, 16));
154989
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t1").WithLocation(6, 16),
154992
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t2").WithLocation(10, 16),
154995
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t3").WithLocation(14, 16),
154998
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t4").WithLocation(18, 16),
155001
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "(T?)t5").WithLocation(22, 16));
155265
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { y1, x1 }[0]").WithLocation(6, 23),
155268
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { x1, y1 }[0]").WithLocation(7, 16),
155271
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { y2, x2 }[0]").WithLocation(11, 23),
155274
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { x2, y2 }[0]").WithLocation(12, 16),
155277
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { y3, x3 }[0]").WithLocation(16, 23),
155280
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "new[] { x3, y3 }[0]").WithLocation(17, 16));
155643
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(7, 16),
155646
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(12, 16),
155649
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(17, 16));
155658
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(7, 16),
155664
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(12, 16),
155670
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "u").WithLocation(17, 16));
155948
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "t").WithLocation(8, 16)
157243
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s2").WithLocation(23, 20),
157249
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s2").WithLocation(47, 20));
159007
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(15, 43)
160626
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "x").WithLocation(9, 28));
Semantics\NullableReferenceTypesVsPatterns.cs (3)
2414
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s?.ToString()").WithLocation(8, 80)
2439
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s?.ToString()").WithLocation(8, 86)
2544
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "s1?.ToString()").WithLocation(12, 35)
Semantics\OverloadResolutionPerfTests.cs (2)
624
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "i65535").WithLocation(65542, 16));
656
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "value").WithLocation(16395, 16));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\PartialPropertiesTests.cs (1)
1757
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "null").WithLocation(27, 16),
Symbols\Source\NullablePublicAPITests.cs (1)
4773
Diagnostic(ErrorCode.
WRN_NullReferenceReturn
, "z2").WithLocation(17, 16));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
344
case ErrorCode.
WRN_NullReferenceReturn
: