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

Function makeNode

__tests__/batched-ref-cleanup.test.ts:27–41  ·  view source on GitHub ↗
(id: string, name: string, kind: Node['kind'], filePath: string, startLine: number)

Source from the content-addressed store, hash-verified

25import { Node, UnresolvedReference } from '../src/types';
26
27function makeNode(id: string, name: string, kind: Node['kind'], filePath: string, startLine: number): Node {
28 return {
29 id,
30 kind,
31 name,
32 qualifiedName: name,
33 filePath,
34 language: 'typescript',
35 startLine,
36 endLine: startLine + 2,
37 startColumn: 0,
38 endColumn: 0,
39 updatedAt: Date.now(),
40 };
41}
42
43function makeRef(fromNodeId: string, name: string, line: number): UnresolvedReference {
44 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected