MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / collect_from_array_element

Function collect_from_array_element

src/folding.rs:717–735  ·  view source on GitHub ↗
(
    elem: &array::ArrayElement<'_>,
    content: &str,
    ranges: &mut Vec<FoldingRange>,
)

Source from the content-addressed store, hash-verified

715}
716
717fn 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
737fn collect_from_construct(
738 construct: &construct::Construct<'_>,

Callers 1

collect_from_expressionFunction · 0.85

Calls 1

collect_from_expressionFunction · 0.70

Tested by

no test coverage detected