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

Method is_nested

Lib/symtable.py:128–131  ·  view source on GitHub ↗

Return *True* if the block is a nested class or function.

(self)

Source from the content-addressed store, hash-verified

126 return bool(self._table.type == _symtable.TYPE_FUNCTION)
127
128 def is_nested(self):
129 """Return *True* if the block is a nested class
130 or function."""
131 return bool(self._table.nested)
132
133 def has_children(self):
134 """Return *True* if the block has nested namespaces.

Callers 2

print_symbolsFunction · 0.45
test_nestedMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_nestedMethod · 0.36