Lines Matching full:none
81 def __init__(self, environment, template_name=None):
98 if ctx is None:
99 if node.environment is None:
143 setattr(self, attr, attributes.pop(attr, None))
148 def iter_fields(self, exclude=None, only=None):
156 if (exclude is only is None) or \
157 (exclude is not None and name not in exclude) or \
158 (only is not None and name in only):
164 def iter_child_nodes(self, exclude=None, only=None):
179 return value is `None`.
214 if node.lineno is None or override:
241 ', '.join('%s=%r' % (arg, getattr(self, arg, None)) for
281 For filtered nodes an expression can be stored as `test`, otherwise `None`.
354 def as_const(self, eval_ctx=None):
358 An :class:`EvalContext` can be provided, if none is given
375 operator = None
378 def as_const(self, eval_ctx=None):
394 operator = None
397 def as_const(self, eval_ctx=None):
421 return self.name not in ('true', 'false', 'none',
422 'True', 'False', 'None')
438 def as_const(self, eval_ctx=None):
442 def from_untrusted(cls, value, lineno=None, environment=None):
457 def as_const(self, eval_ctx=None):
473 def as_const(self, eval_ctx=None):
488 def as_const(self, eval_ctx=None):
499 def as_const(self, eval_ctx=None):
508 def as_const(self, eval_ctx=None):
517 def as_const(self, eval_ctx=None):
528 def as_const(self, eval_ctx=None):
534 if self.expr2 is None:
544 If the `node` of a filter is `None` the contents of the last buffer are
549 def as_const(self, eval_ctx=None):
551 if eval_ctx.volatile or self.node is None:
559 if filter_ is None or getattr(filter_, 'contextfilter', False):
568 if self.dyn_args is not None:
573 if self.dyn_kwargs is not None:
594 and `dyn_kwargs` has to be either `None` or a node that is used as
600 def as_const(self, eval_ctx=None):
617 if self.dyn_args is not None:
622 if self.dyn_kwargs is not None:
637 def as_const(self, eval_ctx=None):
657 def as_const(self, eval_ctx=None):
677 def as_const(self, eval_ctx=None):
680 if obj is None:
681 return None
692 def as_const(self, eval_ctx=None):
703 def as_const(self, eval_ctx=None):
767 def as_const(self, eval_ctx=None):
776 def as_const(self, eval_ctx=None):
843 def as_const(self, eval_ctx=None):
856 def as_const(self, eval_ctx=None):