packages/babel-types/src/clone/cloneDeepWithoutLoc.js
// @flow
import cloneNode from "./cloneNode";
/**
* Create a deep clone of a `node` and all of it's child nodes
* including only properties belonging to the node.
* excluding `_private` and location properties.
*/
export default function cloneDeepWithoutLoc<T: Object>(node: T): T {
return cloneNode(node, /* deep */ true, /* withoutLoc */ true);
}