1 write to _document
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
66
_document
= document;
20 references to _document
Microsoft.CodeAnalysis.Features (20)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (20)
93
if (_service.IsConstructorInitializerGeneration(
_document
, node, cancellationToken))
98
else if (_service.IsSimpleNameGeneration(
_document
, node, cancellationToken))
103
else if (_service.IsImplicitObjectCreation(
_document
, node, cancellationToken))
114
if (!CodeGenerator.CanAdd(
_document
.Project.Solution, TypeToGenerateIn, cancellationToken))
139
_document
, this.TypeToGenerateIn, _arguments, ParameterTypes, parameterNames, cancellationToken).ConfigureAwait(false);
145
return _service.GenerateParameterNames(
_document
, arguments, typeParametersNames, _parameterNamingRule, cancellationToken);
168
_document
, remainingArguments,
183
_document
, this.TypeToGenerateIn, remainingArguments, remainingParameterTypes, remainingParameterNames, cancellationToken).ConfigureAwait(false);
234
if (GenerateConstructorHelpers.CanDelegateTo(
_document
, parameters, expressions, constructor) &&
235
!_service.WillCauseConstructorCycle(this,
_document
, constructor, cancellationToken))
245
=>
_document
.Project.Solution.Workspace.Services.GetExtendedLanguageServices(language).GetRequiredService<TLanguageService>();
287
var semanticModel =
_document
.SemanticModel;
288
var allTypes = _arguments.Select(a => _service.GetArgumentType(
_document
.SemanticModel, a, cancellationToken));
305
_document
, constructorInitializer, cancellationToken,
312
var semanticInfo =
_document
.SemanticModel.GetSymbolInfo(constructorInitializer, cancellationToken);
323
_document
, implicitObjectCreation, cancellationToken,
329
var semanticInfo =
_document
.SemanticModel.GetSymbolInfo(implicitObjectCreation, cancellationToken);
342
_document
, simpleName, cancellationToken,
349
_document
, simpleName, cancellationToken, out token, out arguments, out typeToGenerateIn))
406
var definition = SymbolFinderInternal.FindSourceDefinition(original,
_document
.Project.Solution, cancellationToken);