diff options
Diffstat (limited to 'vanilla/node_modules/css-tree/lib/syntax/node/SupportsDeclaration.js')
| -rw-r--r-- | vanilla/node_modules/css-tree/lib/syntax/node/SupportsDeclaration.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/vanilla/node_modules/css-tree/lib/syntax/node/SupportsDeclaration.js b/vanilla/node_modules/css-tree/lib/syntax/node/SupportsDeclaration.js deleted file mode 100644 index ee816e5..0000000 --- a/vanilla/node_modules/css-tree/lib/syntax/node/SupportsDeclaration.js +++ /dev/null @@ -1,34 +0,0 @@ -import { - LeftParenthesis, - RightParenthesis -} from '../../tokenizer/index.js'; - -export const name = 'SupportsDeclaration'; -export const structure = { - declaration: 'Declaration' -}; - -export function parse() { - const start = this.tokenStart; - - this.eat(LeftParenthesis); - this.skipSC(); - - const declaration = this.Declaration(); - - if (!this.eof) { - this.eat(RightParenthesis); - } - - return { - type: 'SupportsDeclaration', - loc: this.getLocation(start, this.tokenStart), - declaration - }; -} - -export function generate(node) { - this.token(LeftParenthesis, '('); - this.node(node.declaration); - this.token(RightParenthesis, ')'); -} |
