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

Function decorators

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

Source from the content-addressed store, hash-verified

234 return (await callSitesForFile(file.abs, file.language, [key])).get(siteKey(key)) ?? null;
235 },
236 async decorators(definition) {
237 // Not counted: one lookup per step, on a tree the walk has parsed anyway.
238 if (!definition.startLine || !supportsBranchGuards(definition.language)) return null;
239 const file = resolve(definition);
240 if (!file) return null;
241 return (await decoratorsForFile(file.abs, file.language, [definition.startLine])).get(definition.startLine) ?? null;
242 },
243 async memberTypes(definition) {
244 if (!definition.startLine || !supportsBranchGuards(definition.language)) return new Map();
245 const file = resolve(definition);

Callers

nothing calls this directly

Calls 4

supportsBranchGuardsFunction · 0.90
decoratorsForFileFunction · 0.90
resolveFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected