Comment.js — svelte Source File
Architecture documentation for Comment.js, a javascript file in the svelte codebase. 0 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR e7f0eb48_3ad9_4fd5_06ea_318c7aa3b0f8["Comment.js"] 7665e008_f37d_b860_a594_f2539a66af4e["transform-client.js"] 7665e008_f37d_b860_a594_f2539a66af4e --> e7f0eb48_3ad9_4fd5_06ea_318c7aa3b0f8 style e7f0eb48_3ad9_4fd5_06ea_318c7aa3b0f8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/** @import { AST } from '#compiler' */
/** @import { ComponentContext } from '../types' */
/**
* @param {AST.Comment} node
* @param {ComponentContext} context
*/
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
Functions
Source
Frequently Asked Questions
What does Comment.js do?
Comment.js is a source file in the svelte codebase, written in javascript. It belongs to the Compiler domain, Transformer subdomain.
What functions are defined in Comment.js?
Comment.js defines 1 function(s): Comment.
What files import Comment.js?
Comment.js is imported by 1 file(s): transform-client.js.
Where is Comment.js in the architecture?
Comment.js is located at packages/svelte/src/compiler/phases/3-transform/client/visitors/Comment.js (domain: Compiler, subdomain: Transformer, directory: packages/svelte/src/compiler/phases/3-transform/client/visitors).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free