(&self)
| 316 | self.stack.last().map(|s| s.row).unwrap_or(0) |
| 317 | } |
| 318 | fn inside_class_like(&self) -> bool { |
| 319 | self.stack |
| 320 | .last() |
| 321 | .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module")) |
| 322 | .unwrap_or(false) |
| 323 | } |
| 324 | |
| 325 | fn push_ref_at(&mut self, from_row: u32, name: &str, kind: &str, node: Node) { |
| 326 | let name_ref = self.arena.put(name); |