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

Function node

__tests__/exact-name-binding.test.ts:10–13  ·  view source on GitHub ↗
(id: string, filePath = 'lib/other.js', extra: Partial<Node> = {})

Source from the content-addressed store, hash-verified

8import type { Node } from '../src/types';
9
10function node(id: string, filePath = 'lib/other.js', extra: Partial<Node> = {}): Node {
11 return { id, filePath, kind: 'function', name: 'target', qualifiedName: 'target', language: 'javascript',
12 startLine: 1, endLine: 1, startColumn: 0, endColumn: 0, updatedAt: 0, ...extra };
13}
14function context(nodes: Node[], source = 'target();'): ResolutionContext {
15 return {
16 getNodesByName: name => nodes.filter(n => n.name === name),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected