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
  cbd2bb02_1a63_a997_a5b7_dea73fc75555["parse_arbitrary_end()"]
  741df9fe_696f_ca77_27e8_852abda4bc50["variant_machine.rs"]
  cbd2bb02_1a63_a997_a5b7_dea73fc75555 -->|defined in| 741df9fe_696f_ca77_27e8_852abda4bc50
  27bb60d8_5b57_f305_3d46_ded0d56909ef["next()"]
  27bb60d8_5b57_f305_3d46_ded0d56909ef -->|calls| cbd2bb02_1a63_a997_a5b7_dea73fc75555
  style cbd2bb02_1a63_a997_a5b7_dea73fc75555 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