test_pug_syntax() — tailwindcss Function Reference
Architecture documentation for the test_pug_syntax() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 8b79553b_4ed1_95bd_8aa5_8753acb03e83["test_pug_syntax()"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7["mod.rs"] 8b79553b_4ed1_95bd_8aa5_8753acb03e83 -->|defined in| 0fcd0fda_f6d1_052f_9575_133f5b2763a7 0b7ae7d0_7e0e_b8cd_767a_15a18e3d04c9["assert_extract_sorted_candidates()"] 8b79553b_4ed1_95bd_8aa5_8753acb03e83 -->|calls| 0b7ae7d0_7e0e_b8cd_767a_15a18e3d04c9 cfc07640_f3ad_1fd8_e118_770b90d7badd["pre_process_input()"] 8b79553b_4ed1_95bd_8aa5_8753acb03e83 -->|calls| cfc07640_f3ad_1fd8_e118_770b90d7badd style 8b79553b_4ed1_95bd_8aa5_8753acb03e83 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/mod.rs lines 625–649
fn test_pug_syntax() {
for (input, expected) in [
// Class literal
(
".bg-green-300.2xl:bg-red-500",
vec!["bg-green-300", "2xl:bg-red-500"],
),
(
".2xl:bg-red-500.bg-green-300",
vec!["bg-green-300", "2xl:bg-red-500"],
),
(".xl:col-span-2.xl:pr-8", vec!["xl:col-span-2", "xl:pr-8"]),
(
"div.2xl:bg-red-500.bg-green-300",
vec!["div", "bg-green-300", "2xl:bg-red-500"],
),
// Quoted attribute
(
r#"input(type="checkbox" class="px-2.5")"#,
vec!["input", "type", "checkbox", "class", "px-2.5"],
),
] {
assert_extract_sorted_candidates(&pre_process_input(input, "pug"), expected);
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_pug_syntax() do?
test_pug_syntax() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/mod.rs.
Where is test_pug_syntax() defined?
test_pug_syntax() is defined in crates/oxide/src/extractor/mod.rs at line 625.
What does test_pug_syntax() call?
test_pug_syntax() calls 2 function(s): assert_extract_sorted_candidates, pre_process_input.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free