(result: &ExtractionResult, kind: NodeKind)
| 7 | } |
| 8 | |
| 9 | fn names_of(result: &ExtractionResult, kind: NodeKind) -> Vec<String> { |
| 10 | result |
| 11 | .nodes |
| 12 | .iter() |
| 13 | .filter(|n| n.kind == kind) |
| 14 | .map(|n| n.name.clone()) |
| 15 | .collect() |
| 16 | } |
| 17 | |
| 18 | #[test] |
| 19 | fn def_is_function() { |