Home / Function/ sync_values() — svelte Function Reference

sync_values() — svelte Function Reference

Architecture documentation for the sync_values() function in utils.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  6f7809e4_1338_fe87_a5b2_2bb5d1626fdf["sync_values()"]
  be60a9d7_77eb_5ad3_ab7e_2f9bd93a3db1["Memoizer"]
  6f7809e4_1338_fe87_a5b2_2bb5d1626fdf -->|defined in| be60a9d7_77eb_5ad3_ab7e_2f9bd93a3db1
  fc471bd0_caed_35be_8561_9d55a2505105["TitleElement()"]
  fc471bd0_caed_35be_8561_9d55a2505105 -->|calls| 6f7809e4_1338_fe87_a5b2_2bb5d1626fdf
  ef858948_a3b7_f31d_ad40_16743e642d00["build_attribute_effect()"]
  ef858948_a3b7_f31d_ad40_16743e642d00 -->|calls| 6f7809e4_1338_fe87_a5b2_2bb5d1626fdf
  0b544eaa_6377_1ef6_ac35_e0b4cbde3fbc["build_render_statement()"]
  0b544eaa_6377_1ef6_ac35_e0b4cbde3fbc -->|calls| 6f7809e4_1338_fe87_a5b2_2bb5d1626fdf
  style 6f7809e4_1338_fe87_a5b2_2bb5d1626fdf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js lines 88–91

	sync_values() {
		if (this.#sync.length === 0) return;
		return b.array(this.#sync.map((memo) => b.thunk(memo.expression)));
	}

Domain

Subdomains

Frequently Asked Questions

What does sync_values() do?
sync_values() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js.
Where is sync_values() defined?
sync_values() is defined in packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js at line 88.
What calls sync_values()?
sync_values() is called by 3 function(s): TitleElement, build_attribute_effect, build_render_statement.

Analyze Your Own Codebase

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

Try Supermodel Free