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

Function isArithStop

src/utils/bash/bashParser.ts:4426–4436  ·  view source on GitHub ↗
(P: ParseState, stop: string)

Source from the content-addressed store, hash-verified

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

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