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 fb5c3777_d449_8158_614b_d0315cd15cd8["absolute_parent_anchored()"] 510a4ebc_9a2a_672a_2d6d_a56dabd1134b["dir.rs"] fb5c3777_d449_8158_614b_d0315cd15cd8 -->|defined in| 510a4ebc_9a2a_672a_2d6d_a56dabd1134b 0b6611f3_9e1d_0a3b_157b_ef9bb2bc3d89["tmpdir()"] fb5c3777_d449_8158_614b_d0315cd15cd8 -->|calls| 0b6611f3_9e1d_0a3b_157b_ef9bb2bc3d89 c80dd0da_2638_ff74_8c3d_7986668a41c5["mkdirp()"] fb5c3777_d449_8158_614b_d0315cd15cd8 -->|calls| c80dd0da_2638_ff74_8c3d_7986668a41c5 195d465d_cb01_6c11_b964_d3f792d97f6f["path()"] fb5c3777_d449_8158_614b_d0315cd15cd8 -->|calls| 195d465d_cb01_6c11_b964_d3f792d97f6f fe4c91f2_5b95_b103_1edb_19b3ea6da080["wfile()"] fb5c3777_d449_8158_614b_d0315cd15cd8 -->|calls| fe4c91f2_5b95_b103_1edb_19b3ea6da080 ea4007ac_a311_c454_45f6_4e3ba7192b1a["build()"] fb5c3777_d449_8158_614b_d0315cd15cd8 -->|calls| ea4007ac_a311_c454_45f6_4e3ba7192b1a 54b22d2f_3aaa_d065_0cd7_db53eddaeeff["add_parents()"] fb5c3777_d449_8158_614b_d0315cd15cd8 -->|calls| 54b22d2f_3aaa_d065_0cd7_db53eddaeeff 5f1e446c_b1a6_cd2c_2707_77480f9eaad4["add_child()"] fb5c3777_d449_8158_614b_d0315cd15cd8 -->|calls| 5f1e446c_b1a6_cd2c_2707_77480f9eaad4 df4238ce_ff67_ee56_17ce_54ac1d2fa297["matched()"] fb5c3777_d449_8158_614b_d0315cd15cd8 -->|calls| df4238ce_ff67_ee56_17ce_54ac1d2fa297 style fb5c3777_d449_8158_614b_d0315cd15cd8 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
Defined In
Source
Frequently Asked Questions
What does absolute_parent_anchored() do?
absolute_parent_anchored() is a function in the tailwindcss codebase, defined in crates/ignore/src/dir.rs.
Where is absolute_parent_anchored() defined?
absolute_parent_anchored() is defined in crates/ignore/src/dir.rs at line 1202.
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