absolute_parent_anchored() — tailwindcss Function Reference
Architecture documentation for the absolute_parent_anchored() function in dir.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 2007c28e_e062_6ac2_04ec_a9c9b04056f9["absolute_parent_anchored()"] 1d8e185d_2d17_16a2_e6da_31f5e5c71648["tmpdir()"] 2007c28e_e062_6ac2_04ec_a9c9b04056f9 -->|calls| 1d8e185d_2d17_16a2_e6da_31f5e5c71648 b23c536f_df64_0c16_7823_c6333e8bd192["mkdirp()"] 2007c28e_e062_6ac2_04ec_a9c9b04056f9 -->|calls| b23c536f_df64_0c16_7823_c6333e8bd192 a3791d58_6294_cb66_0418_5756e23761fd["path()"] 2007c28e_e062_6ac2_04ec_a9c9b04056f9 -->|calls| a3791d58_6294_cb66_0418_5756e23761fd b531cfc0_8a2c_1d41_6f18_1d84e771a9ef["wfile()"] 2007c28e_e062_6ac2_04ec_a9c9b04056f9 -->|calls| b531cfc0_8a2c_1d41_6f18_1d84e771a9ef 386bbf62_59b6_b5e0_c202_c2ecee5729ec["build()"] 2007c28e_e062_6ac2_04ec_a9c9b04056f9 -->|calls| 386bbf62_59b6_b5e0_c202_c2ecee5729ec 53fcda14_433d_b98d_8ccd_5c1f3bb4d3c8["add_parents()"] 2007c28e_e062_6ac2_04ec_a9c9b04056f9 -->|calls| 53fcda14_433d_b98d_8ccd_5c1f3bb4d3c8 7f3cd9fa_fc0e_11d8_c82c_d766c339923a["add_child()"] 2007c28e_e062_6ac2_04ec_a9c9b04056f9 -->|calls| 7f3cd9fa_fc0e_11d8_c82c_d766c339923a 22918057_f3e8_c59b_6372_a4375af46acd["matched()"] 2007c28e_e062_6ac2_04ec_a9c9b04056f9 -->|calls| 22918057_f3e8_c59b_6372_a4375af46acd style 2007c28e_e062_6ac2_04ec_a9c9b04056f9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/dir.rs lines 1202–1221
fn absolute_parent_anchored() {
let td = tmpdir();
mkdirp(td.path().join(".git"));
mkdirp(td.path().join("src/llvm"));
wfile(td.path().join(".gitignore"), "/llvm/\nfoo");
let ig0 = IgnoreBuilder::new().build();
let (ig1, err) = ig0.add_parents(td.path().join("src"));
assert!(err.is_none());
let (ig2, err) = ig1.add_child("src");
assert!(err.is_none());
// CHANGED: These test cases do not make sense for us as we never call the Ignore with
// relative paths.
assert!(ig1.matched("llvm", true).is_ignore());
assert!(ig2.matched("llvm", true).is_ignore());
assert!(ig2.matched("src/llvm", true).is_none());
assert!(ig2.matched("foo", false).is_ignore());
assert!(ig2.matched("src/foo", false).is_ignore());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does absolute_parent_anchored() do?
absolute_parent_anchored() is a function in the tailwindcss codebase.
What does absolute_parent_anchored() call?
absolute_parent_anchored() calls 8 function(s): add_child, add_parents, build, matched, mkdirp, path, tmpdir, wfile.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free