(
elem: &array::ArrayElement<'_>,
content: &str,
ranges: &mut Vec<FoldingRange>,
)
| 715 | } |
| 716 | |
| 717 | fn collect_from_array_element( |
| 718 | elem: &array::ArrayElement<'_>, |
| 719 | content: &str, |
| 720 | ranges: &mut Vec<FoldingRange>, |
| 721 | ) { |
| 722 | match elem { |
| 723 | array::ArrayElement::KeyValue(kv) => { |
| 724 | collect_from_expression(kv.key, content, ranges); |
| 725 | collect_from_expression(kv.value, content, ranges); |
| 726 | } |
| 727 | array::ArrayElement::Value(v) => { |
| 728 | collect_from_expression(v.value, content, ranges); |
| 729 | } |
| 730 | array::ArrayElement::Variadic(v) => { |
| 731 | collect_from_expression(v.value, content, ranges); |
| 732 | } |
| 733 | array::ArrayElement::Missing(_) => {} |
| 734 | } |
| 735 | } |
| 736 | |
| 737 | fn collect_from_construct( |
| 738 | construct: &construct::Construct<'_>, |
no test coverage detected