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 d7d2a290_6465_d83b_ad3d_f71ae61d67dc["read_changed_content()"] b82a42d6_b7d3_c6d2_1e14_451f8382da81["mod.rs"] d7d2a290_6465_d83b_ad3d_f71ae61d67dc -->|defined in| b82a42d6_b7d3_c6d2_1e14_451f8382da81 5676281c_8167_04d8_78a5_361db3b21fc6["get_candidates_with_positions()"] 5676281c_8167_04d8_78a5_361db3b21fc6 -->|calls| d7d2a290_6465_d83b_ad3d_f71ae61d67dc 2535a85a_8e60_effd_85c6_5b80f4dcc82f["pre_process_input()"] d7d2a290_6465_d83b_ad3d_f71ae61d67dc -->|calls| 2535a85a_8e60_effd_85c6_5b80f4dcc82f style d7d2a290_6465_d83b_ad3d_f71ae61d67dc 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