code: private Node createAssignNode(Node lhs, Node rhs) {
      Node assignNode = IR.assign(lhs, rhs);
      if (shouldAddTypesOnNewAstNodes) {
        assignNode.setJSType(rhs.getJSType());
      }
      return assignNode;
    }
docs: Creates an ASSIGN node with type information matching its RHS.