(&self)
| 248 | self.stack.last().map(|s| s.row).unwrap_or(0) |
| 249 | } |
| 250 | fn inside_class_like(&self) -> bool { |
| 251 | self.stack |
| 252 | .last() |
| 253 | .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module")) |
| 254 | .unwrap_or(false) |
| 255 | } |
| 256 | |
| 257 | fn push_ref_at(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node) { |
| 258 | let name_ref = self.arena.put(name); |