MCPcopy
hub / github.com/pallets/jinja / position

Method position

src/jinja2/compiler.py:709–714  ·  view source on GitHub ↗

Return a human readable position for the node.

(self, node: nodes.Node)

Source from the content-addressed store, hash-verified

707 )
708
709 def position(self, node: nodes.Node) -> str:
710 """Return a human readable position for the node."""
711 rv = f"line {node.lineno}"
712 if self.name is not None:
713 rv = f"{rv} in {self.name!r}"
714 return rv
715
716 def dump_local_context(self, frame: Frame) -> str:
717 items_kv = ", ".join(

Callers 2

visit_FromImportMethod · 0.95
write_expr2Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected