1 write to _document
Microsoft.CodeAnalysis.Features (1)
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (1)
51
_document
= document;
18 references to _document
Microsoft.CodeAnalysis.Features (18)
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (18)
90
var info = await
_document
.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, _fallbackOptions, cancellationToken).ConfigureAwait(false);
91
var formattingOptions = await
_document
.GetSyntaxFormattingOptionsAsync(_fallbackOptions, cancellationToken).ConfigureAwait(false);
97
var generator =
_document
.GetRequiredLanguageService<SyntaxGenerator>();
106
var service =
_document
.GetRequiredLanguageService<IGenerateEqualsAndGetHashCodeService>();
118
var semanticModel = await
_document
.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
134
var oldRoot = await
_document
.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
135
var newDocument =
_document
.WithSyntaxRoot(oldRoot.ReplaceNode(oldType, newType));
136
var addImportOptions = await
_document
.GetAddImportPlacementOptionsAsync(_fallbackOptions, cancellationToken).ConfigureAwait(false);
144
var compilation = await
_document
.Project.GetRequiredCompilationAsync(cancellationToken).ConfigureAwait(false);
146
var generator =
_document
.GetRequiredLanguageService<SyntaxGenerator>();
147
var generatorInternal =
_document
.GetRequiredLanguageService<SyntaxGeneratorInternal>();
206
var service =
_document
.GetRequiredLanguageService<IGenerateEqualsAndGetHashCodeService>();
207
return service.GenerateGetHashCodeMethodAsync(
_document
, _containingType, _selectedMembers, cancellationToken);
212
var service =
_document
.GetRequiredLanguageService<IGenerateEqualsAndGetHashCodeService>();
214
? service.GenerateEqualsMethodThroughIEquatableEqualsAsync(
_document
, _containingType, cancellationToken)
215
: service.GenerateEqualsMethodAsync(
_document
, _containingType, _selectedMembers, cancellationToken);
220
var service =
_document
.GetRequiredLanguageService<IGenerateEqualsAndGetHashCodeService>();
222
_document
, _containingType, _selectedMembers, constructedEquatableType, cancellationToken).ConfigureAwait(false);