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 OxideCore Extractor calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  96ab391e_bd5b_ffd3_f8ec_cf3a9bd1263a["parse_property_variable()"]
  9c0ad347_d280_55c5_168a_ddcbd70cbd15["next()"]
  9c0ad347_d280_55c5_168a_ddcbd70cbd15 -->|calls| 96ab391e_bd5b_ffd3_f8ec_cf3a9bd1263a
  9c0ad347_d280_55c5_168a_ddcbd70cbd15["next()"]
  96ab391e_bd5b_ffd3_f8ec_cf3a9bd1263a -->|calls| 9c0ad347_d280_55c5_168a_ddcbd70cbd15
  a342bcc5_aaba_6cba_f921_8c94c0d956ac["advance_twice()"]
  96ab391e_bd5b_ffd3_f8ec_cf3a9bd1263a -->|calls| a342bcc5_aaba_6cba_f921_8c94c0d956ac
  style 96ab391e_bd5b_ffd3_f8ec_cf3a9bd1263a 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