isInsideClassLikeNode.
(&self)
| 343 | |
| 344 | /// isInsideClassLikeNode. |
| 345 | fn inside_class_like(&self) -> bool { |
| 346 | self.stack |
| 347 | .last() |
| 348 | .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module")) |
| 349 | .unwrap_or(false) |
| 350 | } |
| 351 | |
| 352 | fn push_ref(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node) { |
| 353 | let name_ref = self.arena.put(name); |
no test coverage detected