1 write to _document
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
64_document = document;
20 references to _document
Microsoft.CodeAnalysis.Features (20)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (20)
91if (_service.IsConstructorInitializerGeneration(_document, node, cancellationToken)) 96else if (_service.IsSimpleNameGeneration(_document, node, cancellationToken)) 101else if (_service.IsImplicitObjectCreation(_document, node, cancellationToken)) 112if (!CodeGenerator.CanAdd(_document.Project.Solution, TypeToGenerateIn, cancellationToken)) 137_document, this.TypeToGenerateIn, _arguments, ParameterTypes, parameterNames, cancellationToken).ConfigureAwait(false); 143return _service.GenerateParameterNames(_document, arguments, typeParametersNames, _parameterNamingRule, cancellationToken); 166_document, remainingArguments, 181_document, this.TypeToGenerateIn, remainingArguments, remainingParameterTypes, remainingParameterNames, cancellationToken).ConfigureAwait(false); 232if (GenerateConstructorHelpers.CanDelegateTo(_document, parameters, expressions, constructor) && 233!_service.WillCauseConstructorCycle(this, _document, constructor, cancellationToken)) 243=> _document.Project.Solution.Workspace.Services.GetExtendedLanguageServices(language).GetRequiredService<TLanguageService>(); 285var semanticModel = _document.SemanticModel; 286var allTypes = _arguments.Select(a => _service.GetArgumentType(_document.SemanticModel, a, cancellationToken)); 303_document, constructorInitializer, cancellationToken, 310var semanticInfo = _document.SemanticModel.GetSymbolInfo(constructorInitializer, cancellationToken); 321_document, implicitObjectCreation, cancellationToken, 327var semanticInfo = _document.SemanticModel.GetSymbolInfo(implicitObjectCreation, cancellationToken); 340_document, simpleName, cancellationToken, 347_document, simpleName, cancellationToken, out token, out arguments, out typeToGenerateIn)) 403var definition = SymbolFinderInternal.FindSourceDefinition(original, _document.Project.Solution, cancellationToken);