13 references to WRN_GivenExpressionAlwaysMatchesConstant
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Patterns.cs (1)
111diagnostics.Add(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, node.Location);
Errors\ErrorFacts.cs (2)
466case ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant: 1937or ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant
Generated\ErrorFacts.Generated.cs (1)
191case ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Semantics\PatternMatchingTests.cs (7)
3166Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "1 is 1").WithLocation(7, 27), 3175Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "int.MaxValue is int.MaxValue").WithLocation(10, 27), 3181Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "Int32.MaxValue is Int32.MaxValue").WithLocation(12, 27) 4071Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "3 is One + 2").WithLocation(15, 27), 4077Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "One + 2 is 3").WithLocation(16, 27)); 4088Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "3 is One + 2").WithLocation(15, 27), 4091Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "One + 2 is 3").WithLocation(16, 27)
Semantics\PatternMatchingTests2.cs (1)
1502Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "N is M").WithLocation(8, 13)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
285case ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant: