示例#1
0
        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);
        }
示例#2
0
 protected virtual void AppendLambdaExpression(StringBuilder builder, AstLambdaExpression lambdaExpression)
 {
     builder.Append(lambdaExpression);
 }