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

Function writeYieldStar

test/fixtures/snapshot/typescript.js:104323–104329  ·  view source on GitHub ↗

* Writes a YieldStar instruction to the current label's statement list. * * @param expression The expression to yield. * @param operationLocation The source map location for the operation.

(expression, operationLocation)

Source from the content-addressed store, hash-verified

104321 * @param operationLocation The source map location for the operation.
104322 */
104323 function writeYieldStar(expression, operationLocation) {
104324 lastOperationWasAbrupt = true;
104325 writeStatement(ts.setEmitFlags(ts.setTextRange(factory.createReturnStatement(factory.createArrayLiteralExpression([
104326 createInstruction(5 /* Instruction.YieldStar */),
104327 expression
104328 ])), operationLocation), 384 /* EmitFlags.NoTokenSourceMaps */));
104329 }
104330 /**
104331 * Writes an Endfinally instruction to the current label's statement list.
104332 */

Callers 1

writeOperationFunction · 0.85

Calls 2

writeStatementFunction · 0.85
createInstructionFunction · 0.85

Tested by

no test coverage detected