syntax-tree
Version:
33 lines (23 loc) • 388 B
JavaScript
var Node = require( './node' )
var inherit = require( 'bloodline' )
/**
* Root
* @return {Root}
*/
function Root() {
if( !(this instanceof Root) )
return new Root()
Node.call( this )
this.type = 'Root'
this.parent = this
}
/**
* Root prototype
* @type {Object}
*/
Root.prototype = {
constructor: Root,
}
inherit( Root, Node )
// Exports
module.exports = Root