test_haml_syntax() — tailwindcss Function Reference
Architecture documentation for the test_haml_syntax() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 3cbf7660_08bd_0455_c4d8_5cf5608d9eb6["test_haml_syntax()"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7["mod.rs"] 3cbf7660_08bd_0455_c4d8_5cf5608d9eb6 -->|defined in| 0fcd0fda_f6d1_052f_9575_133f5b2763a7 08871a07_5115_fd1d_37f0_ee5de4206d3d["assert_extract_candidates_contains()"] 3cbf7660_08bd_0455_c4d8_5cf5608d9eb6 -->|calls| 08871a07_5115_fd1d_37f0_ee5de4206d3d cfc07640_f3ad_1fd8_e118_770b90d7badd["pre_process_input()"] 3cbf7660_08bd_0455_c4d8_5cf5608d9eb6 -->|calls| cfc07640_f3ad_1fd8_e118_770b90d7badd style 3cbf7660_08bd_0455_c4d8_5cf5608d9eb6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/mod.rs lines 913–958
fn test_haml_syntax() {
for (input, expected) in [
// Element with classes
(
"%body.flex.flex-col.items-center.justify-center",
vec!["flex", "flex-col", "items-center", "justify-center"],
),
// Plain element
(
".text-slate-500.xl:text-gray-500",
vec!["text-slate-500", "xl:text-gray-500"],
),
// Element with hash attributes
(
".text-black.xl:text-red-500{ data: { tailwind: 'css' } }",
vec!["text-black", "xl:text-red-500"],
),
// Element with a boolean attribute
(
".text-green-500.xl:text-blue-500(data-sidebar)",
vec!["text-green-500", "xl:text-blue-500"],
),
// Element with interpreted content
(
".text-yellow-500.xl:text-purple-500= 'Element with interpreted content'",
vec!["text-yellow-500", "xl:text-purple-500"],
),
// Element with a hash at the end and an extra class.
(
".text-orange-500.xl:text-pink-500{ class: 'bg-slate-100' }",
vec!["text-orange-500", "xl:text-pink-500", "bg-slate-100"],
),
// Object reference
(
".text-teal-500.xl:text-indigo-500[@user, :greeting]",
vec!["text-teal-500", "xl:text-indigo-500"],
),
// Element with an ID
(
".text-lime-500.xl:text-emerald-500#root",
vec!["text-lime-500", "xl:text-emerald-500"],
),
] {
assert_extract_candidates_contains(&pre_process_input(input, "haml"), expected);
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_haml_syntax() do?
test_haml_syntax() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/mod.rs.
Where is test_haml_syntax() defined?
test_haml_syntax() is defined in crates/oxide/src/extractor/mod.rs at line 913.
What does test_haml_syntax() call?
test_haml_syntax() calls 2 function(s): assert_extract_candidates_contains, pre_process_input.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free