Home / File/ SvelteHead.js — svelte Source File

SvelteHead.js — svelte Source File

Architecture documentation for SvelteHead.js, a javascript file in the svelte codebase. 4 imports, 1 dependents.

File javascript Compiler Transformer 4 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  d282679a_7785_f4c6_9d4c_6f05e49be953["SvelteHead.js"]
  495501a4_a342_6a4d_ac11_e3e2fee8b218["errors.js"]
  d282679a_7785_f4c6_9d4c_6f05e49be953 --> 495501a4_a342_6a4d_ac11_e3e2fee8b218
  a146f6ac_0088_8736_b6ce_318f9f115170["e"]
  d282679a_7785_f4c6_9d4c_6f05e49be953 --> a146f6ac_0088_8736_b6ce_318f9f115170
  c4b4ac8d_9914_5ede_1aea_723bf80d2e9b["fragment.js"]
  d282679a_7785_f4c6_9d4c_6f05e49be953 --> c4b4ac8d_9914_5ede_1aea_723bf80d2e9b
  313d2a82_30ea_3161_3aad_0cc2094979aa["mark_subtree_dynamic"]
  d282679a_7785_f4c6_9d4c_6f05e49be953 --> 313d2a82_30ea_3161_3aad_0cc2094979aa
  4aa8a188_84d4_0274_ed83_cac0ab1d3572["index.js"]
  4aa8a188_84d4_0274_ed83_cac0ab1d3572 --> d282679a_7785_f4c6_9d4c_6f05e49be953
  style d282679a_7785_f4c6_9d4c_6f05e49be953 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/** @import { AST } from '#compiler' */
/** @import { Context } from '../types' */
import * as e from '../../../errors.js';
import { mark_subtree_dynamic } from './shared/fragment.js';

/**
 * @param {AST.SvelteHead} node
 * @param {Context} context
 */
export function SvelteHead(node, context) {
	for (const attribute of node.attributes) {
		e.svelte_head_illegal_attribute(attribute);
	}

	mark_subtree_dynamic(context.path);

	context.next();
}

Domain

Subdomains

Functions

Frequently Asked Questions

What does SvelteHead.js do?
SvelteHead.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 SvelteHead.js?
SvelteHead.js defines 1 function(s): SvelteHead.
What does SvelteHead.js depend on?
SvelteHead.js imports 4 module(s): e, errors.js, fragment.js, mark_subtree_dynamic.
What files import SvelteHead.js?
SvelteHead.js is imported by 1 file(s): index.js.
Where is SvelteHead.js in the architecture?
SvelteHead.js is located at packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteHead.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