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

Function isArithStop

source code/utils/bash/bashParser.ts:4428–4438  ·  view source on GitHub ↗
(P: ParseState, stop: string)

Source from the content-addressed store, hash-verified

4426}
4427
4428function isArithStop(P: ParseState, stop: string): boolean {
4429 const c = peek(P.L)
4430 if (stop === '))') return c === ')' && peek(P.L, 1) === ')'
4431 if (stop === ')') return c === ')'
4432 if (stop === ';') return c === ';'
4433 if (stop === ':') return c === ':'
4434 if (stop === ']') return c === ']'
4435 if (stop === '}') return c === '}'
4436 if (stop === ':}') return c === ':' || c === '}'
4437 return c === '' || c === '\n'
4438}

Callers 4

parseArithCommaListFunction · 0.85
parseArithBinaryFunction · 0.85
parseArithUnaryFunction · 0.85
parseArithPrimaryFunction · 0.85

Calls 1

peekFunction · 0.70

Tested by

no test coverage detected