Urara-Blog/node_modules/.pnpm-store/v3/files/57/134a21a412dea94fd5f67e76efc5ba0306f3d43d1eeacde53eef94a341a29d4dd6e45f805ea4bcb3eca071f87abc5e0678555722a644d675ecd6a9c7f31fc9
2022-08-14 01:14:53 +08:00

25 lines
482 B
Text

'use strict';
const types = require('../../tokenizer/types.cjs');
const name = 'Identifier';
const structure = {
name: String
};
function parse() {
return {
type: 'Identifier',
loc: this.getLocation(this.tokenStart, this.tokenEnd),
name: this.consume(types.Ident)
};
}
function generate(node) {
this.token(types.Ident, node.name);
}
exports.generate = generate;
exports.name = name;
exports.parse = parse;
exports.structure = structure;