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