find_line_for_key

Function find_line_for_key 

Source
pub fn find_line_for_key(source: &str, path: &[&str]) -> Option<u32>
Expand description

Find the line number for a given path in the source YAML.

This function searches the raw source for the key to determine its position.