code: function cloneEntityName(node, parent) {
          var clone = cloneNode(node, node, node.flags, parent);
          if (isQualifiedName(clone)) {
              var left = clone.left, right = clone.right;
              clone.left = cloneEntityName(left, clone);
              clone.right = cloneNode(right, right, right.flags, parent);
          }
          return clone;
      }
docs: Creates a deep clone of an EntityName, with new parent pointers.
  @param node The EntityName to clone.
  @param parent The parent for the cloned node.