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)
85
if (_service.IsConstructorInitializerGeneration(
_document
, node, cancellationToken))
90
else if (_service.IsSimpleNameGeneration(
_document
, node, cancellationToken))
95
else if (_service.IsImplicitObjectCreation(
_document
, node, cancellationToken))
106
if (!CodeGenerator.CanAdd(
_document
.Project.Solution, TypeToGenerateIn, cancellationToken))
131
_document
, this.TypeToGenerateIn, _arguments, ParameterTypes, parameterNames, cancellationToken).ConfigureAwait(false);
137
return _service.GenerateParameterNames(
_document
, arguments, typeParametersNames, _parameterNamingRule, cancellationToken);
160
_document
, remainingArguments,
175
_document
, this.TypeToGenerateIn, remainingArguments, remainingParameterTypes, remainingParameterNames, cancellationToken).ConfigureAwait(false);
226
if (GenerateConstructorHelpers.CanDelegateTo(
_document
, parameters, expressions, constructor) &&
227
!_service.WillCauseConstructorCycle(this,
_document
, constructor, cancellationToken))
237
=>
_document
.Project.Solution.Workspace.Services.GetExtendedLanguageServices(language).GetRequiredService<TLanguageService>();
279
var semanticModel =
_document
.SemanticModel;
280
var allTypes = _arguments.Select(a => _service.GetArgumentType(
_document
.SemanticModel, a, cancellationToken));
297
_document
, constructorInitializer, cancellationToken,
304
var semanticInfo =
_document
.SemanticModel.GetSymbolInfo(constructorInitializer, cancellationToken);
315
_document
, implicitObjectCreation, cancellationToken,
321
var semanticInfo =
_document
.SemanticModel.GetSymbolInfo(implicitObjectCreation, cancellationToken);
334
_document
, simpleName, cancellationToken,
341
_document
, simpleName, cancellationToken, out token, out arguments, out typeToGenerateIn))
397
var definition = await SymbolFinderInternal.FindSourceDefinitionAsync(original,
_document
.Project.Solution, cancellationToken).ConfigureAwait(false);