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

Function give

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

Source from the content-addressed store, hash-verified

363 });
364 };
365 const give = (id: string): void => {
366 if (!current || given.has(id) || `service:${id}` === current.name) return;
367 given.add(id);
368 reference(current, `${SERVICE_REF}${id}`);
369 };
370 const giveAll = (text: string): void => {
371 SERVICE_ARGUMENT.lastIndex = 0;
372 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