1 write to ContainingMethod
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
308
ContainingMethod
= FindContainingMethodSymbol(IdentifierToken.SpanStart, semanticModel, cancellationToken);
3 references to ContainingMethod
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (2)
203
var containingMethod = state.
ContainingMethod
;
240
if (AddParameterService.HasCascadingDeclarations(state.
ContainingMethod
))
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
181
return
ContainingMethod
is { IsImplicitlyDeclared: false, Name: not WellKnownMemberNames.TopLevelStatementsEntryPointMethodName }