MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / restoreLexToByte

Function restoreLexToByte

src/utils/bash/bashParser.ts:1985–1997  ·  view source on GitHub ↗
(P: ParseState, targetByte: number)

Source from the content-addressed store, hash-verified

1983}
1984
1985function restoreLexToByte(P: ParseState, targetByte: number): void {
1986 if (!P.L.byteTable) byteAt(P.L, 0)
1987 const t = P.L.byteTable!
1988 let lo = 0
1989 let hi = P.src.length
1990 while (lo < hi) {
1991 const m = (lo + hi) >>> 1
1992 if (t[m]! < targetByte) lo = m + 1
1993 else hi = m
1994 }
1995 P.L.i = lo
1996 P.L.b = targetByte
1997}
1998
1999/**
2000 * 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