Home / Function/ css_visitors.Block() — svelte Function Reference

css_visitors.Block() — svelte Function Reference

Architecture documentation for the css_visitors.Block() function in index.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  00395443_1055_ae37_228e_eda4f6fa9b97["css_visitors.Block()"]
  f0404eed_e134_3c7c_7b38_1cb13c71f197["index.js"]
  00395443_1055_ae37_228e_eda4f6fa9b97 -->|defined in| f0404eed_e134_3c7c_7b38_1cb13c71f197
  style 00395443_1055_ae37_228e_eda4f6fa9b97 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/print/index.js lines 157–181

	Block(node, context) {
		context.write('{');

		if (node.children.length > 0) {
			context.indent();
			context.newline();

			let started = false;

			for (const child of node.children) {
				if (started) {
					context.newline();
				}

				context.visit(child);

				started = true;
			}

			context.dedent();
			context.newline();
		}

		context.write('}');
	},

Domain

Subdomains

Frequently Asked Questions

What does css_visitors.Block() do?
css_visitors.Block() is a function in the svelte codebase, defined in packages/svelte/src/compiler/print/index.js.
Where is css_visitors.Block() defined?
css_visitors.Block() is defined in packages/svelte/src/compiler/print/index.js at line 157.

Analyze Your Own Codebase

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

Try Supermodel Free