Lines Matching refs:eval_ctx
66 if self.optimized and not frame.eval_ctx.volatile:
67 new_node = self.optimizer.visit(node, frame.eval_ctx)
133 def __init__(self, eval_ctx, parent=None, level=None): argument
134 self.eval_ctx = eval_ctx
175 return Frame(self.eval_ctx, level=self.symbols.level + 1)
176 return Frame(self.eval_ctx, self)
330 if frame.eval_ctx.volatile:
340 elif frame.eval_ctx.autoescape:
697 eval_ctx = EvalContext(self.environment, self.name)
743 frame = Frame(eval_ctx)
786 block_frame = Frame(eval_ctx)
1255 const = child.as_const(frame.eval_ctx)
1263 if frame.eval_ctx.autoescape:
1301 if frame.eval_ctx.volatile:
1304 elif frame.eval_ctx.autoescape:
1339 if frame.eval_ctx.volatile:
1343 elif frame.eval_ctx.autoescape:
1431 val = node.as_const(frame.eval_ctx)
1439 self.write(repr(node.as_const(frame.eval_ctx)))
1517 if frame.eval_ctx.volatile:
1520 elif frame.eval_ctx.autoescape:
1590 elif frame.eval_ctx.volatile:
1594 elif frame.eval_ctx.autoescape:
1707 val = keyword.value.as_const(frame.eval_ctx)
1709 frame.eval_ctx.volatile = True
1711 setattr(frame.eval_ctx, keyword.key, val)
1715 saved_ctx = frame.eval_ctx.save()
1720 frame.eval_ctx.revert(saved_ctx)