MCPcopy Index your code
hub / github.com/pyload/pyload / parse_include

Method parse_include

module/lib/jinja2/parser.py:247–256  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

245 return node
246
247 def parse_include(self):
248 node = nodes.Include(lineno=next(self.stream).lineno)
249 node.template = self.parse_expression()
250 if self.stream.current.test('name:ignore') and \
251 self.stream.look().test('name:missing'):
252 node.ignore_missing = True
253 self.stream.skip(2)
254 else:
255 node.ignore_missing = False
256 return self.parse_import_context(node, True)
257
258 def parse_import(self):
259 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.90
testMethod · 0.80
lookMethod · 0.80
skipMethod · 0.45

Tested by

no test coverage detected