Sha256: ec9ae1b461c15589a061773bc16c977121ac1befcb234fd32d76a11570df6971
Contents?: true
Size: 595 Bytes
Versions: 41
Compression:
Stored size: 595 Bytes
Contents
var WHITESPACE = require('../../tokenizer').TYPE.WhiteSpace; var SPACE = Object.freeze({ type: 'WhiteSpace', loc: null, value: ' ' }); module.exports = { name: 'WhiteSpace', structure: { value: String }, parse: function() { this.eat(WHITESPACE); return SPACE; // return { // type: 'WhiteSpace', // loc: this.getLocation(this.scanner.tokenStart, this.scanner.tokenEnd), // value: this.consume(WHITESPACE) // }; }, generate: function(node) { this.chunk(node.value); } };
Version data entries
41 entries across 31 versions & 9 rubygems