Method
fetch_inherited_flag
(&self, getter: fn(&'a NodeData) -> bool)
Source from the content-addressed store, hash-verified
| 529 | } |
| 530 | |
| 531 | pub(crate) fn fetch_inherited_flag(&self, getter: fn(&'a NodeData) -> bool) -> bool { |
| 532 | let mut node = *self; |
| 533 | loop { |
| 534 | if getter(node.data()) { |
| 535 | return true; |
| 536 | } |
| 537 | if let Some(parent) = node.parent() { |
| 538 | node = parent; |
| 539 | } else { |
| 540 | return false; |
| 541 | } |
| 542 | } |
| 543 | } |
| 544 | |
| 545 | pub fn is_text_input(&self) -> bool { |
| 546 | matches!( |
Tested by
no test coverage detected