Home / Function/ parse_property_variable() — tailwindcss Function Reference

parse_property_variable() — tailwindcss Function Reference

Architecture documentation for the parse_property_variable() function in arbitrary_property_machine.rs from the tailwindcss codebase.

Function rust RustCore MachineExtractor calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  29a7a051_ba4a_e033_78ab_d2c261b4cdcd["parse_property_variable()"]
  c99f4d14_b1af_aab1_fe10_454e81d22ef3["next()"]
  c99f4d14_b1af_aab1_fe10_454e81d22ef3 -->|calls| 29a7a051_ba4a_e033_78ab_d2c261b4cdcd
  c99f4d14_b1af_aab1_fe10_454e81d22ef3["next()"]
  29a7a051_ba4a_e033_78ab_d2c261b4cdcd -->|calls| c99f4d14_b1af_aab1_fe10_454e81d22ef3
  07207bb0_f195_4067_2024_eb12d4800851["advance_twice()"]
  29a7a051_ba4a_e033_78ab_d2c261b4cdcd -->|calls| 07207bb0_f195_4067_2024_eb12d4800851
  style 29a7a051_ba4a_e033_78ab_d2c261b4cdcd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/arbitrary_property_machine.rs lines 137–154

    fn parse_property_variable(&mut self, cursor: &mut cursor::Cursor<'_>) -> MachineState {
        match self.css_variable_machine.next(cursor) {
            MachineState::Idle => self.restart(),
            MachineState::Done(_) => match cursor.next.into() {
                // End of the CSS variable, must be followed by a `:`
                //
                // E.g.: `[--my-color:red]`
                //                   ^
                Class::Colon => {
                    cursor.advance_twice();
                    self.transition::<ParsingValueState>().next(cursor)
                }

                // Invalid arbitrary property
                _ => self.restart(),
            },
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does parse_property_variable() do?
parse_property_variable() is a function in the tailwindcss codebase.
What does parse_property_variable() call?
parse_property_variable() calls 2 function(s): advance_twice, next.
What calls parse_property_variable()?
parse_property_variable() 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