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

Function sameLanguageFamily

src/resolution/name-matcher.ts:151–155  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

149 csharp: 'dotnet', razor: 'dotnet',
150};
151export function sameLanguageFamily(a: string, b: string): boolean {
152 if (a === b) return true;
153 const fa = LANGUAGE_FAMILY[a];
154 return fa !== undefined && fa === LANGUAGE_FAMILY[b];
155}
156/**
157 * True when `lang` belongs to a known multi-language family (jvm/apple/web/c).
158 * Languages not listed (php, python, go, ruby, rust, dart, …) and config

Callers 6

gateLanguageMethod · 0.90
pickClosestFileNodeFunction · 0.85
crossesKnownFamilyFunction · 0.85
applyLanguageGateFunction · 0.85
matchFunctionRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected