15 references to WRN_GivenExpressionAlwaysMatchesPattern
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Patterns.cs (1)
123
diagnostics.Add(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, node.Location);
Errors\ErrorFacts.cs (2)
493
case ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
:
2066
or ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
Generated\ErrorFacts.Generated.cs (1)
247
case ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Semantics\PatternMatchingTests2.cs (6)
2487
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, "1 is < 2").WithLocation(7, 13),
2493
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, "1 is <= 1").WithLocation(9, 13),
2496
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, "1 is <= 2").WithLocation(10, 13),
2499
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, "1 is > 0").WithLocation(11, 13),
2508
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, "1 is >= 0").WithLocation(14, 13),
2511
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, "1 is >= 1").WithLocation(15, 13),
Semantics\PatternMatchingTests3.cs (3)
6488
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, "s is not string t").WithLocation(17, 13));
6757
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, $"i is {pattern}").WithLocation(12, 15),
6818
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, $"i is not ({pattern})").WithLocation(17, 13)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (2)
388
case ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
:
523
ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
,