word.js 243 B

123456789101112131415
  1. 'use strict';
  2. const Container = require('./container');
  3. const Node = require('./node');
  4. class Word extends Node {
  5. constructor (opts) {
  6. super(opts);
  7. this.type = 'word';
  8. }
  9. }
  10. Container.registerWalker(Word);
  11. module.exports = Word;