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

Function add

src/resolution/frameworks/drupal.ts:565–570  ·  view source on GitHub ↗
(type: string, id: string, className: string, line: number)

Source from the content-addressed store, hash-verified

563 const out: { type: string; id: string; className: string; line: number }[] = [];
564 const seen = new Set<string>();
565 const add = (type: string, id: string, className: string, line: number): void => {
566 const key = `${type}:${id}:${className}`;
567 if (seen.has(key)) return;
568 seen.add(key);
569 out.push({ type, id, className, line });
570 };
571 for (const decl of declarations) {
572 if (!decl.className) continue;
573 for (const attribute of decl.attributes) {

Callers 1

pluginDefinitionsFunction · 0.70

Calls 3

hasMethod · 0.80
pushMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected