Exemplo n.º 1
0
 def _run_one_round(self, data, result, values=None):
     result = result.body.create_iteration()
     variables = self._map_variables_and_values(data.variables, values)
     for name, value in variables:
         self._context.variables[name] = value
         result.variables[name] = cut_assign_value(value)
     runner = BodyRunner(self._context, self._run, self._templated)
     with StatusReporter(data, result, self._context, self._run):
         runner.run(data.body)
Exemplo n.º 2
0
 def _run_one_round(self, values, data, result):
     result = result.body.create_iteration(lineno=data.lineno,
                                           source=data.source)
     variables = self._map_variables_and_values(data.variables, values)
     for name, value in variables:
         self._context.variables[name] = value
         result.variables[name] = cut_assign_value(value)
     runner = BodyRunner(self._context, templated=self._templated)
     with StatusReporter(self._context, result):
         runner.run(data.body)
Exemplo n.º 3
0
 def _run_one_round(self, data, result, values=None):
     result = result.body.create_iteration()
     if values is not None:
         variables = self._context.variables
     else:    # Not really run (earlier failure, unexecuted IF branch, dry-run)
         variables = {}
         values = data.variables
     for name, value in self._map_variables_and_values(data.variables, values):
         variables[name] = value
         result.variables[name] = cut_assign_value(value)
     runner = BodyRunner(self._context, self._run, self._templated)
     with StatusReporter(data, result, self._context, self._run):
         runner.run(data.body)