Skip to main content

discover_at

Function discover_at 

Source
pub fn discover_at<'v>(
    partial: &'v Value,
    path: &[&str],
) -> Option<(&'static dyn EnumerableNode, Vec<ElementSpec>)>
Expand description

Resolve the node kind at path inside partial (a possibly incomplete workload AST) and enumerate its valid sub-elements there. Path segments are the YAML keys / author-chosen names from the root; list indices are decimal. Returns None when the path leaves the modeled grammar (e.g. descends into a declared-open surface).