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 ead7f45c_91c0_f0d7_f9fa_254afac5747d["parse_arbitrary_property()"] c2694403_f71b_203e_2a58_1a52ee990fa7["utility_machine.rs"] ead7f45c_91c0_f0d7_f9fa_254afac5747d -->|defined in| c2694403_f71b_203e_2a58_1a52ee990fa7 9bf1a5a4_800f_dd95_c46d_4973d7c1db9f["next()"] 9bf1a5a4_800f_dd95_c46d_4973d7c1db9f -->|calls| ead7f45c_91c0_f0d7_f9fa_254afac5747d 4e97def5_4fb6_abb3_2551_d840d022c95d["parse_modifier()"] ead7f45c_91c0_f0d7_f9fa_254afac5747d -->|calls| 4e97def5_4fb6_abb3_2551_d840d022c95d 29ae5b57_c281_d579_fc85_badb6c710751["parse_important()"] ead7f45c_91c0_f0d7_f9fa_254afac5747d -->|calls| 29ae5b57_c281_d579_fc85_badb6c710751 9bf1a5a4_800f_dd95_c46d_4973d7c1db9f["next()"] ead7f45c_91c0_f0d7_f9fa_254afac5747d -->|calls| 9bf1a5a4_800f_dd95_c46d_4973d7c1db9f style ead7f45c_91c0_f0d7_f9fa_254afac5747d 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, defined in crates/oxide/src/extractor/utility_machine.rs.
Where is parse_arbitrary_property() defined?
parse_arbitrary_property() is defined in crates/oxide/src/extractor/utility_machine.rs at line 78.
What does parse_arbitrary_property() call?
parse_arbitrary_property() calls 3 function(s): 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