matched_path_or_any_parents() — tailwindcss Function Reference
Architecture documentation for the matched_path_or_any_parents() function in gitignore.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 9e0901b1_589e_f34e_e871_d74e148bffa5["matched_path_or_any_parents()"] 5ef9c4eb_dd26_3310_8883_d6d0d0fc9c0e["is_empty()"] 9e0901b1_589e_f34e_e871_d74e148bffa5 -->|calls| 5ef9c4eb_dd26_3310_8883_d6d0d0fc9c0e 5b10a30b_cb6e_783d_3cb7_9269934d8149["strip()"] 9e0901b1_589e_f34e_e871_d74e148bffa5 -->|calls| 5b10a30b_cb6e_783d_3cb7_9269934d8149 85514e47_0778_8129_291e_eb0635f493e0["matched_stripped()"] 9e0901b1_589e_f34e_e871_d74e148bffa5 -->|calls| 85514e47_0778_8129_291e_eb0635f493e0 style 9e0901b1_589e_f34e_e871_d74e148bffa5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/gitignore.rs lines 221–243
pub fn matched_path_or_any_parents<P: AsRef<Path>>(
&self,
path: P,
is_dir: bool,
) -> Match<&Glob> {
if self.is_empty() {
return Match::None;
}
let mut path = self.strip(path.as_ref());
assert!(!path.has_root(), "path is expected to be under the root");
match self.matched_stripped(path, is_dir) {
Match::None => (), // walk up
a_match => return a_match,
}
while let Some(parent) = path.parent() {
match self.matched_stripped(parent, /* is_dir */ true) {
Match::None => path = parent, // walk up
a_match => return a_match,
}
}
Match::None
}
Domain
Subdomains
Source
Frequently Asked Questions
What does matched_path_or_any_parents() do?
matched_path_or_any_parents() is a function in the tailwindcss codebase.
What does matched_path_or_any_parents() call?
matched_path_or_any_parents() calls 3 function(s): is_empty, matched_stripped, strip.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free