85 references to RewriteAction
System.Linq.Expressions (85)
System\Linq\Expressions\Compiler\StackSpiller.Bindings.cs (9)
17protected RewriteAction _action; 25internal RewriteAction Action => _action; 81case RewriteAction.None: 83case RewriteAction.Copy: 158case RewriteAction.None: 160case RewriteAction.Copy: 166if (cr.Action == RewriteAction.None) 230RewriteAction.None => _binding, 231RewriteAction.Copy => new MemberAssignment(_binding.Member, _rhs),
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (7)
75private RewriteAction _action; 134if (exp.Action == RewriteAction.SpillStack) 178/// only built when the rewrite action is <see cref="RewriteAction.SpillStack"/>. 201if (_action == RewriteAction.SpillStack) 297internal bool Rewrite => _action != RewriteAction.None; 303internal RewriteAction Action => _action; 377if (_action == RewriteAction.SpillStack)
System\Linq\Expressions\Compiler\StackSpiller.cs (65)
62internal readonly RewriteAction Action; 65internal Result(RewriteAction action, Expression node) 82private RewriteAction _lambdaRewrite; 111if (body.Action != RewriteAction.None) 136Debug.Assert((result.Action == RewriteAction.None) ^ (node != result.Node), "rewrite action does not match node object identity"); 143result.Action != RewriteAction.Copy || node.NodeType == result.Node.NodeType || node.CanReduce, 173if (cr.Action == RewriteAction.SpillStack) 191if (cr.Action == RewriteAction.SpillStack) 223RewriteAction action = left.Action | right.Action | conversion.Action; 225if (action != RewriteAction.None) 249return new Result(result.Action | RewriteAction.Copy, result.Node); 264if (cr.Action == RewriteAction.SpillStack) 285if (right.Action != RewriteAction.None) 314return new Result(result.Action | RewriteAction.Copy, result.Node); 326RewriteAction action = (expr == node) ? RewriteAction.None : RewriteAction.Copy; 342RewriteAction action = test.Action | ifTrue.Action | ifFalse.Action; 343if (action != RewriteAction.None) 364if (cr.Action == RewriteAction.SpillStack) 379return new Result(RewriteAction.None, node); 389if (expression.Action != RewriteAction.None) 391if (expression.Action == RewriteAction.SpillStack && 415if (cr.Action == RewriteAction.SpillStack) 444if (cr.Action == RewriteAction.SpillStack) 509if (cr.Action == RewriteAction.SpillStack) 518if (cr.Rewrite || spiller._lambdaRewrite != RewriteAction.None) 535if (cr.Action == RewriteAction.SpillStack) 552if (cr.Action == RewriteAction.SpillStack) 567if (expression.Action != RewriteAction.None) 586RewriteAction action = value.Action; 590action = RewriteAction.SpillStack; 593if (action != RewriteAction.None) 611if (expression.Action == RewriteAction.SpillStack) 616if (expression.Action != RewriteAction.None) 631RewriteAction action = newResult.Action; 652case RewriteAction.None: 654case RewriteAction.Copy: 659if (cr.Action == RewriteAction.None) 670case RewriteAction.SpillStack: 709RewriteAction action = result.Action; 729case RewriteAction.None: 731case RewriteAction.Copy: 739case RewriteAction.SpillStack: 780RewriteAction action = RewriteAction.None; 791if (clone == null && rewritten.Action != RewriteAction.None) 802if (action != RewriteAction.None) 816if (expression.Action != RewriteAction.None) 832RewriteAction action = body.Action; 838action = RewriteAction.SpillStack; 841if (action != RewriteAction.None) 863RewriteAction action = value.Action; 866action = RewriteAction.SpillStack; 869if (action != RewriteAction.None) 884RewriteAction action = switchValue.Action; 900if (cloneTests == null && test.Action != RewriteAction.None) 915if (body.Action != RewriteAction.None || cloneTests != null) 937if (action != RewriteAction.None) 961RewriteAction action = body.Action; 966RewriteAction curAction = body.Action; 985if (curAction != RewriteAction.None) 1008action = RewriteAction.SpillStack; 1011if (action != RewriteAction.None) 1029return new Result(result.Action | RewriteAction.Copy, result.Node);
System\Linq\Expressions\Compiler\StackSpiller.Generated.cs (4)
20return new Result(RewriteAction.None, null); 169result = new Result(RewriteAction.None, node); 174if (result.Action == RewriteAction.None) 177result = new Result(result.Action | RewriteAction.Copy, result.Node);