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