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 73d594dd_e22d_f2c0_a6a6_f44c8bc42078["matched_path_or_any_parents()"] 39e475ea_b9d2_0858_b175_c71a0421de7a["is_empty()"] 73d594dd_e22d_f2c0_a6a6_f44c8bc42078 -->|calls| 39e475ea_b9d2_0858_b175_c71a0421de7a d45aaf33_d0f0_8994_bfd6_6988593b21ca["strip()"] 73d594dd_e22d_f2c0_a6a6_f44c8bc42078 -->|calls| d45aaf33_d0f0_8994_bfd6_6988593b21ca b251a053_a225_283e_4364_2e73be18bf20["matched_stripped()"] 73d594dd_e22d_f2c0_a6a6_f44c8bc42078 -->|calls| b251a053_a225_283e_4364_2e73be18bf20 style 73d594dd_e22d_f2c0_a6a6_f44c8bc42078 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