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

Method parse_include

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

Source from the content-addressed store, hash-verified

284 return node
285
286 def parse_include(self):
287 node = nodes.Include(lineno=next(self.stream).lineno)
288 node.template = self.parse_expression()
289 if self.stream.current.test('name:ignore') and \
290 self.stream.look().test('name:missing'):
291 node.ignore_missing = True
292 self.stream.skip(2)
293 else:
294 node.ignore_missing = False
295 return self.parse_import_context(node, True)
296
297 def parse_import(self):
298 node = nodes.Import(lineno=next(self.stream).lineno)

Callers

nothing calls this directly

Calls 6

parse_expressionMethod · 0.95
parse_import_contextMethod · 0.95
nextFunction · 0.50
testMethod · 0.45
lookMethod · 0.45
skipMethod · 0.45

Tested by

no test coverage detected