258 references to WRN_RedundantPattern
Microsoft.CodeAnalysis.CSharp (4)
Binder\DecisionDagBuilder_CheckOrReachability.cs (1)
211
ErrorCode errorCode = shouldWarn(node) ? ErrorCode.
WRN_RedundantPattern
: ErrorCode.HDN_RedundantPattern;
Errors\ErrorFacts.cs (2)
578
case ErrorCode.
WRN_RedundantPattern
:
2551
or ErrorCode.
WRN_RedundantPattern
Generated\ErrorFacts.Generated.cs (1)
348
case ErrorCode.
WRN_RedundantPattern
:
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (7)
UnionsTests.cs (7)
1990
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(58, 50)
1997
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(58, 50)
2016
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(58, 50)
2093
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(58, 50)
2100
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(58, 50)
2119
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(58, 50)
2193
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(58, 50)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (245)
FlowAnalysis\FlowTests.cs (1)
4887
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C").WithLocation(28, 46),
Semantics\PatternMatchingTests4.cs (244)
4897
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(2, 19),
5101
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(2, 20),
5104
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C").WithLocation(2, 25),
5132
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "string").WithLocation(3, 22),
5174
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Length: >0 }").WithLocation(3, 22),
5177
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(3, 32),
5233
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 29),
5236
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 50),
5239
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 24),
5242
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 45),
5245
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 29),
5248
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(12, 50));
5280
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 21),
5283
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 35),
5286
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(2, 57),
5289
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 16),
5292
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 30),
5295
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(6, 52),
5298
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 21),
5301
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(12, 35),
5304
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(12, 57));
5330
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 21),
5333
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 16),
5336
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 21));
5370
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 24),
5373
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 39),
5376
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
5379
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 38),
5382
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(7, 19),
5385
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(7, 34),
5388
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(13, 24),
5391
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(13, 39));
5424
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 24),
5427
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 39),
5430
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 19),
5433
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 34),
5436
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 24),
5439
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(12, 39));
5471
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 33),
5474
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 54),
5477
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(3, 80),
5480
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "49").WithLocation(3, 101),
5483
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(5, 30),
5486
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "49").WithLocation(5, 51),
5489
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(5, 79),
5492
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(5, 100),
5495
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(7, 47));
5526
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 21),
5529
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 35),
5544
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(11, 16),
5547
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(11, 30),
5550
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(17, 21),
5553
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(17, 35));
5590
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 35),
5593
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 49),
5596
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(5, 64),
5599
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(5, 78),
5602
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 64),
5605
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(8, 78),
5608
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(9, 35),
5611
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(9, 49),
5614
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 64),
5617
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(12, 78),
5620
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(13, 35),
5623
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(13, 49));
5647
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(3, 22),
5686
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "false").WithLocation(3, 22),
5692
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "true").WithLocation(5, 22),
5754
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "[]").WithLocation(3, 22),
5802
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "E.Zero").WithLocation(2, 22),
5840
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Length: 10 }").WithLocation(3, 31),
5846
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "string { Length: 10 }").WithLocation(15, 38),
6135
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 37),
6138
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 64),
6144
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "44").WithLocation(8, 45),
6150
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(8, 88),
6156
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(10, 38),
6159
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(10, 65),
6162
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(10, 93),
6165
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(11, 38),
6168
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(11, 66),
6171
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(11, 93),
6174
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(11, 122));
6206
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(5, 46),
6209
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(5, 73),
6212
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(6, 46),
6215
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "49").WithLocation(6, 73));
6285
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 23),
6288
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 37));
6315
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 31),
6318
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 52));
6345
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 29),
6348
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 50));
6368
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 29),
6371
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 50));
6405
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "null").WithLocation(2, 21),
6417
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ }").WithLocation(6, 22),
6420
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "S { }").WithLocation(7, 22),
6423
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "null").WithLocation(8, 23),
6951
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "[..]").WithLocation(2, 30),
6954
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "[.._]").WithLocation(3, 30));
7390
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7393
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 35));
7419
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 29),
7422
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 53));
7458
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 35),
7461
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 49),
7464
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(5, 31),
7467
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(5, 45),
7470
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 27),
7473
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 41),
7476
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(9, 35),
7479
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(9, 49),
7482
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 35),
7485
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(12, 49));
7699
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7702
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 35),
7711
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 21),
7714
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 39),
7752
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7770
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 21),
7776
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(11, 31),
7822
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(4, 24),
7834
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(9, 24),
7840
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 25));
7883
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7889
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 21),
7895
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(9, 29),
7901
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 21),
7907
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(15, 21),
7910
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(17, 21),
7913
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(18, 21),
7916
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(19, 21),
7953
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7956
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 40),
7965
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 21),
7968
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 44));
8005
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 27),
8008
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 44),
8014
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 46),
8017
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 35),
8020
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 52),
8026
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(7, 54),
8029
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(10, 35),
8035
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(11, 38),
8069
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
8072
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 40),
8081
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 21),
8084
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 45));
8273
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 37),
8276
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 65),
8279
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(7, 37),
8282
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(7, 64),
8285
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 38),
8288
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(10, 29),
8291
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(10, 43),
8300
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 29),
8303
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(13, 29),
8309
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(14, 29),
8312
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(14, 43),
8315
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(16, 29),
8318
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(16, 43),
8327
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(18, 29),
8330
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(18, 43),
8333
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(20, 29),
8336
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(20, 43),
8345
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(22, 29),
8348
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(22, 43),
8351
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(24, 29));
8404
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 37),
8407
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 65),
8410
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(7, 37),
8413
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(7, 64),
8416
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 38),
8419
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(10, 29),
8422
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(10, 43),
8431
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 29),
8434
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(13, 29),
8440
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(14, 29),
8443
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(14, 43),
8446
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(16, 29),
8449
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(16, 43),
8458
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(18, 29),
8461
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(18, 43),
8464
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(20, 29));
8506
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: 42 }").WithLocation(2, 22),
8509
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "42").WithLocation(2, 31),
8512
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: 44 or 45 }").WithLocation(3, 22),
8515
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "44").WithLocation(3, 31),
8518
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "44 or 45").WithLocation(3, 31),
8521
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 37),
8524
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: >0, Prop2: 0 }").WithLocation(4, 22),
8527
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(4, 31),
8530
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(4, 42),
8533
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(>0, _)").WithLocation(6, 22),
8536
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(6, 23),
8539
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(>0, 0)").WithLocation(7, 22),
8542
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(7, 23),
8545
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(7, 27),
8548
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "Derived").WithLocation(9, 22),
8551
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C { Prop1: 0 }").WithLocation(10, 22),
8554
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(10, 33),
8557
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C (>0, _) { Prop1: 0 }").WithLocation(11, 22),
8560
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(11, 25),
8563
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(11, 41),
8566
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(>0, _)").WithLocation(14, 22),
8569
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(14, 23),
8572
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(>0, 0)").WithLocation(15, 22),
8575
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(15, 23),
8578
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(15, 27),
8581
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "[{ Prop1: 42 }, ..]").WithLocation(17, 22),
8584
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "42").WithLocation(17, 32),
8587
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "[_, .. { Prop1: 42 }]").WithLocation(18, 22),
8590
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "42").WithLocation(18, 38));
8618
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(2, 34),
8621
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(0)").WithLocation(3, 34),
8627
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(5, 26),
8630
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(6, 35),
8633
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(7, 35),
8636
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "1").WithLocation(7, 40),
8642
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(9, 35),
8645
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(10, 29),
8648
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(11, 45),
8651
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(12, 44),
8654
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(13, 38),
8961
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "string or null").WithLocation(10, 28),
9000
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(3, 46)
9026
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ F: { F2: 0 } }").WithLocation(3, 22),
9029
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(3, 33)
9045
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{}").WithLocation(2, 22),
9048
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{}").WithLocation(3, 23));
9264
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C and ({ Prop1: 0 } or { Prop2: 1 })").WithLocation(3, 43),
9267
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C").WithLocation(3, 43),
9270
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: 0 }").WithLocation(3, 50),
9273
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: 0 } or { Prop2: 1 }").WithLocation(3, 50),
9276
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(3, 59),
9279
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop2: 1 }").WithLocation(3, 66),
9282
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "1").WithLocation(3, 75)
9315
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(4, 20),
9318
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 15),
9321
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(14, 20));
9327
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(4, 20),
9330
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 15),
9333
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(14, 20));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NullableReferenceTypesTests.cs (1)
52067
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C").WithLocation(24, 42),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
428
case ErrorCode.
WRN_RedundantPattern
: