Home | History | Annotate | Download | only in jinja2

Lines Matching full:nodes

3     jinja2.nodes
6 This module implements additional nodes derived from the ast base node.
10 python and jinja nodes.
60 """A metaclass for nodes that handles the field and attribute
108 """Baseclass for all Jinja2 nodes. There are a number of nodes available
113 - :class:`Helper`: helper nodes
116 All nodes have fields and attributes. Fields may be other nodes, lists,
121 all nodes automatically.
129 raise TypeError('abstract nodes are not instanciable')
165 """Iterates over all direct child nodes of the node. This iterates
166 over all fields and yields the values of they are nodes. If the value
167 of a field is a list all the nodes in that list are returned.
185 """Find all the nodes of a given type. If the type is a tuple,
195 """Reset the context of a node and all child nodes. Per default the
196 parser will all generate nodes that have a 'load' context as it's the
198 targets and other nodes to a store context.
220 """Set the environment for all nodes."""
252 """Nodes that exist in a specific context only."""
267 fields = ('nodes',)
278 of nodes that are used as loop-body, and `else_` a list of nodes for the
281 For filtered nodes an expression can be stored as `test`, otherwise `None`.
294 a list of nodes for the macro body.
359 a default context is created which requires the nodes to have
495 :class:`Pair` nodes.
593 of keyword arguments (list of :class:`Keyword` nodes), and `dyn_args`
690 fields = ('nodes',)
694 return ''.join(text_type(x.as_const(eval_ctx)) for x in self.nodes)
826 """An internal name in the compiler. You cannot create these nodes
906 :class:`~jinja2.nodes.EvalContext` for nodes in the :attr:`body`.
911 # make sure nobody creates custom nodes