Sha256: 7735616ea5a421f605d7d2420380cf610ef98664517ef7ec3dfefb9ad1f0c51c
Contents?: true
Size: 578 Bytes
Versions: 19
Compression:
Stored size: 578 Bytes
Contents
var TYPE = require('../../tokenizer').TYPE; var IDENTIFIER = TYPE.Identifier; var NUMBERSIGN = TYPE.NumberSign; // '#' ident module.exports = { name: 'IdSelector', structure: { name: String }, parse: function() { this.scanner.eat(NUMBERSIGN); return { type: 'IdSelector', loc: this.getLocation(this.scanner.tokenStart - 1, this.scanner.tokenEnd), name: this.scanner.consume(IDENTIFIER) }; }, generate: function(node) { this.chunk('#'); this.chunk(node.name); } };
Version data entries
19 entries across 18 versions & 4 rubygems