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

29 lines
519 B
TypeScript
Raw Normal View History

export interface TokenLocation {
name: string,
start: number,
end: number
}
export interface TokenLink {
current: TokenLocation,
definition: TokenLocation
}
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[]
}
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;