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

Method is_tuple_end

tools/inspector_protocol/jinja2/parser.py:106–112  ·  view source on GitHub ↗

Are we at the end of a tuple?

(self, extra_end_rules=None)

Source from the content-addressed store, hash-verified

104 return self._fail_ut_eof(None, stack, lineno)
105
106 def is_tuple_end(self, extra_end_rules=None):
107 """Are we at the end of a tuple?"""
108 if self.stream.current.type in ('variable_end', 'block_end', 'rparen'):
109 return True
110 elif extra_end_rules is not None:
111 return self.stream.current.test_any(extra_end_rules)
112 return False
113
114 def free_identifier(self, lineno=None):
115 """Return a new free identifier as :class:`~jinja2.nodes.InternalName`."""

Callers 1

parse_tupleMethod · 0.95

Calls 1

test_anyMethod · 0.45

Tested by

no test coverage detected