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

Method parse_import_context

tools/inspector_protocol/jinja2/parser.py:277–284  ·  view source on GitHub ↗
(self, node, default)

Source from the content-addressed store, hash-verified

275 return node
276
277 def parse_import_context(self, node, default):
278 if self.stream.current.test_any('name:with', 'name:without') and \
279 self.stream.look().test('name:context'):
280 node.with_context = next(self.stream).value == 'with'
281 self.stream.skip()
282 else:
283 node.with_context = default
284 return node
285
286 def parse_include(self):
287 node = nodes.Include(lineno=next(self.stream).lineno)

Callers 2

parse_includeMethod · 0.95
parse_importMethod · 0.95

Calls 5

nextFunction · 0.50
test_anyMethod · 0.45
testMethod · 0.45
lookMethod · 0.45
skipMethod · 0.45

Tested by

no test coverage detected