(&self)
| 361 | self.stack.last().map(|s| s.row).unwrap_or(0) |
| 362 | } |
| 363 | fn inside_class_like(&self) -> bool { |
| 364 | self.stack |
| 365 | .last() |
| 366 | .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module")) |
| 367 | .unwrap_or(false) |
| 368 | } |
| 369 | |
| 370 | fn push_ref_at(&mut self, from_row: u32, name: &str, kind: &str, node: Node) { |
| 371 | let name_ref = self.arena.put(name); |