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

Function writeBreak

test/fixtures/snapshot/typescript.js:104272–104278  ·  view source on GitHub ↗

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

(label, operationLocation)

Source from the content-addressed store, hash-verified

104270 * @param operationLocation The source map location for the operation.
104271 */
104272 function writeBreak(label, operationLocation) {
104273 lastOperationWasAbrupt = true;
104274 writeStatement(ts.setEmitFlags(ts.setTextRange(factory.createReturnStatement(factory.createArrayLiteralExpression([
104275 createInstruction(3 /* Instruction.Break */),
104276 createLabel(label)
104277 ])), operationLocation), 384 /* EmitFlags.NoTokenSourceMaps */));
104278 }
104279 /**
104280 * Writes a BreakWhenTrue operation to the current label's statement list.
104281 *

Callers 1

writeOperationFunction · 0.85

Calls 3

writeStatementFunction · 0.85
createInstructionFunction · 0.85
createLabelFunction · 0.85

Tested by

no test coverage detected