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 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736["public_source_entry_from_pattern()"] 6b48c515_a72f_7a7d_7ea7_b80f71a82b19["scanner.rs"] 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 -->|defined in| 6b48c515_a72f_7a7d_7ea7_b80f71a82b19 15062065_cf6b_d794_5db7_667a2b756e64["scan_with_globs()"] 15062065_cf6b_d794_5db7_667a2b756e64 -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 eba78649_af5d_4b50_2f84_439968485b44["it_should_pick_up_new_files()"] eba78649_af5d_4b50_2f84_439968485b44 -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 84320a41_9e3d_47bb_81c8_644eff3ad8db["skips_ignore_files_outside_of_a_repo()"] 84320a41_9e3d_47bb_81c8_644eff3ad8db -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 12fc0d65_f46c_7b7a_d878_0a6c18d48bee["test_explicitly_ignore_explicitly_allowed_files()"] 12fc0d65_f46c_7b7a_d878_0a6c18d48bee -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 17607aed_270f_ab73_40c8_20cae52c4319["test_works_with_filenames_containing_glob_characters()"] 17607aed_270f_ab73_40c8_20cae52c4319 -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 249b3962_1aa9_80a5_ad4e_015f0db7a813["test_ignore_files_can_be_included_with_custom_source_rule()"] 249b3962_1aa9_80a5_ad4e_015f0db7a813 -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 456c681b_5664_1f7d_30bc_ec6186e04673["test_allow_default_ignored_files()"] 456c681b_5664_1f7d_30bc_ec6186e04673 -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 ff12afef_31d6_4f47_5d2d_cfebd340891c["test_allow_default_ignored_files_via_gitignore()"] ff12afef_31d6_4f47_5d2d_cfebd340891c -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 0681881e_41d5_6fe7_96bf_7226236f4e9d["test_allow_explicit_node_modules_paths()"] 0681881e_41d5_6fe7_96bf_7226236f4e9d -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 37d04bd1_4dd6_3db9_d1e5_44293a447f99["test_manually_scanning_files_should_follow_all_rules()"] 37d04bd1_4dd6_3db9_d1e5_44293a447f99 -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 fb70307b_4921_e3a6_49c7_f8ad82fe1dd4["test_glob_with_symlinks()"] fb70307b_4921_e3a6_49c7_f8ad82fe1dd4 -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 2af96f21_864c_c0e1_f552_c947f2a3070c["test_globs_with_recursive_symlinks()"] 2af96f21_864c_c0e1_f552_c947f2a3070c -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 284e7305_af06_3228_3c69_14e6766d21c8["test_partial_globs_with_symlinks()"] 284e7305_af06_3228_3c69_14e6766d21c8 -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 style 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 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