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

Method func

tools/inspector_protocol/jinja2/compiler.py:500–503  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

498 self.writeline('%s = missing' % ' = '.join(undefs))
499
500 def func(self, name):
501 if self.environment.is_async:
502 return 'async def %s' % name
503 return 'def %s' % name
504
505 def macro_body(self, node, frame):
506 """Dump the function def of a macro or call block."""

Callers 3

macro_bodyMethod · 0.95
visit_TemplateMethod · 0.95
visit_ForMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected