next() — tailwindcss Function Reference
Architecture documentation for the next() function in utility_machine.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 47e07a2a_0386_f7cf_60b4_02c93275e4ad["next()"] 4b9cc532_01b7_d5e3_3187_451cab5d2390["parse_arbitrary_property()"] 4b9cc532_01b7_d5e3_3187_451cab5d2390 -->|calls| 47e07a2a_0386_f7cf_60b4_02c93275e4ad a87207bd_1768_1045_15b2_5aeb337e3308["parse_named_utility()"] a87207bd_1768_1045_15b2_5aeb337e3308 -->|calls| 47e07a2a_0386_f7cf_60b4_02c93275e4ad 2efc51f1_32be_3d49_7888_54c03f070140["parse_modifier()"] 2efc51f1_32be_3d49_7888_54c03f070140 -->|calls| 47e07a2a_0386_f7cf_60b4_02c93275e4ad 4b9cc532_01b7_d5e3_3187_451cab5d2390["parse_arbitrary_property()"] 47e07a2a_0386_f7cf_60b4_02c93275e4ad -->|calls| 4b9cc532_01b7_d5e3_3187_451cab5d2390 a87207bd_1768_1045_15b2_5aeb337e3308["parse_named_utility()"] 47e07a2a_0386_f7cf_60b4_02c93275e4ad -->|calls| a87207bd_1768_1045_15b2_5aeb337e3308 435a321a_a1e2_cb4f_7579_0ca15cb86434["advance()"] 47e07a2a_0386_f7cf_60b4_02c93275e4ad -->|calls| 435a321a_a1e2_cb4f_7579_0ca15cb86434 style 47e07a2a_0386_f7cf_60b4_02c93275e4ad fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/utility_machine.rs lines 29–74
fn next(&mut self, cursor: &mut cursor::Cursor<'_>) -> MachineState {
match cursor.curr.into() {
// LEGACY: Important marker
Class::Exclamation => {
self.legacy_important = true;
match cursor.next.into() {
// Start of an arbitrary property
//
// E.g.: `![color:red]`
// ^
Class::OpenBracket => {
self.start_pos = cursor.pos;
cursor.advance();
self.parse_arbitrary_property(cursor)
}
// Start of a named utility
//
// E.g.: `!flex`
// ^
_ => {
self.start_pos = cursor.pos;
cursor.advance();
self.parse_named_utility(cursor)
}
}
}
// Start of an arbitrary property
//
// E.g.: `[color:red]`
// ^
Class::OpenBracket => {
self.start_pos = cursor.pos;
self.parse_arbitrary_property(cursor)
}
// Everything else might be a named utility. Delegate to the named utility machine
// to determine if it's a named utility or not.
_ => {
self.start_pos = cursor.pos;
self.parse_named_utility(cursor)
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does next() do?
next() is a function in the tailwindcss codebase.
What does next() call?
next() calls 3 function(s): advance, parse_arbitrary_property, parse_named_utility.
What calls next()?
next() is called by 3 function(s): parse_arbitrary_property, parse_modifier, parse_named_utility.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free