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,24 @@
import { Delim, Ident } from '../../tokenizer/index.js';
const FULLSTOP = 0x002E; // U+002E FULL STOP (.)
// '.' ident
export const name = 'ClassSelector';
export const structure = {
name: String
};
export function parse() {
this.eatDelim(FULLSTOP);
return {
type: 'ClassSelector',
loc: this.getLocation(this.tokenStart - 1, this.tokenEnd),
name: this.consume(Ident)
};
}
export function generate(node) {
this.token(Delim, '.');
this.token(Ident, node.name);
}