Home / Function/ public_source_entry_from_pattern() — tailwindcss Function Reference

public_source_entry_from_pattern() — tailwindcss Function Reference

Architecture documentation for the public_source_entry_from_pattern() function in scanner.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  257cbf08_9e94_64b3_97f2_0416460fab35["public_source_entry_from_pattern()"]
  2c5d72c1_5cbe_ebbe_4eca_30cd90f4d096["scan_with_globs()"]
  2c5d72c1_5cbe_ebbe_4eca_30cd90f4d096 -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  682eb566_a24c_752f_94bd_e2d2090ab470["it_should_pick_up_new_files()"]
  682eb566_a24c_752f_94bd_e2d2090ab470 -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  75e01ac5_c130_fb8f_fa19_fe178653d7d0["skips_ignore_files_outside_of_a_repo()"]
  75e01ac5_c130_fb8f_fa19_fe178653d7d0 -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  126f20ab_bd9d_0195_b9e5_c82f0640d143["test_explicitly_ignore_explicitly_allowed_files()"]
  126f20ab_bd9d_0195_b9e5_c82f0640d143 -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  db77f263_0e6c_f85a_544d_ccc9acef0c4d["test_works_with_filenames_containing_glob_characters()"]
  db77f263_0e6c_f85a_544d_ccc9acef0c4d -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  9b78adac_d326_702e_85a1_db56ea4b854e["test_ignore_files_can_be_included_with_custom_source_rule()"]
  9b78adac_d326_702e_85a1_db56ea4b854e -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  4c3eef86_3a81_e588_8747_63eab5c53ff5["test_allow_default_ignored_files()"]
  4c3eef86_3a81_e588_8747_63eab5c53ff5 -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  c9e0ac96_3ec0_a408_5e55_fcddc7437ffa["test_allow_default_ignored_files_via_gitignore()"]
  c9e0ac96_3ec0_a408_5e55_fcddc7437ffa -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  30679ada_5092_6c1d_832b_7797b344dda9["test_allow_explicit_node_modules_paths()"]
  30679ada_5092_6c1d_832b_7797b344dda9 -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  8cfb823b_4d4d_dc1b_914a_edf7407eae8a["test_manually_scanning_files_should_follow_all_rules()"]
  8cfb823b_4d4d_dc1b_914a_edf7407eae8a -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  e01208ed_2a25_8f8d_e05f_4de7d9e2f028["test_glob_with_symlinks()"]
  e01208ed_2a25_8f8d_e05f_4de7d9e2f028 -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  1236d2e2_9f4a_f330_5d1d_82167ae3b00f["test_globs_with_recursive_symlinks()"]
  1236d2e2_9f4a_f330_5d1d_82167ae3b00f -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  114ef02b_ee79_9c0e_c566_35fa34966c8a["test_partial_globs_with_symlinks()"]
  114ef02b_ee79_9c0e_c566_35fa34966c8a -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  68236e29_aceb_b148_a990_2702ef1ebc43["test_extract_used_css_variables_from_css()"]
  68236e29_aceb_b148_a990_2702ef1ebc43 -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  style 257cbf08_9e94_64b3_97f2_0416460fab35 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/tests/scanner.rs lines 23–41

    fn public_source_entry_from_pattern(dir: PathBuf, pattern: &str) -> PublicSourceEntry {
        let mut parts = pattern.split_whitespace();
        let _ = parts.next().unwrap_or_default();
        let not_or_pattern = parts.next().unwrap_or_default();
        if not_or_pattern == "not" {
            let pattern = parts.next().unwrap_or_default();
            return PublicSourceEntry {
                base: dir.to_string_lossy().into(),
                pattern: pattern[1..pattern.len() - 1].to_string(),
                negated: true,
            };
        }

        PublicSourceEntry {
            base: dir.to_string_lossy().into(),
            pattern: not_or_pattern[1..not_or_pattern.len() - 1].to_string(),
            negated: false,
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does public_source_entry_from_pattern() do?
public_source_entry_from_pattern() is a function in the tailwindcss codebase.
What calls public_source_entry_from_pattern()?
public_source_entry_from_pattern() is called by 14 function(s): it_should_pick_up_new_files, scan_with_globs, skips_ignore_files_outside_of_a_repo, test_allow_default_ignored_files, test_allow_default_ignored_files_via_gitignore, test_allow_explicit_node_modules_paths, test_explicitly_ignore_explicitly_allowed_files, test_extract_used_css_variables_from_css, and 6 more.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free