MCPcopy Create free account
hub / github.com/nodejs/node / setLastResult

Function setLastResult

test/fixtures/snapshot/typescript.js:78984–78990  ·  view source on GitHub ↗
(state, type)

Source from the content-addressed store, hash-verified

78982 return state.typeStack[state.stackIndex + 1];
78983 }
78984 function setLastResult(state, type) {
78985 // To reduce overhead, reuse the next stack entry to store the
78986 // last result. This avoids the overhead of an additional property
78987 // on `WorkArea` and reuses empty stack entries as we walk back up
78988 // the stack.
78989 state.typeStack[state.stackIndex + 1] = type;
78990 }
78991 }
78992 function checkGrammarNullishCoalesceWithLogicalExpression(node) {
78993 var left = node.left, operatorToken = node.operatorToken, right = node.right;

Callers 5

onEnterFunction · 0.85
onOperatorFunction · 0.85
onExitFunction · 0.85
foldStateFunction · 0.85
maybeCheckExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected