This commit is contained in:
2026-03-24 23:31:13 +01:00
parent 8e5a4b08bb
commit 9b8dd103f9
1605 changed files with 885298 additions and 43 deletions

View File

@@ -0,0 +1,25 @@
'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;