Home / Function/ extract_sub_candidates() — tailwindcss Function Reference

extract_sub_candidates() — tailwindcss Function Reference

Architecture documentation for the extract_sub_candidates() function in mod.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  c9293cb1_2040_7e5e_5fb7_bc4d4028273d["extract_sub_candidates()"]
  eb5f3ab1_80da_abe4_f35c_a91e8e409b69["mod.rs"]
  c9293cb1_2040_7e5e_5fb7_bc4d4028273d -->|defined in| eb5f3ab1_80da_abe4_f35c_a91e8e409b69
  16a2f09b_5333_b32e_a269_9de80b7dbf37["extract()"]
  16a2f09b_5333_b32e_a269_9de80b7dbf37 -->|calls| c9293cb1_2040_7e5e_5fb7_bc4d4028273d
  style c9293cb1_2040_7e5e_5fb7_bc4d4028273d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/mod.rs lines 189–211

fn extract_sub_candidates(
    range: std::ops::Range<usize>,
    cursor: &cursor::Cursor<'_>,
    in_flight_spans: &mut Vec<Span>,
) {
    let end = range.end;
    for i in range {
        if cursor.input[i] == b'[' {
            let mut cursor = cursor.clone();
            cursor.move_to(i + 1);

            let mut machine = CandidateMachine::default();

            while cursor.pos < end {
                if let MachineState::Done(span) = machine.next(&mut cursor) {
                    in_flight_spans.push(span);
                }

                cursor.advance();
            }
        }
    }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does extract_sub_candidates() do?
extract_sub_candidates() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/mod.rs.
Where is extract_sub_candidates() defined?
extract_sub_candidates() is defined in crates/oxide/src/extractor/mod.rs at line 189.
What calls extract_sub_candidates()?
extract_sub_candidates() is called by 1 function(s): extract.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free