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

Method current_symbol_table

crates/codegen/src/compile.rs:734–738  ·  view source on GitHub ↗

Get the SymbolTable for the current scope.

(&self)

Source from the content-addressed store, hash-verified

732
733 /// Get the SymbolTable for the current scope.
734 fn current_symbol_table(&self) -> &SymbolTable {
735 self.symbol_table_stack
736 .last()
737 .expect("symbol_table_stack is empty! This is a compiler bug.")
738 }
739
740 /// Check if a name is imported in current scope or any enclosing scope.
741 fn is_name_imported(&self, name: &str) -> bool {

Callers 14

is_name_importedMethod · 0.80
push_symbol_tableMethod · 0.80
emit_resume_for_scopeMethod · 0.80
compile_programMethod · 0.80
mangleMethod · 0.80
compile_nameMethod · 0.80
compile_function_bodyMethod · 0.80
compile_class_bodyMethod · 0.80

Calls 1

lastMethod · 0.45

Tested by

no test coverage detected