protected internal override Expression VisitForExpression(ForExpression node) { WriteKeyword("for"); WriteSpace(); WriteToken("("); VisitType(node.Variable.Type); WriteSpace(); Visit(node.Variable); WriteSpace(); WriteToken("="); WriteSpace(); Visit(node.Initializer); WriteToken(";"); WriteSpace(); Visit(node.Test); WriteToken(";"); WriteSpace(); Visit(node.Step); WriteToken(")"); WriteLine(); VisitAsBlock(node.Body); return(node); }
protected internal virtual Expression VisitForExpression(ForExpression node) => node.Update( (ParameterExpression)Visit(node.Variable), Visit(node.Initializer), Visit(node.Test), Visit(node.Step), Visit(node.Body), node.BreakTarget, node.ContinueTarget);
protected internal virtual Expression VisitForExpression (ForExpression node) { return node.Update ( (ParameterExpression) Visit (node.Variable), Visit (node.Initializer), Visit (node.Test), Visit (node.Step), Visit (node.Body), node.BreakTarget, node.ContinueTarget); }