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

Function left

test/fixtures/snapshot/typescript.js:30475–30485  ·  view source on GitHub ↗

* Handles walking the `left` side of a `BinaryExpression`. * @param machine State machine handler functions * @param frame The current frame * @returns The new frame

(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState)

Source from the content-addressed store, hash-verified

30473 * @returns The new frame
30474 */
30475 function left(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) {
30476 ts.Debug.assertEqual(stateStack[stackIndex], left);
30477 ts.Debug.assertIsDefined(machine.onLeft);
30478 stateStack[stackIndex] = nextState(machine, left);
30479 var nextNode = machine.onLeft(nodeStack[stackIndex].left, userStateStack[stackIndex], nodeStack[stackIndex]);
30480 if (nextNode) {
30481 checkCircularity(stackIndex, nodeStack, nextNode);
30482 return pushStack(stackIndex, stateStack, nodeStack, userStateStack, nextNode);
30483 }
30484 return stackIndex;
30485 }
30486 BinaryExpressionState.left = left;
30487 /**
30488 * Handles walking the `operatorToken` of a `BinaryExpression`.

Callers

nothing calls this directly

Calls 3

nextStateFunction · 0.85
checkCircularityFunction · 0.85
pushStackFunction · 0.85

Tested by

no test coverage detected