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

Method parse_macro

tools/inspector_protocol/jinja2/parser.py:379–385  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

377 return node
378
379 def parse_macro(self):
380 node = nodes.Macro(lineno=next(self.stream).lineno)
381 node.name = self.parse_assign_target(name_only=True).name
382 self.parse_signature(node)
383 node.body = self.parse_statements(('name:endmacro',),
384 drop_needle=True)
385 return node
386
387 def parse_print(self):
388 node = nodes.Output(lineno=next(self.stream).lineno)

Callers

nothing calls this directly

Calls 4

parse_assign_targetMethod · 0.95
parse_signatureMethod · 0.95
parse_statementsMethod · 0.95
nextFunction · 0.50

Tested by

no test coverage detected