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

Function take

scripts/gen-go-stdlib-methods.mjs:109–111  ·  view source on GitHub ↗
(more)

Source from the content-addressed store, hash-verified

107 const declared = p.types.get(name);
108 if (!declared) return methods;
109 const take = (more) => {
110 for (const [m, arity] of more) if (!methods.has(m)) methods.set(m, arity);
111 };
112 const embedded = (type, imports) => {
113 if (type?.type === 'pointer_type') type = type.namedChildren[0];
114 if (type?.type === 'generic_type') type = type.childForFieldName('type');

Callers 1

embeddedFunction · 0.70

Calls 2

hasMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected