Source: ast/text.js

var Node = require('src/ast/node')
;

/**
 * A text node
 * @class Text
 * @extends Node
 * @memberof AST
 * @param  {Object} opts - The text node options
 */
var Text = module.exports = function Text(opts)
{
  if(!(this instanceof Text))
    return new Text(opts);

  /** @member {Interpolator} Text#data */
  this.data = opts.data || null;
}
Text.prototype = Object.create(Node.prototype);