protected override void AppendLambdaExpression(StringBuilder builder, AstLambdaExpression lambda) { var needsBrackets = lambda.Parameters.Count > 1 || !(lambda.Parameters[0].Type is AstImplicitType); if (needsBrackets) { builder.Append("("); } AppendAll(builder, ", ", lambda.Parameters); if (needsBrackets) { builder.Append(")"); } builder.Append(" => "); Append(builder, lambda.Body); }
protected virtual void AppendLambdaExpression(StringBuilder builder, AstLambdaExpression lambdaExpression) { builder.Append(lambdaExpression); }