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