get_candidates_with_positions() — tailwindcss Function Reference
Architecture documentation for the get_candidates_with_positions() function in lib.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 41b5025c_f944_95b4_0f79_bdbd6e475fca["get_candidates_with_positions()"] b16afa65_56c6_51b5_9282_15e2e18d0a41["get()"] 41b5025c_f944_95b4_0f79_bdbd6e475fca -->|calls| b16afa65_56c6_51b5_9282_15e2e18d0a41 style 41b5025c_f944_95b4_0f79_bdbd6e475fca fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/node/src/lib.rs lines 136–161
pub fn get_candidates_with_positions(
&mut self,
input: ChangedContent,
) -> Vec<CandidateWithPosition> {
let content = input.content.unwrap_or_else(|| {
std::fs::read_to_string(input.file.unwrap()).expect("Failed to read file")
});
let input = ChangedContent {
file: None,
content: Some(content.clone()),
extension: input.extension,
};
let mut utf16_idx = IndexConverter::new(&content[..]);
self
.scanner
.get_candidates_with_positions(input.into())
.into_iter()
.map(|(candidate, position)| CandidateWithPosition {
candidate,
position: utf16_idx.get(position),
})
.collect()
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does get_candidates_with_positions() do?
get_candidates_with_positions() is a function in the tailwindcss codebase.
What does get_candidates_with_positions() call?
get_candidates_with_positions() calls 1 function(s): get.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free