lib/panino/plugins/parsers/javascript/jsd/js_parser.js
function code_after(range, parent) {
  // Look through all child nodes of parent...
  var children = child_nodes(parent);
  for (var i = 0; i < children.length; i++) {
    if (less(range, children[i]["range"])) {
      // If node is after our range, then that's it.  There could
      // be comments in our way, but that's taken care of in
      // #stuff_after method.
      return children[i];
    }
    else if (within(range, children[i]["range"])) {
      // Our range is within the node --> recurse
      return code_after(range, children[i])
    }
  }
  return;
}
function code_after(range, parent) {
  // Look through all child nodes of parent...
  var children = child_nodes(parent);
  for (var i = 0; i < children.length; i++) {
    if (less(range, children[i]["range"])) {
      // If node is after our range, then that's it.  There could
      // be comments in our way, but that's taken care of in
      // #stuff_after method.
      return children[i];
    }
    else if (within(range, children[i]["range"])) {
      // Our range is within the node --> recurse
      return code_after(range, children[i])
    }
  }
  return;
}
function code_after ( range , parent ) { // Look through all child nodes of parent... var children = child_nodes ( parent ) ; for ( var i = 0 ; i < children . length ; i ++ ) { if ( less ( range , children [ i ] [ "range" ] ) ) { // If node is after our range, then that's it.  There could // be comments in our way, but that's taken care of in // #stuff_after method. return children [ i ] ; } else if ( within ( range , children [ i ] [ "range" ] ) ) { // Our range is within the node --> recurse return code_after ( range , children [ i ] ) } } return ; }
Looks for code following the given range.  The second argument is the parent node within which we perform our search.
Looks for code following the given range . The second argument is the parent node within which we perform our search .