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

template.Comment() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5526816f_479b_70ec_8d5c_4877691ffc8f["template.Comment()"]
  cab41022_1b55_3b7a_06c6_b90763bbea47["index.js"]
  5526816f_479b_70ec_8d5c_4877691ffc8f -->|defined in| cab41022_1b55_3b7a_06c6_b90763bbea47
  43b7cf26_5d9e_499a_65e2_e2bd5436b694["migrate_svelte_ignore()"]
  5526816f_479b_70ec_8d5c_4877691ffc8f -->|calls| 43b7cf26_5d9e_499a_65e2_e2bd5436b694
  style 5526816f_479b_70ec_8d5c_4877691ffc8f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/migrate/index.js lines 1367–1372

	Comment(node, { state }) {
		const migrated = migrate_svelte_ignore(node.data);
		if (migrated !== node.data) {
			state.str.overwrite(node.start + '<!--'.length, node.end - '-->'.length, migrated);
		}
	},

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free