11 references to ERR_OnlyClassesCanContainDestructors
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
913case ErrorCode.ERR_OnlyClassesCanContainDestructors:
Symbols\Source\SourceDestructorSymbol.cs (1)
62diagnostics.Add(ErrorCode.ERR_OnlyClassesCanContainDestructors, location);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3801diagnostics.Add(ErrorCode.ERR_OnlyClassesCanContainDestructors, member.Locations[0]);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\PrimaryConstructorTests.cs (1)
7405diagnosticsToCheck.Where(d => d.Code is not ((int)ErrorCode.ERR_OnlyClassesCanContainDestructors)).
Semantics\ReadOnlyStructsTests.cs (1)
2049Diagnostic(ErrorCode.ERR_OnlyClassesCanContainDestructors, "S").WithLocation(4, 15));
Semantics\RecordStructTests.cs (3)
1189Diagnostic(ErrorCode.ERR_OnlyClassesCanContainDestructors, "S").WithLocation(4, 6) 3088Diagnostic(ErrorCode.ERR_OnlyClassesCanContainDestructors, "iiii").WithLocation(4, 6) 3109Diagnostic(ErrorCode.ERR_OnlyClassesCanContainDestructors, "R").WithLocation(5, 6)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\DestructorTests.cs (2)
79Diagnostic(ErrorCode.ERR_OnlyClassesCanContainDestructors, "S").WithLocation(4, 6), 85Diagnostic(ErrorCode.ERR_OnlyClassesCanContainDestructors, "I").WithLocation(9, 6));
Symbols\SymbolErrorTests.cs (1)
10891new ErrorDescription { Code = (int)ErrorCode.ERR_OnlyClassesCanContainDestructors, Line = 5, Column = 10 });