MCPcopy Create free account
hub / github.com/Snapchat/Valdi / addStringToken

Function addStringToken

valdi/vscode_debugger/src/adapter/messageFormat.ts:20–25  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

18 const tokens: FormatToken[] = [];
19
20 function addStringToken(str: string) {
21 if (!str) return;
22 const lastToken = tokens[tokens.length - 1];
23 if (lastToken?.type === 'string') lastToken.value += str;
24 else tokens.push({ type: 'string', value: str });
25 }
26
27 function addSpecifierToken(
28 specifier: string,

Callers 1

tokenizeFormatStringFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected