MCPcopy Index your code
hub / github.com/json-editor/json-editor / _endBlockNode

Method _endBlockNode

docs/scripts/ajv-validator.js:1315–1322  ·  view source on GitHub ↗
(N1, N2)

Source from the content-addressed store, hash-verified

1313 this._nodes.push(node);
1314 }
1315 _endBlockNode(N1, N2) {
1316 const n = this._currNode;
1317 if (n instanceof N1 || (N2 && n instanceof N2)) {
1318 this._nodes.pop();
1319 return this;
1320 }
1321 throw new Error(`CodeGen: not in block "${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}"`);
1322 }
1323 _elseNode(node) {
1324 const n = this._currNode;
1325 if (!(n instanceof If)) {

Callers 5

endIfMethod · 0.95
endForMethod · 0.95
returnMethod · 0.95
tryMethod · 0.95
endFuncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected