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 f3d38e16_75f1_ce44_5cde_d03512706727["absolute_parent_anchored()"] c17be58e_dd6a_a37a_33c2_a24a331f4c38["tmpdir()"] f3d38e16_75f1_ce44_5cde_d03512706727 -->|calls| c17be58e_dd6a_a37a_33c2_a24a331f4c38 fc6f623a_c04e_5aba_7a76_90a8283e782b["mkdirp()"] f3d38e16_75f1_ce44_5cde_d03512706727 -->|calls| fc6f623a_c04e_5aba_7a76_90a8283e782b 0a625c2b_b1dd_2da6_7dda_34ff725be14b["path()"] f3d38e16_75f1_ce44_5cde_d03512706727 -->|calls| 0a625c2b_b1dd_2da6_7dda_34ff725be14b 88df5ea7_731b_9e65_ef42_3f4f769562ec["wfile()"] f3d38e16_75f1_ce44_5cde_d03512706727 -->|calls| 88df5ea7_731b_9e65_ef42_3f4f769562ec f9057141_74ef_29d7_b851_a214bdc6bfa9["build()"] f3d38e16_75f1_ce44_5cde_d03512706727 -->|calls| f9057141_74ef_29d7_b851_a214bdc6bfa9 6ce8c6d0_aa87_a200_fbf4_912453c675b1["add_parents()"] f3d38e16_75f1_ce44_5cde_d03512706727 -->|calls| 6ce8c6d0_aa87_a200_fbf4_912453c675b1 7d9549d0_d5cc_b7c3_b367_0249f8430d02["add_child()"] f3d38e16_75f1_ce44_5cde_d03512706727 -->|calls| 7d9549d0_d5cc_b7c3_b367_0249f8430d02 3d475977_d06e_4912_978d_07df5c71fed8["matched()"] f3d38e16_75f1_ce44_5cde_d03512706727 -->|calls| 3d475977_d06e_4912_978d_07df5c71fed8 style f3d38e16_75f1_ce44_5cde_d03512706727 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