Lines Matching refs:nodes
1 """AST nodes generated by the parser for the compiler. Also provides
3 to normalize nodes.
53 """A metaclass for nodes that handles the field and attribute
104 """Baseclass for all Jinja nodes. There are a number of nodes available
109 - :class:`Helper`: helper nodes
112 All nodes have fields and attributes. Fields may be other nodes, lists,
117 all nodes automatically.
129 raise TypeError("abstract nodes are not instantiable")
172 """Iterates over all direct child nodes of the node. This iterates
173 over all fields and yields the values of they are nodes. If the value
174 of a field is a list all the nodes in that list are returned.
196 """Find all the nodes of a given type. If the type is a tuple,
205 """Reset the context of a node and all child nodes. Per default the
206 parser will all generate nodes that have a 'load' context as it's the
208 targets and other nodes to a store context.
230 """Set the environment for all nodes."""
256 buf.append(f"nodes.{type(node).__name__}(")
306 fields = ("nodes",)
307 nodes: t.List["Expr"]
320 of nodes that are used as loop-body, and `else_` a list of nodes for the
323 For filtered nodes an expression can be stored as `test`, otherwise `None`.
348 a list of nodes for the macro body.
475 a default context is created which requires the nodes to have
655 :class:`Pair` nodes.
817 of keyword arguments (list of :class:`Keyword` nodes), and `dyn_args`
901 fields = ("nodes",)
902 nodes: t.List[Expr]
906 return "".join(str(x.as_const(eval_ctx)) for x in self.nodes)
1064 """An internal name in the compiler. You cannot create these nodes
1191 :class:`~jinja2.nodes.EvalContext` for nodes in the :attr:`body`.
1198 # make sure nobody creates custom nodes