• Home
  • Raw
  • Download

Lines Matching refs:as_const

397     def as_const(self, eval_ctx=None):  member in Expr
421 def as_const(self, eval_ctx=None): member in BinExpr
429 return f(self.left.as_const(eval_ctx), self.right.as_const(eval_ctx))
440 def as_const(self, eval_ctx=None): member in UnaryExpr
448 return f(self.node.as_const(eval_ctx))
493 def as_const(self, eval_ctx=None): member in Const
519 def as_const(self, eval_ctx=None): member in TemplateData
535 def as_const(self, eval_ctx=None): member in Tuple
537 return tuple(x.as_const(eval_ctx) for x in self.items)
550 def as_const(self, eval_ctx=None): member in List
552 return [x.as_const(eval_ctx) for x in self.items]
561 def as_const(self, eval_ctx=None): member in Dict
563 return dict(x.as_const(eval_ctx) for x in self.items)
570 def as_const(self, eval_ctx=None): member in Pair
572 return self.key.as_const(eval_ctx), self.value.as_const(eval_ctx)
579 def as_const(self, eval_ctx=None): member in Keyword
581 return self.key, self.value.as_const(eval_ctx)
590 def as_const(self, eval_ctx=None): member in CondExpr
592 if self.test.as_const(eval_ctx):
593 return self.expr1.as_const(eval_ctx)
599 return self.expr2.as_const(eval_ctx)
603 args = [x.as_const(eval_ctx) for x in node.args]
604 kwargs = dict(x.as_const(eval_ctx) for x in node.kwargs)
608 args.extend(node.dyn_args.as_const(eval_ctx))
614 kwargs.update(node.dyn_kwargs.as_const(eval_ctx))
631 def as_const(self, eval_ctx=None): member in Filter
656 args.insert(0, self.node.as_const(eval_ctx))
676 def as_const(self, eval_ctx=None): member in Test
684 args.insert(0, self.node.as_const(eval_ctx))
706 def as_const(self, eval_ctx=None): member in Getitem
711 return self.environment.getitem(self.node.as_const(eval_ctx),
712 self.arg.as_const(eval_ctx))
726 def as_const(self, eval_ctx=None): member in Getattr
731 return self.environment.getattr(self.node.as_const(eval_ctx),
746 def as_const(self, eval_ctx=None): member in Slice
751 return obj.as_const(eval_ctx)
761 def as_const(self, eval_ctx=None): member in Concat
763 return ''.join(text_type(x.as_const(eval_ctx)) for x in self.nodes)
772 def as_const(self, eval_ctx=None): member in Compare
774 result = value = self.expr.as_const(eval_ctx)
777 new_value = op.expr.as_const(eval_ctx)
836 def as_const(self, eval_ctx=None): member in And
838 return self.left.as_const(eval_ctx) and self.right.as_const(eval_ctx)
845 def as_const(self, eval_ctx=None): member in Or
847 return self.left.as_const(eval_ctx) or self.right.as_const(eval_ctx)
912 def as_const(self, eval_ctx=None): member in MarkSafe
914 return Markup(self.expr.as_const(eval_ctx))
925 def as_const(self, eval_ctx=None): member in MarkSafeIfAutoescape
929 expr = self.expr.as_const(eval_ctx)