LabeledStatement.js — svelte Source File
Architecture documentation for LabeledStatement.js, a javascript file in the svelte codebase. 1 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR c7316a07_c84a_9be5_364a_b6dae10c1c63["LabeledStatement.js"] 95c28355_f14c_c3cd_5a03_d5a53ca255bc["builders"] c7316a07_c84a_9be5_364a_b6dae10c1c63 --> 95c28355_f14c_c3cd_5a03_d5a53ca255bc 86cf8685_38fa_3a1c_9b81_21c452968289["transform-server.js"] 86cf8685_38fa_3a1c_9b81_21c452968289 --> c7316a07_c84a_9be5_364a_b6dae10c1c63 style c7316a07_c84a_9be5_364a_b6dae10c1c63 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/** @import { ExpressionStatement, LabeledStatement } from 'estree' */
/** @import { Context } from '../types.js' */
import * as b from '#compiler/builders';
/**
* @param {LabeledStatement} node
* @param {Context} context
*/
export function LabeledStatement(node, context) {
if (context.state.analysis.runes || context.path.length > 1 || node.label.name !== '$') {
return;
}
// TODO bail out if we're in module context
// these statements will be topologically ordered later
context.state.legacy_reactive_statements.set(
node,
// people could do "break $" inside, so we need to keep the label
b.labeled('$', /** @type {ExpressionStatement} */ (context.visit(node.body)))
);
return b.empty;
}
Domain
Subdomains
Functions
Dependencies
- builders
Source
Frequently Asked Questions
What does LabeledStatement.js do?
LabeledStatement.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 LabeledStatement.js?
LabeledStatement.js defines 1 function(s): LabeledStatement.
What does LabeledStatement.js depend on?
LabeledStatement.js imports 1 module(s): builders.
What files import LabeledStatement.js?
LabeledStatement.js is imported by 1 file(s): transform-server.js.
Where is LabeledStatement.js in the architecture?
LabeledStatement.js is located at packages/svelte/src/compiler/phases/3-transform/server/visitors/LabeledStatement.js (domain: Compiler, subdomain: Transformer, directory: packages/svelte/src/compiler/phases/3-transform/server/visitors).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free