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

19 lines
376 B
JavaScript
Raw Normal View History

2024-06-24 09:24:00 +00:00
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);
}