9 references to ReplaceTokens
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
555var updatedExpression = expression.ReplaceTokens(
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
555var updatedExpression = expression.ReplaceTokens(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxNodeTests.cs (1)
2242var replaced = expr.ReplaceTokens(tokens, (tok, tok2) => d);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\CSharpSimplificationService.Expander.cs (1)
735expression = expression.ReplaceTokens(candidateTokens, computeReplacementToken: ReplaceTokenForCref);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingTriviaTests.cs (1)
1786tree = tree.ReplaceTokens(tree.DescendantTokens(descendIntoTrivia: true)
Microsoft.CodeAnalysis.Features (3)
ExtractMethod\AbstractSyntaxTriviaService.cs (1)
59return root.ReplaceTokens(oldTokens, (o, n) => computeReplacementToken(o, n));
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (1)
52return root.ReplaceTokens(map.Keys, (o, n) => map[o]);
ExtractMethod\SelectionResult.cs (1)
218return root.ReplaceTokens(tokenMap.Keys, (o, n) => o.WithAdditionalAnnotations(tokenMap[o]));
Microsoft.CodeAnalysis.Workspaces (1)
CaseCorrection\AbstractCaseCorrectionService.cs (1)
58return root.ReplaceTokens(replacements.Keys, (oldToken, _) => replacements[oldToken]);