isInsideClassLikeNode.
(&self)
| 363 | |
| 364 | /// isInsideClassLikeNode. |
| 365 | fn inside_class_like(&self) -> bool { |
| 366 | self.stack |
| 367 | .last() |
| 368 | .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module")) |
| 369 | .unwrap_or(false) |
| 370 | } |
| 371 | |
| 372 | fn push_ref(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node) { |
| 373 | let name_ref = self.arena.put(name); |
no test coverage detected