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

Function createInlineBreak

test/fixtures/snapshot/typescript.js:103799–103805  ·  view source on GitHub ↗

* Creates a statement that can be used indicate a Break operation to the provided label. * * @param label A label. * @param location An optional source map location for the statement.

(label, location)

Source from the content-addressed store, hash-verified

103797 * @param location An optional source map location for the statement.
103798 */
103799 function createInlineBreak(label, location) {
103800 ts.Debug.assertLessThan(0, label, "Invalid label");
103801 return ts.setTextRange(factory.createReturnStatement(factory.createArrayLiteralExpression([
103802 createInstruction(3 /* Instruction.Break */),
103803 createLabel(label)
103804 ])), location);
103805 }
103806 /**
103807 * Creates a statement that can be used indicate a Return operation.
103808 *

Callers 3

visitContinueStatementFunction · 0.85
visitBreakStatementFunction · 0.85

Calls 2

createInstructionFunction · 0.85
createLabelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…