Urara-Blog/node_modules/.pnpm-store/v3/files/e0/59a1e8413005a4e2ad092fb17c4237bf295c096508b1399afa886dce33d09a04d4241af33e0099f4bd0dfabffbba2e5cc28b98e19566836af524c9c36b7e7a
2022-08-14 01:14:53 +08:00

18 lines
421 B
Text

var STRING = require('../../tokenizer').TYPE.String;
module.exports = {
name: 'String',
structure: {
value: String
},
parse: function() {
return {
type: 'String',
loc: this.getLocation(this.scanner.tokenStart, this.scanner.tokenEnd),
value: this.consume(STRING)
};
},
generate: function(node) {
this.chunk(node.value);
}
};