Exemple #1
0
 /**
  * Find next node with a comment in the iteration through complete tree.
  *
  * @param node The current node in the iteration.
  * @return The next node in the iteration through the complete tree after the current node that
  *     has a comment.
  */
 public static ConstNode findNextComment(ConstNode node) {
   node = nextNode(node);
   while (node != null) {
     if (node.hasComment()) return node;
     node = nextNode(node);
   }
   return null;
 }