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

Function operator

test/fixtures/snapshot/typescript.js:30493–30499  ·  view source on GitHub ↗

* Handles walking the `operatorToken` 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

30491 * @returns The new frame
30492 */
30493 function operator(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) {
30494 ts.Debug.assertEqual(stateStack[stackIndex], operator);
30495 ts.Debug.assertIsDefined(machine.onOperator);
30496 stateStack[stackIndex] = nextState(machine, operator);
30497 machine.onOperator(nodeStack[stackIndex].operatorToken, userStateStack[stackIndex], nodeStack[stackIndex]);
30498 return stackIndex;
30499 }
30500 BinaryExpressionState.operator = operator;
30501 /**
30502 * Handles walking the `right` side of a `BinaryExpression`.

Callers

nothing calls this directly

Calls 1

nextStateFunction · 0.85

Tested by

no test coverage detected