test_svelte_shorthand_syntax() — tailwindcss Function Reference
Architecture documentation for the test_svelte_shorthand_syntax() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 612ec3b2_226b_82b3_be5a_29bdcfbaa17d["test_svelte_shorthand_syntax()"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7["mod.rs"] 612ec3b2_226b_82b3_be5a_29bdcfbaa17d -->|defined in| 0fcd0fda_f6d1_052f_9575_133f5b2763a7 0b7ae7d0_7e0e_b8cd_767a_15a18e3d04c9["assert_extract_sorted_candidates()"] 612ec3b2_226b_82b3_be5a_29bdcfbaa17d -->|calls| 0b7ae7d0_7e0e_b8cd_767a_15a18e3d04c9 cfc07640_f3ad_1fd8_e118_770b90d7badd["pre_process_input()"] 612ec3b2_226b_82b3_be5a_29bdcfbaa17d -->|calls| cfc07640_f3ad_1fd8_e118_770b90d7badd style 612ec3b2_226b_82b3_be5a_29bdcfbaa17d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/mod.rs lines 885–894
fn test_svelte_shorthand_syntax() {
assert_extract_sorted_candidates(
&pre_process_input(r#"<div class:px-4='condition'></div>"#, "svelte"),
vec!["class", "px-4", "condition"],
);
assert_extract_sorted_candidates(
&pre_process_input(r#"<div class:flex='condition'></div>"#, "svelte"),
vec!["class", "flex", "condition"],
);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_svelte_shorthand_syntax() do?
test_svelte_shorthand_syntax() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/mod.rs.
Where is test_svelte_shorthand_syntax() defined?
test_svelte_shorthand_syntax() is defined in crates/oxide/src/extractor/mod.rs at line 885.
What does test_svelte_shorthand_syntax() call?
test_svelte_shorthand_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