49 references to WRN_RecordEqualsWithoutGetHashCode
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
274
case ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
:
2050
case ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
:
Generated\ErrorFacts.Generated.cs (1)
258
case ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3997
diagnostics.Add(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, thisEquals.Locations[0], declaration.Name);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (40)
Semantics\RecordStructTests.cs (12)
128
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("S").WithLocation(5, 17));
170
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("S").WithLocation(5, 17));
4066
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 17),
4069
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B").WithLocation(12, 17)
4169
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B").WithLocation(8, 17)
4223
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 11 + accessibility.Length)
4250
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 11 + accessibility.Length)
4355
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 16)
4409
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 17)
4432
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 24)
4837
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("C").WithLocation(5, 17));
5024
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 24)
Semantics\RecordTests.cs (28)
2781
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("C").WithLocation(5, 17));
18048
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(5, 26),
18051
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B").WithLocation(9, 25)
18087
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B").WithLocation(9, 26)
18121
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B").WithLocation(9, 33)
18157
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B").WithLocation(9, 33)
18399
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 19 + accessibility.Length)
18428
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 19 + accessibility.Length)
18492
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 24)
18565
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 25)
18589
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 28)
18729
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 24),
18756
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 24)
20458
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(6, 25)
20626
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 24)
20651
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(4, 27)
22947
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B").WithLocation(8, 25)
23246
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B").WithLocation(15, 25),
23689
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B1").WithLocation(8, 25),
23692
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B2").WithLocation(15, 25)
23732
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B1").WithLocation(8, 25),
23735
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B2").WithLocation(15, 25)
24080
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(5, 25),
24083
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B").WithLocation(9, 25)
24145
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(5, 25),
24148
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("B").WithLocation(9, 25)
24541
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(3, 27)
24563
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("A").WithLocation(3, 17),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\Source\RecordTests.cs (3)
235
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("C").WithLocation(4, 17),
273
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("C").WithLocation(10, 25)
315
Diagnostic(ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
, "Equals").WithArguments("C").WithLocation(13, 17)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (2)
316
case ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
:
503
ErrorCode.
WRN_RecordEqualsWithoutGetHashCode
,