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

Function ref

src/extraction/languages/erlang.ts:271–281  ·  view source on GitHub ↗
(nameNode: SyntaxNode, kind: 'references' | 'imports')

Source from the content-addressed store, hash-verified

269 const props = node.namedChildren[2];
270 if (!parentId || props?.type !== 'list') return true;
271 const ref = (nameNode: SyntaxNode, kind: 'references' | 'imports'): void => {
272 const name = atomText(nameNode, ctx.source);
273 if (!name) return;
274 ctx.addUnresolvedReference({
275 fromNodeId: parentId,
276 referenceName: name,
277 referenceKind: kind,
278 line: nameNode.startPosition.row + 1,
279 column: nameNode.startPosition.column,
280 });
281 };
282 for (const prop of props.namedChildren) {
283 if (prop.type !== 'tuple' || prop.namedChildren.length < 2) continue;
284 const key = prop.namedChildren[0];

Callers 1

handleAppResourceTupleFunction · 0.70

Calls 2

atomTextFunction · 0.85

Tested by

no test coverage detected