3 references to GetAncestor
Roslyn.Diagnostics.Analyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (3)
299
return
GetAncestor
(ancestor, ancestorKinds, predicate);
558
containingLambdaOrLocalFunctionOperation = operation.
GetAncestor
(s_LambdaAndLocalFunctionKinds);
564
&& operation.
GetAncestor
(s_LambdaAndLocalFunctionKinds)?.Parent?.Type?.OriginalDefinition is { } lambdaType