2 instantiations of NodeOrTokenToReduce
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Simplification\CSharpSimplificationService.NodesAndTokensToReduceComputer.cs (2)
74
_nodesAndTokensToReduce.Add(new
NodeOrTokenToReduce
(rewrittenNode, _simplifyAllDescendants, node));
108
_nodesAndTokensToReduce.Add(new
NodeOrTokenToReduce
(token, SimplifyAllDescendants: true, token));
7 references to NodeOrTokenToReduce
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Simplification\CSharpSimplificationService.cs (1)
177
protected override ImmutableArray<
NodeOrTokenToReduce
> GetNodesAndTokensToReduce(SyntaxNode root, Func<SyntaxNodeOrToken, bool> isNodeOrTokenOutsideSimplifySpans)
Simplification\CSharpSimplificationService.NodesAndTokensToReduceComputer.cs (2)
20
private readonly List<
NodeOrTokenToReduce
> _nodesAndTokensToReduce = [];
29
public static ImmutableArray<
NodeOrTokenToReduce
> Compute(SyntaxNode root, Func<SyntaxNodeOrToken, bool> isNodeOrTokenOutsideSimplifySpans)
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (4)
40
protected abstract ImmutableArray<
NodeOrTokenToReduce
> GetNodesAndTokensToReduce(SyntaxNode root, Func<SyntaxNodeOrToken, bool> isNodeOrTokenOutsideSimplifySpans);
153
ImmutableArray<
NodeOrTokenToReduce
> nodesAndTokensToReduce,
170
foreach (
var
nodeOrTokenToReduce in nodesAndTokensToReduce)
184
NodeOrTokenToReduce
nodeOrTokenToReduce, CancellationToken cancellationToken)