function.js 337 B

12345678910111213141516
  1. 'use strict';
  2. const Container = require('./container');
  3. class FunctionNode extends Container {
  4. constructor (opts) {
  5. super(opts);
  6. this.type = 'func';
  7. // start off at -1 so we know there haven't been any parens added
  8. this.unbalanced = -1;
  9. }
  10. };
  11. Container.registerWalker(FunctionNode);
  12. module.exports = FunctionNode;