src/com/google/javascript/jscomp/NodeUtil.java
/**
   * @return Whether the specified node has a loop parent that
   * is within the current scope.
   */
@return Whether the specified node has a loop parent that
is within the current scope.
@return Whether the specified node has a loop parent that is within the current scope .
static boolean isWithinLoop(Node n) {
    for (Node parent : n.getAncestors()) {
      if (NodeUtil.isLoopStructure(parent)) {
        return true;
      }
      if (parent.isFunction()) {
        break;
      }
    }
    return false;
  }
static boolean isWithinLoop ( Node n ) { for ( Node parent : n . getAncestors ( ) ) { if ( NodeUtil . isLoopStructure ( parent ) ) { return true ; } if ( parent . isFunction ( ) ) { break ; } } return false ; }
@return Whether the specified node has a loop parent that
 is within the current scope.
@return Whether the specified node has a loop parent that is within the current scope .