1 write to _state
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
47
_state
= state;
22 references to _state
Microsoft.CodeAnalysis.CodeStyle.Fixes (22)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (22)
57
var generateUnsafe =
_state
.TypeMemberType.RequiresUnsafeModifier() &&
58
!
_state
.IsContainedInUnsafeType;
63
afterThisLocation:
_state
.AfterThisLocation,
64
beforeThisLocation:
_state
.BeforeThisLocation,
65
contextLocation:
_state
.IdentifierToken.GetLocation()));
69
var getAccessor = CreateAccessor(
_state
.DetermineMaximalAccessibility());
72
: CreateAccessor(DetermineMinimalAccessibility(
_state
));
76
accessibility:
_state
.DetermineMaximalAccessibility(),
77
modifiers: new DeclarationModifiers(isStatic:
_state
.IsStatic, isUnsafe: generateUnsafe),
78
type:
_state
.TypeMemberType,
81
name:
_state
.IdentifierToken.ValueText,
82
isIndexer:
_state
.IsIndexer,
83
parameters:
_state
.Parameters,
88
context,
_state
.TypeToGenerateIn, propertySymbol, cancellationToken).ConfigureAwait(false);
94
accessibility: DetermineMinimalAccessibility(
_state
),
97
: new DeclarationModifiers(isStatic:
_state
.IsStatic, isReadOnly: _isReadonly, isUnsafe: generateUnsafe),
98
type:
_state
.TypeMemberType,
99
name:
_state
.IdentifierToken.ValueText);
102
context,
_state
.TypeToGenerateIn, fieldSymbol, cancellationToken).ConfigureAwait(false);
116
var syntaxFactory = _semanticDocument.Project.Solution.Services.GetLanguageServices(
_state
.TypeToGenerateIn.Language).GetService<SyntaxGenerator>();
121
return
_state
.TypeToGenerateIn.TypeKind != TypeKind.Interface && _refKind != RefKind.None
193
_state
.IdentifierToken.ValueText);