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

Function joinTokens

ui/src/lib/conditions.ts:98–100  ·  view source on GitHub ↗
(tokens: readonly WordToken[])

Source from the content-addressed store, hash-verified

96}
97
98export function joinTokens(tokens: readonly WordToken[]): string {
99 return tokens.map((t) => t.text).join(' ');
100}
101
102/** Whether the bracket opened at `open` closes on the last character. */
103function closesAtEnd(text: string, open: number): boolean {

Callers 4

lineWordsFunction · 0.90
clauseWordsFunction · 0.85
whenWordsFunction · 0.85
restWordsFunction · 0.85

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected