getFunctionExpression() — astro Function Reference
Architecture documentation for the getFunctionExpression() function in slots.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 40c2c428_0b31_de95_a2fe_3cd1817132f9["getFunctionExpression()"] 8991a42b_851a_4b20_3c51_bc8fbe6ed0e7["slots.ts"] 40c2c428_0b31_de95_a2fe_3cd1817132f9 -->|defined in| 8991a42b_851a_4b20_3c51_bc8fbe6ed0e7 cac0efcf_85fe_9d2e_7466_f43eee3dc68d["render()"] cac0efcf_85fe_9d2e_7466_f43eee3dc68d -->|calls| 40c2c428_0b31_de95_a2fe_3cd1817132f9 style 40c2c428_0b31_de95_a2fe_3cd1817132f9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/render/slots.ts lines 9–14
function getFunctionExpression(slot: any) {
if (!slot) return;
const expressions = slot?.expressions?.filter((e: unknown) => isRenderInstruction(e) === false);
if (expressions?.length !== 1) return;
return expressions[0] as (...args: any[]) => any;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getFunctionExpression() do?
getFunctionExpression() is a function in the astro codebase, defined in packages/astro/src/core/render/slots.ts.
Where is getFunctionExpression() defined?
getFunctionExpression() is defined in packages/astro/src/core/render/slots.ts at line 9.
What calls getFunctionExpression()?
getFunctionExpression() is called by 1 function(s): render.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free