parse_modifier() — tailwindcss Function Reference
Architecture documentation for the parse_modifier() function in utility_machine.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 2efc51f1_32be_3d49_7888_54c03f070140["parse_modifier()"] 4b9cc532_01b7_d5e3_3187_451cab5d2390["parse_arbitrary_property()"] 4b9cc532_01b7_d5e3_3187_451cab5d2390 -->|calls| 2efc51f1_32be_3d49_7888_54c03f070140 a87207bd_1768_1045_15b2_5aeb337e3308["parse_named_utility()"] a87207bd_1768_1045_15b2_5aeb337e3308 -->|calls| 2efc51f1_32be_3d49_7888_54c03f070140 5d255946_cc9b_972c_3057_7f4c9c9a283a["parse_important()"] 2efc51f1_32be_3d49_7888_54c03f070140 -->|calls| 5d255946_cc9b_972c_3057_7f4c9c9a283a 47e07a2a_0386_f7cf_60b4_02c93275e4ad["next()"] 2efc51f1_32be_3d49_7888_54c03f070140 -->|calls| 47e07a2a_0386_f7cf_60b4_02c93275e4ad 435a321a_a1e2_cb4f_7579_0ca15cb86434["advance()"] 2efc51f1_32be_3d49_7888_54c03f070140 -->|calls| 435a321a_a1e2_cb4f_7579_0ca15cb86434 style 2efc51f1_32be_3d49_7888_54c03f070140 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/utility_machine.rs lines 140–157
fn parse_modifier(&mut self, cursor: &mut cursor::Cursor<'_>) -> MachineState {
match self.modifier_machine.next(cursor) {
MachineState::Idle => self.restart(),
MachineState::Done(_) => match cursor.next.into() {
// A modifier followed by a modifier is invalid
Class::Slash => self.restart(),
// A modifier followed by the important marker `!`
Class::Exclamation => {
cursor.advance();
self.parse_important(cursor)
}
// Everything else is valid
_ => self.done(self.start_pos, cursor),
},
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does parse_modifier() do?
parse_modifier() is a function in the tailwindcss codebase.
What does parse_modifier() call?
parse_modifier() calls 3 function(s): advance, next, parse_important.
What calls parse_modifier()?
parse_modifier() is called by 2 function(s): parse_arbitrary_property, parse_named_utility.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free