From f6ff366edf346c32cadb28d1f0e5203013742c1b Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 17 Jun 2015 02:40:15 +0100 Subject: [PATCH] add getEarliestCommonAncestorFrom jsdoc description --- src/babel/traversal/path/ancestry.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 {