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)
| 984 | /// Put an owner on the stack — on top of the file alone for one on the |
| 985 | /// global object — returning what was set aside for leave_owner. |
| 986 | fn enter_owner(&mut self, row: u32, kind: &'static str, name: &str, global: bool) -> Vec<Scope> { |
| 987 | let rest = if global { self.stack.split_off(1) } else { Vec::new() }; |
| 988 | self.stack.push(Scope { row, kind, name: name.to_string() }); |
| 989 | rest |
| 990 | } |
| 991 | |
| 992 | fn leave_owner(&mut self, rest: Vec<Scope>) { |
| 993 | self.stack.pop(); |
no test coverage detected