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

Function codeOf

src/resolution/callback-synthesizer.ts:2598–2598  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2596 // string is text (`jsxCode`).
2597 let code: string | null | undefined;
2598 const codeOf = () => (code === undefined ? (code = jsxCode(content)) : code);
2599 let lines: string[] | null = null;
2600 const holds = (n: Node) => PARENT_KINDS.has(n.kind) || n.kind === 'class';
2601 let fileNode = inFile.find((n) => n.kind === 'file' && JSX_FAMILY.includes(n.language));

Callers 3

reactJsxChildEdgesFunction · 0.70
spanOfFunction · 0.70
destructuredAtTopFunction · 0.70

Calls 1

jsxCodeFunction · 0.90

Tested by

no test coverage detected