15 references to WRN_GivenExpressionAlwaysMatchesPattern
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Patterns.cs (1)
117
diagnostics.Add(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, node.Location);
Errors\ErrorFacts.cs (2)
481
case ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
:
2009
case ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
:
Generated\ErrorFacts.Generated.cs (1)
248
case ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (9)
Semantics\PatternMatchingTests2.cs (6)
2474
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, "1 is < 2").WithLocation(7, 13),
2480
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, "1 is <= 1").WithLocation(9, 13),
2483
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, "1 is <= 2").WithLocation(10, 13),
2486
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, "1 is > 0").WithLocation(11, 13),
2495
Diagnostic(ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
, "1 is >= 0").WithLocation(14, 13),
2498
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)
378
case ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
:
486
ErrorCode.
WRN_GivenExpressionAlwaysMatchesPattern
,