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

Function addRef

src/extraction/languages/cobol.ts:86–101  ·  view source on GitHub ↗
(
  ctx: ExtractorContext,
  fromNodeId: string | undefined,
  referenceName: string,
  referenceKind: 'calls' | 'imports' | 'references',
  at: SyntaxNode
)

Source from the content-addressed store, hash-verified

84}
85
86function addRef(
87 ctx: ExtractorContext,
88 fromNodeId: string | undefined,
89 referenceName: string,
90 referenceKind: 'calls' | 'imports' | 'references',
91 at: SyntaxNode
92): void {
93 if (!fromNodeId || !referenceName) return;
94 ctx.addUnresolvedReference({
95 fromNodeId,
96 referenceName,
97 referenceKind,
98 line: line(at),
99 column: at.startPosition.column,
100 });
101}
102
103/** COPY <book> [IN/OF lib] — import node + imports reference. */
104function handleCopy(node: SyntaxNode, ctx: ExtractorContext): void {

Callers 4

handleCopyFunction · 0.85
handleExecFunction · 0.85
emitWriteRefsFunction · 0.85
collectRefsFunction · 0.85

Calls 2

lineFunction · 0.85

Tested by

no test coverage detected