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
376 B
JavaScript
19 lines
376 B
JavaScript
import { Ident } from '../../tokenizer/index.js';
|
|
|
|
export const name = 'Identifier';
|
|
export const structure = {
|
|
name: String
|
|
};
|
|
|
|
export function parse() {
|
|
return {
|
|
type: 'Identifier',
|
|
loc: this.getLocation(this.tokenStart, this.tokenEnd),
|
|
name: this.consume(Ident)
|
|
};
|
|
}
|
|
|
|
export function generate(node) {
|
|
this.token(Ident, node.name);
|
|
}
|