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

Method parse_import

tools/inspector_protocol/jinja2/parser.py:297–302  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

295 return self.parse_import_context(node, True)
296
297 def parse_import(self):
298 node = nodes.Import(lineno=next(self.stream).lineno)
299 node.template = self.parse_expression()
300 self.stream.expect('name:as')
301 node.target = self.parse_assign_target(name_only=True).name
302 return self.parse_import_context(node, False)
303
304 def parse_from(self):
305 node = nodes.FromImport(lineno=next(self.stream).lineno)

Callers

nothing calls this directly

Calls 5

parse_expressionMethod · 0.95
parse_assign_targetMethod · 0.95
parse_import_contextMethod · 0.95
nextFunction · 0.50
expectMethod · 0.45

Tested by

no test coverage detected