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 42310c9d_2680_b572_ccde_1fbbe4d1455a["extract_sub_candidates()"] 2a34bbb8_098e_f736_c9a4_821aa310393f["extract()"] 2a34bbb8_098e_f736_c9a4_821aa310393f -->|calls| 42310c9d_2680_b572_ccde_1fbbe4d1455a 95863211_f6f6_7fff_0253_53a5f33740d9["move_to()"] 42310c9d_2680_b572_ccde_1fbbe4d1455a -->|calls| 95863211_f6f6_7fff_0253_53a5f33740d9 0d2f4bc0_2b1b_fd72_0ffc_954eed604d0a["push()"] 42310c9d_2680_b572_ccde_1fbbe4d1455a -->|calls| 0d2f4bc0_2b1b_fd72_0ffc_954eed604d0a 35b2adf8_a27b_5aee_3865_21fb048c97fb["advance()"] 42310c9d_2680_b572_ccde_1fbbe4d1455a -->|calls| 35b2adf8_a27b_5aee_3865_21fb048c97fb style 42310c9d_2680_b572_ccde_1fbbe4d1455a 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
Source
Frequently Asked Questions
What does extract_sub_candidates() do?
extract_sub_candidates() is a function in the tailwindcss codebase.
What does extract_sub_candidates() call?
extract_sub_candidates() calls 3 function(s): advance, move_to, push.
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