next() — tailwindcss Function Reference
Architecture documentation for the next() function in named_variant_machine.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 4a2bd495_e39e_9dfe_3594_fdfdcd7f6d7f["next()"] 073edc28_8014_d911_5d42_44c6053f21e4["parse_arbitrary_end()"] 073edc28_8014_d911_5d42_44c6053f21e4 -->|calls| 4a2bd495_e39e_9dfe_3594_fdfdcd7f6d7f 35b2adf8_a27b_5aee_3865_21fb048c97fb["advance()"] 4a2bd495_e39e_9dfe_3594_fdfdcd7f6d7f -->|calls| 35b2adf8_a27b_5aee_3865_21fb048c97fb 073edc28_8014_d911_5d42_44c6053f21e4["parse_arbitrary_end()"] 4a2bd495_e39e_9dfe_3594_fdfdcd7f6d7f -->|calls| 073edc28_8014_d911_5d42_44c6053f21e4 style 4a2bd495_e39e_9dfe_3594_fdfdcd7f6d7f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/named_variant_machine.rs lines 83–125
fn next(&mut self, cursor: &mut cursor::Cursor<'_>) -> MachineState {
match cursor.curr.into() {
Class::AlphaLower | Class::Star => match cursor.next.into() {
// Valid single character variant, must be followed by a `:`
//
// E.g.: `<div class="x:flex"></div>`
// ^^
// E.g.: `*:`
// ^^
Class::Colon => {
cursor.advance();
self.transition::<ParsingEndState>().next(cursor)
}
// Valid start characters
//
// E.g.: `hover:`
// ^
// E.g.: `**:`
// ^
_ => {
self.start_pos = cursor.pos;
cursor.advance();
self.transition::<ParsingState>().next(cursor)
}
},
// Valid start characters
//
// E.g.: `2xl:`
// ^
// E.g.: `@md:`
// ^
Class::Number | Class::At => {
self.start_pos = cursor.pos;
cursor.advance();
self.transition::<ParsingState>().next(cursor)
}
// Everything else, is not a valid start of the variant.
_ => MachineState::Idle,
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does next() do?
next() is a function in the tailwindcss codebase.
What does next() call?
next() calls 2 function(s): advance, parse_arbitrary_end.
What calls next()?
next() is called by 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