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 46ac3628_51ec_72d2_94bc_be8f59e5700a["check_symlink_loop()"] 83e9692c_0ef1_97e5_4b56_90182cf80c7a["generate_work()"] 83e9692c_0ef1_97e5_4b56_90182cf80c7a -->|calls| 46ac3628_51ec_72d2_94bc_be8f59e5700a 9cddcb8d_8667_c506_99c7_f194e438a77a["from_path()"] 46ac3628_51ec_72d2_94bc_be8f59e5700a -->|calls| 9cddcb8d_8667_c506_99c7_f194e438a77a fa04df97_5b93_410f_f1d1_c9c9f4225078["parents()"] 46ac3628_51ec_72d2_94bc_be8f59e5700a -->|calls| fa04df97_5b93_410f_f1d1_c9c9f4225078 5a41a98a_774e_c950_dcbd_cc7fe1960b89["path()"] 46ac3628_51ec_72d2_94bc_be8f59e5700a -->|calls| 5a41a98a_774e_c950_dcbd_cc7fe1960b89 style 46ac3628_51ec_72d2_94bc_be8f59e5700a 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
Called By
Source
Frequently Asked Questions
What does check_symlink_loop() do?
check_symlink_loop() is a function in the tailwindcss codebase.
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