15 references to WRN_GivenExpressionAlwaysMatchesPattern
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Patterns.cs (1)
118diagnostics.Add(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, node.Location);
Errors\ErrorFacts.cs (2)
494case ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern: 2066or ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern
Generated\ErrorFacts.Generated.cs (1)
248case ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Semantics\PatternMatchingTests2.cs (6)
2470Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "1 is < 2").WithLocation(7, 13), 2476Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "1 is <= 1").WithLocation(9, 13), 2479Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "1 is <= 2").WithLocation(10, 13), 2482Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "1 is > 0").WithLocation(11, 13), 2491Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "1 is >= 0").WithLocation(14, 13), 2494Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "1 is >= 1").WithLocation(15, 13),
Semantics\PatternMatchingTests3.cs (3)
6496Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "s is not string t").WithLocation(17, 13)); 6765Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, $"i is {pattern}").WithLocation(12, 15), 6826Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, $"i is not ({pattern})").WithLocation(17, 13)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (2)
400case ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern: 524ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern,