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

Function checkBudget

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

Source from the content-addressed store, hash-verified

645}
646
647function checkBudget(P: ParseState): void {
648 P.nodeCount++
649 if (P.nodeCount > MAX_NODES) {
650 P.aborted = true
651 throw new Error('budget')
652 }
653 if ((P.nodeCount & 0x7f) === 0 && performance.now() > P.deadline) {
654 P.aborted = true
655 throw new Error('timeout')
656 }
657}
658
659/** Build a node. Slices text from source by byte range via char-index lookup. */
660function mk(

Callers 1

mkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected