1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/css-tree/lib/syntax/node/Identifier.js

21 lines
441 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
var TYPE = require('../../tokenizer').TYPE;
var IDENT = TYPE.Ident;
module.exports = {
name: 'Identifier',
structure: {
name: String
},
parse: function() {
return {
type: 'Identifier',
loc: this.getLocation(this.scanner.tokenStart, this.scanner.tokenEnd),
name: this.consume(IDENT)
};
},
generate: function(node) {
this.chunk(node.name);
}
};