diff --git a/src/babel/traversal/path/ancestry.js b/src/babel/traversal/path/ancestry.js index 9ced9ddc50..25942eb36b 100644 --- a/src/babel/traversal/path/ancestry.js +++ b/src/babel/traversal/path/ancestry.js @@ -28,7 +28,11 @@ export function getStatementParent() { } /** - * Description + * Get the deepest common ancestor and then from it, get the earliest relationship path + * to that ancestor. + * + * Earliest is defined as being "before" all the other nodes in terms of list container + * position and visiting key. */ export function getEarliestCommonAncestorFrom(paths: Array): NodePath {