7 overrides of ExpressionCount
System.Linq.Expressions (7)
System\Linq\Expressions\BlockExpression.cs (7)
232internal override int ExpressionCount => 2; 298internal override int ExpressionCount => 3; 370internal override int ExpressionCount => 4; 448internal override int ExpressionCount => 5; 486internal override int ExpressionCount => _expressions.Count; 579internal override int ExpressionCount => 1; 618internal override int ExpressionCount => _body.Count;
16 references to ExpressionCount
System.Linq.Expressions (16)
System\Dynamic\Utils\ExpressionVisitorUtils.cs (1)
13for (int i = 0, n = block.ExpressionCount; i < n; i++)
System\Linq\Expressions\BlockExpression.cs (6)
32public Expression Result => GetExpression(ExpressionCount - 1); 57public override Type Type => GetExpression(ExpressionCount - 1).Type; 699for (int i = 1; i < _block.ExpressionCount; i++) 769int n = _block.ExpressionCount; 783public int Count => _block.ExpressionCount; 808for (int i = 1; i < _block.ExpressionCount; i++)
System\Linq\Expressions\Compiler\LambdaCompiler.ControlFlow.cs (3)
228for (int i = 0, n = block.ExpressionCount; i < n; i++) 265if (body.ExpressionCount == 0) 269for (int i = body.ExpressionCount - 1; i >= 0; i--)
System\Linq\Expressions\Compiler\LambdaCompiler.Logical.cs (2)
69for (int i = 0; i < block.ExpressionCount; i++) 647int count = node.ExpressionCount;
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (1)
26int count = node.ExpressionCount;
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
779int count = node.ExpressionCount;
System\Linq\Expressions\DebugViewWriter.cs (1)
972if (node.Type != node.GetExpression(node.ExpressionCount - 1).Type)
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
519if (node.ExpressionCount != 0)