MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeCursor

Function makeCursor

packages/effect/src/cli/internal/parser.ts:218–225  ·  view source on GitHub ↗
(tokens: ReadonlyArray<Token>)

Source from the content-addressed store, hash-verified

216}
217
218const makeCursor = (tokens: ReadonlyArray<Token>): TokenCursor => {
219 let i = 0
220 return {
221 peek: () => tokens[i],
222 take: () => tokens[i++],
223 rest: () => tokens.slice(i)
224 }
225}
226
227/* ========================================================================== */
228/* Flag Registry */

Callers 4

consumeKnownFlagsFunction · 0.85
consumeLevelFunction · 0.85
scanCommandLevelFunction · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected