Home / Function/ test_strings_only_occur_when_nested() — tailwindcss Function Reference

test_strings_only_occur_when_nested() — tailwindcss Function Reference

Architecture documentation for the test_strings_only_occur_when_nested() function in slim.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  87afdec9_408a_31c0_6606_a825b7751707["test_strings_only_occur_when_nested()"]
  728c6622_d993_001c_2e5b_541b85f1c521["slim.rs"]
  87afdec9_408a_31c0_6606_a825b7751707 -->|defined in| 728c6622_d993_001c_2e5b_541b85f1c521
  style 87afdec9_408a_31c0_6606_a825b7751707 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/pre_processors/slim.rs lines 273–296

    fn test_strings_only_occur_when_nested() {
        let input = r#"
            p.mt-2.text-xl
              | The quote in the next word, can't be the start of a string

            h3.mt-24.text-center.text-4xl.font-bold.italic
              | The classes above should be extracted
        "#;

        Slim::test_extract_contains(
            input,
            vec![
                // First paragraph
                "mt-2",
                "text-xl",
                // second paragraph
                "mt-24",
                "text-center",
                "text-4xl",
                "font-bold",
                "italic",
            ],
        );
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free