svelte_visitors.StyleSheet() — svelte Function Reference
Architecture documentation for the svelte_visitors.StyleSheet() function in index.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD c3c78ac8_bc28_0a6b_0e05_20154e4d9c16["svelte_visitors.StyleSheet()"] 33b4afa2_04e3_b57a_5809_665b1b0ef9b2["index.js"] c3c78ac8_bc28_0a6b_0e05_20154e4d9c16 -->|defined in| 33b4afa2_04e3_b57a_5809_665b1b0ef9b2 3b566c2c_953f_2399_31ca_4f7d6fe49b58["attributes()"] c3c78ac8_bc28_0a6b_0e05_20154e4d9c16 -->|calls| 3b566c2c_953f_2399_31ca_4f7d6fe49b58 style c3c78ac8_bc28_0a6b_0e05_20154e4d9c16 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/print/index.js lines 734–760
StyleSheet(node, context) {
context.write('<style');
attributes(node.attributes, context);
context.write('>');
if (node.children.length > 0) {
context.indent();
context.newline();
let started = false;
for (const child of node.children) {
if (started) {
context.margin();
context.newline();
}
context.visit(child);
started = true;
}
context.dedent();
context.newline();
}
context.write('</style>');
},
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does svelte_visitors.StyleSheet() do?
svelte_visitors.StyleSheet() is a function in the svelte codebase, defined in packages/svelte/src/compiler/print/index.js.
Where is svelte_visitors.StyleSheet() defined?
svelte_visitors.StyleSheet() is defined in packages/svelte/src/compiler/print/index.js at line 734.
What does svelte_visitors.StyleSheet() call?
svelte_visitors.StyleSheet() calls 1 function(s): attributes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free