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

Function take

src/resolution/rust-scopes.ts:745–751  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

743 let declared = false;
744 const bounds: string[] = [];
745 const take = (text: string): void => {
746 for (const b of splitRustTopLevel(text, '+')) {
747 const bound = b.replace(/^for\s*<[^>]*>\s*/, '').trim();
748 if (bound === '' || bound.startsWith('?') || bound.startsWith('\'')) continue;
749 bounds.push(bound);
750 }
751 };
752 for (const item of items) {
753 for (const part of splitRustTopLevel(item.generics, ',')) {
754 const m = /^([A-Za-z_]\w*)\s*(?::([\s\S]*?))?(?:=[\s\S]*)?$/.exec(part);

Callers 1

rustBoundsOfFunction · 0.70

Calls 2

splitRustTopLevelFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected