Home / Function/ test_extract_from_symbol_list() — tailwindcss Function Reference

test_extract_from_symbol_list() — tailwindcss Function Reference

Architecture documentation for the test_extract_from_symbol_list() function in clojure.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  61467502_5bd2_9170_79f1_28aeaa9063b3["test_extract_from_symbol_list()"]
  d5897009_a00e_cc82_ddfa_bf299b0bd83d["clojure.rs"]
  61467502_5bd2_9170_79f1_28aeaa9063b3 -->|defined in| d5897009_a00e_cc82_ddfa_bf299b0bd83d
  style 61467502_5bd2_9170_79f1_28aeaa9063b3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/pre_processors/clojure.rs lines 356–435

    fn test_extract_from_symbol_list() {
        let input = r#"
            [:div {:class '[z-1 z-2
                            z-3 z-4]}]
        "#;
        Clojure::test_extract_contains(input, vec!["z-1", "z-2", "z-3", "z-4"]);

        // https://github.com/tailwindlabs/tailwindcss/pull/18345#issuecomment-3253403847
        let input = r#"
            (def hl-class-names '[ring ring-blue-500])

            [:div
             {:class (cond-> '[input w-full]
                       textarea? (conj 'textarea)
                       (seq errors) (concat '[border-red-500 bg-red-100])
                       highlight? (concat hl-class-names))}]
        "#;
        Clojure::test_extract_contains(
            input,
            vec![
                "ring",
                "ring-blue-500",
                "input",
                "w-full",
                "textarea",
                "border-red-500",
                "bg-red-100",
            ],
        );

        let input = r#"
          [:div
            {:class '[h-100 lg:h-200 max-w-32 mx-auto py-60
                      flex flex-col justify-end items-center
                      lg:flex-row lg:justify-between
                      bg-cover bg-center bg-no-repeat rounded-3xl overflow-hidden
                      font-semibold text-gray-900]}]
        "#;
        Clojure::test_extract_contains(
            input,
            vec![
                "h-100",
                "lg:h-200",
                "max-w-32",
                "mx-auto",
                "py-60",
                "flex",
                "flex-col",
                "justify-end",
                "items-center",
                "lg:flex-row",
                "lg:justify-between",
                "bg-cover",
                "bg-center",
                "bg-no-repeat",
                "rounded-3xl",
                "overflow-hidden",
                "font-semibold",
                "text-gray-900",
            ],
        );

        // `/` is invalid and requires explicit quoting
        let input = r#"
            '[p-32 "text-black/50"]
        "#;
        Clojure::test_extract_contains(input, vec!["p-32", "text-black/50"]);

        // `[…]` is invalid and requires explicit quoting
        let input = r#"
            (print '[ring ring-blue-500 "bg-[#0088cc]"])
        "#;
        Clojure::test_extract_contains(input, vec!["ring", "ring-blue-500", "bg-[#0088cc]"]);

        // `'(…)` looks similar to `[…]` but uses parentheses instead of brackets
        let input = r#"
            (print '(ring ring-blue-500 "bg-[#0088cc]"))
        "#;
        Clojure::test_extract_contains(input, vec!["ring", "ring-blue-500", "bg-[#0088cc]"]);
    }

Domain

Subdomains

Frequently Asked Questions

What does test_extract_from_symbol_list() do?
test_extract_from_symbol_list() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/pre_processors/clojure.rs.
Where is test_extract_from_symbol_list() defined?
test_extract_from_symbol_list() is defined in crates/oxide/src/extractor/pre_processors/clojure.rs at line 356.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free