Lines Matching refs:nodes
13 from jinja2 import nodes
103 list of multiple nodes.
115 return nodes.ExtensionAttribute(self.identifier, name, lineno=lineno)
120 :meth:`attr` + :class:`jinja2.nodes.Call`.
126 return nodes.Call(self.attr(name, lineno=lineno), args, kwargs,
245 variables[name.value] = var = nodes.Name(name.value, 'load')
248 if isinstance(var, nodes.Call):
249 plural_expr = nodes.Name('_trans', 'load')
251 plural_expr_assignment = nodes.Assign(
252 nodes.Name('_trans', 'store'), var)
268 plural_expr = nodes.Name(singular_names[0], 'load')
293 variables[var] = nodes.Name(var, 'load')
353 gettext = nodes.Name('gettext', 'load')
354 node = nodes.Call(gettext, [nodes.Const(singular)],
359 ngettext = nodes.Name('ngettext', 'load')
360 node = nodes.Call(ngettext, [
361 nodes.Const(singular),
362 nodes.Const(plural),
375 node.kwargs.append(nodes.Keyword(key, value))
381 node = nodes.MarkSafeIfAutoescape(node)
383 node = nodes.Mod(node, nodes.Dict([
384 nodes.Pair(nodes.Const(key), value)
387 return nodes.Output([node])
397 node = nodes.ExprStmt(lineno=next(parser.stream).lineno)
409 return nodes.Break(lineno=token.lineno)
410 return nodes.Continue(lineno=token.lineno)
418 node = nodes.Scope(lineno=next(parser.stream).lineno)
427 assignments.append(nodes.Assign(target, expr, lineno=lineno))
439 node = nodes.ScopedEvalContextModifier(lineno=next(parser.stream).lineno)
441 nodes.Keyword('autoescape', parser.parse_expression())
445 return nodes.Scope([node])
484 for node in node.find_all(nodes.Call):
485 if not isinstance(node.node, nodes.Name) or \
491 if isinstance(arg, nodes.Const) and \