def handle_new_index_parameters_found(self, params_number):
            current_scope = self.get_current_scope()

            # Max parameters number is 20. See :help E740
            for variadic_index in range(20 - params_number):
                # Variadic parameters named 1-based index.
                variadic_param = self._create_virtual_identifier(str(variadic_index + 1))
                self._add_parameter(current_scope, variadic_param)
dataset/ETHPy150Open Kuniwak/vint/vint/ast/plugin/scope_plugin/scope_linker.py/ScopeLinker.ScopeTreeBuilder.handle_new_index_parameters_found/original