(&self)
| 240 | self.stack.last().map(|s| s.row).unwrap_or(0) |
| 241 | } |
| 242 | fn inside_class_like(&self) -> bool { |
| 243 | self.stack |
| 244 | .last() |
| 245 | .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module")) |
| 246 | .unwrap_or(false) |
| 247 | } |
| 248 | |
| 249 | fn push_ref(&mut self, from_row: u32, name: &str, kind_code: u8, line: u32, column: u32) { |
| 250 | let name_ref = self.arena.put(name); |