文件操作 - convert.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/jsonc-eslint-parser/lib/parser/convert.d.ts
编辑文件内容
import type { Node } from "estree"; import type { AST } from "eslint"; import type { JSONNode, JSONProgram } from "./ast"; import type { TokenStore } from "./token-store"; import type { Token as AcornToken } from "acorn"; import type { JSONSyntaxContext } from "./syntax-context"; export declare class TokenConvertor { private readonly ctx; private readonly code; private readonly templateBuffer; private readonly tokTypes; constructor(ctx: JSONSyntaxContext, code: string); convertToken(token: AcornToken): AST.Token | null; } export declare function convertProgramNode(node: Node | JSONNode, tokens: TokenStore, ctx: JSONSyntaxContext, code: string): JSONProgram;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件