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
:
2543
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)
4893
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(2, 19),
5097
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(2, 20),
5100
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C").WithLocation(2, 25),
5128
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "string").WithLocation(3, 22),
5170
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Length: >0 }").WithLocation(3, 22),
5173
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(3, 32),
5229
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 29),
5232
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 50),
5235
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 24),
5238
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 45),
5241
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 29),
5244
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(12, 50));
5276
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 21),
5279
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 35),
5282
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(2, 57),
5285
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 16),
5288
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 30),
5291
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(6, 52),
5294
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 21),
5297
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(12, 35),
5300
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(12, 57));
5326
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 21),
5329
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 16),
5332
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 21));
5366
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 24),
5369
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 39),
5372
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
5375
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 38),
5378
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(7, 19),
5381
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(7, 34),
5384
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(13, 24),
5387
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(13, 39));
5420
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 24),
5423
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 39),
5426
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 19),
5429
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 34),
5432
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 24),
5435
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(12, 39));
5467
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 33),
5470
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 54),
5473
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(3, 80),
5476
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "49").WithLocation(3, 101),
5479
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(5, 30),
5482
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "49").WithLocation(5, 51),
5485
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(5, 79),
5488
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(5, 100),
5491
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(7, 47));
5522
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 21),
5525
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 35),
5540
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(11, 16),
5543
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(11, 30),
5546
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(17, 21),
5549
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(17, 35));
5586
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 35),
5589
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 49),
5592
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(5, 64),
5595
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(5, 78),
5598
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 64),
5601
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(8, 78),
5604
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(9, 35),
5607
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(9, 49),
5610
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 64),
5613
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(12, 78),
5616
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(13, 35),
5619
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(13, 49));
5643
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(3, 22),
5682
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "false").WithLocation(3, 22),
5688
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "true").WithLocation(5, 22),
5750
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "[]").WithLocation(3, 22),
5798
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "E.Zero").WithLocation(2, 22),
5836
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Length: 10 }").WithLocation(3, 31),
5842
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "string { Length: 10 }").WithLocation(15, 38),
6131
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 37),
6134
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 64),
6140
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "44").WithLocation(8, 45),
6146
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(8, 88),
6152
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(10, 38),
6155
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(10, 65),
6158
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(10, 93),
6161
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(11, 38),
6164
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(11, 66),
6167
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(11, 93),
6170
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(11, 122));
6202
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(5, 46),
6205
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(5, 73),
6208
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "47").WithLocation(6, 46),
6211
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "49").WithLocation(6, 73));
6281
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 23),
6284
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 37));
6311
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 31),
6314
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 52));
6341
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 29),
6344
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 50));
6364
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 29),
6367
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 50));
6401
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "null").WithLocation(2, 21),
6413
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ }").WithLocation(6, 22),
6416
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "S { }").WithLocation(7, 22),
6419
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "null").WithLocation(8, 23),
6947
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "[..]").WithLocation(2, 30),
6950
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "[.._]").WithLocation(3, 30));
7374
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7377
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 35));
7403
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 29),
7406
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 53));
7442
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 35),
7445
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 49),
7448
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(5, 31),
7451
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(5, 45),
7454
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 27),
7457
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 41),
7460
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(9, 35),
7463
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(9, 49),
7466
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 35),
7469
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(12, 49));
7683
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7686
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 35),
7695
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 21),
7698
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 39),
7736
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7754
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 21),
7760
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(11, 31),
7806
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(4, 24),
7818
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(9, 24),
7824
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 25));
7867
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7873
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 21),
7879
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(9, 29),
7885
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 21),
7891
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(15, 21),
7894
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(17, 21),
7897
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(18, 21),
7900
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(19, 21),
7937
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
7940
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 40),
7949
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 21),
7952
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 44));
7989
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(2, 27),
7992
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(2, 44),
7998
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 46),
8001
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 35),
8004
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 52),
8010
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(7, 54),
8013
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(10, 35),
8019
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(11, 38),
8053
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(3, 21),
8056
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 40),
8065
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 21),
8068
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 45));
8257
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 37),
8260
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 65),
8263
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(7, 37),
8266
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(7, 64),
8269
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 38),
8272
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(10, 29),
8275
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(10, 43),
8284
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 29),
8287
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(13, 29),
8293
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(14, 29),
8296
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(14, 43),
8299
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(16, 29),
8302
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(16, 43),
8311
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(18, 29),
8314
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(18, 43),
8317
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(20, 29),
8320
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(20, 43),
8329
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(22, 29),
8332
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(22, 43),
8335
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(24, 29));
8388
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(6, 37),
8391
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(6, 65),
8394
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(7, 37),
8397
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(7, 64),
8400
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 38),
8403
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(10, 29),
8406
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(10, 43),
8415
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(12, 29),
8418
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(13, 29),
8424
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(14, 29),
8427
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(14, 43),
8430
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(16, 29),
8433
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(16, 43),
8442
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(18, 29),
8445
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(18, 43),
8448
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(20, 29));
8490
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: 42 }").WithLocation(2, 22),
8493
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "42").WithLocation(2, 31),
8496
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: 44 or 45 }").WithLocation(3, 22),
8499
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "44").WithLocation(3, 31),
8502
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "44 or 45").WithLocation(3, 31),
8505
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "45").WithLocation(3, 37),
8508
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: >0, Prop2: 0 }").WithLocation(4, 22),
8511
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(4, 31),
8514
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(4, 42),
8517
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(>0, _)").WithLocation(6, 22),
8520
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(6, 23),
8523
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(>0, 0)").WithLocation(7, 22),
8526
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(7, 23),
8529
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(7, 27),
8532
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "Derived").WithLocation(9, 22),
8535
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C { Prop1: 0 }").WithLocation(10, 22),
8538
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(10, 33),
8541
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C (>0, _) { Prop1: 0 }").WithLocation(11, 22),
8544
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(11, 25),
8547
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(11, 41),
8550
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(>0, _)").WithLocation(14, 22),
8553
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(14, 23),
8556
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(>0, 0)").WithLocation(15, 22),
8559
Diagnostic(ErrorCode.
WRN_RedundantPattern
, ">0").WithLocation(15, 23),
8562
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(15, 27),
8565
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "[{ Prop1: 42 }, ..]").WithLocation(17, 22),
8568
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "42").WithLocation(17, 32),
8571
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "[_, .. { Prop1: 42 }]").WithLocation(18, 22),
8574
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "42").WithLocation(18, 38));
8602
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(2, 34),
8605
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "(0)").WithLocation(3, 34),
8611
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(5, 26),
8614
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(6, 35),
8617
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(7, 35),
8620
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "1").WithLocation(7, 40),
8626
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(9, 35),
8629
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(10, 29),
8632
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(11, 45),
8635
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(12, 44),
8638
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(13, 38),
8945
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "string or null").WithLocation(10, 28),
8984
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "B").WithLocation(3, 46)
9010
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ F: { F2: 0 } }").WithLocation(3, 22),
9013
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(3, 33)
9029
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{}").WithLocation(2, 22),
9032
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{}").WithLocation(3, 23));
9248
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C and ({ Prop1: 0 } or { Prop2: 1 })").WithLocation(3, 43),
9251
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "C").WithLocation(3, 43),
9254
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: 0 }").WithLocation(3, 50),
9257
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop1: 0 } or { Prop2: 1 }").WithLocation(3, 50),
9260
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "0").WithLocation(3, 59),
9263
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "{ Prop2: 1 }").WithLocation(3, 66),
9266
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "1").WithLocation(3, 75)
9299
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(4, 20),
9302
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 15),
9305
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(14, 20));
9311
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(4, 20),
9314
Diagnostic(ErrorCode.
WRN_RedundantPattern
, "43").WithLocation(8, 15),
9317
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
: