MCPcopy Index your code
hub / github.com/nodejs/node / beginBlock

Function beginBlock

test/fixtures/snapshot/typescript.js:103417–103430  ·  view source on GitHub ↗

* Begins a block operation (With, Break/Continue, Try/Catch/Finally) * * @param block Information about the block.

(block)

Source from the content-addressed store, hash-verified

103415 * @param block Information about the block.
103416 */
103417 function beginBlock(block) {
103418 if (!blocks) {
103419 blocks = [];
103420 blockActions = [];
103421 blockOffsets = [];
103422 blockStack = [];
103423 }
103424 var index = blockActions.length;
103425 blockActions[index] = 0 /* BlockAction.Open */;
103426 blockOffsets[index] = operations ? operations.length : 0;
103427 blocks[index] = block;
103428 blockStack.push(block);
103429 return index;
103430 }
103431 /**
103432 * Ends the current block operation.
103433 */

Callers 8

beginWithBlockFunction · 0.85
beginExceptionBlockFunction · 0.85
beginScriptLoopBlockFunction · 0.85
beginLoopBlockFunction · 0.85
beginScriptSwitchBlockFunction · 0.85
beginSwitchBlockFunction · 0.85
beginScriptLabeledBlockFunction · 0.85
beginLabeledBlockFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…