コード例 #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));
 }