third_party/jinja2/compiler.py
def macro_def(self, macro_ref, frame):
        """Dump the macro definition for the def created by macro_body."""
        arg_tuple = ", ".join(repr(x.name) for x in macro_ref.node.args)
        name = getattr(macro_ref.node, "name", None)
        if len(macro_ref.node.args) == 1:
            arg_tuple += ","
        self.write(
            "Macro(environment, macro, %r, (%s), %r, %r, %r, "
            "context.eval_ctx.autoescape)"
            % (
                name,
                arg_tuple,
                macro_ref.accesses_kwargs,
                macro_ref.accesses_varargs,
                macro_ref.accesses_caller,
            )
        )
Dump the macro definition for the def created by macro_body.
Dump the macro definition for the def created by macro_body.
Dump the macro definition for the def created by macro_body .
def macro_def(self, macro_ref, frame):
        arg_tuple = ", ".join(repr(x.name) for x in macro_ref.node.args)
        name = getattr(macro_ref.node, "name", None)
        if len(macro_ref.node.args) == 1:
            arg_tuple += ","
        self.write(
            "Macro(environment, macro, %r, (%s), %r, %r, %r, "
            "context.eval_ctx.autoescape)"
            % (
                name,
                arg_tuple,
                macro_ref.accesses_kwargs,
                macro_ref.accesses_varargs,
                macro_ref.accesses_caller,
            )
        )
def macro_def ( self , macro_ref , frame ) : arg_tuple = ", " . join ( repr ( x . name ) for x in macro_ref . node . args ) name = getattr ( macro_ref . node , "name" , None ) if len ( macro_ref . node . args ) == 1 : arg_tuple += "," self . write ( "Macro(environment, macro, %r, (%s), %r, %r, %r, " "context.eval_ctx.autoescape)" % ( name , arg_tuple , macro_ref . accesses_kwargs , macro_ref . accesses_varargs , macro_ref . accesses_caller , ) )
Dump the macro definition for the def created by macro_body.
Dump the macro definition for the def created by macro_body .
"""Dump the macro definition for the def created by macro_body."""
self
macro_ref
frame