1 instantiation of State
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
79
var state = new
State
(service, document);
20 references to State
Microsoft.CodeAnalysis.CodeStyle.Fixes (20)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (4)
30
private readonly
State
_state;
40
State
state,
126
private Accessibility DetermineMinimalAccessibility(
State
state)
175
private static bool DerivesFrom(
State
state, INamedTypeSymbol containingType)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (10)
41
var
state =
State
.Generate((TService)this, semanticDocument, node, cancellationToken);
87
ArrayBuilder<CodeAction> result, SemanticDocument document,
State
state, CancellationToken cancellationToken)
116
Document document,
State
state, SymbolKind kind, Accessibility accessibility, CancellationToken cancellationToken)
130
private static void GenerateWritableProperty(ArrayBuilder<CodeAction> result, SemanticDocument document,
State
state)
137
private static void AddFieldCodeActions(ArrayBuilder<CodeAction> result, SemanticDocument document,
State
state)
169
private static void GenerateWriteableField(ArrayBuilder<CodeAction> result, SemanticDocument document,
State
state)
176
ArrayBuilder<CodeAction> result, Document document,
State
state, CancellationToken cancellationToken)
192
ArrayBuilder<CodeAction> result, Document document,
State
state, CancellationToken cancellationToken)
245
private static RefKind GetRefKindFromContext(
State
state)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateLocalCodeAction.cs (2)
21
private sealed class GenerateLocalCodeAction(TService service, Document document,
State
state) : CodeAction
25
private readonly
State
_state = state;
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateParameterCodeAction.cs (2)
19
State
state,
24
private readonly
State
_state = state;
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (2)
73
public static
State
Generate(
79
var
state = new State(service, document);