MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / preloadLanguagesForFiles

Function preloadLanguagesForFiles

src/extraction/index.ts:798–809  ·  view source on GitHub ↗
(
  files: string[],
  overrides?: Record<string, Language>
)

Source from the content-addressed store, hash-verified

796 * (#1628). C++ was already covered; Objective-C was not.
797 */
798export function preloadLanguagesForFiles(
799 files: string[],
800 overrides?: Record<string, Language>
801): Language[] {
802 const languages = [...new Set(files.map((f) => detectLanguage(f, undefined, overrides)))];
803 if (languages.includes('c')) {
804 for (const ambiguous of ['cpp', 'objc'] as const) {
805 if (!languages.includes(ambiguous)) languages.push(ambiguous);
806 }
807 }
808 return languages;
809}
810
811export class ScopeIgnore {
812 private embedded: Array<{ root: string; matcher: Ignore }>;

Callers 3

indexAllMethod · 0.85
syncMethod · 0.85

Calls 3

detectLanguageFunction · 0.90
mapMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected