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

Method is_empty

crates/codegen/src/symboltable.rs:459–461  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

457 self.v.len()
458 }
459 pub fn is_empty(&self) -> bool {
460 self.len() == 0
461 }
462
463 pub fn as_ref(&self) -> &[&T] {
464 unsafe { &*(self.v.as_slice() as *const [NonNull<T>] as *const [&T]) }

Callers 15

analyze_symbolMethod · 0.45
found_in_inner_scopeMethod · 0.45
unparse_exprMethod · 0.45
unparse_argumentsMethod · 0.45
enter_scopeMethod · 0.45
compile_statementMethod · 0.45
compile_try_statementMethod · 0.45
compile_function_bodyMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected