public static UnifiedProgram ToProgram( this UnifiedExpression singleton) { if (singleton == null) { return(UnifiedProgram.Create(UnifiedBlock.Create())); } return(UnifiedProgram.Create(singleton.ToBlock())); }
public static UnifiedProgram ToProgram( this IEnumerable <UnifiedExpression> expressions) { return(UnifiedProgram.Create(expressions.ToBlock())); }