get() — svelte Function Reference
Architecture documentation for the get() function in scope.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 627dc2f8_4dbc_5bb1_8f54_cee503e17098["get()"] 36ef071d_b929_6d90_0038_9f22de99efbe["Scope"] 627dc2f8_4dbc_5bb1_8f54_cee503e17098 -->|defined in| 36ef071d_b929_6d90_0038_9f22de99efbe ffed8565_a534_8183_a11f_bcffae15897e["migrate()"] ffed8565_a534_8183_a11f_bcffae15897e -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 24f461f2_c717_3a18_d33f_adb48a448ef4["handle_events()"] 24f461f2_c717_3a18_d33f_adb48a448ef4 -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 62ad8229_4df7_36d3_2573_07196839bb69["handle_identifier()"] 62ad8229_4df7_36d3_2573_07196839bb69 -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 6287713e_bbf0_a142_26ad_837d3f81d477["instance_script.ImportDeclaration()"] 6287713e_bbf0_a142_26ad_837d3f81d477 -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 cee4ef4e_1ad8_af33_9b2a_c4cc823bad95["instance_script.ExportNamedDeclaration()"] cee4ef4e_1ad8_af33_9b2a_c4cc823bad95 -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 8f93b8d1_a873_5c72_eae3_de296245116a["instance_script.VariableDeclaration()"] 8f93b8d1_a873_5c72_eae3_de296245116a -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 5d553a43_30d1_f81d_668e_5d7134967ec9["instance_script.LabeledStatement()"] 5d553a43_30d1_f81d_668e_5d7134967ec9 -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 7c4b9e22_124a_58a4_bd27_fe6e869ae9b4["template.SvelteComponent()"] 7c4b9e22_124a_58a4_bd27_fe6e869ae9b4 -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 05334dc2_42b5_e2cb_fe55_aa3f6a2de9df["analyze_module()"] 05334dc2_42b5_e2cb_fe55_aa3f6a2de9df -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 78a6ba9a_5003_f569_a638_76e4f1977809["analyze_component()"] 78a6ba9a_5003_f569_a638_76e4f1977809 -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 aced5321_4478_4f67_ba8c_e122713c1d9f["calculate_blockers()"] aced5321_4478_4f67_ba8c_e122713c1d9f -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 40d21ab4_2485_8cf0_6b2b_9513cc687b32["order_reactive_statements()"] 40d21ab4_2485_8cf0_6b2b_9513cc687b32 -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 0dab1d36_2fa3_6bd6_6043_59c1aed4bccf["ClassBody()"] 0dab1d36_2fa3_6bd6_6043_59c1aed4bccf -->|calls| 627dc2f8_4dbc_5bb1_8f54_cee503e17098 style 627dc2f8_4dbc_5bb1_8f54_cee503e17098 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/scope.js lines 731–733
get(name) {
return this.declarations.get(name) ?? this.parent?.get(name) ?? null;
}
Domain
Subdomains
Defined In
Called By
- CallExpression()
- ClassBody()
- Identifier()
- VariableDeclaration()
- VariableDeclaration()
- VariableDeclarator()
- analyze_component()
- analyze_module()
- build_assignment()
- build_assignment()
- calculate_blockers()
- constructor()
- create_scopes()
- create_state_declarators()
- declare()
- ensure_no_module_import_conflict()
- evaluate()
- get_bindings()
- get_global_keypath()
- handle_events()
- handle_identifier()
- instance_script.ExportNamedDeclaration()
- instance_script.ImportDeclaration()
- instance_script.LabeledStatement()
- instance_script.VariableDeclaration()
- is_pure()
- is_safe_identifier()
- migrate()
- order_reactive_statements()
- reference()
- server_component()
- set_scope()
- sort_const_tags()
- template.SvelteComponent()
- validate_assignment()
- validate_export()
- validate_no_const_assignment()
Source
Frequently Asked Questions
What does get() do?
get() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/scope.js.
Where is get() defined?
get() is defined in packages/svelte/src/compiler/phases/scope.js at line 731.
What calls get()?
get() is called by 37 function(s): CallExpression, ClassBody, Identifier, VariableDeclaration, VariableDeclaration, VariableDeclarator, analyze_component, analyze_module, and 29 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free