MCPcopy Create free account
hub / github.com/HeJiguang/SynCode / programTypeFromLanguage

Function programTypeFromLanguage

frontend/packages/api/src/runtime.ts:33–38  ·  view source on GitHub ↗
(language: CodeLanguage)

Source from the content-addressed store, hash-verified

31}
32
33export function programTypeFromLanguage(language: CodeLanguage) {
34 if (language === "java") return 0;
35 if (language === "cpp") return 1;
36 if (language === "go") return 2;
37 throw new Error(`Unsupported judge language: ${language}`);
38}

Callers 2

POSTFunction · 0.90
POSTFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected