Value.js 444 B

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