Home / Function/ parse_arbitrary_end() — tailwindcss Function Reference

parse_arbitrary_end() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ec73909e_8868_80e1_d4b9_cf66499f6092["parse_arbitrary_end()"]
  65f88ee5_a242_be7c_fc9b_70da07dd6b00["variant_machine.rs"]
  ec73909e_8868_80e1_d4b9_cf66499f6092 -->|defined in| 65f88ee5_a242_be7c_fc9b_70da07dd6b00
  1dbc8b28_f0c9_2f31_3a29_521f67ebc73d["next()"]
  1dbc8b28_f0c9_2f31_3a29_521f67ebc73d -->|calls| ec73909e_8868_80e1_d4b9_cf66499f6092
  style ec73909e_8868_80e1_d4b9_cf66499f6092 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/variant_machine.rs lines 46–64

    fn parse_arbitrary_end(
        &mut self,
        start_pos: usize,
        cursor: &mut cursor::Cursor<'_>,
    ) -> MachineState {
        match cursor.next.into() {
            // End of an arbitrary value, must be followed by a `:`
            //
            // E.g.: `[&:hover]:`
            //                 ^
            Class::Colon => {
                cursor.advance();
                self.done(start_pos, cursor)
            }

            // Everything else is invalid
            _ => self.restart(),
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does parse_arbitrary_end() do?
parse_arbitrary_end() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/variant_machine.rs.
Where is parse_arbitrary_end() defined?
parse_arbitrary_end() is defined in crates/oxide/src/extractor/variant_machine.rs at line 46.
What calls parse_arbitrary_end()?
parse_arbitrary_end() is called by 1 function(s): next.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free