summaryrefslogtreecommitdiff
path: root/extension/src/languages/javascript/index.ts
blob: 1c21a2fccf6dc10065bbf0f138d15315e9ccb55a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { LanguageLibrary } from "../index.d";
import { notImplemented } from "../notImplemented";

const NI = (propertyName: string) => notImplemented(propertyName, "javascript");

const javascriptLangaugeLibrary: LanguageLibrary = {
  language: "javascript",
  fileExtensions: [".js", ".jsx", ".ts", ".tsx"],
  parseFirstStacktrace: NI("parseFirstStacktrace"),
  lineIsFunctionDef: NI("lineIsFunctionDef"),
  parseFunctionDefForName: NI("parseFunctionDefForName"),
  lineIsComment: NI("lineIsComment"),
  writeImport: NI("writeImport"),
};

export default javascriptLangaugeLibrary;