read_changed_content() — tailwindcss Function Reference
Architecture documentation for the read_changed_content() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 63be2454_f385_5711_9d49_84f7e913bd4b["read_changed_content()"] d865d4fd_bb15_6d9a_a900_10e82a6856fb["mod.rs"] 63be2454_f385_5711_9d49_84f7e913bd4b -->|defined in| d865d4fd_bb15_6d9a_a900_10e82a6856fb 0f8d329e_0ee0_3682_91d0_989b1ec14827["get_candidates_with_positions()"] 0f8d329e_0ee0_3682_91d0_989b1ec14827 -->|calls| 63be2454_f385_5711_9d49_84f7e913bd4b 66c9cfff_936c_6bbe_e940_4d6d87148c48["pre_process_input()"] 63be2454_f385_5711_9d49_84f7e913bd4b -->|calls| 66c9cfff_936c_6bbe_e940_4d6d87148c48 style 63be2454_f385_5711_9d49_84f7e913bd4b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/scanner/mod.rs lines 461–478
fn read_changed_content(c: ChangedContent) -> Option<Vec<u8>> {
let (content, extension) = match c {
ChangedContent::File(file, extension) => match std::fs::read(&file) {
Ok(content) => {
event!(tracing::Level::INFO, "Reading {:?}", file);
(content, extension)
}
Err(e) => {
event!(tracing::Level::ERROR, "Failed to read file: {:?}", e);
return None;
}
},
ChangedContent::Content(contents, extension) => (contents.into_bytes(), extension),
};
Some(pre_process_input(&content, &extension))
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does read_changed_content() do?
read_changed_content() is a function in the tailwindcss codebase, defined in crates/oxide/src/scanner/mod.rs.
Where is read_changed_content() defined?
read_changed_content() is defined in crates/oxide/src/scanner/mod.rs at line 461.
What does read_changed_content() call?
read_changed_content() calls 1 function(s): pre_process_input.
What calls read_changed_content()?
read_changed_content() is called by 1 function(s): get_candidates_with_positions.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free