Home / Function/ parse_arbitrary_property() — tailwindcss Function Reference

parse_arbitrary_property() — tailwindcss Function Reference

Architecture documentation for the parse_arbitrary_property() function in utility_machine.rs from the tailwindcss codebase.

Function rust OxideCore Extractor calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  2ff03701_b9e2_7896_5775_102b15721ddb["parse_arbitrary_property()"]
  da480653_3dab_cca9_44d1_efce632afce6["next()"]
  da480653_3dab_cca9_44d1_efce632afce6 -->|calls| 2ff03701_b9e2_7896_5775_102b15721ddb
  40720235_daf5_e707_96dc_cc8f52933b5a["parse_modifier()"]
  2ff03701_b9e2_7896_5775_102b15721ddb -->|calls| 40720235_daf5_e707_96dc_cc8f52933b5a
  7d92fff8_2cab_6ebd_f16f_ac3cab68c58f["parse_important()"]
  2ff03701_b9e2_7896_5775_102b15721ddb -->|calls| 7d92fff8_2cab_6ebd_f16f_ac3cab68c58f
  da480653_3dab_cca9_44d1_efce632afce6["next()"]
  2ff03701_b9e2_7896_5775_102b15721ddb -->|calls| da480653_3dab_cca9_44d1_efce632afce6
  35b2adf8_a27b_5aee_3865_21fb048c97fb["advance()"]
  2ff03701_b9e2_7896_5775_102b15721ddb -->|calls| 35b2adf8_a27b_5aee_3865_21fb048c97fb
  style 2ff03701_b9e2_7896_5775_102b15721ddb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/utility_machine.rs lines 78–107

    fn parse_arbitrary_property(&mut self, cursor: &mut cursor::Cursor<'_>) -> MachineState {
        match self.arbitrary_property_machine.next(cursor) {
            MachineState::Idle => self.restart(),
            MachineState::Done(_) => match cursor.next.into() {
                // End of arbitrary property, but there is a potential modifier.
                //
                // E.g.: `[color:#0088cc]/`
                //                       ^
                Class::Slash => {
                    cursor.advance();
                    self.parse_modifier(cursor)
                }

                // End of arbitrary property, but there is an `!`.
                //
                // E.g.: `[color:#0088cc]!`
                //                       ^
                Class::Exclamation => {
                    cursor.advance();
                    self.parse_important(cursor)
                }

                // End of arbitrary property
                //
                // E.g.: `[color:#0088cc]`
                //                      ^
                _ => self.done(self.start_pos, cursor),
            },
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does parse_arbitrary_property() do?
parse_arbitrary_property() is a function in the tailwindcss codebase.
What does parse_arbitrary_property() call?
parse_arbitrary_property() calls 4 function(s): advance, next, parse_important, parse_modifier.
What calls parse_arbitrary_property()?
parse_arbitrary_property() 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