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
  30fb41a8_c9da_7faa_e0ac_447d1f6fda5d["test_svelte_shorthand_syntax()"]
  c09b3ad8_e61d_4dcb_3819_2280661fbc5d["assert_extract_sorted_candidates()"]
  30fb41a8_c9da_7faa_e0ac_447d1f6fda5d -->|calls| c09b3ad8_e61d_4dcb_3819_2280661fbc5d
  99bd82af_ea44_3bb9_15bc_4fd7af18fd2f["pre_process_input()"]
  30fb41a8_c9da_7faa_e0ac_447d1f6fda5d -->|calls| 99bd82af_ea44_3bb9_15bc_4fd7af18fd2f
  style 30fb41a8_c9da_7faa_e0ac_447d1f6fda5d 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.
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