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

Function memberTypes

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

Source from the content-addressed store, hash-verified

221 return (await decoratorsForFile(file.abs, file.language, [definition.startLine])).get(definition.startLine) ?? null;
222 },
223 async memberTypes(definition) {
224 if (!definition.startLine || !supportsBranchGuards(definition.language)) return new Map();
225 const file = resolve(definition);
226 if (!file) return new Map();
227 return memberTypesForFile(file.abs, file.language, definition.startLine);
228 },
229 async directive(definition) {
230 // Not counted: a text read, cached per file, no tree.
231 const none = { file: null, own: false } as const;

Callers

nothing calls this directly

Calls 3

supportsBranchGuardsFunction · 0.90
memberTypesForFileFunction · 0.90
resolveFunction · 0.70

Tested by

no test coverage detected