parse_arbitrary_property() — tailwindcss Function Reference
Architecture documentation for the parse_arbitrary_property() function in utility_machine.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 4b9cc532_01b7_d5e3_3187_451cab5d2390["parse_arbitrary_property()"] 47e07a2a_0386_f7cf_60b4_02c93275e4ad["next()"] 47e07a2a_0386_f7cf_60b4_02c93275e4ad -->|calls| 4b9cc532_01b7_d5e3_3187_451cab5d2390 2efc51f1_32be_3d49_7888_54c03f070140["parse_modifier()"] 4b9cc532_01b7_d5e3_3187_451cab5d2390 -->|calls| 2efc51f1_32be_3d49_7888_54c03f070140 5d255946_cc9b_972c_3057_7f4c9c9a283a["parse_important()"] 4b9cc532_01b7_d5e3_3187_451cab5d2390 -->|calls| 5d255946_cc9b_972c_3057_7f4c9c9a283a 47e07a2a_0386_f7cf_60b4_02c93275e4ad["next()"] 4b9cc532_01b7_d5e3_3187_451cab5d2390 -->|calls| 47e07a2a_0386_f7cf_60b4_02c93275e4ad 435a321a_a1e2_cb4f_7579_0ca15cb86434["advance()"] 4b9cc532_01b7_d5e3_3187_451cab5d2390 -->|calls| 435a321a_a1e2_cb4f_7579_0ca15cb86434 style 4b9cc532_01b7_d5e3_3187_451cab5d2390 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/utility_machine.rs lines 78–107
fn parse_arbitrary_property(&mut self, cursor: &mut cursor::Cursor<'_>) -> MachineState {
match self.arbitrary_property_machine.next(cursor) {
MachineState::Idle => self.restart(),
MachineState::Done(_) => match cursor.next.into() {
// End of arbitrary property, but there is a potential modifier.
//
// E.g.: `[color:#0088cc]/`
// ^
Class::Slash => {
cursor.advance();
self.parse_modifier(cursor)
}
// End of arbitrary property, but there is an `!`.
//
// E.g.: `[color:#0088cc]!`
// ^
Class::Exclamation => {
cursor.advance();
self.parse_important(cursor)
}
// End of arbitrary property
//
// E.g.: `[color:#0088cc]`
// ^
_ => self.done(self.start_pos, cursor),
},
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does parse_arbitrary_property() do?
parse_arbitrary_property() is a function in the tailwindcss codebase.
What does parse_arbitrary_property() call?
parse_arbitrary_property() calls 4 function(s): advance, next, parse_important, parse_modifier.
What calls parse_arbitrary_property()?
parse_arbitrary_property() is called by 1 function(s): next.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free