code: public R scan(Tree tree, P p) {
          return (tree == null) ? null : tree.accept(this, p);
      }
docs: Scans a single node.
  @param tree the node to be scanned
  @param p a parameter value passed to the visit method
  @return the result value from the visit method