literal() — svelte Function Reference
Architecture documentation for the literal() function in builders.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 36ba2c12_e83e_4a48_07b2_d8eda31d4eed["literal()"] 18e3101f_3e97_34c3_7373_b587af4b78e1["builders.js"] 36ba2c12_e83e_4a48_07b2_d8eda31d4eed -->|defined in| 18e3101f_3e97_34c3_7373_b587af4b78e1 120004de_c2c3_3931_173e_471c66b87359["build_locations()"] 120004de_c2c3_3931_173e_471c66b87359 -->|calls| 36ba2c12_e83e_4a48_07b2_d8eda31d4eed bc77ac7b_055c_071d_a2e8_bdfe53d963db["transform_template()"] bc77ac7b_055c_071d_a2e8_bdfe53d963db -->|calls| 36ba2c12_e83e_4a48_07b2_d8eda31d4eed c6deb5cc_d1e0_55fd_2c48_608a423d7131["import_all()"] c6deb5cc_d1e0_55fd_2c48_608a423d7131 -->|calls| 36ba2c12_e83e_4a48_07b2_d8eda31d4eed 6735c366_3d96_f2b9_2af0_5b7905e191a6["imports()"] 6735c366_3d96_f2b9_2af0_5b7905e191a6 -->|calls| 36ba2c12_e83e_4a48_07b2_d8eda31d4eed 768acf01_8614_9119_31ec_dec324f7516c["throw_error()"] 768acf01_8614_9119_31ec_dec324f7516c -->|calls| 36ba2c12_e83e_4a48_07b2_d8eda31d4eed e0269994_4121_13d5_0234_5ee1cfbf78f4["key()"] e0269994_4121_13d5_0234_5ee1cfbf78f4 -->|calls| 36ba2c12_e83e_4a48_07b2_d8eda31d4eed style 36ba2c12_e83e_4a48_07b2_d8eda31d4eed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/utils/builders.js lines 307–310
export function literal(value) {
// @ts-expect-error we don't want to muck around with bigint here
return { type: 'Literal', value };
}
Domain
Subdomains
Source
Frequently Asked Questions
What does literal() do?
literal() is a function in the svelte codebase, defined in packages/svelte/src/compiler/utils/builders.js.
Where is literal() defined?
literal() is defined in packages/svelte/src/compiler/utils/builders.js at line 307.
What calls literal()?
literal() is called by 6 function(s): build_locations, import_all, imports, key, throw_error, transform_template.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free