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