Sha256: bdb633e1037bf999fa078045155498f1630b8ddc71bd55d93259d8f3b26fa68f
Contents?: true
Size: 578 Bytes
Versions: 19
Compression:
Stored size: 578 Bytes
Contents
var TYPE = require('../../tokenizer').TYPE; var IDENTIFIER = TYPE.Identifier; var FULLSTOP = TYPE.FullStop; // '.' ident module.exports = { name: 'ClassSelector', structure: { name: String }, parse: function() { this.scanner.eat(FULLSTOP); return { type: 'ClassSelector', 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