7 references to GetAnnotatedTokens
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IIndentationService.cs (1)
56
var newTokenLine = newDocument.Text.Lines.GetLineFromPosition(newRoot.
GetAnnotatedTokens
(annotation).Single().SpanStart);
Microsoft.CodeAnalysis.Features (5)
AddImport\References\Reference.cs (1)
95
var newContextNode = newRoot.
GetAnnotatedTokens
(annotation).First().Parent;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaHelpers.cs (1)
44
newEndToken = root.ReplaceToken(startToken, newStartToken.WithAdditionalAnnotations(annotation)).
GetAnnotatedTokens
(annotation).Single();
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (2)
179
var startToken = insertionRoot.
GetAnnotatedTokens
(_replaceStartAnnotation).FirstOrNull();
181
var endToken = insertionRoot.
GetAnnotatedTokens
(_replaceEndAnnotation).FirstOrNull();
ExtractMethod\MethodExtractor.VariableInfo.cs (1)
124
=> node.
GetAnnotatedTokens
(_variableSymbol.IdentifierTokenAnnotation).SingleOrDefault();
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IIndentationService.cs (1)
56
var newTokenLine = newDocument.Text.Lines.GetLineFromPosition(newRoot.
GetAnnotatedTokens
(annotation).Single().SpanStart);