51 references to Destructor
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
291=> symbol is IMethodSymbol { MethodKind: MethodKind.Destructor };
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (1)
25public override MethodKind MethodKind => MethodKind.Destructor;
Microsoft.CodeAnalysis.CSharp (28)
Compiler\MethodBodySynthesizer.cs (1)
532Debug.Assert(method.MethodKind == MethodKind.Destructor);
Compiler\MethodCompiler.cs (1)
1936if (method.MethodKind == MethodKind.Destructor && body != null)
Emitter\Model\MethodSymbolAdapter.cs (2)
647Debug.Assert(this.MethodKind != MethodKind.Destructor); 651!(this.IsVirtual || this.IsOverride || this.IsAbstract || this.MethodKind == MethodKind.Destructor));
Emitter\Model\NamedTypeSymbolAdapter.cs (2)
358else if (method.MethodKind == MethodKind.Destructor && AdaptedNamedTypeSymbol.SpecialType != SpecialType.System_Object) 369if ((object)objectMethod != null && objectMethod.MethodKind == MethodKind.Destructor)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
328case MethodKind.Destructor: 482case MethodKind.Destructor:
Symbols\Metadata\PE\PEMethodSymbol.cs (3)
630private bool IsDestructor => this.MethodKind == MethodKind.Destructor; 1267return MethodKind.Destructor; 1321method.MethodKind == MethodKind.Destructor);
Symbols\MethodSymbol.cs (1)
606case MethodKind.Destructor:
Symbols\MethodSymbolExtensions.cs (3)
53if (!skipFirstMethodKindCheck && method.MethodKind == MethodKind.Destructor) 100if (hiddenMethod.MethodKind == MethodKind.Destructor) 129case MethodKind.Destructor:
Symbols\PublicModel\MethodSymbol.cs (2)
47case MethodKind.Destructor: 48return MethodKind.Destructor;
Symbols\Source\SourceDestructorSymbol.cs (1)
68MethodKind.Destructor, RefKind.None, declarationModifiers, returnsVoid: true, returnsVoidIsSet: true,
Symbols\Source\SourceMemberContainerSymbol.cs (4)
2168var methodName = (method1.MethodKind == MethodKind.Destructor && method2.MethodKind == MethodKind.Destructor) ? 2448if (member.Kind != SymbolKind.Method || ((MethodSymbol)member).MethodKind != MethodKind.Destructor) 4077case MethodKind.Destructor:
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
552else if (method.MethodKind == MethodKind.Destructor) 891!(overridingMemberIsMethod && ((MethodSymbol)overriddenMember).MethodKind == MethodKind.Destructor)) //destructors are metadata virtual
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
157case MethodKind.Destructor: 734else if (!this.CanBeReferencedByName || this.MethodKind == MethodKind.Destructor)
Symbols\Symbol.cs (2)
673case MethodKind.Destructor: 733case MethodKind.Destructor: // See comment in CanBeReferencedByName.
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\DestructorTests.cs (1)
824Assert.Equal(MethodKind.Destructor, destructor.MethodKind);
Microsoft.CodeAnalysis.CSharp.Features (2)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
1987MethodKind.Destructor => CSharpFeaturesResources.destructor, 2537IMethodSymbol { MethodKind: MethodKind.Destructor }
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\DestructorTests.cs (1)
401Assert.Equal(MethodKind.Destructor, destructor.MethodKind);
Microsoft.CodeAnalysis.Features (1)
RQName\RQNodeBuilder.cs (1)
216else if (symbol.MethodKind == MethodKind.Destructor)
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
121new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Destructor, ReturnsVoid = true }, // C# only
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
BasicTrackingDiagnosticAnalyzer.vb (1)
16methodKind <> MethodKind.Destructor AndAlso
Microsoft.CodeAnalysis.Workspaces (6)
Editing\SyntaxGenerator.cs (1)
740case MethodKind.Destructor:
FindSymbols\FindReferences\Finders\DestructorSymbolReferenceFinder.cs (1)
16=> symbol.MethodKind == MethodKind.Destructor;
Rename\RenameUtilities.cs (1)
363MethodKind.Destructor)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
210MethodKind: MethodKind.Constructor or MethodKind.StaticConstructor or MethodKind.Destructor,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
291=> symbol is IMethodSymbol { MethodKind: MethodKind.Destructor };
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (1)
25public override MethodKind MethodKind => MethodKind.Destructor;
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\DocumentationCommentIdTests.cs (1)
174CheckDeclarationId<IMethodSymbol>("M:Acme.Widget.Finalize", compilation, s => s.MethodKind == MethodKind.Destructor);
Microsoft.VisualStudio.LanguageServices (4)
Implementation\VsRefactorNotifyService.cs (1)
166MethodKind.Destructor)
Library\ObjectBrowser\AbstractListItemFactory.cs (1)
347if (methodSymbol.MethodKind is MethodKind.Destructor or MethodKind.Constructor ||
Progression\GraphBuilder.cs (2)
394else if (methodSymbol.MethodKind == MethodKind.Destructor) 541case MethodKind.Destructor:
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (1)
2198case MethodKind.Destructor:
ObjectBrowser\DescriptionBuilder.cs (2)
191not MethodKind.Destructor and 247methodSymbol.MethodKind == MethodKind.Destructor)