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 b6af20bb_6a92_7fb4_5d5a_66e9aab4d73e["next()"] cb4ab49e_1e98_295d_47fb_b3820e774321["named_variant_machine.rs"] b6af20bb_6a92_7fb4_5d5a_66e9aab4d73e -->|defined in| cb4ab49e_1e98_295d_47fb_b3820e774321 43fc99cd_4f77_5595_d175_390a1f69b92e["parse_arbitrary_end()"] 43fc99cd_4f77_5595_d175_390a1f69b92e -->|calls| b6af20bb_6a92_7fb4_5d5a_66e9aab4d73e 43fc99cd_4f77_5595_d175_390a1f69b92e["parse_arbitrary_end()"] b6af20bb_6a92_7fb4_5d5a_66e9aab4d73e -->|calls| 43fc99cd_4f77_5595_d175_390a1f69b92e style b6af20bb_6a92_7fb4_5d5a_66e9aab4d73e 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
Calls
Called By
Source
Frequently Asked Questions
What does next() do?
next() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/named_variant_machine.rs.
Where is next() defined?
next() is defined in crates/oxide/src/extractor/named_variant_machine.rs at line 83.
What does next() call?
next() calls 1 function(s): 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