MCPcopy Index your code
hub / github.com/pomber/code-surfer / tokenizeStrings

Function tokenizeStrings

packs/step-parser/src/tokenizer.ts:59–64  ·  view source on GitHub ↗
(
  prismTokens: (string | Prism.Token)[],
  parentType = "plain"
)

Source from the content-addressed store, hash-verified

57};
58
59function tokenizeStrings(
60 prismTokens: (string | Prism.Token)[],
61 parentType = "plain"
62): NestedToken[] {
63 return prismTokens.map(prismToken => wrapToken(prismToken, parentType));
64}
65
66function wrapToken(
67 prismToken: string | Prism.Token,

Callers 2

tokenizeFunction · 0.85
wrapTokenFunction · 0.85

Calls 2

wrapTokenFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected