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

Entity Profile

Dependency Diagram

graph TD
  97eae319_ea05_01d2_6e88_d5789d947a7e["parse_property_variable()"]
  67459930_8537_2caf_b2cb_b2270e50566c["arbitrary_property_machine.rs"]
  97eae319_ea05_01d2_6e88_d5789d947a7e -->|defined in| 67459930_8537_2caf_b2cb_b2270e50566c
  aae0781e_2b11_9d91_0f21_3ba0e37f5c20["next()"]
  aae0781e_2b11_9d91_0f21_3ba0e37f5c20 -->|calls| 97eae319_ea05_01d2_6e88_d5789d947a7e
  aae0781e_2b11_9d91_0f21_3ba0e37f5c20["next()"]
  97eae319_ea05_01d2_6e88_d5789d947a7e -->|calls| aae0781e_2b11_9d91_0f21_3ba0e37f5c20
  style 97eae319_ea05_01d2_6e88_d5789d947a7e 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

Calls

Called By

Frequently Asked Questions

What does parse_property_variable() do?
parse_property_variable() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/arbitrary_property_machine.rs.
Where is parse_property_variable() defined?
parse_property_variable() is defined in crates/oxide/src/extractor/arbitrary_property_machine.rs at line 137.
What does parse_property_variable() call?
parse_property_variable() calls 1 function(s): 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