source: imaps-frontend/node_modules/css-tree/lib/syntax/node/Hash.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 542 bytes
Line 
1var TYPE = require('../../tokenizer').TYPE;
2
3var HASH = TYPE.Hash;
4
5// '#' ident
6module.exports = {
7 name: 'Hash',
8 structure: {
9 value: String
10 },
11 parse: function() {
12 var start = this.scanner.tokenStart;
13
14 this.eat(HASH);
15
16 return {
17 type: 'Hash',
18 loc: this.getLocation(start, this.scanner.tokenStart),
19 value: this.scanner.substrToCursor(start + 1)
20 };
21 },
22 generate: function(node) {
23 this.chunk('#');
24 this.chunk(node.value);
25 }
26};
Note: See TracBrowser for help on using the repository browser.