✏️ 编辑:Brackets.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/css-tree/lib/syntax/node/Brackets.js
大小:818 B · 修改:2022-11-21 20:08:22 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
var TYPE = require('../../tokenizer').TYPE; var LEFTSQUAREBRACKET = TYPE.LeftSquareBracket; var RIGHTSQUAREBRACKET = TYPE.RightSquareBracket; module.exports = { name: 'Brackets', structure: { children: [[]] }, parse: function(readSequence, recognizer) { var start = this.scanner.tokenStart; var children = null; this.eat(LEFTSQUAREBRACKET); children = readSequence.call(this, recognizer); if (!this.scanner.eof) { this.eat(RIGHTSQUAREBRACKET); } return { type: 'Brackets', loc: this.getLocation(start, this.scanner.tokenStart), children: children }; }, generate: function(node) { this.chunk('['); this.children(node); this.chunk(']'); } };
💾 保存
取消
保存为 UTF-8,换行统一为 LF