aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/css-tree/lib/syntax/node/Atrule.js
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-14 14:46:37 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-14 14:46:37 -0800
commitafa87af01c79a9baa539f2992d32154d2a4739bd (patch)
tree92c7416db734270a2fee1d72ee9cc119379ff8e1 /vanilla/node_modules/css-tree/lib/syntax/node/Atrule.js
parent3b927e84d200402281f68181cd4253bc77e5528d (diff)
downloadneko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.gz
neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.bz2
neko-afa87af01c79a9baa539f2992d32154d2a4739bd.zip
task: delete vanilla js prototype\n\n- Removed vanilla/ directory and web/dist/vanilla directory\n- Updated Makefile, Dockerfile, and CI workflow to remove vanilla references\n- Cleaned up web/web.go to remove vanilla embed and routes\n- Verified build and tests pass\n\nCloses NK-2tcnmq
Diffstat (limited to 'vanilla/node_modules/css-tree/lib/syntax/node/Atrule.js')
-rw-r--r--vanilla/node_modules/css-tree/lib/syntax/node/Atrule.js100
1 files changed, 0 insertions, 100 deletions
diff --git a/vanilla/node_modules/css-tree/lib/syntax/node/Atrule.js b/vanilla/node_modules/css-tree/lib/syntax/node/Atrule.js
deleted file mode 100644
index 99d1284..0000000
--- a/vanilla/node_modules/css-tree/lib/syntax/node/Atrule.js
+++ /dev/null
@@ -1,100 +0,0 @@
-import {
- AtKeyword,
- Semicolon,
- LeftCurlyBracket,
- RightCurlyBracket
-} from '../../tokenizer/index.js';
-
-function consumeRaw() {
- return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon, true);
-}
-
-function isDeclarationBlockAtrule() {
- for (let offset = 1, type; type = this.lookupType(offset); offset++) {
- if (type === RightCurlyBracket) {
- return true;
- }
-
- if (type === LeftCurlyBracket ||
- type === AtKeyword) {
- return false;
- }
- }
-
- return false;
-}
-
-
-export const name = 'Atrule';
-export const walkContext = 'atrule';
-export const structure = {
- name: String,
- prelude: ['AtrulePrelude', 'Raw', null],
- block: ['Block', null]
-};
-
-export function parse(isDeclaration = false) {
- const start = this.tokenStart;
- let name;
- let nameLowerCase;
- let prelude = null;
- let block = null;
-
- this.eat(AtKeyword);
-
- name = this.substrToCursor(start + 1);
- nameLowerCase = name.toLowerCase();
- this.skipSC();
-
- // parse prelude
- if (this.eof === false &&
- this.tokenType !== LeftCurlyBracket &&
- this.tokenType !== Semicolon) {
- if (this.parseAtrulePrelude) {
- prelude = this.parseWithFallback(this.AtrulePrelude.bind(this, name, isDeclaration), consumeRaw);
- } else {
- prelude = consumeRaw.call(this, this.tokenIndex);
- }
-
- this.skipSC();
- }
-
- switch (this.tokenType) {
- case Semicolon:
- this.next();
- break;
-
- case LeftCurlyBracket:
- if (hasOwnProperty.call(this.atrule, nameLowerCase) &&
- typeof this.atrule[nameLowerCase].block === 'function') {
- block = this.atrule[nameLowerCase].block.call(this, isDeclaration);
- } else {
- // TODO: should consume block content as Raw?
- block = this.Block(isDeclarationBlockAtrule.call(this));
- }
-
- break;
- }
-
- return {
- type: 'Atrule',
- loc: this.getLocation(start, this.tokenStart),
- name,
- prelude,
- block
- };
-}
-
-export function generate(node) {
- this.token(AtKeyword, '@' + node.name);
-
- if (node.prelude !== null) {
- this.node(node.prelude);
- }
-
- if (node.block) {
- this.node(node.block);
- } else {
- this.token(Semicolon, ';');
- }
-}