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

Function swiftExtension

src/ui-server/api/when.ts:273–279  ·  view source on GitHub ↗
(definition)

Source from the content-addressed store, hash-verified

271 return { file: fileDirective, own };
272 },
273 async swiftExtension(definition) {
274 if (definition.language !== 'swift' || definition.kind !== 'class') return false;
275 const file = resolve(definition);
276 if (!file) return false;
277 const text = readText(file.abs);
278 return text !== null && declaresExtension(text.split(/\r?\n/), definition);
279 },
280 };
281}
282

Callers

nothing calls this directly

Calls 3

declaresExtensionFunction · 0.90
resolveFunction · 0.70
readTextFunction · 0.70

Tested by

no test coverage detected