10 references to ImportAdder
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
CodeGeneration\AddImportsTests.cs (4)
90
? await
ImportAdder
.AddImportsFromSymbolAnnotationAsync(doc, addImportOptions, CancellationToken.None)
91
: await
ImportAdder
.AddImportsFromSyntaxesAsync(doc, addImportOptions, CancellationToken.None);
814
? await
ImportAdder
.AddImportsFromSymbolAnnotationAsync(documentWithAttribute, addImportOptions, CancellationToken.None).ConfigureAwait(false)
815
: await
ImportAdder
.AddImportsFromSyntaxesAsync(documentWithAttribute, addImportOptions, CancellationToken.None).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (3)
ChangeSignature\AbstractChangeSignatureService.cs (1)
424
var docWithImports = await
ImportAdder
.AddImportsFromSymbolAnnotationAsync(updatedDoc, cleanupOptions.AddImportOptions, cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (1)
121
newDocument = await
ImportAdder
.AddImportsFromSymbolAnnotationAsync(newDocument, addImportOptions, cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
148
document = await
ImportAdder
.AddImportsFromSymbolAnnotationAsync(
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (2)
CodeGeneration\AddImportsTests.vb (2)
97
Await
ImportAdder
.AddImportsFromSymbolAnnotationAsync(doc, addImportOptions, CancellationToken.None),
98
Await
ImportAdder
.AddImportsFromSyntaxesAsync(doc, addImportOptions, CancellationToken.None))
Microsoft.CodeAnalysis.Workspaces (1)
CodeActions\CodeAction_Cleanup.cs (1)
36
static (document, options, cancellationToken) =>
ImportAdder
.AddImportsFromSymbolAnnotationAsync(document, Simplifier.AddImportsAnnotation, options.AddImportOptions, cancellationToken),