Lines Matching refs:as_const
395 def as_const(self, eval_ctx=None): member in Expr
420 def as_const(self, eval_ctx=None): member in BinExpr
430 return f(self.left.as_const(eval_ctx), self.right.as_const(eval_ctx))
442 def as_const(self, eval_ctx=None): member in UnaryExpr
452 return f(self.node.as_const(eval_ctx))
500 def as_const(self, eval_ctx=None): member in Const
521 def as_const(self, eval_ctx=None): member in TemplateData
538 def as_const(self, eval_ctx=None): member in Tuple
540 return tuple(x.as_const(eval_ctx) for x in self.items)
554 def as_const(self, eval_ctx=None): member in List
556 return [x.as_const(eval_ctx) for x in self.items]
566 def as_const(self, eval_ctx=None): member in Dict
568 return dict(x.as_const(eval_ctx) for x in self.items)
576 def as_const(self, eval_ctx=None): member in Pair
578 return self.key.as_const(eval_ctx), self.value.as_const(eval_ctx)
586 def as_const(self, eval_ctx=None): member in Keyword
588 return self.key, self.value.as_const(eval_ctx)
598 def as_const(self, eval_ctx=None): member in CondExpr
600 if self.test.as_const(eval_ctx):
601 return self.expr1.as_const(eval_ctx)
607 return self.expr2.as_const(eval_ctx)
611 args = [x.as_const(eval_ctx) for x in node.args]
612 kwargs = dict(x.as_const(eval_ctx) for x in node.kwargs)
616 args.extend(node.dyn_args.as_const(eval_ctx))
622 kwargs.update(node.dyn_kwargs.as_const(eval_ctx))
639 def as_const(self, eval_ctx=None): member in Filter
658 args.insert(0, self.node.as_const(eval_ctx))
678 def as_const(self, eval_ctx=None): member in Test
686 args.insert(0, self.node.as_const(eval_ctx))
710 def as_const(self, eval_ctx=None): member in Getitem
716 self.node.as_const(eval_ctx), self.arg.as_const(eval_ctx)
732 def as_const(self, eval_ctx=None): member in Getattr
737 return self.environment.getattr(self.node.as_const(eval_ctx), self.attr)
752 def as_const(self, eval_ctx=None): member in Slice
758 return obj.as_const(eval_ctx)
770 def as_const(self, eval_ctx=None): member in Concat
772 return "".join(str(x.as_const(eval_ctx)) for x in self.nodes)
782 def as_const(self, eval_ctx=None): member in Compare
784 result = value = self.expr.as_const(eval_ctx)
788 new_value = op.expr.as_const(eval_ctx)
856 def as_const(self, eval_ctx=None): member in And
858 return self.left.as_const(eval_ctx) and self.right.as_const(eval_ctx)
866 def as_const(self, eval_ctx=None): member in Or
868 return self.left.as_const(eval_ctx) or self.right.as_const(eval_ctx)
943 def as_const(self, eval_ctx=None): member in MarkSafe
945 return Markup(self.expr.as_const(eval_ctx))
957 def as_const(self, eval_ctx=None): member in MarkSafeIfAutoescape
961 expr = self.expr.as_const(eval_ctx)