summaryrefslogtreecommitdiff
path: root/node_modules/css-tree/cjs/syntax/function
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:10:59 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:41:44 +0800
commitfc87c009806dcc98867f6b58efe29b042aa01dee (patch)
tree8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/css-tree/cjs/syntax/function
parent3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff)
node: updatemain
Diffstat (limited to 'node_modules/css-tree/cjs/syntax/function')
-rw-r--r--node_modules/css-tree/cjs/syntax/function/expression.cjs11
-rw-r--r--node_modules/css-tree/cjs/syntax/function/var.cjs43
2 files changed, 0 insertions, 54 deletions
diff --git a/node_modules/css-tree/cjs/syntax/function/expression.cjs b/node_modules/css-tree/cjs/syntax/function/expression.cjs
deleted file mode 100644
index 43d81374..00000000
--- a/node_modules/css-tree/cjs/syntax/function/expression.cjs
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-// legacy IE function
-// expression( <any-value> )
-function expressionFn() {
- return this.createSingleNodeList(
- this.Raw(this.tokenIndex, null, false)
- );
-}
-
-module.exports = expressionFn;
diff --git a/node_modules/css-tree/cjs/syntax/function/var.cjs b/node_modules/css-tree/cjs/syntax/function/var.cjs
deleted file mode 100644
index 96729706..00000000
--- a/node_modules/css-tree/cjs/syntax/function/var.cjs
+++ /dev/null
@@ -1,43 +0,0 @@
-'use strict';
-
-const types = require('../../tokenizer/types.cjs');
-
-// var( <ident> , <value>? )
-function varFn() {
- const children = this.createList();
-
- this.skipSC();
-
- // NOTE: Don't check more than a first argument is an ident, rest checks are for lexer
- children.push(this.Identifier());
-
- this.skipSC();
-
- if (this.tokenType === types.Comma) {
- children.push(this.Operator());
-
- const startIndex = this.tokenIndex;
- const value = this.parseCustomProperty
- ? this.Value(null)
- : this.Raw(this.tokenIndex, this.consumeUntilExclamationMarkOrSemicolon, false);
-
- if (value.type === 'Value' && value.children.isEmpty) {
- for (let offset = startIndex - this.tokenIndex; offset <= 0; offset++) {
- if (this.lookupType(offset) === types.WhiteSpace) {
- value.children.appendData({
- type: 'WhiteSpace',
- loc: null,
- value: ' '
- });
- break;
- }
- }
- }
-
- children.push(value);
- }
-
- return children;
-}
-
-module.exports = varFn;