MCPcopy Index your code
hub / github.com/RustPython/RustPython / find_block

Function find_block

Lib/test/test_symtable.py:174–177  ·  view source on GitHub ↗
(block, name)

Source from the content-addressed store, hash-verified

172
173
174def find_block(block, name):
175 for ch in block.get_children():
176 if ch.get_name() == name:
177 return ch
178
179
180class SymtableTest(unittest.TestCase):

Callers 4

SymtableTestClass · 0.85
check_bodyMethod · 0.85
test_bytesMethod · 0.85

Calls 2

get_childrenMethod · 0.45
get_nameMethod · 0.45

Tested by

no test coverage detected