MCPcopy Create free account
hub / github.com/nodejs/node / free_identifier

Method free_identifier

deps/v8/third_party/jinja2/parser.py:158–163  ·  view source on GitHub ↗

Return a new free identifier as :class:`~jinja2.nodes.InternalName`.

(self, lineno: t.Optional[int] = None)

Source from the content-addressed store, hash-verified

156 return False
157
158 def free_identifier(self, lineno: t.Optional[int] = None) -> nodes.InternalName:
159 """Return a new free identifier as :class:`~jinja2.nodes.InternalName`."""
160 self._last_identifier += 1
161 rv = object.__new__(nodes.InternalName)
162 nodes.Node.__init__(rv, f"fi{self._last_identifier}", lineno=lineno)
163 return rv
164
165 def parse_statement(self) -> t.Union[nodes.Node, t.List[nodes.Node]]:
166 """Parse a single statement."""

Callers

nothing calls this directly

Calls 2

__new__Method · 0.45
__init__Method · 0.45

Tested by

no test coverage detected