function getName(attribute) {
  if (!attribute.directive) {
    return attribute.key.name
  }
  if (attribute.key.name.name === 'bind') {
    return (
      (attribute.key.argument &&
        attribute.key.argument.type === 'VIdentifier' &&
        attribute.key.argument.name) ||
      null
    )
  }
  return null
}
Get the name of the given attribute node.
@param {VAttribute | VDirective} attribute The attribute node to get.
@returns {string | null} The name of the attribute.