2 references to TryGetContainingAnonymousFunctionOrLocalFunction
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
293if (fieldReference.TryGetContainingAnonymousFunctionOrLocalFunction() is not null)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
232var containingMethod = TryGetContainingAnonymousFunctionOrLocalFunction(operation) ?? (containingSymbol as IMethodSymbol);