first commit
This commit is contained in:
24
build/node_modules/css-tree/lib/syntax/node/IdSelector.js
generated
vendored
Normal file
24
build/node_modules/css-tree/lib/syntax/node/IdSelector.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
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(processChunk, node) {
|
||||
processChunk('#');
|
||||
processChunk(node.name);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user