build() — tailwindcss Function Reference
Architecture documentation for the build() function in gitignore.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 7903e9fa_c4f3_6282_ebe5_eed525a2a2b0["build()"] 4070cc0c_7b7d_154a_4c5a_53a488f619d9["new()"] 4070cc0c_7b7d_154a_4c5a_53a488f619d9 -->|calls| 7903e9fa_c4f3_6282_ebe5_eed525a2a2b0 4a40236e_7852_7d42_0756_529c9da2f5ba["build_global()"] 4a40236e_7852_7d42_0756_529c9da2f5ba -->|calls| 7903e9fa_c4f3_6282_ebe5_eed525a2a2b0 7d4fc0a8_2482_5c00_9ba0_171b0cafaa7a["add_line()"] 7d4fc0a8_2482_5c00_9ba0_171b0cafaa7a -->|calls| 7903e9fa_c4f3_6282_ebe5_eed525a2a2b0 74b7aefc_45cf_a852_1f73_9331b584548c["parse_excludes_file()"] 74b7aefc_45cf_a852_1f73_9331b584548c -->|calls| 7903e9fa_c4f3_6282_ebe5_eed525a2a2b0 06606044_53a6_a123_d53b_0ff3cdba2475["gi_from_str()"] 06606044_53a6_a123_d53b_0ff3cdba2475 -->|calls| 7903e9fa_c4f3_6282_ebe5_eed525a2a2b0 28509baa_2e2e_fa8a_d52a_558985aba403["case_insensitive()"] 28509baa_2e2e_fa8a_d52a_558985aba403 -->|calls| 7903e9fa_c4f3_6282_ebe5_eed525a2a2b0 edfff1bb_5335_b77e_2229_67a6334f97f9["is_whitelist()"] 7903e9fa_c4f3_6282_ebe5_eed525a2a2b0 -->|calls| edfff1bb_5335_b77e_2229_67a6334f97f9 style 7903e9fa_c4f3_6282_ebe5_eed525a2a2b0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/gitignore.rs lines 337–354
pub fn build(&self) -> Result<Gitignore, Error> {
let nignore = self.globs.iter().filter(|g| !g.is_whitelist()).count();
let nwhite = self.globs.iter().filter(|g| g.is_whitelist()).count();
let set = self.builder.build().map_err(|err| Error::Glob {
glob: None,
err: err.to_string(),
})?;
Ok(Gitignore {
set,
root: self.root.clone(),
globs: self.globs.clone(),
num_ignores: nignore as u64,
num_whitelists: nwhite as u64,
matches: Some(Arc::new(Pool::new(|| vec![]))),
// CHANGED: Add a flag to have Gitignore rules that apply only to files.
only_on_files: self.only_on_files,
})
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does build() do?
build() is a function in the tailwindcss codebase.
What does build() call?
build() calls 1 function(s): is_whitelist.
What calls build()?
build() is called by 6 function(s): add_line, build_global, case_insensitive, gi_from_str, new, parse_excludes_file.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free