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 773530fa_5b76_d390_68d3_405d48fbecf7["public_source_entry_from_pattern()"] 340ddba0_15e4_a309_9dea_cf6d6e73381d["scanner.rs"] 773530fa_5b76_d390_68d3_405d48fbecf7 -->|defined in| 340ddba0_15e4_a309_9dea_cf6d6e73381d a53d0655_c789_b0d9_0c48_cfd60da7194b["scan_with_globs()"] a53d0655_c789_b0d9_0c48_cfd60da7194b -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 74b503ee_f9b5_7bf2_41ed_7b7e3c11ad36["it_should_pick_up_new_files()"] 74b503ee_f9b5_7bf2_41ed_7b7e3c11ad36 -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 70d9c9ff_f0f7_7ef0_b4ec_d31ebb4a94d9["skips_ignore_files_outside_of_a_repo()"] 70d9c9ff_f0f7_7ef0_b4ec_d31ebb4a94d9 -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 85e4fad9_bfc0_c5a7_6ad9_cc78352624a1["test_explicitly_ignore_explicitly_allowed_files()"] 85e4fad9_bfc0_c5a7_6ad9_cc78352624a1 -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 e659c5e4_d863_78af_41c3_2a550ebc3f29["test_works_with_filenames_containing_glob_characters()"] e659c5e4_d863_78af_41c3_2a550ebc3f29 -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 1d24c651_e65e_8f12_7b76_1af6502b44df["test_ignore_files_can_be_included_with_custom_source_rule()"] 1d24c651_e65e_8f12_7b76_1af6502b44df -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 8f80b365_d8b8_4ae7_4da1_ac1e85ccd231["test_allow_default_ignored_files()"] 8f80b365_d8b8_4ae7_4da1_ac1e85ccd231 -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 ff5bf5bc_56ee_97f2_0cb4_17c908f3cc6a["test_allow_default_ignored_files_via_gitignore()"] ff5bf5bc_56ee_97f2_0cb4_17c908f3cc6a -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 82b1b71d_c040_e8b7_4575_28329a63dafc["test_allow_explicit_node_modules_paths()"] 82b1b71d_c040_e8b7_4575_28329a63dafc -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 c9dca851_9ce9_eefe_8ed9_0060622a787f["test_manually_scanning_files_should_follow_all_rules()"] c9dca851_9ce9_eefe_8ed9_0060622a787f -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 37949d89_3649_6c3e_a764_1db69e7caebe["test_glob_with_symlinks()"] 37949d89_3649_6c3e_a764_1db69e7caebe -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 c2f6d2ff_72ee_e003_210f_08b6674cc80c["test_globs_with_recursive_symlinks()"] c2f6d2ff_72ee_e003_210f_08b6674cc80c -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 2c6a6b98_67be_e6b2_f7bb_58b8ccb8c1d2["test_partial_globs_with_symlinks()"] 2c6a6b98_67be_e6b2_f7bb_58b8ccb8c1d2 -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7 style 773530fa_5b76_d390_68d3_405d48fbecf7 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
Defined In
Called By
- 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()
- test_glob_with_symlinks()
- test_globs_with_recursive_symlinks()
- test_ignore_files_can_be_included_with_custom_source_rule()
- test_manually_scanning_files_should_follow_all_rules()
- test_partial_globs_with_symlinks()
- test_works_with_filenames_containing_glob_characters()
Source
Frequently Asked Questions
What does public_source_entry_from_pattern() do?
public_source_entry_from_pattern() is a function in the tailwindcss codebase, defined in crates/oxide/tests/scanner.rs.
Where is public_source_entry_from_pattern() defined?
public_source_entry_from_pattern() is defined in crates/oxide/tests/scanner.rs at line 23.
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