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