Пример #1
0
 public static UnifiedTupleLiteral ToTupleLiteral(
     this UnifiedExpression singleton)
 {
     if (singleton == null)
     {
         return(UnifiedTupleLiteral.Create());
     }
     return(UnifiedTupleLiteral.Create(singleton));
 }
Пример #2
0
        public static UnifiedExpression ToSmartTupleLiteral(
            this IEnumerable <UnifiedExpression> expressions)
        {
            var list = expressions.ToList();

            if (list.Count == 1)
            {
                return(list[0]);
            }
            return(UnifiedTupleLiteral.Create(list));
        }
Пример #3
0
 public static UnifiedTupleLiteral ToTupleLiteral(
     this IEnumerable <UnifiedExpression> expressions)
 {
     return(UnifiedTupleLiteral.Create(expressions));
 }