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

Function parseTestPrimary

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

Source from the content-addressed store, hash-verified

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