Get the SymbolTable for the current scope.
(&self)
| 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 { |
no test coverage detected