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

Function relationWords

ui/src/lib/symbol-model.ts:78–85  ·  view source on GitHub ↗
(relation: WireRelation)

Source from the content-addressed store, hash-verified

76
77/** The distinct edge words for a relation, in first-seen order, blanks dropped. */
78export function relationWords(relation: WireRelation): string[] {
79 const words: string[] = [];
80 for (const edge of relation.edges) {
81 const word = edgeWord(edge);
82 if (word && !words.includes(word)) words.push(word);
83 }
84 return words;
85}
86
87/** The distinct branch conditions across a relation's edges, at most three. */
88export function relationWhens(relation: WireRelation): string[] {

Callers 4

buildFileRefsFunction · 0.90
buildFileCallRowsFunction · 0.90
buildCalleeRailFunction · 0.85
buildCallerRailFunction · 0.85

Calls 2

edgeWordFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected