Home / Function/ read_changed_content() — tailwindcss Function Reference

read_changed_content() — tailwindcss Function Reference

Architecture documentation for the read_changed_content() function in mod.rs from the tailwindcss codebase.

Function rust OxideCore Scanner calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  ad97b12c_67a2_add7_498d_ba391461a43e["read_changed_content()"]
  c6b9ad01_bfbd_d4a3_0543_b60d5f83e5d7["get_candidates_with_positions()"]
  c6b9ad01_bfbd_d4a3_0543_b60d5f83e5d7 -->|calls| ad97b12c_67a2_add7_498d_ba391461a43e
  823a19a1_99b4_8ac1_8b7d_3eb598c24b80["pre_process_input()"]
  ad97b12c_67a2_add7_498d_ba391461a43e -->|calls| 823a19a1_99b4_8ac1_8b7d_3eb598c24b80
  style ad97b12c_67a2_add7_498d_ba391461a43e 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

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