12 references to ERR_StaticAPIInRecord
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
2076
case ErrorCode.
ERR_StaticAPIInRecord
:
Symbols\Source\SourceMemberContainerSymbol.cs (2)
4059
diagnostics.Add(ErrorCode.
ERR_StaticAPIInRecord
, deconstruct.Locations[0], deconstruct);
4497
diagnostics.Add(ErrorCode.
ERR_StaticAPIInRecord
, symbol.Locations[0], symbol);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\RecordStructTests.cs (4)
3926
Diagnostic(ErrorCode.
ERR_StaticAPIInRecord
, "Deconstruct").WithArguments("A.Deconstruct(out int)").WithLocation(4, 24)
4429
Diagnostic(ErrorCode.
ERR_StaticAPIInRecord
, "Equals").WithArguments("A.Equals(A)").WithLocation(4, 24),
5021
Diagnostic(ErrorCode.
ERR_StaticAPIInRecord
, "Equals").WithArguments("A.Equals(A)").WithLocation(4, 24),
5769
Diagnostic(ErrorCode.
ERR_StaticAPIInRecord
, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").WithLocation(4, 25)
Semantics\RecordTests.cs (5)
7471
Diagnostic(ErrorCode.
ERR_StaticAPIInRecord
, "PrintMembers").WithArguments("C.PrintMembers(System.Text.StringBuilder)").WithLocation(4, 25)
15522
Diagnostic(ErrorCode.
ERR_StaticAPIInRecord
, "Deconstruct").WithArguments("A.Deconstruct(out int)").WithLocation(4, 24)
18753
Diagnostic(ErrorCode.
ERR_StaticAPIInRecord
, "Equals").WithArguments("A.Equals(A)").WithLocation(4, 24),
20002
Diagnostic(ErrorCode.
ERR_StaticAPIInRecord
, "EqualityContract").WithArguments("A.EqualityContract").WithLocation(3, 34),
20022
Diagnostic(ErrorCode.
ERR_StaticAPIInRecord
, "EqualityContract").WithArguments("A.EqualityContract").WithLocation(3, 32)