(&mut self, name: impl Into<String>)
| 29 | } |
| 30 | |
| 31 | pub fn mark_global(&mut self, name: impl Into<String>) { |
| 32 | let name = name.into(); |
| 33 | if !self.globals.contains(&name) { |
| 34 | self.globals.push(name); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | pub fn globals(&self) -> &[String] { |
| 39 | &self.globals |