Home / Function/ owner() — svelte Function Reference

owner() — svelte Function Reference

Architecture documentation for the owner() function in scope.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  4a169568_121b_6e7b_6100_391519866416["owner()"]
  02ae92c0_d212_24d8_79ca_475f2101804e["Scope"]
  4a169568_121b_6e7b_6100_391519866416 -->|defined in| 02ae92c0_d212_24d8_79ca_475f2101804e
  1cff9ddd_d805_8338_3a7d_8b63f881753f["analyze_component()"]
  1cff9ddd_d805_8338_3a7d_8b63f881753f -->|calls| 4a169568_121b_6e7b_6100_391519866416
  style 4a169568_121b_6e7b_6100_391519866416 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/phases/scope.js lines 751–753

	owner(name) {
		return this.declarations.has(name) ? this : this.parent && this.parent.owner(name);
	}

Domain

Subdomains

Frequently Asked Questions

What does owner() do?
owner() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/scope.js.
Where is owner() defined?
owner() is defined in packages/svelte/src/compiler/phases/scope.js at line 751.
What calls owner()?
owner() is called by 1 function(s): analyze_component.

Analyze Your Own Codebase

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

Try Supermodel Free