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