code: static Node newVarNode(Node lhs, Node value) {
      if (lhs.isDestructuringPattern()) {
        checkNotNull(value);
        return IR.var(new Node(Token.DESTRUCTURING_LHS, lhs, value).srcref(lhs)).srcref(lhs);
      } else {
        checkState(lhs.isName() && !lhs.hasChildren());
        if (value != null) {
          lhs.addChildToBack(value);
        }
        return IR.var(lhs).srcref(lhs);
      }
    }
docs: Create a VAR node containing the given lhs (name or destructuring pattern) and
  initial value expression.