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

Function parseTestPrimary

source code/utils/bash/bashParser.ts:4065–4071  ·  view source on GitHub ↗
(P: ParseState, closer: string)

Source from the content-addressed store, hash-verified

4063}
4064
4065function parseTestPrimary(P: ParseState, closer: string): TsNode | null {
4066 skipBlanks(P.L)
4067 // Stop at closer
4068 if (closer === ']' && peek(P.L) === ']') return null
4069 if (closer === ']]' && peek(P.L) === ']' && peek(P.L, 1) === ']') return null
4070 return parseWord(P, 'arg')
4071}
4072
4073/**
4074 * Arithmetic context modes:

Callers 2

parseTestBinaryFunction · 0.85

Calls 3

skipBlanksFunction · 0.85
parseWordFunction · 0.85
peekFunction · 0.70

Tested by

no test coverage detected