source: trip-planner-front/node_modules/css-tree/lib/syntax/node/Number.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 421 bytes
Line 
1var NUMBER = require('../../tokenizer').TYPE.Number;
2
3module.exports = {
4 name: 'Number',
5 structure: {
6 value: String
7 },
8 parse: function() {
9 return {
10 type: 'Number',
11 loc: this.getLocation(this.scanner.tokenStart, this.scanner.tokenEnd),
12 value: this.consume(NUMBER)
13 };
14 },
15 generate: function(node) {
16 this.chunk(node.value);
17 }
18};
Note: See TracBrowser for help on using the repository browser.