251 references to WRN_RedundantPattern
Microsoft.CodeAnalysis.CSharp (4)
Binder\DecisionDagBuilder_CheckOrReachability.cs (1)
209ErrorCode errorCode = shouldWarn(node) ? ErrorCode.WRN_RedundantPattern : ErrorCode.HDN_RedundantPattern;
Errors\ErrorFacts.cs (2)
573case ErrorCode.WRN_RedundantPattern: 2545or ErrorCode.WRN_RedundantPattern
Generated\ErrorFacts.Generated.cs (1)
348case ErrorCode.WRN_RedundantPattern:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (245)
FlowAnalysis\FlowTests.cs (1)
4887Diagnostic(ErrorCode.WRN_RedundantPattern, "C").WithLocation(28, 46),
Semantics\PatternMatchingTests4.cs (244)
4897Diagnostic(ErrorCode.WRN_RedundantPattern, "B").WithLocation(2, 19), 5101Diagnostic(ErrorCode.WRN_RedundantPattern, "B").WithLocation(2, 20), 5104Diagnostic(ErrorCode.WRN_RedundantPattern, "C").WithLocation(2, 25), 5132Diagnostic(ErrorCode.WRN_RedundantPattern, "string").WithLocation(3, 22), 5174Diagnostic(ErrorCode.WRN_RedundantPattern, "{ Length: >0 }").WithLocation(3, 22), 5177Diagnostic(ErrorCode.WRN_RedundantPattern, ">0").WithLocation(3, 32), 5233Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(2, 29), 5236Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(2, 50), 5239Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 24), 5242Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(6, 45), 5245Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(12, 29), 5248Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(12, 50)); 5280Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(2, 21), 5283Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(2, 35), 5286Diagnostic(ErrorCode.WRN_RedundantPattern, "47").WithLocation(2, 57), 5289Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 16), 5292Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(6, 30), 5295Diagnostic(ErrorCode.WRN_RedundantPattern, "47").WithLocation(6, 52), 5298Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(12, 21), 5301Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(12, 35), 5304Diagnostic(ErrorCode.WRN_RedundantPattern, "47").WithLocation(12, 57)); 5330Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(2, 21), 5333Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 16), 5336Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(12, 21)); 5370Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(2, 24), 5373Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(2, 39), 5376Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(3, 21), 5379Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(3, 38), 5382Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(7, 19), 5385Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(7, 34), 5388Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(13, 24), 5391Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(13, 39)); 5424Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(2, 24), 5427Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(2, 39), 5430Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 19), 5433Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(6, 34), 5436Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(12, 24), 5439Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(12, 39)); 5471Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(3, 33), 5474Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(3, 54), 5477Diagnostic(ErrorCode.WRN_RedundantPattern, "47").WithLocation(3, 80), 5480Diagnostic(ErrorCode.WRN_RedundantPattern, "49").WithLocation(3, 101), 5483Diagnostic(ErrorCode.WRN_RedundantPattern, "47").WithLocation(5, 30), 5486Diagnostic(ErrorCode.WRN_RedundantPattern, "49").WithLocation(5, 51), 5489Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(5, 79), 5492Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(5, 100), 5495Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(7, 47)); 5526Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(2, 21), 5529Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(2, 35), 5544Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(11, 16), 5547Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(11, 30), 5550Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(17, 21), 5553Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(17, 35)); 5590Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(2, 35), 5593Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(2, 49), 5596Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(5, 64), 5599Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(5, 78), 5602Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(8, 64), 5605Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(8, 78), 5608Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(9, 35), 5611Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(9, 49), 5614Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(12, 64), 5617Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(12, 78), 5620Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(13, 35), 5623Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(13, 49)); 5647Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(3, 22), 5686Diagnostic(ErrorCode.WRN_RedundantPattern, "false").WithLocation(3, 22), 5692Diagnostic(ErrorCode.WRN_RedundantPattern, "true").WithLocation(5, 22), 5754Diagnostic(ErrorCode.WRN_RedundantPattern, "[]").WithLocation(3, 22), 5802Diagnostic(ErrorCode.WRN_RedundantPattern, "E.Zero").WithLocation(2, 22), 5840Diagnostic(ErrorCode.WRN_RedundantPattern, "{ Length: 10 }").WithLocation(3, 31), 5846Diagnostic(ErrorCode.WRN_RedundantPattern, "string { Length: 10 }").WithLocation(15, 38), 6135Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 37), 6138Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(6, 64), 6144Diagnostic(ErrorCode.WRN_RedundantPattern, "44").WithLocation(8, 45), 6150Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(8, 88), 6156Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(10, 38), 6159Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(10, 65), 6162Diagnostic(ErrorCode.WRN_RedundantPattern, "47").WithLocation(10, 93), 6165Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(11, 38), 6168Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(11, 66), 6171Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(11, 93), 6174Diagnostic(ErrorCode.WRN_RedundantPattern, "47").WithLocation(11, 122)); 6206Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(5, 46), 6209Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(5, 73), 6212Diagnostic(ErrorCode.WRN_RedundantPattern, "47").WithLocation(6, 46), 6215Diagnostic(ErrorCode.WRN_RedundantPattern, "49").WithLocation(6, 73)); 6285Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(3, 23), 6288Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(3, 37)); 6315Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(3, 31), 6318Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(3, 52)); 6345Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(3, 29), 6348Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(3, 50)); 6368Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(2, 29), 6371Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(2, 50)); 6405Diagnostic(ErrorCode.WRN_RedundantPattern, "null").WithLocation(2, 21), 6417Diagnostic(ErrorCode.WRN_RedundantPattern, "{ }").WithLocation(6, 22), 6420Diagnostic(ErrorCode.WRN_RedundantPattern, "S { }").WithLocation(7, 22), 6423Diagnostic(ErrorCode.WRN_RedundantPattern, "null").WithLocation(8, 23), 6951Diagnostic(ErrorCode.WRN_RedundantPattern, "[..]").WithLocation(2, 30), 6954Diagnostic(ErrorCode.WRN_RedundantPattern, "[.._]").WithLocation(3, 30)); 7378Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(3, 21), 7381Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(3, 35)); 7407Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(3, 29), 7410Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(3, 53)); 7446Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(2, 35), 7449Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(2, 49), 7452Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(5, 31), 7455Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(5, 45), 7458Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 27), 7461Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(6, 41), 7464Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(9, 35), 7467Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(9, 49), 7470Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(12, 35), 7473Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(12, 49)); 7687Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(3, 21), 7690Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(3, 35), 7699Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 21), 7702Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(6, 39), 7740Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(3, 21), 7758Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(8, 21), 7764Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(11, 31), 7810Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(4, 24), 7822Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(9, 24), 7828Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(12, 25)); 7871Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(3, 21), 7877Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 21), 7883Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(9, 29), 7889Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(12, 21), 7895Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(15, 21), 7898Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(17, 21), 7901Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(18, 21), 7904Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(19, 21), 7941Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(3, 21), 7944Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(3, 40), 7953Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 21), 7956Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(6, 44)); 7993Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(2, 27), 7996Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(2, 44), 8002Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(3, 46), 8005Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 35), 8008Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(6, 52), 8014Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(7, 54), 8017Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(10, 35), 8023Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(11, 38), 8057Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(3, 21), 8060Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(3, 40), 8069Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 21), 8072Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(6, 45)); 8261Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 37), 8264Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(6, 65), 8267Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(7, 37), 8270Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(7, 64), 8273Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(8, 38), 8276Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(10, 29), 8279Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(10, 43), 8288Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(12, 29), 8291Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(13, 29), 8297Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(14, 29), 8300Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(14, 43), 8303Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(16, 29), 8306Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(16, 43), 8315Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(18, 29), 8318Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(18, 43), 8321Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(20, 29), 8324Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(20, 43), 8333Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(22, 29), 8336Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(22, 43), 8339Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(24, 29)); 8392Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(6, 37), 8395Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(6, 65), 8398Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(7, 37), 8401Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(7, 64), 8404Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(8, 38), 8407Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(10, 29), 8410Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(10, 43), 8419Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(12, 29), 8422Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(13, 29), 8428Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(14, 29), 8431Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(14, 43), 8434Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(16, 29), 8437Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(16, 43), 8446Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(18, 29), 8449Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(18, 43), 8452Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(20, 29)); 8494Diagnostic(ErrorCode.WRN_RedundantPattern, "{ Prop1: 42 }").WithLocation(2, 22), 8497Diagnostic(ErrorCode.WRN_RedundantPattern, "42").WithLocation(2, 31), 8500Diagnostic(ErrorCode.WRN_RedundantPattern, "{ Prop1: 44 or 45 }").WithLocation(3, 22), 8503Diagnostic(ErrorCode.WRN_RedundantPattern, "44").WithLocation(3, 31), 8506Diagnostic(ErrorCode.WRN_RedundantPattern, "44 or 45").WithLocation(3, 31), 8509Diagnostic(ErrorCode.WRN_RedundantPattern, "45").WithLocation(3, 37), 8512Diagnostic(ErrorCode.WRN_RedundantPattern, "{ Prop1: >0, Prop2: 0 }").WithLocation(4, 22), 8515Diagnostic(ErrorCode.WRN_RedundantPattern, ">0").WithLocation(4, 31), 8518Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(4, 42), 8521Diagnostic(ErrorCode.WRN_RedundantPattern, "(>0, _)").WithLocation(6, 22), 8524Diagnostic(ErrorCode.WRN_RedundantPattern, ">0").WithLocation(6, 23), 8527Diagnostic(ErrorCode.WRN_RedundantPattern, "(>0, 0)").WithLocation(7, 22), 8530Diagnostic(ErrorCode.WRN_RedundantPattern, ">0").WithLocation(7, 23), 8533Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(7, 27), 8536Diagnostic(ErrorCode.WRN_RedundantPattern, "Derived").WithLocation(9, 22), 8539Diagnostic(ErrorCode.WRN_RedundantPattern, "C { Prop1: 0 }").WithLocation(10, 22), 8542Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(10, 33), 8545Diagnostic(ErrorCode.WRN_RedundantPattern, "C (>0, _) { Prop1: 0 }").WithLocation(11, 22), 8548Diagnostic(ErrorCode.WRN_RedundantPattern, ">0").WithLocation(11, 25), 8551Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(11, 41), 8554Diagnostic(ErrorCode.WRN_RedundantPattern, "(>0, _)").WithLocation(14, 22), 8557Diagnostic(ErrorCode.WRN_RedundantPattern, ">0").WithLocation(14, 23), 8560Diagnostic(ErrorCode.WRN_RedundantPattern, "(>0, 0)").WithLocation(15, 22), 8563Diagnostic(ErrorCode.WRN_RedundantPattern, ">0").WithLocation(15, 23), 8566Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(15, 27), 8569Diagnostic(ErrorCode.WRN_RedundantPattern, "[{ Prop1: 42 }, ..]").WithLocation(17, 22), 8572Diagnostic(ErrorCode.WRN_RedundantPattern, "42").WithLocation(17, 32), 8575Diagnostic(ErrorCode.WRN_RedundantPattern, "[_, .. { Prop1: 42 }]").WithLocation(18, 22), 8578Diagnostic(ErrorCode.WRN_RedundantPattern, "42").WithLocation(18, 38)); 8606Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(2, 34), 8609Diagnostic(ErrorCode.WRN_RedundantPattern, "(0)").WithLocation(3, 34), 8615Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(5, 26), 8618Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(6, 35), 8621Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(7, 35), 8624Diagnostic(ErrorCode.WRN_RedundantPattern, "1").WithLocation(7, 40), 8630Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(9, 35), 8633Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(10, 29), 8636Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(11, 45), 8639Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(12, 44), 8642Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(13, 38), 8949Diagnostic(ErrorCode.WRN_RedundantPattern, "string or null").WithLocation(10, 28), 8988Diagnostic(ErrorCode.WRN_RedundantPattern, "B").WithLocation(3, 46) 9014Diagnostic(ErrorCode.WRN_RedundantPattern, "{ F: { F2: 0 } }").WithLocation(3, 22), 9017Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(3, 33) 9033Diagnostic(ErrorCode.WRN_RedundantPattern, "{}").WithLocation(2, 22), 9036Diagnostic(ErrorCode.WRN_RedundantPattern, "{}").WithLocation(3, 23)); 9252Diagnostic(ErrorCode.WRN_RedundantPattern, "C and ({ Prop1: 0 } or { Prop2: 1 })").WithLocation(3, 43), 9255Diagnostic(ErrorCode.WRN_RedundantPattern, "C").WithLocation(3, 43), 9258Diagnostic(ErrorCode.WRN_RedundantPattern, "{ Prop1: 0 }").WithLocation(3, 50), 9261Diagnostic(ErrorCode.WRN_RedundantPattern, "{ Prop1: 0 } or { Prop2: 1 }").WithLocation(3, 50), 9264Diagnostic(ErrorCode.WRN_RedundantPattern, "0").WithLocation(3, 59), 9267Diagnostic(ErrorCode.WRN_RedundantPattern, "{ Prop2: 1 }").WithLocation(3, 66), 9270Diagnostic(ErrorCode.WRN_RedundantPattern, "1").WithLocation(3, 75) 9303Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(4, 20), 9306Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(8, 15), 9309Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(14, 20)); 9315Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(4, 20), 9318Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(8, 15), 9321Diagnostic(ErrorCode.WRN_RedundantPattern, "43").WithLocation(14, 20));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NullableReferenceTypesTests.cs (1)
52067Diagnostic(ErrorCode.WRN_RedundantPattern, "C").WithLocation(24, 42),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
428case ErrorCode.WRN_RedundantPattern: