9 references to _state
Microsoft.CodeAnalysis.Features (9)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateLocalCodeAction.cs (9)
33_state.IdentifierToken.ValueText); 49if (_service.TryConvertToLocalDeclaration(_state.LocalType, _state.IdentifierToken, semanticModel, cancellationToken, out var newRoot)) 55var initializer = _state.IsOnlyWrittenTo 57: syntaxFactory.DefaultExpression(_state.LocalType); 59var type = _state.LocalType; 60var localStatement = syntaxFactory.LocalDeclarationStatement(type, _state.IdentifierToken.ValueText, initializer); 63var root = _state.IdentifierToken.GetAncestors<SyntaxNode>().Last(); 64var context = new CodeGenerationContext(beforeThisLocation: _state.IdentifierToken.GetLocation());