Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RewriteLoopExpression()

Result System.Linq.Expressions.Compiler.StackSpiller.RewriteLoopExpression ( Expression expr,
Stack stack )
inlineprivate

Definition at line 1024 of file StackSpiller.cs.

1025 {
1026 LoopExpression loopExpression = (LoopExpression)expr;
1027 Result result = RewriteExpression(loopExpression.Body, Stack.Empty);
1028 RewriteAction rewriteAction = result.Action;
1029 if (stack != 0)
1030 {
1031 rewriteAction = RewriteAction.SpillStack;
1032 }
1033 if (rewriteAction != 0)
1034 {
1035 expr = new LoopExpression(result.Node, loopExpression.BreakLabel, loopExpression.ContinueLabel);
1036 }
1037 return new Result(rewriteAction, expr);
1038 }
Result RewriteExpression(Expression node, Stack stack)

References System.Linq.Expressions.Compiler.StackSpiller.Result.Action, System.Linq.Expressions.Compiler.StackSpiller.Result.Node, and System.Linq.Expressions.Compiler.StackSpiller.RewriteExpression().

Referenced by System.Linq.Expressions.Compiler.StackSpiller.RewriteExpression().