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

Entity Profile

Dependency Diagram

graph TD
  3c7a59e1_ee65_4083_ca70_5dc9aba642da["parse_property_variable()"]
  a0fb7bf4_10a9_c73e_1f40_d9fa8257af22["arbitrary_property_machine.rs"]
  3c7a59e1_ee65_4083_ca70_5dc9aba642da -->|defined in| a0fb7bf4_10a9_c73e_1f40_d9fa8257af22
  061a5eca_9872_79a5_37c5_ff53a24a94be["next()"]
  061a5eca_9872_79a5_37c5_ff53a24a94be -->|calls| 3c7a59e1_ee65_4083_ca70_5dc9aba642da
  061a5eca_9872_79a5_37c5_ff53a24a94be["next()"]
  3c7a59e1_ee65_4083_ca70_5dc9aba642da -->|calls| 061a5eca_9872_79a5_37c5_ff53a24a94be
  style 3c7a59e1_ee65_4083_ca70_5dc9aba642da 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