check_symlink_loop() — tailwindcss Function Reference
Architecture documentation for the check_symlink_loop() function in walk.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 951367a8_ba0e_dae4_3cae_d3f7848916e3["check_symlink_loop()"] 8031325b_dcd2_8c49_70e7_46191ce03a79["walk.rs"] 951367a8_ba0e_dae4_3cae_d3f7848916e3 -->|defined in| 8031325b_dcd2_8c49_70e7_46191ce03a79 dc874db4_e8a3_5292_d49c_2245b8b18f45["generate_work()"] dc874db4_e8a3_5292_d49c_2245b8b18f45 -->|calls| 951367a8_ba0e_dae4_3cae_d3f7848916e3 275ce747_52cf_7193_9f0d_2cf3bab3ea9c["from_path()"] 951367a8_ba0e_dae4_3cae_d3f7848916e3 -->|calls| 275ce747_52cf_7193_9f0d_2cf3bab3ea9c 236c8b21_cb36_4187_b98b_743dfd53f431["parents()"] 951367a8_ba0e_dae4_3cae_d3f7848916e3 -->|calls| 236c8b21_cb36_4187_b98b_743dfd53f431 934d114d_964b_414a_2b41_82e8174b7c3d["path()"] 951367a8_ba0e_dae4_3cae_d3f7848916e3 -->|calls| 934d114d_964b_414a_2b41_82e8174b7c3d style 951367a8_ba0e_dae4_3cae_d3f7848916e3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/walk.rs lines 1876–1904
fn check_symlink_loop(
ig_parent: &Ignore,
child_path: &Path,
child_depth: usize,
) -> Result<(), Error> {
let hchild = Handle::from_path(child_path).map_err(|err| {
Error::from(err)
.with_path(child_path)
.with_depth(child_depth)
})?;
for ig in ig_parent
.parents()
.take_while(|ig| !ig.is_absolute_parent())
{
let h = Handle::from_path(ig.path()).map_err(|err| {
Error::from(err)
.with_path(child_path)
.with_depth(child_depth)
})?;
if hchild == h {
return Err(Error::Loop {
ancestor: ig.path().to_path_buf(),
child: child_path.to_path_buf(),
}
.with_depth(child_depth));
}
}
Ok(())
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does check_symlink_loop() do?
check_symlink_loop() is a function in the tailwindcss codebase, defined in crates/ignore/src/walk.rs.
Where is check_symlink_loop() defined?
check_symlink_loop() is defined in crates/ignore/src/walk.rs at line 1876.
What does check_symlink_loop() call?
check_symlink_loop() calls 3 function(s): from_path, parents, path.
What calls check_symlink_loop()?
check_symlink_loop() is called by 1 function(s): generate_work.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free