MCPcopy Index your code
hub / github.com/liuup/claude-code-analysis / saveLex

Function saveLex

src/utils/bash/bashParser.ts:756–758  ·  view source on GitHub ↗
(L: Lexer)

Source from the content-addressed store, hash-verified

754/** Packed as (b << 16) | i — avoids heap alloc on every backtrack. */
755type LexSave = number
756function saveLex(L: Lexer): LexSave {
757 return L.b * 0x10000 + L.i
758}
759function restoreLex(L: Lexer, s: LexSave): void {
760 L.i = s & 0xffff
761 L.b = s >>> 16

Callers 15

parseProgramFunction · 0.85
parseStatementsFunction · 0.85
parseAndOrFunction · 0.85
skipNewlinesFunction · 0.85
parsePipelineFunction · 0.85
parseCommandFunction · 0.85
parseSimpleCommandFunction · 0.85
maybeRedirectFunction · 0.85
tryParseAssignmentFunction · 0.85
tryParseRedirectFunction · 0.85
parseHeredocBodyContentFunction · 0.85
tryParseBraceExprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected