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

Method free_identifier

tools/inspector_protocol/jinja2/parser.py:114–119  ·  view source on GitHub ↗

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

(self, lineno=None)

Source from the content-addressed store, hash-verified

112 return False
113
114 def free_identifier(self, lineno=None):
115 """Return a new free identifier as :class:`~jinja2.nodes.InternalName`."""
116 self._last_identifier += 1
117 rv = object.__new__(nodes.InternalName)
118 nodes.Node.__init__(rv, 'fi%d' % self._last_identifier, lineno=lineno)
119 return rv
120
121 def parse_statement(self):
122 """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