1 write to _document
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
58_document = document;
20 references to _document
Microsoft.CodeAnalysis.CodeStyle.Fixes (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)) 109if (!CodeGenerator.CanAdd(_document.Project.Solution, TypeToGenerateIn, codeGenerationContext, cancellationToken)) 134_document, this.TypeToGenerateIn, _arguments, ParameterTypes, parameterNames, cancellationToken).ConfigureAwait(false); 140return _service.GenerateParameterNames(_document, arguments, typeParametersNames, _parameterNamingRule, cancellationToken); 163_document, remainingArguments, 178_document, this.TypeToGenerateIn, remainingArguments, remainingParameterTypes, remainingParameterNames, cancellationToken).ConfigureAwait(false); 229if (GenerateConstructorHelpers.CanDelegateTo(_document, parameters, expressions, constructor) && 230!_service.WillCauseConstructorCycle(this, _document, constructor, cancellationToken)) 240=> _document.Project.Solution.GetRequiredLanguageService<TLanguageService>(language); 282var semanticModel = _document.SemanticModel; 283var allTypes = _arguments.Select(a => _service.GetArgumentType(_document.SemanticModel, a, cancellationToken)); 300_document, constructorInitializer, cancellationToken, 307var semanticInfo = _document.SemanticModel.GetSymbolInfo(constructorInitializer, cancellationToken); 318_document, implicitObjectCreation, cancellationToken, 324var semanticInfo = _document.SemanticModel.GetSymbolInfo(implicitObjectCreation, cancellationToken); 337_document, simpleName, cancellationToken, 344_document, simpleName, cancellationToken, out token, out arguments, out typeToGenerateIn)) 400var definition = await SymbolFinderInternal.FindSourceDefinitionAsync(original, _document.Project.Solution, cancellationToken).ConfigureAwait(false);