24 instantiations of Result
System.Core (24)
Microsoft\Scripting\Compiler\StackSpiller.cs (21)
233
return new
Result
(action, expr);
239
return new
Result
(result.Action | RewriteAction.Copy, result.Node);
276
return new
Result
(right.Action, node);
300
return new
Result
(result.Action | RewriteAction.Copy, result.Node);
315
return new
Result
(action, expr);
333
return new
Result
(action, expr);
361
return new
Result
(RewriteAction.None, node);
379
return new
Result
(expression.Action, expr);
483
return new
Result
(result.Action | spiller._lambdaRewrite, result.Node);
529
return new
Result
(expression.Action, expr);
552
return new
Result
(action, expr);
572
return new
Result
(expression.Action, expr);
633
return new
Result
(action, expr);
682
return new
Result
(action, expr);
716
return new
Result
(action, expr);
727
return new
Result
(expression.Action, expr);
749
return new
Result
(action, expr);
774
return new
Result
(action, expr);
840
return new
Result
(action, expr);
907
return new
Result
(action, expr);
913
return new
Result
(result.Action | RewriteAction.Copy, result.Node);
Microsoft\Scripting\Compiler\StackSpiller.Generated.cs (2)
38
return new
Result
(RewriteAction.None, null);
265
return new
Result
(RewriteAction.None, node);
Microsoft\Scripting\Compiler\StackSpiller.Temps.cs (1)
212
return new
Result
(_action, expr);
70 references to Result
System.Core (70)
Microsoft\Scripting\Compiler\StackSpiller.Bindings.cs (2)
179
Result
add = cr.Finish(Expression.Call(memberTemp, _inits[i].AddMethod, cr[0, -1]));
202
Result
result = spiller.RewriteExpression(binding.Expression, stack);
Microsoft\Scripting\Compiler\StackSpiller.cs (64)
110
Result
body = RewriteExpressionFreeTemps(lambda.Body, _startingStack);
133
private static void VerifyRewrite(
Result
result, Expression node) {
157
private
Result
RewriteExpressionFreeTemps(Expression expression, Stack stack) {
159
Result
result = RewriteExpression(expression, stack);
166
private
Result
RewriteDynamicExpression(Expression expr, Stack stack) {
179
private
Result
RewriteIndexAssignment(BinaryExpression node, Stack stack) {
207
private
Result
RewriteLogicalBinaryExpression(Expression expr, Stack stack) {
211
Result
left = RewriteExpression(node.Left, stack);
213
Result
right = RewriteExpression(node.Right, stack);
215
Result
conversion = RewriteExpression(node.Conversion, stack);
236
private
Result
RewriteReducibleExpression(Expression expr, Stack stack) {
237
Result
result = RewriteExpression(expr.Reduce(), stack);
243
private
Result
RewriteBinaryExpression(Expression expr, Stack stack) {
270
private
Result
RewriteVariableAssignment(BinaryExpression node, Stack stack) {
272
Result
right = RewriteExpression(node.Right, stack);
279
private
Result
RewriteAssignBinaryExpression(Expression expr, Stack stack) {
296
private
Result
RewriteExtensionAssignment(BinaryExpression node, Stack stack) {
298
Result
result = RewriteAssignBinaryExpression(node, stack);
305
private static
Result
RewriteLambdaExpression(Expression expr, Stack stack) {
319
private
Result
RewriteConditionalExpression(Expression expr, Stack stack) {
322
Result
test = RewriteExpression(node.Test, stack);
325
Result
ifTrue = RewriteExpression(node.IfTrue, stack);
326
Result
ifFalse = RewriteExpression(node.IfFalse, stack);
337
private
Result
RewriteMemberAssignment(BinaryExpression node, Stack stack) {
365
private
Result
RewriteMemberExpression(Expression expr, Stack stack) {
369
Result
expression = RewriteExpression(node.Expression, stack);
383
private
Result
RewriteIndexExpression(Expression expr, Stack stack) {
409
private
Result
RewriteMethodCallExpression(Expression expr, Stack stack) {
429
private
Result
RewriteNewArrayExpression(Expression expr, Stack stack) {
458
private
Result
RewriteInvocationExpression(Expression expr, Stack stack) {
482
Result
result = cr.Finish(node);
502
private
Result
RewriteNewExpression(Expression expr, Stack stack) {
518
private
Result
RewriteTypeBinaryExpression(Expression expr, Stack stack) {
521
Result
expression = RewriteExpression(node.Expression, stack);
533
private
Result
RewriteThrowUnaryExpression(Expression expr, Stack stack) {
541
Result
value = RewriteExpressionFreeTemps(node.Operand, Stack.Empty);
556
private
Result
RewriteUnaryExpression(Expression expr, Stack stack) {
563
Result
expression = RewriteExpression(node.Operand, stack);
576
private
Result
RewriteListInitExpression(Expression expr, Stack stack) {
580
Result
newResult = RewriteExpression(node.NewExpression, stack);
623
Result
add = cr.Finish(Expression.Call(tempNew, inits[i].AddMethod, cr[0, -1]));
637
private
Result
RewriteMemberInitExpression(Expression expr, Stack stack) {
641
Result
result = RewriteExpression(node.NewExpression, stack);
690
private
Result
RewriteBlockExpression(Expression expr, Stack stack) {
700
Result
rewritten = RewriteExpression(expression, stack);
720
private
Result
RewriteLabelExpression(Expression expr, Stack stack) {
723
Result
expression = RewriteExpression(node.DefaultValue, stack);
731
private
Result
RewriteLoopExpression(Expression expr, Stack stack) {
736
Result
body = RewriteExpression(node.Body, Stack.Empty);
757
private
Result
RewriteGotoExpression(Expression expr, Stack stack) {
762
Result
value = RewriteExpressionFreeTemps(node.Value, Stack.Empty);
778
private
Result
RewriteSwitchExpression(Expression expr, Stack stack) {
782
Result
switchValue = RewriteExpressionFreeTemps(node.SwitchValue, stack);
795
Result
test = RewriteExpression(testValues[j], stack);
808
Result
body = RewriteExpression(@case.Body, stack);
828
Result
defaultBody = RewriteExpression(node.DefaultBody, stack);
844
private
Result
RewriteTryExpression(Expression expr, Stack stack) {
849
Result
body = RewriteExpression(node.Body, Stack.Empty);
863
Result
rfault = RewriteExpression(handler.Filter, Stack.Empty);
870
Result
rbody = RewriteExpression(handler.Body, Stack.Empty);
888
Result
fault = RewriteExpression(node.Fault, Stack.Empty);
891
Result
@finally = RewriteExpression(node.Finally, Stack.Empty);
910
private
Result
RewriteExtensionExpression(Expression expr, Stack stack) {
911
Result
result = RewriteExpression(expr.ReduceExtensions(), stack);
Microsoft\Scripting\Compiler\StackSpiller.Generated.cs (2)
36
private
Result
RewriteExpression(Expression node, Stack stack) {
49
Result
result;
Microsoft\Scripting\Compiler\StackSpiller.Temps.cs (2)
153
Result
exp = _self.RewriteExpression(node, _stack);
203
internal
Result
Finish(Expression expr) {