Home / Function/ test_svelte_shorthand_syntax() — tailwindcss Function Reference

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
  67954407_15dd_3b01_e807_264117886a63["test_svelte_shorthand_syntax()"]
  eb5f3ab1_80da_abe4_f35c_a91e8e409b69["mod.rs"]
  67954407_15dd_3b01_e807_264117886a63 -->|defined in| eb5f3ab1_80da_abe4_f35c_a91e8e409b69
  80ff0a5a_eb98_52e8_b801_bcc7263c7a89["assert_extract_sorted_candidates()"]
  67954407_15dd_3b01_e807_264117886a63 -->|calls| 80ff0a5a_eb98_52e8_b801_bcc7263c7a89
  ddd570de_fcb0_6f2b_bb73_ed27e62391cc["pre_process_input()"]
  67954407_15dd_3b01_e807_264117886a63 -->|calls| ddd570de_fcb0_6f2b_bb73_ed27e62391cc
  style 67954407_15dd_3b01_e807_264117886a63 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

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