Lines Matching refs:environment
74 def generate(node, environment, name, filename, stream=None, argument
79 generator = environment.code_generator_class(environment, name, filename,
246 def __init__(self, environment, name, filename, stream=None, argument
250 self.environment = environment
258 self.optimizer = Optimizer(environment)
501 if self.environment.is_async:
697 eval_ctx = EvalContext(self.environment, self.name)
703 if self.environment.is_async:
764 if supports_yield_from and not self.environment.is_async:
770 (self.environment.is_async and 'async ' or ''))
829 if supports_yield_from and not self.environment.is_async and \
834 loop = self.environment.is_async and 'async for' or 'for'
919 loop = self.environment.is_async and 'async for' or 'for'
923 elif self.environment.is_async:
949 if self.environment.is_async:
956 % (self.environment.is_async and '_async' or '',
958 elif self.environment.is_async:
969 % (self.environment.is_async and 'await ' or ''))
974 % (self.environment.is_async and '_async' or '',
976 elif self.environment.is_async:
1050 self.writeline(self.environment.is_async and 'async for ' or 'for ')
1053 self.write(self.environment.is_async and 'auto_aiter(fiter)' or 'fiter')
1091 self.writeline(self.environment.is_async and 'async for ' or 'for ', node)
1094 if self.environment.is_async:
1106 if self.environment.is_async and not extended_loop:
1109 if self.environment.is_async and not extended_loop:
1143 if self.environment.is_async:
1146 if self.environment.is_async:
1149 if self.environment.is_async:
1228 if self.environment.finalize:
1229 func = self.environment.finalize
1235 self.environment.finalize(self.environment, x))
1237 finalize = lambda x: text_type(self.environment.finalize(x))
1308 if self.environment.finalize is not None:
1310 if getattr(self.environment.finalize,
1346 if self.environment.finalize is not None:
1348 if getattr(self.environment.finalize,
1351 elif getattr(self.environment.finalize,
1354 elif getattr(self.environment.finalize,
1474 if self.environment.sandboxed and \
1475 operator in self.environment.intercepted_binops:
1491 if self.environment.sandboxed and \
1492 operator in self.environment.intercepted_unops:
1573 if self.environment.is_async:
1576 func = self.environment.filters.get(node.name)
1600 if self.environment.is_async:
1606 if node.name not in self.environment.tests:
1631 if self.environment.is_async:
1633 if self.environment.sandboxed:
1641 if self.environment.is_async: