6c5a5256c7
Switch SVG optimizer resolution from bin/svgo-cli.exe to bin/svgo.cmd. Update unit tests to validate the new local binary path behavior. Co-Authored-By: Abacus.AI CLI <agent@abacus.ai>
19 lines
399 B
JavaScript
19 lines
399 B
JavaScript
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);
|
|
}
|