Value.cjs 469 B

1234567891011121314151617181920212223242526
  1. 'use strict';
  2. const name = 'Value';
  3. const structure = {
  4. children: [[]]
  5. };
  6. function parse() {
  7. const start = this.tokenStart;
  8. const children = this.readSequence(this.scope.Value);
  9. return {
  10. type: 'Value',
  11. loc: this.getLocation(start, this.tokenStart),
  12. children
  13. };
  14. }
  15. function generate(node) {
  16. this.children(node);
  17. }
  18. exports.generate = generate;
  19. exports.name = name;
  20. exports.parse = parse;
  21. exports.structure = structure;