summaryrefslogtreecommitdiff
path: root/extension/src/languages/index.d.ts
blob: be7ddfbc762fda26682533b3e6d8e87457c51131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export interface LanguageLibrary {
  language: string;
  fileExtensions: string[];
  parseFirstStacktrace: (stdout: string) => string | undefined;
  lineIsFunctionDef: (line: string) => boolean;
  parseFunctionDefForName: (line: string) => string;
  lineIsComment: (line: string) => boolean;
  writeImport: (
    sourcePath: string,
    pathToImport: string,
    namesToImport?: string[] | undefined
  ) => string;
}