7 references to FindSnippetAnnotation
Microsoft.CodeAnalysis.Features (7)
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (1)
83
var reformatSnippetNode = snippetExpressionNode.WithAdditionalAnnotations(
FindSnippetAnnotation
, Simplifier.Annotation, SymbolAnnotation.Create(consoleSymbol!), Formatter.Annotation);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (6)
94
var mainChangeNode = (TSnippetSyntax)reformattedRoot.GetAnnotatedNodes(
FindSnippetAnnotation
).First();
149
document,
FindSnippetAnnotation
, addImportPlacementOptions, cancellationToken: cancellationToken).ConfigureAwait(false);
151
document = await Simplifier.ReduceAsync(document,
FindSnippetAnnotation
, simplifierOptions, cancellationToken: cancellationToken).ConfigureAwait(false);
154
document = await Formatter.FormatAsync(document,
FindSnippetAnnotation
, syntaxFormattingOptions, cancellationToken: cancellationToken).ConfigureAwait(false);
215
var reformatSnippetNode = snippetExpressionNode.WithAdditionalAnnotations(
FindSnippetAnnotation
, Simplifier.Annotation, Formatter.Annotation);
230
var snippetNode = root.GetAnnotatedNodes(
FindSnippetAnnotation
).FirstOrDefault();