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 877a213e_88d9_c372_5e99_15a0654fc974["extract_sub_candidates()"] 422ad34b_4317_4855_30c2_d1ae1b67d97a["extract()"] 422ad34b_4317_4855_30c2_d1ae1b67d97a -->|calls| 877a213e_88d9_c372_5e99_15a0654fc974 eacebf08_7f52_121a_f1b0_aaad12569230["move_to()"] 877a213e_88d9_c372_5e99_15a0654fc974 -->|calls| eacebf08_7f52_121a_f1b0_aaad12569230 435a321a_a1e2_cb4f_7579_0ca15cb86434["advance()"] 877a213e_88d9_c372_5e99_15a0654fc974 -->|calls| 435a321a_a1e2_cb4f_7579_0ca15cb86434 style 877a213e_88d9_c372_5e99_15a0654fc974 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 2 function(s): advance, move_to.
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