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

Function restoreLexToByte

source code/utils/bash/bashParser.ts:1991–2003  ·  view source on GitHub ↗
(P: ParseState, targetByte: number)

Source from the content-addressed store, hash-verified

1989}
1990
1991function restoreLexToByte(P: ParseState, targetByte: number): void {
1992 if (!P.L.byteTable) byteAt(P.L, 0)
1993 const t = P.L.byteTable!
1994 let lo = 0
1995 let hi = P.src.length
1996 while (lo < hi) {
1997 const m = (lo + hi) >>> 1
1998 if (t[m]! < targetByte) lo = m + 1
1999 else hi = m
2000 }
2001 P.L.i = lo
2002 P.L.b = targetByte
2003}
2004
2005/**
2006 * Parse a word-position element: bare word, string, expansion, or concatenation

Callers 1

parseHeredocBodyContentFunction · 0.85

Calls 1

byteAtFunction · 0.85

Tested by

no test coverage detected