build_event() — svelte Function Reference
Architecture documentation for the build_event() function in events.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 2ed29e53_0d07_f94c_69fa_4365c369a1dd["build_event()"] c5a9d025_4aac_a689_1a38_c0fce5e694c0["events.js"] 2ed29e53_0d07_f94c_69fa_4365c369a1dd -->|defined in| c5a9d025_4aac_a689_1a38_c0fce5e694c0 1fd2e260_163e_201e_1773_5744f70a7e9c["OnDirective()"] 1fd2e260_163e_201e_1773_5744f70a7e9c -->|calls| 2ed29e53_0d07_f94c_69fa_4365c369a1dd e35222ea_3daa_de5e_3d5f_66469f2fb218["visit_event_attribute()"] e35222ea_3daa_de5e_3d5f_66469f2fb218 -->|calls| 2ed29e53_0d07_f94c_69fa_4365c369a1dd style 2ed29e53_0d07_f94c_69fa_4365c369a1dd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/events.js lines 73–82
export function build_event(event_name, node, handler, capture, passive) {
return b.call(
'$.event',
b.literal(event_name),
node,
handler,
capture && b.true,
passive === undefined ? undefined : b.literal(passive)
);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does build_event() do?
build_event() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/events.js.
Where is build_event() defined?
build_event() is defined in packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/events.js at line 73.
What calls build_event()?
build_event() is called by 2 function(s): OnDirective, visit_event_attribute.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free