Home / Function/ if_builder() — svelte Function Reference

if_builder() — svelte Function Reference

Architecture documentation for the if_builder() function in builders.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  a2b0ed72_0408_ca2c_c78f_96bc3cd52f64["if_builder()"]
  18e3101f_3e97_34c3_7373_b587af4b78e1["builders.js"]
  a2b0ed72_0408_ca2c_c78f_96bc3cd52f64 -->|defined in| 18e3101f_3e97_34c3_7373_b587af4b78e1
  style a2b0ed72_0408_ca2c_c78f_96bc3cd52f64 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/utils/builders.js lines 621–623

function if_builder(test, consequent, alternate) {
	return { type: 'IfStatement', test, consequent, alternate };
}

Domain

Subdomains

Frequently Asked Questions

What does if_builder() do?
if_builder() is a function in the svelte codebase, defined in packages/svelte/src/compiler/utils/builders.js.
Where is if_builder() defined?
if_builder() is defined in packages/svelte/src/compiler/utils/builders.js at line 621.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free