Home / Function/ Comment() — svelte Function Reference

Comment() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  68915511_6be9_8bb8_505f_b50249ac8f1f["Comment()"]
  e7f0eb48_3ad9_4fd5_06ea_318c7aa3b0f8["Comment.js"]
  68915511_6be9_8bb8_505f_b50249ac8f1f -->|defined in| e7f0eb48_3ad9_4fd5_06ea_318c7aa3b0f8
  style 68915511_6be9_8bb8_505f_b50249ac8f1f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/phases/3-transform/client/visitors/Comment.js lines 8–11

export function Comment(node, context) {
	// We'll only get here if comments are not filtered out, which they are unless preserveComments is true
	context.state.template.push_comment(node.data);
}

Domain

Subdomains

Frequently Asked Questions

What does Comment() do?
Comment() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/3-transform/client/visitors/Comment.js.
Where is Comment() defined?
Comment() is defined in packages/svelte/src/compiler/phases/3-transform/client/visitors/Comment.js at line 8.

Analyze Your Own Codebase

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

Try Supermodel Free