Put an owner on the stack — on top of the file alone for one on the global object — returning what was set aside for leave_owner.
(&mut self, row: u32, kind: &'static str, name: &str, global: bool)
| 1397 | /// Put an owner on the stack — on top of the file alone for one on the |
| 1398 | /// global object — returning what was set aside for leave_owner. |
| 1399 | fn enter_owner(&mut self, row: u32, kind: &'static str, name: &str, global: bool) -> Vec<Scope> { |
| 1400 | let rest = if global { self.stack.split_off(1) } else { Vec::new() }; |
| 1401 | self.stack.push(Scope { row, kind, name: name.to_string() }); |
| 1402 | rest |
| 1403 | } |
| 1404 | |
| 1405 | fn leave_owner(&mut self, rest: Vec<Scope>) { |
| 1406 | self.stack.pop(); |
no test coverage detected