1 write to _document
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
66
_document
= document;
22 references to _document
Microsoft.CodeAnalysis.Features (22)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (22)
97
if (_service.IsConstructorInitializerGeneration(
_document
, node, cancellationToken))
102
else if (_service.IsSimpleNameGeneration(
_document
, node, cancellationToken))
107
else if (_service.IsImplicitObjectCreation(
_document
, node, cancellationToken))
118
if (!CodeGenerator.CanAdd(
_document
.Project.Solution, TypeToGenerateIn, cancellationToken))
146
return _service.GenerateParameterNames(
_document
, arguments, typeParametersNames, _parameterNamingRule, cancellationToken);
167
_document
, remainingArguments,
230
if (GenerateConstructorHelpers.CanDelegateTo(
_document
, parameters, expressions, constructor) &&
231
!_service.WillCauseConstructorCycle(this,
_document
, constructor, cancellationToken))
241
=>
_document
.Project.Solution.Workspace.Services.GetExtendedLanguageServices(language).GetRequiredService<TLanguageService>();
283
var semanticModel =
_document
.SemanticModel;
284
var allTypes = _arguments.Select(a => _service.GetArgumentType(
_document
.SemanticModel, a, cancellationToken));
301
_document
, constructorInitializer, cancellationToken,
308
var semanticInfo =
_document
.SemanticModel.GetSymbolInfo(constructorInitializer, cancellationToken);
319
_document
, implicitObjectCreation, cancellationToken,
325
var semanticInfo =
_document
.SemanticModel.GetSymbolInfo(implicitObjectCreation, cancellationToken);
338
_document
, simpleName, cancellationToken,
345
_document
, simpleName, cancellationToken, out token, out arguments, out typeToGenerateIn))
402
var definition = await SymbolFinder.FindSourceDefinitionAsync(original,
_document
.Project.Solution, cancellationToken).ConfigureAwait(false);
471
where ignoreAccessibility || IsSymbolAccessible(m,
_document
)
488
var baseName = _service.GenerateNameForArgument(
_document
.SemanticModel, argument, cancellationToken);
549
_service.IsConversionImplicit(
_document
.SemanticModel.Compilation, parameterType, field.Type);
556
_service.IsConversionImplicit(
_document
.SemanticModel.Compilation, parameterType, property.Type);