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

Method parse_import_context

module/lib/jinja2/parser.py:238–245  ·  view source on GitHub ↗
(self, node, default)

Source from the content-addressed store, hash-verified

236 return node
237
238 def parse_import_context(self, node, default):
239 if self.stream.current.test_any('name:with', 'name:without') and \
240 self.stream.look().test('name:context'):
241 node.with_context = next(self.stream).value == 'with'
242 self.stream.skip()
243 else:
244 node.with_context = default
245 return node
246
247 def parse_include(self):
248 node = nodes.Include(lineno=next(self.stream).lineno)

Callers 2

parse_includeMethod · 0.95
parse_importMethod · 0.95

Calls 5

nextFunction · 0.90
test_anyMethod · 0.80
testMethod · 0.80
lookMethod · 0.80
skipMethod · 0.45

Tested by

no test coverage detected