function callVisitor(key, node, ...args) {
      if (visitor[key] && (node.type === 'Program' || inScriptSetup(node))) {
        // @ts-expect-error
        visitor[key](node, ...args)
      }
    }
@param {string} key
@param {ESNode} node
@param {any[]} args