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