function isUsingScopeVar(vSlot) {
  const argument = vSlot.key.argument
  const value = vSlot.value

  if (argument && value && argument.type === 'VExpressionContainer') {
    for (const { variable } of argument.references) {
      if (
        variable != null &&
        variable.kind === 'scope' &&
        variable.id.range[0] > value.range[0] &&
        variable.id.range[1] < value.range[1]
      ) {
        return true
      }
    }
  }
  return false
}
Check whether a given argument node is using an scope variable that the directive defined.
@param {VDirective} vSlot The `v-slot` directive to check.
@returns {boolean} `true` if that argument node is using a scope variable the directive defined.