jspm_packages/npm/babel-core@5.8.38/lib/traversal/path/ancestry.js
function getAncestry() {
  var path = this;
  var paths = [];
  do {
    paths.push(path);
  } while (path = path.parentPath);
  return paths;
}
function getAncestry() {
  var path = this;
  var paths = [];
  do {
    paths.push(path);
  } while (path = path.parentPath);
  return paths;
}
function getAncestry ( ) { var path = this ; var paths = [ ] ; do { paths . push ( path ) ; } while ( path = path . parentPath ) ; return paths ; }
Build an array of node paths containing the entire ancestry of the current node path.

NOTE: The current node path is included in this.
Build an array of node paths containing the entire ancestry of the current node path .