code: function getQualifiedJSXName(
    object: N.JSXIdentifier | N.JSXNamespacedName | N.JSXMemberExpression,
  ): string {
    if (object.type === "JSXIdentifier") {
      return object.name;
    }
  
    if (object.type === "JSXNamespacedName") {
      return object.namespace.name + ":" + object.name.name;
    }
  
    if (object.type === "JSXMemberExpression") {
      return (
        getQualifiedJSXName(object.object) +
        "." +
        getQualifiedJSXName(object.property)
      );
    }
  
    // istanbul ignore next
    throw new Error("Node had unexpected type: " + object.type);
  }
docs: Transforms JSX element name to string.