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