function.js — svelte Source File
Architecture documentation for function.js, a javascript file in the svelte codebase. 0 imports, 3 dependents.
Entity Profile
Dependency Diagram
graph LR adb1857f_8260_1824_1006_b7426cea6d82["function.js"] e9cd91f8_45ca_49fa_e49b_dfc4336eb2f2["ArrowFunctionExpression.js"] e9cd91f8_45ca_49fa_e49b_dfc4336eb2f2 --> adb1857f_8260_1824_1006_b7426cea6d82 3e0020f8_7701_703b_8ce0_d65674ee9d2f["FunctionDeclaration.js"] 3e0020f8_7701_703b_8ce0_d65674ee9d2f --> adb1857f_8260_1824_1006_b7426cea6d82 5ab4be57_009e_42aa_d259_c8b14b9a71de["FunctionExpression.js"] 5ab4be57_009e_42aa_d259_c8b14b9a71de --> adb1857f_8260_1824_1006_b7426cea6d82 style adb1857f_8260_1824_1006_b7426cea6d82 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/** @import { ArrowFunctionExpression, FunctionDeclaration, FunctionExpression } from 'estree' */
/** @import { Context } from '../../types' */
/**
* @param {ArrowFunctionExpression | FunctionExpression | FunctionDeclaration} node
* @param {Context} context
*/
export function visit_function(node, context) {
if (context.state.expression) {
for (const [name] of context.state.scope.references) {
const binding = context.state.scope.get(name);
if (binding && binding.scope.function_depth < context.state.scope.function_depth) {
context.state.expression.references.add(binding);
}
}
}
context.next({
...context.state,
function_depth: context.state.function_depth + 1,
expression: null
});
}
Domain
Subdomains
Functions
Imported By
Source
Frequently Asked Questions
What does function.js do?
function.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 function.js?
function.js defines 1 function(s): visit_function.
What files import function.js?
function.js is imported by 3 file(s): ArrowFunctionExpression.js, FunctionDeclaration.js, FunctionExpression.js.
Where is function.js in the architecture?
function.js is located at packages/svelte/src/compiler/phases/2-analyze/visitors/shared/function.js (domain: Compiler, subdomain: Transformer, directory: packages/svelte/src/compiler/phases/2-analyze/visitors/shared).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free