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 5cd7b8b5_785f_5aeb_c56e_51e5cbf6e15e["test_haml_syntax()"] eb5f3ab1_80da_abe4_f35c_a91e8e409b69["mod.rs"] 5cd7b8b5_785f_5aeb_c56e_51e5cbf6e15e -->|defined in| eb5f3ab1_80da_abe4_f35c_a91e8e409b69 f399a804_afd3_1dc0_3b42_e281573ed6f8["assert_extract_candidates_contains()"] 5cd7b8b5_785f_5aeb_c56e_51e5cbf6e15e -->|calls| f399a804_afd3_1dc0_3b42_e281573ed6f8 ddd570de_fcb0_6f2b_bb73_ed27e62391cc["pre_process_input()"] 5cd7b8b5_785f_5aeb_c56e_51e5cbf6e15e -->|calls| ddd570de_fcb0_6f2b_bb73_ed27e62391cc style 5cd7b8b5_785f_5aeb_c56e_51e5cbf6e15e 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