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

Function addSpecifierToken

valdi/vscode_debugger/src/adapter/messageFormat.ts:27–38  ·  view source on GitHub ↗
(
    specifier: string,
    precision: number | undefined,
    substitutionIndex: number,
  )

Source from the content-addressed store, hash-verified

25 }
26
27 function addSpecifierToken(
28 specifier: string,
29 precision: number | undefined,
30 substitutionIndex: number,
31 ) {
32 tokens.push({
33 type: 'specifier',
34 specifier: specifier,
35 precision: precision,
36 substitutionIndex,
37 });
38 }
39
40 let textStart = 0;
41 let substitutionIndex = 0;

Callers 1

tokenizeFormatStringFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected