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

Function declarations

__tests__/go-struct-field-refs.test.ts:136–138  ·  view source on GitHub ↗

` ` of every node but the file and its imports, in source order.

(result: ExtractionResult)

Source from the content-addressed store, hash-verified

134
135/** `<kind> <name>` of every node but the file and its imports, in source order. */
136function declarations(result: ExtractionResult): string[] {
137 return result.nodes.filter((n) => n.kind !== 'file' && n.kind !== 'import').map((n) => `${n.kind} ${n.name}`);
138}
139
140/** `<struct> <name>` for every `references` ref out of a struct, sorted. */
141function fieldRefs(result: ExtractionResult): string[] {

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected