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

Function coreFiles

__tests__/language-extractor-hooks.test.ts:37–48  ·  view source on GitHub ↗
(dir = EXTRACTION_DIR)

Source from the content-addressed store, hash-verified

35}
36
37function coreFiles(dir = EXTRACTION_DIR): string[] {
38 const out: string[] = [];
39 for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
40 const p = path.join(dir, entry.name);
41 if (entry.isDirectory()) {
42 if (entry.name !== 'languages') out.push(...coreFiles(p));
43 } else if (entry.name.endsWith('.ts') && !entry.name.endsWith('.d.ts') && p !== TYPES_FILE) {
44 out.push(p);
45 }
46 }
47 return out;
48}
49
50/** `extractor`, `this.extractor`, either one behind `!` or parentheses. */
51function isExtractorReceiver(node: ts.Expression): boolean {

Callers 1

membersReadFunction · 0.85

Calls 2

pushMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected