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