MCPcopy Index your code
hub / github.com/nodejs/node / macro_def

Method macro_def

tools/inspector_protocol/jinja2/compiler.py:582–591  ·  view source on GitHub ↗

Dump the macro definition for the def created by macro_body.

(self, macro_ref, frame)

Source from the content-addressed store, hash-verified

580 return frame, macro_ref
581
582 def macro_def(self, macro_ref, frame):
583 """Dump the macro definition for the def created by macro_body."""
584 arg_tuple = ', '.join(repr(x.name) for x in macro_ref.node.args)
585 name = getattr(macro_ref.node, 'name', None)
586 if len(macro_ref.node.args) == 1:
587 arg_tuple += ','
588 self.write('Macro(environment, macro, %r, (%s), %r, %r, %r, '
589 'context.eval_ctx.autoescape)' %
590 (name, arg_tuple, macro_ref.accesses_kwargs,
591 macro_ref.accesses_varargs, macro_ref.accesses_caller))
592
593 def position(self, node):
594 """Return a human readable position for the node."""

Callers 2

visit_MacroMethod · 0.95
visit_CallBlockMethod · 0.95

Calls 2

writeMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected