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 c2328155_87f1_bade_2ea6_fa7f1910a5ef["read_changed_content()"] 99d2dd55_e7d6_72e7_f911_7a13f8c522f7["get_candidates_with_positions()"] 99d2dd55_e7d6_72e7_f911_7a13f8c522f7 -->|calls| c2328155_87f1_bade_2ea6_fa7f1910a5ef 09fb3cad_189e_f26c_b707_e8906dfa56a8["pre_process_input()"] c2328155_87f1_bade_2ea6_fa7f1910a5ef -->|calls| 09fb3cad_189e_f26c_b707_e8906dfa56a8 style c2328155_87f1_bade_2ea6_fa7f1910a5ef 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
Calls
Called By
Source
Frequently Asked Questions
What does read_changed_content() do?
read_changed_content() is a function in the tailwindcss codebase.
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