add getEarliestCommonAncestorFrom jsdoc description

This commit is contained in:
Sebastian McKenzie 2015-06-17 02:40:15 +01:00
parent c7cac7aaba
commit f6ff366edf

View File

@ -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>): NodePath {