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

Function functionNames

__tests__/extraction.test.ts:950–954  ·  view source on GitHub ↗
(file: string, code: string)

Source from the content-addressed store, hash-verified

948
949describe('Generator Function Extraction (#1741)', () => {
950 const functionNames = (file: string, code: string) =>
951 extractFromSource(file, code)
952 .nodes.filter((n) => n.kind === 'function')
953 .map((n) => n.name)
954 .sort();
955
956 it('extracts function* and async function* declarations in TypeScript', () => {
957 process.env.CODEGRAPH_KERNEL = '0';

Callers 1

extraction.test.tsFile · 0.85

Calls 2

extractFromSourceFunction · 0.90
mapMethod · 0.80

Tested by

no test coverage detected