4 references to GetAncestor
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
148var ancestor = node.GetAncestor<TParent>(); 165var ancestor = node.GetAncestor<TParent>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (2)
196var usingDirective = contextNode.GetAncestor<TUsingOrAliasSyntax>(); 199return node.GetAncestor<TNamespaceDeclarationSyntax>() ??