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

Function skipNewlines

src/utils/bash/bashParser.ts:921–930  ·  view source on GitHub ↗
(P: ParseState)

Source from the content-addressed store, hash-verified

919}
920
921function skipNewlines(P: ParseState): void {
922 while (true) {
923 const save = saveLex(P.L)
924 const t = nextToken(P.L, 'cmd')
925 if (t.type !== 'NEWLINE') {
926 restoreLex(P.L, save)
927 break
928 }
929 }
930}
931
932/**
933 * Parse commands joined by | or |&. Flat children with operator leaves.

Callers 8

parseAndOrFunction · 0.85
parsePipelineFunction · 0.85
parseSimpleCommandFunction · 0.85
parseForFunction · 0.85
parseDoGroupFunction · 0.85
parseCaseFunction · 0.85
parseFunctionFunction · 0.85
consumeKeywordFunction · 0.85

Calls 3

saveLexFunction · 0.85
nextTokenFunction · 0.85
restoreLexFunction · 0.85

Tested by

no test coverage detected