import { IMarker, IClassDeclaration, IMethod, CodeAnalysisResult, ChangeAnalysisResult } from '../libs/interfaces/declaration'; import { ICodeFile, ICodeEditor } from '../libs/interfaces/editor'; import { CodeFile } from "../file"; export declare class TSFile extends CodeFile implements ICodeFile { protected markersOwner: string; /** 加载依赖资源 */ private loadResources; /** 编辑器文本转换成类结构描述 */ protected getStructure(content: string, errorRecovery?: boolean): Promise; /** 检查类结构完整性 */ protected validate(structure: IClassDeclaration[]): IMarker[]; /** * ts changed事件 要广播内容,并且要解析当前加载的包,如果包在当前项目中不存在,由项目去注册 */ protected analysis(): Promise; private classComment; private methodComment; /** * 增加方法 * @param method 方法描述 */ protected methodToString(method: IMethod): Promise; private commentClassByRange; private commentMethodByRange; private onDidChangeContent; constructor(editor: ICodeEditor, uri: any, content?: string); }