MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / peek

Function peek

source code/utils/bash/bashParser.ts:164–166  ·  view source on GitHub ↗
(L: Lexer, off = 0)

Source from the content-addressed store, hash-verified

162}
163
164function peek(L: Lexer, off = 0): string {
165 return L.i + off < L.len ? L.src[L.i + off]! : ''
166}
167
168function byteAt(L: Lexer, charIdx: number): number {
169 // Fast path: ASCII-only prefix means char idx == byte idx

Callers 15

nextTokenFunction · 0.70
parseCommandFunction · 0.70
parseSimpleCommandFunction · 0.70
tryParseAssignmentFunction · 0.70
isRedirectLiteralStartFunction · 0.70
tryParseRedirectFunction · 0.70
parseProcessSubFunction · 0.70
parseHeredocBodyContentFunction · 0.70
parseWordFunction · 0.70
parseBareWordFunction · 0.70
tryParseBraceExprFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected