code: function indexifyName(name, scope) {
  	const variables = scope.variableScope.set;
  
  	let index = 1;
  	while (variables.has(index === 1 ? name : name + index)) {
  		index++;
  	}
  
  	return name + (index === 1 ? '' : index);
  }
docs: TODO: Use `./utils/avoid-capture.js` instead