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