aqua/language-server/language-server-npm/aqua-lsp-api.d.ts

37 lines
684 B
TypeScript
Raw Normal View History

export interface TokenLocation {
name: string,
startLine: number,
startCol: number,
endLine: number,
endCol: number
}
export interface TokenLink {
current: TokenLocation,
definition: TokenLocation
}
export interface TokenImport {
current: TokenLocation,
path: string
}
2022-05-17 12:05:25 +00:00
export interface ErrorInfo {
start: number,
end: number,
message: string,
location: string | null
}
export interface CompilationResult {
errors: ErrorInfo[],
locations: TokenLink[],
importLocations: TokenImport[]
}
2022-05-17 12:05:25 +00:00
export class Compiler {
compile(path: string, imports: string[]): Promise<CompilationResult>;
2022-05-17 12:05:25 +00:00
}
export var AquaLSP: Compiler;