Home / Function/ check_symlink_loop() — tailwindcss Function Reference

check_symlink_loop() — tailwindcss Function Reference

Architecture documentation for the check_symlink_loop() function in walk.rs from the tailwindcss codebase.

Function rust OxideEngine Extractor calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  b294922e_64f3_e79f_5287_0f5911843665["check_symlink_loop()"]
  b3ca296d_790b_9bf3_23ea_56e5c5c48565["walk.rs"]
  b294922e_64f3_e79f_5287_0f5911843665 -->|defined in| b3ca296d_790b_9bf3_23ea_56e5c5c48565
  4825dec2_fb68_889a_5be0_2277e9d7cb28["generate_work()"]
  4825dec2_fb68_889a_5be0_2277e9d7cb28 -->|calls| b294922e_64f3_e79f_5287_0f5911843665
  8cdd946e_f150_fdac_f16e_eef795456f32["from_path()"]
  b294922e_64f3_e79f_5287_0f5911843665 -->|calls| 8cdd946e_f150_fdac_f16e_eef795456f32
  1d1b4c13_5869_4fe3_5528_97666379145e["parents()"]
  b294922e_64f3_e79f_5287_0f5911843665 -->|calls| 1d1b4c13_5869_4fe3_5528_97666379145e
  eaa93251_8ff2_5e1b_adef_2cb61588bdb0["path()"]
  b294922e_64f3_e79f_5287_0f5911843665 -->|calls| eaa93251_8ff2_5e1b_adef_2cb61588bdb0
  style b294922e_64f3_e79f_5287_0f5911843665 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

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