BLUE
PHP 7.4.33
Path:
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/css-tree/cjs/syntax/scope
Run
Logout
Edit File
Size: 2.48 KB
Close
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/css-tree/cjs/syntax/scope/selector.cjs
Text
Base64
'use strict'; const types = require('../../tokenizer/types.cjs'); 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 types.LeftSquareBracket: return this.AttributeSelector(); case types.Hash: return this.IdSelector(); case types.Colon: if (this.lookupType(1) === types.Colon) { return this.PseudoElementSelector(); } else { return this.PseudoClassSelector(); } case types.Ident: return this.TypeSelector(); case types.Number: case types.Percentage: return this.Percentage(); case types.Dimension: // throws when .123ident if (this.charCodeAt(this.tokenStart) === FULLSTOP) { this.error('Identifier is expected', this.tokenStart + 1); } break; case types.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; } } } const Selector = { onWhiteSpace, getNode }; module.exports = Selector;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
atrulePrelude.cjs
141 B
lrw-r--r--
2025-06-16 05:45:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
default.cjs
2.20 KB
lrw-r--r--
2025-06-16 05:45:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.cjs
245 B
lrw-r--r--
2025-06-16 05:45:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
selector.cjs
2.48 KB
lrw-r--r--
2025-06-16 05:45:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
value.cjs
729 B
lrw-r--r--
2025-06-16 05:45:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).