aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/css-tree/lib/syntax/scope/selector.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/scope/selector.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/scope/selector.js')
-rw-r--r--vanilla/node_modules/css-tree/lib/syntax/scope/selector.js94
1 files changed, 0 insertions, 94 deletions
diff --git a/vanilla/node_modules/css-tree/lib/syntax/scope/selector.js b/vanilla/node_modules/css-tree/lib/syntax/scope/selector.js
deleted file mode 100644
index a8efcd5..0000000
--- a/vanilla/node_modules/css-tree/lib/syntax/scope/selector.js
+++ /dev/null
@@ -1,94 +0,0 @@
-import {
- Delim,
- Ident,
- Dimension,
- Percentage,
- Number as NumberToken,
- Hash,
- Colon,
- LeftSquareBracket
-} from '../../tokenizer/index.js';
-
-const NUMBERSIGN = 0x0023; // U+0023 NUMBER SIGN (#)
-const AMPERSAND = 0x0026; // U+0026 AMPERSAND (&)
-const ASTERISK = 0x002A; // U+002A ASTERISK (*)
-const PLUSSIGN = 0x002B; // U+002B PLUS SIGN (+)
-const SOLIDUS = 0x002F; // U+002F SOLIDUS (/)
-const FULLSTOP = 0x002E; // U+002E FULL STOP (.)
-const GREATERTHANSIGN = 0x003E; // U+003E GREATER-THAN SIGN (>)
-const VERTICALLINE = 0x007C; // U+007C VERTICAL LINE (|)
-const TILDE = 0x007E; // U+007E TILDE (~)
-
-function onWhiteSpace(next, children) {
- if (children.last !== null && children.last.type !== 'Combinator' &&
- next !== null && next.type !== 'Combinator') {
- children.push({ // FIXME: this.Combinator() should be used instead
- type: 'Combinator',
- loc: null,
- name: ' '
- });
- }
-}
-
-function getNode() {
- switch (this.tokenType) {
- case LeftSquareBracket:
- return this.AttributeSelector();
-
- case Hash:
- return this.IdSelector();
-
- case Colon:
- if (this.lookupType(1) === Colon) {
- return this.PseudoElementSelector();
- } else {
- return this.PseudoClassSelector();
- }
-
- case Ident:
- return this.TypeSelector();
-
- case NumberToken:
- case Percentage:
- return this.Percentage();
-
- case Dimension:
- // throws when .123ident
- if (this.charCodeAt(this.tokenStart) === FULLSTOP) {
- this.error('Identifier is expected', this.tokenStart + 1);
- }
- break;
-
- case Delim: {
- const code = this.charCodeAt(this.tokenStart);
-
- switch (code) {
- case PLUSSIGN:
- case GREATERTHANSIGN:
- case TILDE:
- case SOLIDUS: // /deep/
- return this.Combinator();
-
- case FULLSTOP:
- return this.ClassSelector();
-
- case ASTERISK:
- case VERTICALLINE:
- return this.TypeSelector();
-
- case NUMBERSIGN:
- return this.IdSelector();
-
- case AMPERSAND:
- return this.NestingSelector();
- }
-
- break;
- }
- }
-};
-
-export default {
- onWhiteSpace,
- getNode
-};