// TODO: Support extending parent properties via NAME+
Support extending parent properties via NAME+
Support extending parent properties via NAME +
pub fn node_property(&self, node_id: NodeId, name: &str) -> Option<&str> {
        let mut node_id = Some(node_id);
        while let Some(id) = node_id {
            if let Some(node) = self.node(id) {
                if let Some(property) = node.properties.get(name) {
                    return Some(property);
                }
            }
            node_id = self.parent_id(id);
        }
        None
    }
pub fn node_property ( & self , node_id : NodeId , name : & str ) -> Option < & str > { let mut node_id = Some ( node_id ) ; while let Some ( id ) = node_id { if let Some ( node ) = self . node ( id ) { if let Some ( property ) = node . properties . get ( name ) { return Some ( property ) ; } } node_id = self . parent_id ( id ) ; } None }
TODO: Support extending parent properties via NAME+
TODO : Support extending parent properties via NAME +
&self
node_id
NodeId
name
&str