* Lifts a NodeArray containing only Statement nodes to a block. * * @param nodes The NodeArray.
(nodes)
| 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])) { |
nothing calls this directly
no test coverage detected