extractCsharpPrimaryCtorParamRefs (5938) — the class/struct/record primary constructor's parameter_list (an unnamed-field child).
(&mut self, node: Node<'t>, owner_row: u32)
| 1351 | /// extractCsharpPrimaryCtorParamRefs (5938) — the class/struct/record |
| 1352 | /// primary constructor's parameter_list (an unnamed-field child). |
| 1353 | fn extract_primary_ctor_param_refs(&mut self, node: Node<'t>, owner_row: u32) { |
| 1354 | let param_list = (0..node.named_child_count()) |
| 1355 | .filter_map(|i| node.named_child(i)) |
| 1356 | .find(|c| c.kind() == "parameter_list"); |
| 1357 | let Some(param_list) = param_list else { return }; |
| 1358 | for i in 0..param_list.named_child_count() { |
| 1359 | let Some(p) = param_list.named_child(i) else { continue }; |
| 1360 | if p.kind() != "parameter" { |
| 1361 | continue; |
| 1362 | } |
| 1363 | if let Some(t) = p.child_by_field_name("type") { |
| 1364 | self.walk_type_position(t, owner_row); |
| 1365 | } |
| 1366 | } |
| 1367 | } |
| 1368 | |
| 1369 | /// walkCsharpTypePosition (5955). |
| 1370 | fn walk_type_position(&mut self, node: Node<'t>, from_row: u32) { |
no test coverage detected