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

Function methodNode

__tests__/resolution.test.ts:2108–2117  ·  view source on GitHub ↗
(
      id: string,
      filePath: string,
      language: Node['language'] = 'cpp',
      qualifiedName = 'Logger::log',
      name = 'log',
    )

Source from the content-addressed store, hash-verified

2106 // 2. the call site's OWN file (language-agnostic, #1079),
2107 // 3. matches[0] (first-indexed) as a last resort.
2108 const methodNode = (
2109 id: string,
2110 filePath: string,
2111 language: Node['language'] = 'cpp',
2112 qualifiedName = 'Logger::log',
2113 name = 'log',
2114 ): Node => ({
2115 id, kind: 'method', name, qualifiedName, filePath, language,
2116 startLine: 1, endLine: 1, startColumn: 0, endColumn: 0, updatedAt: 0,
2117 });
2118 const callRef = (filePath: string, language: Node['language'] = 'cpp'): UnresolvedRef => ({
2119 fromNodeId: 'caller', referenceName: 'lg.log', referenceKind: 'calls',
2120 line: 2, column: 0, filePath, language,

Callers 1

resolution.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected