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