next() — tailwindcss Function Reference
Architecture documentation for the next() function in utility_machine.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 9bf1a5a4_800f_dd95_c46d_4973d7c1db9f["next()"] c2694403_f71b_203e_2a58_1a52ee990fa7["utility_machine.rs"] 9bf1a5a4_800f_dd95_c46d_4973d7c1db9f -->|defined in| c2694403_f71b_203e_2a58_1a52ee990fa7 ead7f45c_91c0_f0d7_f9fa_254afac5747d["parse_arbitrary_property()"] ead7f45c_91c0_f0d7_f9fa_254afac5747d -->|calls| 9bf1a5a4_800f_dd95_c46d_4973d7c1db9f a1dbc86c_426b_d117_1750_fc33713566d0["parse_named_utility()"] a1dbc86c_426b_d117_1750_fc33713566d0 -->|calls| 9bf1a5a4_800f_dd95_c46d_4973d7c1db9f 4e97def5_4fb6_abb3_2551_d840d022c95d["parse_modifier()"] 4e97def5_4fb6_abb3_2551_d840d022c95d -->|calls| 9bf1a5a4_800f_dd95_c46d_4973d7c1db9f ead7f45c_91c0_f0d7_f9fa_254afac5747d["parse_arbitrary_property()"] 9bf1a5a4_800f_dd95_c46d_4973d7c1db9f -->|calls| ead7f45c_91c0_f0d7_f9fa_254afac5747d a1dbc86c_426b_d117_1750_fc33713566d0["parse_named_utility()"] 9bf1a5a4_800f_dd95_c46d_4973d7c1db9f -->|calls| a1dbc86c_426b_d117_1750_fc33713566d0 style 9bf1a5a4_800f_dd95_c46d_4973d7c1db9f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/utility_machine.rs lines 29–74
fn next(&mut self, cursor: &mut cursor::Cursor<'_>) -> MachineState {
match cursor.curr.into() {
// LEGACY: Important marker
Class::Exclamation => {
self.legacy_important = true;
match cursor.next.into() {
// Start of an arbitrary property
//
// E.g.: `![color:red]`
// ^
Class::OpenBracket => {
self.start_pos = cursor.pos;
cursor.advance();
self.parse_arbitrary_property(cursor)
}
// Start of a named utility
//
// E.g.: `!flex`
// ^
_ => {
self.start_pos = cursor.pos;
cursor.advance();
self.parse_named_utility(cursor)
}
}
}
// Start of an arbitrary property
//
// E.g.: `[color:red]`
// ^
Class::OpenBracket => {
self.start_pos = cursor.pos;
self.parse_arbitrary_property(cursor)
}
// Everything else might be a named utility. Delegate to the named utility machine
// to determine if it's a named utility or not.
_ => {
self.start_pos = cursor.pos;
self.parse_named_utility(cursor)
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does next() do?
next() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/utility_machine.rs.
Where is next() defined?
next() is defined in crates/oxide/src/extractor/utility_machine.rs at line 29.
What does next() call?
next() calls 2 function(s): parse_arbitrary_property, parse_named_utility.
What calls next()?
next() is called by 3 function(s): parse_arbitrary_property, parse_modifier, parse_named_utility.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free