11 references to ERR_OnlyClassesCanContainDestructors
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
975
or ErrorCode.
ERR_OnlyClassesCanContainDestructors
Symbols\Source\SourceDestructorSymbol.cs (1)
58
diagnostics.Add(ErrorCode.
ERR_OnlyClassesCanContainDestructors
, location);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4612
diagnostics.Add(ErrorCode.
ERR_OnlyClassesCanContainDestructors
, member.GetFirstLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\PrimaryConstructorTests.cs (1)
8021
diagnosticsToCheck.Where(d => d.Code is not ((int)ErrorCode.
ERR_OnlyClassesCanContainDestructors
)).
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\ReadOnlyStructsTests.cs (1)
2049
Diagnostic(ErrorCode.
ERR_OnlyClassesCanContainDestructors
, "S").WithLocation(4, 15));
Semantics\RecordStructTests.cs (3)
1189
Diagnostic(ErrorCode.
ERR_OnlyClassesCanContainDestructors
, "S").WithLocation(4, 6)
3160
Diagnostic(ErrorCode.
ERR_OnlyClassesCanContainDestructors
, "iiii").WithLocation(4, 6)
3181
Diagnostic(ErrorCode.
ERR_OnlyClassesCanContainDestructors
, "R").WithLocation(5, 6)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\DestructorTests.cs (2)
79
Diagnostic(ErrorCode.
ERR_OnlyClassesCanContainDestructors
, "S").WithLocation(4, 6),
85
Diagnostic(ErrorCode.
ERR_OnlyClassesCanContainDestructors
, "I").WithLocation(9, 6));
Symbols\SymbolErrorTests.cs (1)
11034
new ErrorDescription { Code = (int)ErrorCode.
ERR_OnlyClassesCanContainDestructors
, Line = 5, Column = 10 });