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

Method parse_import_context

deps/v8/third_party/jinja2/parser.py:329–339  ·  view source on GitHub ↗
(
        self, node: _ImportInclude, default: bool
    )

Source from the content-addressed store, hash-verified

327 return node
328
329 def parse_import_context(
330 self, node: _ImportInclude, default: bool
331 ) -> _ImportInclude:
332 if self.stream.current.test_any(
333 "name:with", "name:without"
334 ) and self.stream.look().test("name:context"):
335 node.with_context = next(self.stream).value == "with"
336 self.stream.skip()
337 else:
338 node.with_context = default
339 return node
340
341 def parse_include(self) -> nodes.Include:
342 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