文件操作 - Function.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/csso/node_modules/css-tree/lib/syntax/node/Function.js
编辑文件内容
import { Function as FunctionToken, RightParenthesis } from '../../tokenizer/index.js'; export const name = 'Function'; export const walkContext = 'function'; export const structure = { name: String, children: [[]] }; // <function-token> <sequence> ) export function parse(readSequence, recognizer) { const start = this.tokenStart; const name = this.consumeFunctionName(); const nameLowerCase = name.toLowerCase(); let children; children = recognizer.hasOwnProperty(nameLowerCase) ? recognizer[nameLowerCase].call(this, recognizer) : readSequence.call(this, recognizer); if (!this.eof) { this.eat(RightParenthesis); } return { type: 'Function', loc: this.getLocation(start, this.tokenStart), name, children }; } export function generate(node) { this.token(FunctionToken, node.name + '('); this.children(node); this.token(RightParenthesis, ')'); }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件