1 write to OriginalDocument
Microsoft.CodeAnalysis.Features (1)
AddImport\CodeActions\AddImportCodeAction.cs (1)
47
OriginalDocument
= originalDocument;
8 references to OriginalDocument
Microsoft.CodeAnalysis.Features (8)
AddImport\CodeActions\AddImportCodeAction.cs (3)
38
/// The changes to make to <see cref="
OriginalDocument
"/> to add the import.
64
var oldText = await
OriginalDocument
.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
66
var newDocument =
OriginalDocument
.WithText(newText);
AddImport\CodeActions\InstallPackageAndAddImportCodeAction.cs (3)
59
this.
OriginalDocument
.Project.Solution, cancellationToken).ConfigureAwait(false));
88
var oldText = await
OriginalDocument
.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
93
OriginalDocument
.Id, oldText, newText, _installOperation));
AddImport\CodeActions\ProjectSymbolReferenceCodeAction.cs (2)
42
if (!ShouldAddProjectReference(this.
OriginalDocument
, this.FixData))
52
return Task.FromResult<CodeActionOperation?>(new AddProjectReferenceCodeActionOperation(
OriginalDocument
.Project.Id, FixData.ProjectReferenceToAdd, applyOperation));