collect_path_segments

Function collect_path_segments 

Source
pub(crate) fn collect_path_segments(
    path_pair: Pair<'_, Rule>,
    context: &str,
) -> Result<Vec<String>, Diagnostic>
Expand description

Convert a path parse node into its identifier segments, validating each child is an identifier and rejecting empty paths.