56 references to Stack
System.Linq.Expressions (56)
System\Linq\Expressions\Compiler\StackSpiller.Bindings.cs (4)
30
internal static BindingRewriter Create(MemberBinding binding, StackSpiller spiller,
Stack
stack)
61
internal MemberMemberBindingRewriter(MemberMemberBinding binding, StackSpiller spiller,
Stack
stack) :
134
internal ListBindingRewriter(MemberListBinding binding, StackSpiller spiller,
Stack
stack) :
219
internal MemberAssignmentRewriter(MemberAssignment binding, StackSpiller spiller,
Stack
stack) :
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (3)
82
private
Stack
_stack;
107
internal ChildRewriter(StackSpiller self,
Stack
stack, int count)
132
_stack =
Stack
.NonEmpty;
System\Linq\Expressions\Compiler\StackSpiller.cs (47)
76
private readonly
Stack
_startingStack;
92
return lambda.Accept(new StackSpiller(
Stack
.Empty));
95
private StackSpiller(
Stack
stack)
156
private Result RewriteExpressionFreeTemps(Expression? expression,
Stack
stack)
169
var cr = new ChildRewriter(this,
Stack
.NonEmpty, node.ArgumentCount);
181
private Result RewriteIndexAssignment(BinaryExpression node,
Stack
stack)
212
private Result RewriteLogicalBinaryExpression(Expression expr,
Stack
stack)
244
private Result RewriteReducibleExpression(Expression expr,
Stack
stack)
252
private Result RewriteBinaryExpression(Expression expr,
Stack
stack)
280
private Result RewriteVariableAssignment(BinaryExpression node,
Stack
stack)
293
private Result RewriteAssignBinaryExpression(Expression expr,
Stack
stack)
307
private Result RewriteExtensionAssignment(BinaryExpression node,
Stack
stack)
331
private Result RewriteConditionalExpression(Expression expr,
Stack
stack)
351
private Result RewriteMemberAssignment(BinaryExpression node,
Stack
stack)
382
private Result RewriteMemberExpression(Expression expr,
Stack
stack)
404
private Result RewriteIndexExpression(Expression expr,
Stack
stack)
432
private Result RewriteMethodCallExpression(Expression expr,
Stack
stack)
467
private Result RewriteNewArrayExpression(Expression expr,
Stack
stack)
476
stack =
Stack
.NonEmpty;
495
private Result RewriteInvocationExpression(Expression expr,
Stack
stack)
543
private Result RewriteNewExpression(Expression expr,
Stack
stack)
560
private Result RewriteTypeBinaryExpression(Expression expr,
Stack
stack)
575
private Result RewriteThrowUnaryExpression(Expression expr,
Stack
stack)
584
Result value = RewriteExpressionFreeTemps(node.Operand,
Stack
.Empty);
588
if (stack !=
Stack
.Empty)
601
private Result RewriteUnaryExpression(Expression expr,
Stack
stack)
624
private Result RewriteListInitExpression(Expression expr,
Stack
stack)
643
var cr = new ChildRewriter(this,
Stack
.NonEmpty, init.Arguments.Count);
702
private Result RewriteMemberInitExpression(Expression expr,
Stack
stack)
721
BindingRewriter rewriter = BindingRewriter.Create(binding, this,
Stack
.NonEmpty);
775
private Result RewriteBlockExpression(Expression expr,
Stack
stack)
811
private Result RewriteLabelExpression(Expression expr,
Stack
stack)
824
private Result RewriteLoopExpression(Expression expr,
Stack
stack)
830
Result body = RewriteExpression(node.Body,
Stack
.Empty);
836
if (stack !=
Stack
.Empty)
853
private Result RewriteGotoExpression(Expression expr,
Stack
stack)
859
Result value = RewriteExpressionFreeTemps(node.Value,
Stack
.Empty);
864
if (stack !=
Stack
.Empty)
877
private Result RewriteSwitchExpression(Expression expr,
Stack
stack)
951
private Result RewriteTryExpression(Expression expr,
Stack
stack)
957
Result body = RewriteExpression(node.Body,
Stack
.Empty);
974
Result rfault = RewriteExpression(handler.Filter,
Stack
.Empty);
981
Result rbody = RewriteExpression(handler.Body,
Stack
.Empty);
999
Result fault = RewriteExpression(node.Fault,
Stack
.Empty);
1002
Result @finally = RewriteExpression(node.Finally,
Stack
.Empty);
1006
if (stack !=
Stack
.Empty)
1025
private Result RewriteExtensionExpression(Expression expr,
Stack
stack)
System\Linq\Expressions\Compiler\StackSpiller.Generated.cs (2)
16
private Result RewriteExpression(Expression node,
Stack
stack)
28
return _guard.RunOnEmptyStack((StackSpiller @this, Expression n,
Stack
s) => @this.RewriteExpression(n, s), this, node, stack);