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)
91
if (_service.IsConstructorInitializerGeneration(
_document
, node, cancellationToken))
96
else if (_service.IsSimpleNameGeneration(
_document
, node, cancellationToken))
101
else if (_service.IsImplicitObjectCreation(
_document
, node, cancellationToken))
112
if (!CodeGenerator.CanAdd(
_document
.Project.Solution, TypeToGenerateIn, cancellationToken))
137
_document
, this.TypeToGenerateIn, _arguments, ParameterTypes, parameterNames, cancellationToken).ConfigureAwait(false);
143
return _service.GenerateParameterNames(
_document
, arguments, typeParametersNames, _parameterNamingRule, cancellationToken);
166
_document
, remainingArguments,
181
_document
, this.TypeToGenerateIn, remainingArguments, remainingParameterTypes, remainingParameterNames, cancellationToken).ConfigureAwait(false);
232
if (GenerateConstructorHelpers.CanDelegateTo(
_document
, parameters, expressions, constructor) &&
233
!_service.WillCauseConstructorCycle(this,
_document
, constructor, cancellationToken))
243
=>
_document
.Project.Solution.Workspace.Services.GetExtendedLanguageServices(language).GetRequiredService<TLanguageService>();
285
var semanticModel =
_document
.SemanticModel;
286
var allTypes = _arguments.Select(a => _service.GetArgumentType(
_document
.SemanticModel, a, cancellationToken));
303
_document
, constructorInitializer, cancellationToken,
310
var semanticInfo =
_document
.SemanticModel.GetSymbolInfo(constructorInitializer, cancellationToken);
321
_document
, implicitObjectCreation, cancellationToken,
327
var semanticInfo =
_document
.SemanticModel.GetSymbolInfo(implicitObjectCreation, cancellationToken);
340
_document
, simpleName, cancellationToken,
347
_document
, simpleName, cancellationToken, out token, out arguments, out typeToGenerateIn))
403
var definition = SymbolFinderInternal.FindSourceDefinition(original,
_document
.Project.Solution, cancellationToken);