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

Function parse

__tests__/language-extractor-hooks.test.ts:24–26  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

22const TYPES_FILE = path.join(EXTRACTION_DIR, 'tree-sitter-types.ts');
23
24function parse(file: string): ts.SourceFile {
25 return ts.createSourceFile(file, fs.readFileSync(file, 'utf8'), ts.ScriptTarget.Latest, true);
26}
27
28function declaredMembers(): string[] {
29 const source = parse(TYPES_FILE);

Callers 2

declaredMembersFunction · 0.70
membersReadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected