Home / Function/ constructor() — svelte Function Reference

constructor() — svelte Function Reference

Architecture documentation for the constructor() function in fuzzymatch.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  d480b819_2e14_22e2_dcf0_dc68f6824af1["constructor()"]
  79034f27_7e89_3edc_1524_ef7e1cf114bf["FuzzySet"]
  d480b819_2e14_22e2_dcf0_dc68f6824af1 -->|defined in| 79034f27_7e89_3edc_1524_ef7e1cf114bf
  e9e928cd_ecf3_b386_9b42_407f2fa12962["add()"]
  d480b819_2e14_22e2_dcf0_dc68f6824af1 -->|calls| e9e928cd_ecf3_b386_9b42_407f2fa12962
  style d480b819_2e14_22e2_dcf0_dc68f6824af1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/phases/1-parse/utils/fuzzymatch.js lines 135–145

	constructor(arr) {
		// initialisation
		for (let i = GRAM_SIZE_LOWER; i < GRAM_SIZE_UPPER + 1; ++i) {
			this.items[i] = [];
		}

		// add all the items to the set
		for (let i = 0; i < arr.length; ++i) {
			this.add(arr[i]);
		}
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/1-parse/utils/fuzzymatch.js.
Where is constructor() defined?
constructor() is defined in packages/svelte/src/compiler/phases/1-parse/utils/fuzzymatch.js at line 135.
What does constructor() call?
constructor() calls 1 function(s): add.

Analyze Your Own Codebase

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

Try Supermodel Free