MrBoolean/tb

View on GitHub
lib/node/function.js

Summary

Maintainability
A
0 mins
Test Coverage
var util = require('util');
var MixedNode = require('./mixed');

/**
 * @constructor
 * @augments {MixedNode}
 * @param {string} key
 * @param {MixedNode} parent
 */
function FunctionNode(key, parent) {
  FunctionNode.super_.apply(this, [key, parent, {}]);

  this.type = 'function';
  this.allowed = ['function'];
}

util.inherits(FunctionNode, MixedNode);

module.exports = FunctionNode;