next() — tailwindcss Function Reference
Architecture documentation for the next() function in variant_machine.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 27bb60d8_5b57_f305_3d46_ded0d56909ef["next()"] 741df9fe_696f_ca77_27e8_852abda4bc50["variant_machine.rs"] 27bb60d8_5b57_f305_3d46_ded0d56909ef -->|defined in| 741df9fe_696f_ca77_27e8_852abda4bc50 cbd2bb02_1a63_a997_a5b7_dea73fc75555["parse_arbitrary_end()"] 27bb60d8_5b57_f305_3d46_ded0d56909ef -->|calls| cbd2bb02_1a63_a997_a5b7_dea73fc75555 style 27bb60d8_5b57_f305_3d46_ded0d56909ef 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