diff options
Diffstat (limited to 'vanilla/node_modules/css-tree/cjs/syntax/function')
| -rw-r--r-- | vanilla/node_modules/css-tree/cjs/syntax/function/expression.cjs | 11 | ||||
| -rw-r--r-- | vanilla/node_modules/css-tree/cjs/syntax/function/var.cjs | 43 |
2 files changed, 0 insertions, 54 deletions
diff --git a/vanilla/node_modules/css-tree/cjs/syntax/function/expression.cjs b/vanilla/node_modules/css-tree/cjs/syntax/function/expression.cjs deleted file mode 100644 index 5a8967c..0000000 --- a/vanilla/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(null, false) - ); -} - -module.exports = expressionFn; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/function/var.cjs b/vanilla/node_modules/css-tree/cjs/syntax/function/var.cjs deleted file mode 100644 index f688eab..0000000 --- a/vanilla/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.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; |
