function getUsingIterationVars(expression, element) {
  const vars = []
  if (expression && expression.type === 'VExpressionContainer') {
    for (const { variable } of expression.references) {
      if (
        variable != null &&
        variable.kind === 'v-for' &&
        variable.id.range[0] > element.startTag.range[0] &&
        variable.id.range[1] < element.startTag.range[1]
      ) {
        vars.push(variable)
      }
    }
  }
  return vars
}
Gets iterative variables if a given expression node is using iterative variables that the element defined.
@param {VExpressionContainer|null} expression The expression node to check.
@param {VElement} element The element node which has the expression.
@returns {VVariable[]} The expression node is using iteration variables.