12 references to FormatAsync
Microsoft.CodeAnalysis.Features (11)
ChangeSignature\AbstractChangeSignatureService.cs (1)
428
var formattedDoc = await Formatter.
FormatAsync
(reducedDoc, SyntaxAnnotation.ElasticAnnotation, cleanupOptions.FormattingOptions, cancellationToken).ConfigureAwait(false);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
701
var formattedDocument = await Formatter.
FormatAsync
(
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
224
document = await Formatter.
FormatAsync
(document, Formatter.Annotation, cleanupOptions.FormattingOptions, cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ImportCompletionProviderHelpers.cs (1)
47
var formattedDocumentWithImport = await Formatter.
FormatAsync
(documentWithImport, Formatter.Annotation, formattingOptions, cancellationToken).ConfigureAwait(false);
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
202
document = await Formatter.
FormatAsync
(document.WithSyntaxRoot(rewrittenFieldDeclaration), Formatter.Annotation, formattingOptions, cancellationToken).ConfigureAwait(false);
224
documentWithProperty = await Formatter.
FormatAsync
(documentWithProperty, Formatter.Annotation, formattingOptions, cancellationToken).ConfigureAwait(false);
ExtractInterface\AbstractExtractInterfaceService.cs (1)
292
var formattedDocument = await Formatter.
FormatAsync
(
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
278
var formattedDocument = await Formatter.
FormatAsync
(document, SyntaxAnnotation.ElasticAnnotation, formattingOptions, cancellationToken).ConfigureAwait(false);
PullMemberUp\MembersPuller.cs (1)
387
destinationDocument = await Formatter.
FormatAsync
(destinationDocument, s_removableImportAnnotation, options.CleanupOptions.FormattingOptions, cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (2)
157
document = await Formatter.
FormatAsync
(document, FindSnippetAnnotation, syntaxFormattingOptions, cancellationToken: cancellationToken).ConfigureAwait(false);
160
document = await Formatter.
FormatAsync
(document, SyntaxAnnotation.ElasticAnnotation, syntaxFormattingOptions, cancellationToken: cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (1)
Rename\ConflictEngine\RenamedSpansTracker.cs (1)
167
document = await Formatter.
FormatAsync
(document, Formatter.Annotation, cleanupOptions.FormattingOptions, cancellationToken).ConfigureAwait(false);