MCPcopy Index your code
hub / github.com/codeaashu/claude-code / peek

Function peek

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

Source from the content-addressed store, hash-verified

160}
161
162function peek(L: Lexer, off = 0): string {
163 return L.i + off < L.len ? L.src[L.i + off]! : ''
164}
165
166function byteAt(L: Lexer, charIdx: number): number {
167 // 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