Sha256: 4f2f97c7532ba3b2626d6928f5e9c0bfb69f5a1f2fc037536f9f6f3da3263640
Contents?: true
Size: 712 Bytes
Versions: 16
Compression:
Stored size: 712 Bytes
Contents
var TYPE = require('../../tokenizer').TYPE; var CHARCODE = require('../../tokenizer').CHARCODE; var IDENT = TYPE.Ident; var FULLSTOP = CHARCODE.FullStop; // '.' ident module.exports = { name: 'ClassSelector', structure: { name: String }, parse: function() { if (!this.scanner.isDelim(FULLSTOP)) { this.error('Full stop is expected'); } this.scanner.next(); return { type: 'ClassSelector', loc: this.getLocation(this.scanner.tokenStart - 1, this.scanner.tokenEnd), name: this.consume(IDENT) }; }, generate: function(node) { this.chunk('.'); this.chunk(node.name); } };
Version data entries
16 entries across 16 versions & 3 rubygems