Home | History | Annotate | Download | only in jinja2

Lines Matching refs:nodes

6     Compiles nodes into python code.
14 from jinja2 import nodes
15 from jinja2.nodes import EvalContext
58 if not isinstance(node, nodes.Template):
59 raise TypeError('Can\'t compile non template nodes')
88 def find_undeclared(nodes, names):
94 for node in nodes:
192 def inspect(self, nodes):
198 for node in nodes:
294 def inner_visit(nodes):
295 if not nodes:
298 for subnode in nodes:
477 def blockvisit(self, nodes, frame):
478 """Visit a list of nodes as block in a frame. If the current frame
487 for node in nodes:
577 def pull_dependencies(self, nodes):
580 for node in nodes:
773 have_extends = node.find(nodes.Extends) is not None
776 for block in node.find_all(nodes.Block):
782 for import_ in node.find_all(nodes.ImportedName):
931 if isinstance(node.template, nodes.Const):
936 elif isinstance(node.template, (nodes.Tuple, nodes.List)):
1037 # when calculating the nodes for the inner frame we have to exclude
1072 for name in node.find_all(nodes.Name):
1233 for child in node.nodes:
1236 except nodes.Impossible:
1259 # if we have less than 3 nodes or a buffer we yield or extend/append
1390 except nodes.Impossible:
1472 for arg in node.nodes:
1493 if isinstance(node.arg, nodes.Slice):
1580 # -- Unused nodes for extensions
1627 except nodes.Impossible: