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 53702791_969b_9258_823e_f6e5e40538b2["absolute_parent_anchored()"] a558c8e1_3e7c_59d2_b113_bacec65ba188["dir.rs"] 53702791_969b_9258_823e_f6e5e40538b2 -->|defined in| a558c8e1_3e7c_59d2_b113_bacec65ba188 676ae91e_26f7_45c2_da8a_606a73e1cfe1["tmpdir()"] 53702791_969b_9258_823e_f6e5e40538b2 -->|calls| 676ae91e_26f7_45c2_da8a_606a73e1cfe1 9d41d3c4_3489_159c_a174_2df116fef35e["mkdirp()"] 53702791_969b_9258_823e_f6e5e40538b2 -->|calls| 9d41d3c4_3489_159c_a174_2df116fef35e 1b1bc826_12bc_290a_5930_aa622cf5e9e9["path()"] 53702791_969b_9258_823e_f6e5e40538b2 -->|calls| 1b1bc826_12bc_290a_5930_aa622cf5e9e9 60c43916_8d33_fa5f_02fb_07ed8b5cbe67["wfile()"] 53702791_969b_9258_823e_f6e5e40538b2 -->|calls| 60c43916_8d33_fa5f_02fb_07ed8b5cbe67 767f0d1d_ed6b_2d39_ea17_d569e763e1dc["build()"] 53702791_969b_9258_823e_f6e5e40538b2 -->|calls| 767f0d1d_ed6b_2d39_ea17_d569e763e1dc f704589e_68db_601b_f96b_2d1fcf26e7d3["add_parents()"] 53702791_969b_9258_823e_f6e5e40538b2 -->|calls| f704589e_68db_601b_f96b_2d1fcf26e7d3 e98d4cd2_6820_4001_f485_b7bd568700a1["add_child()"] 53702791_969b_9258_823e_f6e5e40538b2 -->|calls| e98d4cd2_6820_4001_f485_b7bd568700a1 610d87f4_d454_8c17_656c_4616db7298c0["matched()"] 53702791_969b_9258_823e_f6e5e40538b2 -->|calls| 610d87f4_d454_8c17_656c_4616db7298c0 style 53702791_969b_9258_823e_f6e5e40538b2 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