1 write to _document
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
58
_document
= document;
20 references to _document
Microsoft.CodeAnalysis.CodeStyle.Fixes (20)
src\roslyn\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))
108
if (!CodeGenerator.CanAdd(
_document
.Project.Solution, TypeToGenerateIn, codeGenerationContext, cancellationToken))
133
_document
, this.TypeToGenerateIn, _arguments, ParameterTypes, parameterNames, cancellationToken).ConfigureAwait(false);
139
return _service.GenerateParameterNames(
_document
, arguments, typeParametersNames, _parameterNamingRule, cancellationToken);
162
_document
, remainingArguments,
177
_document
, this.TypeToGenerateIn, remainingArguments, remainingParameterTypes, remainingParameterNames, cancellationToken).ConfigureAwait(false);
228
if (GenerateConstructorHelpers.CanDelegateTo(
_document
, parameters, expressions, constructor) &&
229
!_service.WillCauseConstructorCycle(this,
_document
, constructor, cancellationToken))
239
=>
_document
.Project.Solution.GetRequiredLanguageService<TLanguageService>(language);
281
var semanticModel =
_document
.SemanticModel;
282
var allTypes = _arguments.Select(a => _service.GetArgumentType(
_document
.SemanticModel, a, cancellationToken));
299
_document
, constructorInitializer, cancellationToken,
306
var semanticInfo =
_document
.SemanticModel.GetSymbolInfo(constructorInitializer, cancellationToken);
317
_document
, implicitObjectCreation, cancellationToken,
323
var semanticInfo =
_document
.SemanticModel.GetSymbolInfo(implicitObjectCreation, cancellationToken);
336
_document
, simpleName, cancellationToken,
343
_document
, simpleName, cancellationToken, out token, out arguments, out typeToGenerateIn))
399
var definition = await SymbolFinderInternal.FindSourceDefinitionAsync(original,
_document
.Project.Solution, cancellationToken).ConfigureAwait(false);