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

Function parseTestPrimary

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

Source from the content-addressed store, hash-verified

4057}
4058
4059function parseTestPrimary(P: ParseState, closer: string): TsNode | null {
4060 skipBlanks(P.L)
4061 // Stop at closer
4062 if (closer === ']' && peek(P.L) === ']') return null
4063 if (closer === ']]' && peek(P.L) === ']' && peek(P.L, 1) === ']') return null
4064 return parseWord(P, 'arg')
4065}
4066
4067/**
4068 * 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