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

Function leaf

src/utils/bash/bashParser.ts:702–704  ·  view source on GitHub ↗
(P: ParseState, type: string, tok: Token)

Source from the content-addressed store, hash-verified

700}
701
702function leaf(P: ParseState, type: string, tok: Token): TsNode {
703 return mk(P, type, tok.start, tok.end, [])
704}
705
706function parseProgram(P: ParseState): TsNode {
707 const children: TsNode[] = []

Callers 15

parseProgramFunction · 0.85
parseStatementsFunction · 0.85
parseAndOrFunction · 0.85
parsePipelineFunction · 0.85
parseCommandFunction · 0.85
parseSimpleCommandFunction · 0.85
tryParseAssignmentFunction · 0.85
tryParseRedirectFunction · 0.85
parseWordFunction · 0.85
parseBacktickFunction · 0.85
parseIfFunction · 0.85
parseWhileFunction · 0.85

Calls 1

mkFunction · 0.85

Tested by

no test coverage detected