next() — tailwindcss Function Reference
Architecture documentation for the next() function in variant_machine.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 1dbc8b28_f0c9_2f31_3a29_521f67ebc73d["next()"] 65f88ee5_a242_be7c_fc9b_70da07dd6b00["variant_machine.rs"] 1dbc8b28_f0c9_2f31_3a29_521f67ebc73d -->|defined in| 65f88ee5_a242_be7c_fc9b_70da07dd6b00 ec73909e_8868_80e1_d4b9_cf66499f6092["parse_arbitrary_end()"] 1dbc8b28_f0c9_2f31_3a29_521f67ebc73d -->|calls| ec73909e_8868_80e1_d4b9_cf66499f6092 style 1dbc8b28_f0c9_2f31_3a29_521f67ebc73d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/variant_machine.rs lines 18–41
fn next(&mut self, cursor: &mut cursor::Cursor<'_>) -> MachineState {
match cursor.curr.into() {
// Start of an arbitrary variant
//
// E.g.: `[&:hover]:`
// ^
Class::OpenBracket => {
let start_pos = cursor.pos;
match self.arbitrary_value_machine.next(cursor) {
MachineState::Idle => self.restart(),
MachineState::Done(_) => self.parse_arbitrary_end(start_pos, cursor),
}
}
// Start of a named variant
_ => {
let start_pos = cursor.pos;
match self.named_variant_machine.next(cursor) {
MachineState::Idle => self.restart(),
MachineState::Done(_) => self.done(start_pos, cursor),
}
}
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does next() do?
next() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/variant_machine.rs.
Where is next() defined?
next() is defined in crates/oxide/src/extractor/variant_machine.rs at line 18.
What does next() call?
next() calls 1 function(s): parse_arbitrary_end.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free