Value.js 377 B

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