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 d847ae88_0e93_5005_413e_ff86e08c4291["public_source_entry_from_pattern()"] 4e97b231_bdcb_50f8_8ad3_53d02c45a8bb["scan_with_globs()"] 4e97b231_bdcb_50f8_8ad3_53d02c45a8bb -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 29c7b962_35ac_237a_3019_9f8c6291163c["it_should_pick_up_new_files()"] 29c7b962_35ac_237a_3019_9f8c6291163c -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 b0eed085_0d98_7ab3_d68c_88fcc98be578["skips_ignore_files_outside_of_a_repo()"] b0eed085_0d98_7ab3_d68c_88fcc98be578 -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 f2b42c49_36d8_30cc_af48_322414c160b9["test_explicitly_ignore_explicitly_allowed_files()"] f2b42c49_36d8_30cc_af48_322414c160b9 -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 300482fe_d158_0060_d6a0_6e8a5e3a33c3["test_works_with_filenames_containing_glob_characters()"] 300482fe_d158_0060_d6a0_6e8a5e3a33c3 -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 415c6105_0940_8090_9fca_fe70ca64420a["test_ignore_files_can_be_included_with_custom_source_rule()"] 415c6105_0940_8090_9fca_fe70ca64420a -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 6719cf34_6326_c3dd_3ee4_499e5d00a2ea["test_allow_default_ignored_files()"] 6719cf34_6326_c3dd_3ee4_499e5d00a2ea -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 d264aa60_79fb_23eb_7031_2ed75dea80d2["test_allow_default_ignored_files_via_gitignore()"] d264aa60_79fb_23eb_7031_2ed75dea80d2 -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 ebd5b7d4_b9b6_20e6_6fbe_145a4a1c27c9["test_allow_explicit_node_modules_paths()"] ebd5b7d4_b9b6_20e6_6fbe_145a4a1c27c9 -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 5f94e519_173f_c1ec_3e31_900d931e65cb["test_manually_scanning_files_should_follow_all_rules()"] 5f94e519_173f_c1ec_3e31_900d931e65cb -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 d9d8a10b_5803_fdce_f02e_68f780207b18["test_glob_with_symlinks()"] d9d8a10b_5803_fdce_f02e_68f780207b18 -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 d9d09e09_3713_2ac9_20d7_609afd95d530["test_globs_with_recursive_symlinks()"] d9d09e09_3713_2ac9_20d7_609afd95d530 -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 43082d51_6d83_3a5f_34fc_cee38bdbbc32["test_partial_globs_with_symlinks()"] 43082d51_6d83_3a5f_34fc_cee38bdbbc32 -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 f9c7d7b9_3e30_0a57_d5bc_ac684a19b60d["test_extract_used_css_variables_from_css()"] f9c7d7b9_3e30_0a57_d5bc_ac684a19b60d -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291 style d847ae88_0e93_5005_413e_ff86e08c4291 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
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.
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