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

Method _elseNode

lib/compile/codegen/index.ts:754–761  ·  view source on GitHub ↗
(node: If | Else)

Source from the content-addressed store, hash-verified

752 }
753
754 private _elseNode(node: If | Else): CodeGen {
755 const n = this._currNode
756 if (!(n instanceof If)) {
757 throw new Error('CodeGen: "else" without "if"')
758 }
759 this._currNode = n.else = node
760 return this
761 }
762
763 private get _root(): Root {
764 return this._nodes[0] as Root

Callers 2

elseIfMethod · 0.95
elseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected