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