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

Function give

src/resolution/frameworks/drupal.ts:366–370  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

364 });
365 };
366 const give = (id: string): void => {
367 if (!current || given.has(id) || `service:${id}` === current.name) return;
368 given.add(id);
369 reference(current, `${SERVICE_REF}${id}`);
370 };
371 const giveAll = (text: string): void => {
372 SERVICE_ARGUMENT.lastIndex = 0;
373 let m: RegExpExecArray | null;

Callers 2

giveAllFunction · 0.85
extractDrupalServicesFunction · 0.85

Calls 3

hasMethod · 0.80
referenceFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected