import CompletionProvider from "./CompletionProvider"; import CompletionSymbol from "./CompletionSymbol"; import ASTNode from "../ast/ASTNode"; import CodeLocation from "../CodeLocation"; /** * FilenameCompletionProvider provides completions to the include<> and use<> statements. */ export default class FilenameCompletionProvider implements CompletionProvider { textOnly: boolean; exclusive: boolean; /** * Determines whether we are in a include<> or use<> statement * @param ast * @param loc */ shouldActivate(ast: ASTNode, loc: CodeLocation): boolean; getSymbolsAtLocation(ast: ASTNode, locM: CodeLocation): Promise; /** * Obtains the part of the included path the user has already entered * @param ast the ast to search * @param loc the location where the user is typing * @returns the part of the included path the user has already entered */ getExistingPath(ast: ASTNode, loc: CodeLocation): string | null; }