27 references to DestructorName
Microsoft.CodeAnalysis.CSharp (10)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
466return WellKnownMemberNames.DestructorName;
Compilation\SyntaxTreeSemanticModel.cs (1)
1668return WellKnownMemberNames.DestructorName;
Compiler\MethodBodySynthesizer.cs (1)
598foreach (Symbol member in baseType.GetMembers(WellKnownMemberNames.DestructorName))
Declarations\DeclarationTreeBuilder.cs (1)
1191set.Add(WellKnownMemberNames.DestructorName);
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
366foreach (Symbol objectMember in objectType.GetMembers(WellKnownMemberNames.DestructorName))
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1263case WellKnownMemberNames.DestructorName: 1320method.Name == WellKnownMemberNames.DestructorName && // Cheaper than MethodKind.
Symbols\MethodSymbolExtensions.cs (1)
45if ((object)method == null || method.Name != WellKnownMemberNames.DestructorName ||
Symbols\Source\SourceDestructorSymbol.cs (1)
142get { return WellKnownMemberNames.DestructorName; }
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (1)
52if (this.Name == WellKnownMemberNames.DestructorName && this.ParameterCount == 0 && this.Arity == 0 && this.ReturnsVoid)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\DestructorTests.cs (3)
783Single(handle => peFileReader.GetString(peFileReader.GetMethodDefinition(handle).Name) == WellKnownMemberNames.DestructorName); 795peFileReader.GetString(pair.row.Name) == WellKnownMemberNames.DestructorName).handle; 822var destructor = @class.GetMember<MethodSymbol>(WellKnownMemberNames.DestructorName);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\DestructorTests.cs (4)
400var destructor = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>(WellKnownMemberNames.DestructorName); 402Assert.Equal(WellKnownMemberNames.DestructorName, destructor.Name); 414Assert.Equal(WellKnownMemberNames.DestructorName, finalizeSyntax.ToString()); 420var lookupSymbols = model.LookupSymbols(finalizeSyntax.SpanStart, name: WellKnownMemberNames.DestructorName);
Symbols\InterfaceImplementationTests.cs (1)
1863var returnType = derived.GetMember<MethodSymbol>(WellKnownMemberNames.DestructorName).ReturnTypeWithAnnotations;
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
2591var method = type.GetMembers(WellKnownMemberNames.DestructorName).Single();
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (2)
226syntaxFactory.IdentifierName(WellKnownMemberNames.DestructorName)))) 235name:=WellKnownMemberNames.DestructorName,
Microsoft.CodeAnalysis.VisualBasic.Features (4)
IntroduceParameter\VisualBasicIntroduceParameterCodeRefactoringProvider.vb (1)
35Return methodSymbol.Name.Equals(WellKnownMemberNames.DestructorName)
NavigationBar\VisualBasicNavigationBarItemService.vb (3)
225Dim finalizeMethods = type.GetMembers(WellKnownMemberNames.DestructorName) 229childItems.Add(New GenerateFinalizer(WellKnownMemberNames.DestructorName, type.GetSymbolKey(cancellationToken))) 242If Not CaseInsensitiveComparison.Equals(memberGroup.Key, WellKnownMemberNames.DestructorName) Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
2444Dim method = type.GetMembers(WellKnownMemberNames.DestructorName).Single()
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (1)
42Add(result, symbol.GetMembers(WellKnownMemberNames.DestructorName));