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

Function writeThrow

test/fixtures/snapshot/typescript.js:104248–104252  ·  view source on GitHub ↗

* Writes a Throw operation to the current label's statement list. * * @param expression The value to throw. * @param operationLocation The source map location for the operation.

(expression, operationLocation)

Source from the content-addressed store, hash-verified

104246 * @param operationLocation The source map location for the operation.
104247 */
104248 function writeThrow(expression, operationLocation) {
104249 lastOperationWasAbrupt = true;
104250 lastOperationWasCompletion = true;
104251 writeStatement(ts.setTextRange(factory.createThrowStatement(expression), operationLocation));
104252 }
104253 /**
104254 * Writes a Return operation to the current label's statement list.
104255 *

Callers 1

writeOperationFunction · 0.85

Calls 1

writeStatementFunction · 0.85

Tested by

no test coverage detected