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

Method parse_include

deps/v8/third_party/jinja2/parser.py:341–351  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

339 return node
340
341 def parse_include(self) -> nodes.Include:
342 node = nodes.Include(lineno=next(self.stream).lineno)
343 node.template = self.parse_expression()
344 if self.stream.current.test("name:ignore") and self.stream.look().test(
345 "name:missing"
346 ):
347 node.ignore_missing = True
348 self.stream.skip(2)
349 else:
350 node.ignore_missing = False
351 return self.parse_import_context(node, True)
352
353 def parse_import(self) -> nodes.Import:
354 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