Sha256: 17fc887498f71e254f7cee7b82ce85f00d5710845993363148ccdc0579de5593

Contents?: true

Size: 407 Bytes

Versions: 39

Compression:

Stored size: 407 Bytes

Contents

var utils = require('../utils');

/**
 * Perform `op` on the `left` and `right` operands.
 *
 * @param {String} op
 * @param {Node} left
 * @param {Node} right
 * @return {Node}
 * @api public
 */

module.exports = function operate(op, left, right){
  utils.assertType(op, 'string', 'op');
  utils.assertPresent(left, 'left');
  utils.assertPresent(right, 'right');
  return left.operate(op.val, right);
};

Version data entries

39 entries across 20 versions & 2 rubygems

Version Path
ela-3.4.0 node_modules/stylus/lib/functions/operate.js
ela-3.4.0 node_modules/nib/node_modules/stylus/lib/functions/operate.js
ela-3.3.1 node_modules/stylus/lib/functions/operate.js
ela-3.3.1 node_modules/nib/node_modules/stylus/lib/functions/operate.js
ela-3.3.0 node_modules/nib/node_modules/stylus/lib/functions/operate.js
ela-3.3.0 node_modules/stylus/lib/functions/operate.js
ela-3.2.0 node_modules/stylus/lib/functions/operate.js
ela-3.2.0 node_modules/nib/node_modules/stylus/lib/functions/operate.js
ela-3.1.1 node_modules/stylus/lib/functions/operate.js
ela-3.1.1 node_modules/nib/node_modules/stylus/lib/functions/operate.js
ela-3.1.0 node_modules/stylus/lib/functions/operate.js
ela-3.1.0 node_modules/nib/node_modules/stylus/lib/functions/operate.js
ela-3.0.0 node_modules/stylus/lib/functions/operate.js
ela-3.0.0 node_modules/nib/node_modules/stylus/lib/functions/operate.js
ela-2.0.0 node_modules/stylus/lib/functions/operate.js
ela-2.0.0 node_modules/nib/node_modules/stylus/lib/functions/operate.js
ela-1.1.0 node_modules/nib/node_modules/stylus/lib/functions/operate.js
ela-1.1.0 node_modules/stylus/lib/functions/operate.js
stylus-source-0.54.5 vendor/lib/functions/operate.js