1 write to _document
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
58_document = document;
20 references to _document
Microsoft.CodeAnalysis.Features (20)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (20)
85if (_service.IsConstructorInitializerGeneration(_document, node, cancellationToken)) 90else if (_service.IsSimpleNameGeneration(_document, node, cancellationToken)) 95else if (_service.IsImplicitObjectCreation(_document, node, cancellationToken)) 106if (!CodeGenerator.CanAdd(_document.Project.Solution, TypeToGenerateIn, cancellationToken)) 131_document, this.TypeToGenerateIn, _arguments, ParameterTypes, parameterNames, cancellationToken).ConfigureAwait(false); 137return _service.GenerateParameterNames(_document, arguments, typeParametersNames, _parameterNamingRule, cancellationToken); 160_document, remainingArguments, 175_document, this.TypeToGenerateIn, remainingArguments, remainingParameterTypes, remainingParameterNames, cancellationToken).ConfigureAwait(false); 226if (GenerateConstructorHelpers.CanDelegateTo(_document, parameters, expressions, constructor) && 227!_service.WillCauseConstructorCycle(this, _document, constructor, cancellationToken)) 237=> _document.Project.Solution.Workspace.Services.GetExtendedLanguageServices(language).GetRequiredService<TLanguageService>(); 279var semanticModel = _document.SemanticModel; 280var allTypes = _arguments.Select(a => _service.GetArgumentType(_document.SemanticModel, a, cancellationToken)); 297_document, constructorInitializer, cancellationToken, 304var semanticInfo = _document.SemanticModel.GetSymbolInfo(constructorInitializer, cancellationToken); 315_document, implicitObjectCreation, cancellationToken, 321var semanticInfo = _document.SemanticModel.GetSymbolInfo(implicitObjectCreation, cancellationToken); 334_document, simpleName, cancellationToken, 341_document, simpleName, cancellationToken, out token, out arguments, out typeToGenerateIn)) 397var definition = await SymbolFinderInternal.FindSourceDefinitionAsync(original, _document.Project.Solution, cancellationToken).ConfigureAwait(false);