MCPcopy
hub / github.com/ajv-validator/ajv / block

Method block

lib/compile/codegen/index.ts:698–702  ·  view source on GitHub ↗
(body?: Block, nodeCount?: number)

Source from the content-addressed store, hash-verified

696
697 // start self-balancing block
698 block(body?: Block, nodeCount?: number): CodeGen {
699 this._blockStarts.push(this._nodes.length)
700 if (body) this.code(body).endBlock(nodeCount)
701 return this
702 }
703
704 // end the current self-balancing block
705 endBlock(nodeCount?: number): CodeGen {

Callers 8

validateUnionFunction · 0.80
codeFunction · 0.80
_callRefFunction · 0.80
validatePropertiesFunction · 0.80
schemaKeywordsFunction · 0.80
iterateKeywordsFunction · 0.80
block$dataMethod · 0.80
codegen.spec.tsFile · 0.80

Calls 2

codeMethod · 0.95
endBlockMethod · 0.80

Tested by

no test coverage detected