HtmlTag.js — svelte Source File
Architecture documentation for HtmlTag.js, a javascript file in the svelte codebase. 4 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 93b0ec70_ae65_2771_721b_d69136053c03["HtmlTag.js"] c4b4ac8d_9914_5ede_1aea_723bf80d2e9b["fragment.js"] 93b0ec70_ae65_2771_721b_d69136053c03 --> c4b4ac8d_9914_5ede_1aea_723bf80d2e9b 313d2a82_30ea_3161_3aad_0cc2094979aa["mark_subtree_dynamic"] 93b0ec70_ae65_2771_721b_d69136053c03 --> 313d2a82_30ea_3161_3aad_0cc2094979aa bf0d8f1b_17da_970d_bf44_fbcf099d5371["utils.js"] 93b0ec70_ae65_2771_721b_d69136053c03 --> bf0d8f1b_17da_970d_bf44_fbcf099d5371 7148e639_69d8_a03d_3f08_bd23f41e718a["validate_opening_tag"] 93b0ec70_ae65_2771_721b_d69136053c03 --> 7148e639_69d8_a03d_3f08_bd23f41e718a 4aa8a188_84d4_0274_ed83_cac0ab1d3572["index.js"] 4aa8a188_84d4_0274_ed83_cac0ab1d3572 --> 93b0ec70_ae65_2771_721b_d69136053c03 style 93b0ec70_ae65_2771_721b_d69136053c03 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/** @import { AST } from '#compiler' */
/** @import { Context } from '../types' */
import { mark_subtree_dynamic } from './shared/fragment.js';
import { validate_opening_tag } from './shared/utils.js';
/**
* @param {AST.HtmlTag} node
* @param {Context} context
*/
export function HtmlTag(node, context) {
if (context.state.analysis.runes) {
validate_opening_tag(node, context.state, '@');
}
// unfortunately this is necessary in order to fix invalid HTML
mark_subtree_dynamic(context.path);
context.next({ ...context.state, expression: node.metadata.expression });
}
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does HtmlTag.js do?
HtmlTag.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 HtmlTag.js?
HtmlTag.js defines 1 function(s): HtmlTag.
What does HtmlTag.js depend on?
HtmlTag.js imports 4 module(s): fragment.js, mark_subtree_dynamic, utils.js, validate_opening_tag.
What files import HtmlTag.js?
HtmlTag.js is imported by 1 file(s): index.js.
Where is HtmlTag.js in the architecture?
HtmlTag.js is located at packages/svelte/src/compiler/phases/2-analyze/visitors/HtmlTag.js (domain: Compiler, subdomain: Transformer, directory: packages/svelte/src/compiler/phases/2-analyze/visitors).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free