33 references to WRN_EqualityOpWithoutEquals
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
275
case ErrorCode.
WRN_EqualityOpWithoutEquals
:
1022
or ErrorCode.
WRN_EqualityOpWithoutEquals
Generated\ErrorFacts.Generated.cs (1)
55
case ErrorCode.
WRN_EqualityOpWithoutEquals
:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2906
diagnostics.Add(ErrorCode.
WRN_EqualityOpWithoutEquals
, this.GetFirstLocation(), this);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenOperators.cs (2)
6418
Diagnostic(ErrorCode.
WRN_EqualityOpWithoutEquals
, "Wrapper").WithArguments("BadImageFormatExceptionRepro.Program.Wrapper<T>").WithLocation(9, 33),
6570
Diagnostic(ErrorCode.
WRN_EqualityOpWithoutEquals
, "C").WithArguments("BadImageFormatExceptionRepro.C").WithLocation(29, 11),
CodeGen\CodeGenTupleEqualityTests.cs (1)
5562
Diagnostic(ErrorCode.
WRN_EqualityOpWithoutEquals
, "B").WithArguments("B").WithLocation(22, 8),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\NumericIntPtrTests.cs (2)
439
Diagnostic(ErrorCode.
WRN_EqualityOpWithoutEquals
, "IntPtr").WithArguments("nint").WithLocation(12, 26),
445
Diagnostic(ErrorCode.
WRN_EqualityOpWithoutEquals
, "UIntPtr").WithArguments("nuint").WithLocation(28, 26),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\NativeIntegerTests.cs (2)
2065
Diagnostic(ErrorCode.
WRN_EqualityOpWithoutEquals
, "IntPtr").WithArguments("System.IntPtr").WithLocation(12, 26),
2071
Diagnostic(ErrorCode.
WRN_EqualityOpWithoutEquals
, "UIntPtr").WithArguments("System.UIntPtr").WithLocation(28, 26),
Semantics\OperatorTests.cs (1)
1304
Diagnostic(ErrorCode.
WRN_EqualityOpWithoutEquals
, "S").WithArguments("S").WithLocation(3, 8),
Semantics\TargetTypedDefaultTests.cs (2)
3334
Diagnostic(ErrorCode.
WRN_EqualityOpWithoutEquals
, "C").WithArguments("C").WithLocation(2, 7),
3373
Diagnostic(ErrorCode.
WRN_EqualityOpWithoutEquals
, "C").WithArguments("C").WithLocation(2, 7),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (19)
Symbols\CheckedUserDefinedOperatorsTests.cs (8)
2198
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).Verify(
2241
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).Verify(
2298
compilation.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
2309
compilation.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
2342
compilation.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
2392
compilation.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
2403
compilation.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
2436
compilation.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
Symbols\StaticAbstractMembersInInterfacesTests.cs (9)
18127
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).Verify(
18270
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).Verify(
19450
compilation2.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).Verify(
19479
compilation2.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).Verify(
19503
compilation3.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or
19545
compilation3.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).Verify(
19658
compilation2.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).Verify(
19668
compilation3.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).Verify(
32969
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.
WRN_EqualityOpWithoutEquals
or
Symbols\SymbolErrorTests.cs (2)
2977
Diagnostic(ErrorCode.
WRN_EqualityOpWithoutEquals
, "MyClass").WithArguments("MyClass"),
18322
Diagnostic(ErrorCode.
WRN_EqualityOpWithoutEquals
, "Test").WithArguments("Test"));