lib/simplifyExpression/stepThrough.js
// TODO: Ideally this would happen in NodeStatus instead.
Ideally this would happen in NodeStatus instead.
Ideally this would happen in NodeStatus instead .
function removeUnnecessaryParensInStep(nodeStatus) {
  if (nodeStatus.substeps.length > 0) {
    nodeStatus.substeps.map(removeUnnecessaryParensInStep);
  }
  nodeStatus.oldNode = removeUnnecessaryParens(nodeStatus.oldNode, true);
  nodeStatus.newNode = removeUnnecessaryParens(nodeStatus.newNode, true);
  return nodeStatus;
}
function removeUnnecessaryParensInStep ( nodeStatus ) { if ( nodeStatus . substeps . length > 0 ) { nodeStatus . substeps . map ( removeUnnecessaryParensInStep ) ; } nodeStatus . oldNode = removeUnnecessaryParens ( nodeStatus . oldNode , true ) ; nodeStatus . newNode = removeUnnecessaryParens ( nodeStatus . newNode , true ) ; return nodeStatus ; }
TODO: Ideally this would happen in NodeStatus instead.
TODO : Ideally this would happen in NodeStatus instead .