59a1e8413005a4e2ad092fb17c4237bf295c096508b1399afa886dce33d09a04d4241af33e0099f4bd0dfabffbba2e5cc28b98e19566836af524c9c36b7e7a 421 B

123456789101112131415161718
  1. var STRING = require('../../tokenizer').TYPE.String;
  2. module.exports = {
  3. name: 'String',
  4. structure: {
  5. value: String
  6. },
  7. parse: function() {
  8. return {
  9. type: 'String',
  10. loc: this.getLocation(this.scanner.tokenStart, this.scanner.tokenEnd),
  11. value: this.consume(STRING)
  12. };
  13. },
  14. generate: function(node) {
  15. this.chunk(node.value);
  16. }
  17. };