25 instantiations of Result
System.Linq.Expressions (25)
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (1)
384return new Result(_action, expression);
System\Linq\Expressions\Compiler\StackSpiller.cs (21)
241return new Result(action, expr); 249return new Result(result.Action | RewriteAction.Copy, result.Node); 290return new Result(right.Action, node); 314return new Result(result.Action | RewriteAction.Copy, result.Node); 328return new Result(action, expr); 348return new Result(action, expr); 379return new Result(RewriteAction.None, node); 401return new Result(expression.Action, expr); 524return new Result(result.Action | spiller._lambdaRewrite, result.Node); 572return new Result(expression.Action, expr); 598return new Result(action, expr); 621return new Result(expression.Action, expr); 699return new Result(action, expr); 768return new Result(action, expr); 808return new Result(action, expr); 821return new Result(expression.Action, expr); 846return new Result(action, expr); 874return new Result(action, expr); 948return new Result(action, expr); 1022return new Result(action, expr); 1029return new Result(result.Action | RewriteAction.Copy, result.Node);
System\Linq\Expressions\Compiler\StackSpiller.Generated.cs (3)
20return new Result(RewriteAction.None, null); 169result = new Result(RewriteAction.None, node); 177result = new Result(result.Action | RewriteAction.Copy, result.Node);
70 references to Result
System.Linq.Expressions (70)
System\Linq\Expressions\Compiler\StackSpiller.Bindings.cs (2)
194Result add = cr.Finish(new InstanceMethodCallExpressionN(_inits[i].AddMethod, memberTemp, cr[0, -1]!)); 222Result result = spiller.RewriteExpression(binding.Expression, stack);
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (2)
130Result exp = _self.RewriteExpression(expression, _stack); 373internal Result Finish(Expression expression)
System\Linq\Expressions\Compiler\StackSpiller.cs (64)
106Result body = RewriteExpressionFreeTemps(lambda.Body, _startingStack); 131private static void VerifyRewrite(Result result, Expression node) 156private Result RewriteExpressionFreeTemps(Expression? expression, Stack stack) 159Result result = RewriteExpression(expression, stack); 164private Result RewriteDynamicExpression(Expression expr) 181private Result RewriteIndexAssignment(BinaryExpression node, Stack stack) 212private Result RewriteLogicalBinaryExpression(Expression expr, Stack stack) 217Result left = RewriteExpression(node.Left, stack); 219Result right = RewriteExpression(node.Right, stack); 221Result conversion = RewriteExpression(node.Conversion, stack); 244private Result RewriteReducibleExpression(Expression expr, Stack stack) 246Result result = RewriteExpression(expr.Reduce(), stack); 252private Result RewriteBinaryExpression(Expression expr, Stack stack) 280private Result RewriteVariableAssignment(BinaryExpression node, Stack stack) 283Result right = RewriteExpression(node.Right, stack); 293private Result RewriteAssignBinaryExpression(Expression expr, Stack stack) 307private Result RewriteExtensionAssignment(BinaryExpression node, Stack stack) 311Result result = RewriteAssignBinaryExpression(node, stack); 317private static Result RewriteLambdaExpression(Expression expr) 331private Result RewriteConditionalExpression(Expression expr, Stack stack) 336Result test = RewriteExpression(node.Test, stack); 339Result ifTrue = RewriteExpression(node.IfTrue, stack); 340Result ifFalse = RewriteExpression(node.IfFalse, stack); 351private Result RewriteMemberAssignment(BinaryExpression node, Stack stack) 382private Result RewriteMemberExpression(Expression expr, Stack stack) 387Result expression = RewriteExpression(node.Expression, stack); 404private Result RewriteIndexExpression(Expression expr, Stack stack) 432private Result RewriteMethodCallExpression(Expression expr, Stack stack) 467private Result RewriteNewArrayExpression(Expression expr, Stack stack) 495private Result RewriteInvocationExpression(Expression expr, Stack stack) 523Result result = cr.Finish(node); 543private Result RewriteNewExpression(Expression expr, Stack stack) 560private Result RewriteTypeBinaryExpression(Expression expr, Stack stack) 565Result expression = RewriteExpression(node.Expression, stack); 575private Result RewriteThrowUnaryExpression(Expression expr, Stack stack) 584Result value = RewriteExpressionFreeTemps(node.Operand, Stack.Empty); 601private Result RewriteUnaryExpression(Expression expr, Stack stack) 609Result expression = RewriteExpression(node.Operand, stack); 624private Result RewriteListInitExpression(Expression expr, Stack stack) 629Result newResult = RewriteExpression(node.NewExpression, stack); 687Result add = cr.Finish(new InstanceMethodCallExpressionN(inits[i].AddMethod, refTempNew, cr[0, -1]!)); 702private Result RewriteMemberInitExpression(Expression expr, Stack stack) 707Result result = RewriteExpression(node.NewExpression, stack); 775private Result RewriteBlockExpression(Expression expr, Stack stack) 788Result rewritten = RewriteExpression(expression, stack); 811private Result RewriteLabelExpression(Expression expr, Stack stack) 815Result expression = RewriteExpression(node.DefaultValue, stack); 824private Result RewriteLoopExpression(Expression expr, Stack stack) 830Result body = RewriteExpression(node.Body, Stack.Empty); 853private Result RewriteGotoExpression(Expression expr, Stack stack) 859Result value = RewriteExpressionFreeTemps(node.Value, Stack.Empty); 877private Result RewriteSwitchExpression(Expression expr, Stack stack) 882Result switchValue = RewriteExpressionFreeTemps(node.SwitchValue, stack); 897Result test = RewriteExpression(testValues[j], stack); 912Result body = RewriteExpression(@case.Body, stack); 934Result defaultBody = RewriteExpression(node.DefaultBody, stack); 951private Result RewriteTryExpression(Expression expr, Stack stack) 957Result body = RewriteExpression(node.Body, Stack.Empty); 974Result rfault = RewriteExpression(handler.Filter, Stack.Empty); 981Result rbody = RewriteExpression(handler.Body, Stack.Empty); 999Result fault = RewriteExpression(node.Fault, Stack.Empty); 1002Result @finally = RewriteExpression(node.Finally, Stack.Empty); 1025private Result RewriteExtensionExpression(Expression expr, Stack stack) 1027Result result = RewriteExpression(expr.ReduceExtensions(), stack);
System\Linq\Expressions\Compiler\StackSpiller.Generated.cs (2)
16private Result RewriteExpression(Expression node, Stack stack) 31Result result;