3 references to GetAncestor
Roslyn.Diagnostics.Analyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (3)
265
return
GetAncestor
(ancestor, ancestorKind, predicate);
312
return operation.
GetAncestor
(OperationKind.ConditionalAccess, (IConditionalAccessOperation c) => c.Operation.Syntax == operation.Syntax);
327
(operation.
GetAncestor
<IAnonymousObjectCreationOperation>(OperationKind.AnonymousObjectCreation) != null));