animate/webGl/my-threejs-test/node_modules/css-tree/lib/syntax/node/Number.js

19 lines
399 B
JavaScript
Raw Normal View History

2024-06-24 09:24:00 +00:00
import { Number as NumberToken } from '../../tokenizer/index.js';
export const name = 'Number';
export const structure = {
value: String
};
export function parse() {
return {
type: 'Number',
loc: this.getLocation(this.tokenStart, this.tokenEnd),
value: this.consume(NumberToken)
};
}
export function generate(node) {
this.token(NumberToken, node.value);
}