251 references to WRN_RedundantPattern
Microsoft.CodeAnalysis.CSharp (4)
Binder\DecisionDagBuilder_CheckOrReachability.cs (1)
209
ErrorCode errorCode = shouldWarn(node) ? ErrorCode.
WRN_RedundantPattern
: ErrorCode.HDN_RedundantPattern;
Errors\ErrorFacts.cs (2)
573
case ErrorCode.
WRN_RedundantPattern
:
2545
or ErrorCode.
WRN_RedundantPattern
Generated\ErrorFacts.Generated.cs (1)
348
case ErrorCode.
WRN_RedundantPattern
:
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));
7378
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7381
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 35));
7407
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 29),
7410
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 53));
7446
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 35),
7449
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 49),
7452
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(5, 31),
7455
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(5, 45),
7458
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 27),
7461
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 41),
7464
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(9, 35),
7467
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(9, 49),
7470
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 35),
7473
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(12, 49));
7687
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7690
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 35),
7699
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 21),
7702
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 39),
7740
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7758
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 21),
7764
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(11, 31),
7810
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(4, 24),
7822
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(9, 24),
7828
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 25));
7871
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7877
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 21),
7883
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(9, 29),
7889
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 21),
7895
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(15, 21),
7898
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(17, 21),
7901
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(18, 21),
7904
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(19, 21),
7941
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7944
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 40),
7953
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 21),
7956
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 44));
7993
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 27),
7996
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 44),
8002
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 46),
8005
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 35),
8008
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 52),
8014
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(7, 54),
8017
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(10, 35),
8023
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(11, 38),
8057
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
8060
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 40),
8069
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 21),
8072
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 45));
8261
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 37),
8264
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 65),
8267
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(7, 37),
8270
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(7, 64),
8273
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 38),
8276
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(10, 29),
8279
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(10, 43),
8288
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 29),
8291
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(13, 29),
8297
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(14, 29),
8300
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(14, 43),
8303
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(16, 29),
8306
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(16, 43),
8315
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(18, 29),
8318
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(18, 43),
8321
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(20, 29),
8324
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(20, 43),
8333
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(22, 29),
8336
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(22, 43),
8339
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(24, 29));
8392
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 37),
8395
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 65),
8398
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(7, 37),
8401
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(7, 64),
8404
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 38),
8407
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(10, 29),
8410
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(10, 43),
8419
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 29),
8422
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(13, 29),
8428
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(14, 29),
8431
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(14, 43),
8434
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(16, 29),
8437
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(16, 43),
8446
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(18, 29),
8449
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(18, 43),
8452
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(20, 29));
8494
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: 42 }").WithLocation(2, 22),
8497
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "42").WithLocation(2, 31),
8500
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: 44 or 45 }").WithLocation(3, 22),
8503
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "44").WithLocation(3, 31),
8506
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "44 or 45").WithLocation(3, 31),
8509
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 37),
8512
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: >0, Prop2: 0 }").WithLocation(4, 22),
8515
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(4, 31),
8518
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(4, 42),
8521
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(>0, _)").WithLocation(6, 22),
8524
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(6, 23),
8527
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(>0, 0)").WithLocation(7, 22),
8530
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(7, 23),
8533
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(7, 27),
8536
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "Derived").WithLocation(9, 22),
8539
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C { Prop1: 0 }").WithLocation(10, 22),
8542
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(10, 33),
8545
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C (>0, _) { Prop1: 0 }").WithLocation(11, 22),
8548
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(11, 25),
8551
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(11, 41),
8554
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(>0, _)").WithLocation(14, 22),
8557
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(14, 23),
8560
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(>0, 0)").WithLocation(15, 22),
8563
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(15, 23),
8566
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(15, 27),
8569
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "[{ Prop1: 42 }, ..]").WithLocation(17, 22),
8572
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "42").WithLocation(17, 32),
8575
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "[_, .. { Prop1: 42 }]").WithLocation(18, 22),
8578
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "42").WithLocation(18, 38));
8606
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(2, 34),
8609
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(0)").WithLocation(3, 34),
8615
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(5, 26),
8618
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(6, 35),
8621
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(7, 35),
8624
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "1").WithLocation(7, 40),
8630
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(9, 35),
8633
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(10, 29),
8636
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(11, 45),
8639
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(12, 44),
8642
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(13, 38),
8949
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "string or null").WithLocation(10, 28),
8988
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(3, 46)
9014
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ F: { F2: 0 } }").WithLocation(3, 22),
9017
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(3, 33)
9033
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{}").WithLocation(2, 22),
9036
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{}").WithLocation(3, 23));
9252
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C and ({ Prop1: 0 } or { Prop2: 1 })").WithLocation(3, 43),
9255
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C").WithLocation(3, 43),
9258
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: 0 }").WithLocation(3, 50),
9261
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: 0 } or { Prop2: 1 }").WithLocation(3, 50),
9264
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(3, 59),
9267
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop2: 1 }").WithLocation(3, 66),
9270
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "1").WithLocation(3, 75)
9303
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(4, 20),
9306
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 15),
9309
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(14, 20));
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));
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
: