MrBoolean/tb

View on GitHub
lib/node/variable-object.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 VariableObjectNode(key, parent) {
  VariableObjectNode.super_.apply(this, [key, parent]);

  this.type = 'variable-object';
  this.allowed = ['object', 'undefined'];
}

util.inherits(VariableObjectNode, MixedNode);

module.exports = VariableObjectNode;