"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // All the languages supported by CodeQL var Language; (function (Language) { Language["csharp"] = "csharp"; Language["cpp"] = "cpp"; Language["go"] = "go"; Language["java"] = "java"; Language["javascript"] = "javascript"; Language["python"] = "python"; })(Language = exports.Language || (exports.Language = {})); // Additional names for languages const LANGUAGE_ALIASES = { 'c': Language.cpp, 'c++': Language.cpp, 'c#': Language.csharp, 'typescript': Language.javascript, }; // Translate from user input or GitHub's API names for languages to CodeQL's names for languages function parseLanguage(language) { // Normalise to lower case language = language.toLowerCase(); // See if it's an exact match if (language in Language) { return language; } // Check language aliases if (language in LANGUAGE_ALIASES) { return LANGUAGE_ALIASES[language]; } return undefined; } exports.parseLanguage = parseLanguage; function isTracedLanguage(language) { return ['cpp', 'java', 'csharp'].includes(language); } exports.isTracedLanguage = isTracedLanguage; function isScannedLanguage(language) { return !isTracedLanguage(language); } exports.isScannedLanguage = isScannedLanguage; //# sourceMappingURL=languages.js.map