isInsideClassLikeNode.
(&self)
| 477 | |
| 478 | /// isInsideClassLikeNode. |
| 479 | fn inside_class_like(&self) -> bool { |
| 480 | self.stack |
| 481 | .last() |
| 482 | .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module")) |
| 483 | .unwrap_or(false) |
| 484 | } |
| 485 | |
| 486 | fn push_ref(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node) { |
| 487 | let name_ref = self.arena.put(name); |
no test coverage detected