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

Function liftToBlock

test/fixtures/snapshot/typescript.js:27072–27075  ·  view source on GitHub ↗

* Lifts a NodeArray containing only Statement nodes to a block. * * @param nodes The NodeArray.

(nodes)

Source from the content-addressed store, hash-verified

27070 * @param nodes The NodeArray.
27071 */
27072 function liftToBlock(nodes) {
27073 ts.Debug.assert(ts.every(nodes, ts.isStatementOrBlock), "Cannot lift nodes to a Block.");
27074 return ts.singleOrUndefined(nodes) || createBlock(nodes);
27075 }
27076 function findSpanEnd(array, test, start) {
27077 var i = start;
27078 while (i < array.length && test(array[i])) {

Callers

nothing calls this directly

Calls 3

createBlockFunction · 0.85
assertMethod · 0.80
everyMethod · 0.80

Tested by

no test coverage detected