Home / Function/ template.IfBlock() — svelte Function Reference

template.IfBlock() — svelte Function Reference

Architecture documentation for the template.IfBlock() function in index.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  32f01c47_04ae_f9b8_b80d_3cc158dae8fd["template.IfBlock()"]
  cab41022_1b55_3b7a_06c6_b90763bbea47["index.js"]
  32f01c47_04ae_f9b8_b80d_3cc158dae8fd -->|defined in| cab41022_1b55_3b7a_06c6_b90763bbea47
  fd9e1483_8d98_1d09_da34_84b84cb1e057["trim_block()"]
  32f01c47_04ae_f9b8_b80d_3cc158dae8fd -->|calls| fd9e1483_8d98_1d09_da34_84b84cb1e057
  style 32f01c47_04ae_f9b8_b80d_3cc158dae8fd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/migrate/index.js lines 1381–1386

	IfBlock(node, { state, next }) {
		const start = node.start;
		const end = state.str.original.indexOf('}', node.test.end) + 1;
		trim_block(state, start, end);
		next();
	},

Domain

Subdomains

Calls

Frequently Asked Questions

What does template.IfBlock() do?
template.IfBlock() is a function in the svelte codebase, defined in packages/svelte/src/compiler/migrate/index.js.
Where is template.IfBlock() defined?
template.IfBlock() is defined in packages/svelte/src/compiler/migrate/index.js at line 1381.
What does template.IfBlock() call?
template.IfBlock() calls 1 function(s): trim_block.

Analyze Your Own Codebase

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

Try Supermodel Free