code: function isValidElement (node) {
    const name = node.name
    return (
      name === 'input' ||
      name === 'select' ||
      name === 'textarea' ||
      (
        name !== 'keep-alive' &&
        name !== 'slot' &&
        name !== 'transition' &&
        name !== 'transition-group' &&
        utils.isCustomComponent(node)
      )
    )
  }
docs: Check whether the given node is valid or not.
  @param {ASTNode} node The element node to check.
  @returns {boolean} `true` if the node is valid.