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

Entity Profile

Dependency Diagram

graph TD
  553a4156_b122_9878_45dd_1c4cd54f166c["parse_arbitrary_property()"]
  32b9b48f_ad55_d7a6_3de9_85eb03c312f2["utility_machine.rs"]
  553a4156_b122_9878_45dd_1c4cd54f166c -->|defined in| 32b9b48f_ad55_d7a6_3de9_85eb03c312f2
  87fe7e3c_7e6c_6c51_b905_30d47838ada6["next()"]
  87fe7e3c_7e6c_6c51_b905_30d47838ada6 -->|calls| 553a4156_b122_9878_45dd_1c4cd54f166c
  1c3921a2_bd9d_8e30_15d0_2194ca09893f["parse_modifier()"]
  553a4156_b122_9878_45dd_1c4cd54f166c -->|calls| 1c3921a2_bd9d_8e30_15d0_2194ca09893f
  6113d931_5516_c454_af73_f01a71749a18["parse_important()"]
  553a4156_b122_9878_45dd_1c4cd54f166c -->|calls| 6113d931_5516_c454_af73_f01a71749a18
  87fe7e3c_7e6c_6c51_b905_30d47838ada6["next()"]
  553a4156_b122_9878_45dd_1c4cd54f166c -->|calls| 87fe7e3c_7e6c_6c51_b905_30d47838ada6
  style 553a4156_b122_9878_45dd_1c4cd54f166c 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, defined in crates/oxide/src/extractor/utility_machine.rs.
Where is parse_arbitrary_property() defined?
parse_arbitrary_property() is defined in crates/oxide/src/extractor/utility_machine.rs at line 78.
What does parse_arbitrary_property() call?
parse_arbitrary_property() calls 3 function(s): 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