Home / Function/ next() — tailwindcss Function Reference

next() — tailwindcss Function Reference

Architecture documentation for the next() function in variant_machine.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  4b8c6b98_c3e7_04f1_778f_acd7366c04ac["next()"]
  f996f6d3_3507_8884_d2d3_a1ee00e178ce["parse_arbitrary_end()"]
  4b8c6b98_c3e7_04f1_778f_acd7366c04ac -->|calls| f996f6d3_3507_8884_d2d3_a1ee00e178ce
  style 4b8c6b98_c3e7_04f1_778f_acd7366c04ac 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

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