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

Function addStatementToStartOfBlock

test/fixtures/snapshot/typescript.js:101003–101006  ·  view source on GitHub ↗
(block, statement)

Source from the content-addressed store, hash-verified

101001 return updated;
101002 }
101003 function addStatementToStartOfBlock(block, statement) {
101004 var transformedStatements = ts.visitNodes(block.statements, visitor, ts.isStatement);
101005 return factory.updateBlock(block, __spreadArray([statement], transformedStatements, true));
101006 }
101007 /**
101008 * Visits a MethodDeclaration of an ObjectLiteralExpression and transforms it into a
101009 * PropertyAssignment.

Callers 1

visitCatchClauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected