Lines Matching refs: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."""
251 buf.append('nodes.%s(' % node.__class__.__name__)
296 fields = ('nodes',)
307 of nodes that are used as loop-body, and `else_` a list of nodes for the
310 For filtered nodes an expression can be stored as `test`, otherwise `None`.
323 a list of nodes for the macro body.
402 a default context is created which requires the nodes to have
557 :class:`Pair` nodes.
694 of keyword arguments (list of :class:`Keyword` nodes), and `dyn_args`
759 fields = ('nodes',)
763 return ''.join(text_type(x.as_const(eval_ctx)) for x in self.nodes)
895 """An internal name in the compiler. You cannot create these nodes
991 :class:`~jinja2.nodes.EvalContext` for nodes in the :attr:`body`.
996 # make sure nobody creates custom nodes