MCPcopy Index your code
hub / github.com/python/cpython / get_identifiers_recursive

Method get_identifiers_recursive

Lib/test/test_symtable.py:620–623  ·  view source on GitHub ↗
(self, st, res)

Source from the content-addressed store, hash-verified

618
619class ComprehensionTests(unittest.TestCase):
620 def get_identifiers_recursive(self, st, res):
621 res.extend(st.get_identifiers())
622 for ch in st.get_children():
623 self.get_identifiers_recursive(ch, res)
624
625 def test_loopvar_in_only_one_scope(self):
626 # ensure that the loop variable appears only once in the symtable

Callers 1

Calls 3

extendMethod · 0.45
get_identifiersMethod · 0.45
get_childrenMethod · 0.45

Tested by

no test coverage detected