Home / Function/ new_builder() — svelte Function Reference

new_builder() — svelte Function Reference

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

Function javascript Compiler Transformer calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  7fe5d309_6fc9_0e9b_0766_443c616702a8["new_builder()"]
  18e3101f_3e97_34c3_7373_b587af4b78e1["builders.js"]
  7fe5d309_6fc9_0e9b_0766_443c616702a8 -->|defined in| 18e3101f_3e97_34c3_7373_b587af4b78e1
  768acf01_8614_9119_31ec_dec324f7516c["throw_error()"]
  768acf01_8614_9119_31ec_dec324f7516c -->|calls| 7fe5d309_6fc9_0e9b_0766_443c616702a8
  be1e2e2e_efd8_0ff6_cec1_bc18ea37e21e["id()"]
  7fe5d309_6fc9_0e9b_0766_443c616702a8 -->|calls| be1e2e2e_efd8_0ff6_cec1_bc18ea37e21e
  style 7fe5d309_6fc9_0e9b_0766_443c616702a8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/utils/builders.js lines 493–501

function new_builder(expression, ...args) {
	if (typeof expression === 'string') expression = id(expression);

	return {
		callee: expression,
		arguments: args,
		type: 'NewExpression'
	};
}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does new_builder() do?
new_builder() is a function in the svelte codebase, defined in packages/svelte/src/compiler/utils/builders.js.
Where is new_builder() defined?
new_builder() is defined in packages/svelte/src/compiler/utils/builders.js at line 493.
What does new_builder() call?
new_builder() calls 1 function(s): id.
What calls new_builder()?
new_builder() is called by 1 function(s): throw_error.

Analyze Your Own Codebase

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

Try Supermodel Free