Get the module identifier for a given name, if that name has been declared.
(&self, name: &str)
| 693 | /// Get the module identifier for a given name, if that name |
| 694 | /// has been declared. |
| 695 | pub fn get_name(&self, name: &str) -> Option<FuncOrDataId> { |
| 696 | self.names.get(name).copied() |
| 697 | } |
| 698 | |
| 699 | /// Get an iterator of all function declarations |
| 700 | pub fn get_functions(&self) -> impl Iterator<Item = (FuncId, &FunctionDeclaration)> { |