Migrator — svelte Architecture
Automates the transition of legacy Svelte code to modern Svelte 5 syntax.
Entity Profile
Dependency Diagram
graph TD subdomain_Compiler_Migrator["Migrator"] 33e87291_0ac1_3686_9dfc_9d36d72c7fca["TransitionDirective.js"] subdomain_Compiler_Migrator --> 33e87291_0ac1_3686_9dfc_9d36d72c7fca d383a41d_5383_ee86_cab6_03bf1a2daf93["mapped_code.js"] subdomain_Compiler_Migrator --> d383a41d_5383_ee86_cab6_03bf1a2daf93 76cde72f_b08b_6c0b_1e04_dda16a7ac104["replace_in_code.js"] subdomain_Compiler_Migrator --> 76cde72f_b08b_6c0b_1e04_dda16a7ac104 c483921f_8d5a_f23d_b357_6347f76261cc["ForOfStatement.js"] subdomain_Compiler_Migrator --> c483921f_8d5a_f23d_b357_6347f76261cc 42ba314e_c59a_5f97_37c4_16009ba66836["TransitionDirective.js"] subdomain_Compiler_Migrator --> 42ba314e_c59a_5f97_37c4_16009ba66836 266f0f82_b1c9_08bb_80b9_55a66e7d3dba["compile_diagnostic.js"] subdomain_Compiler_Migrator --> 266f0f82_b1c9_08bb_80b9_55a66e7d3dba 21beed52_94ea_f810_11b8_87a2cf50432f["legacy.js"] subdomain_Compiler_Migrator --> 21beed52_94ea_f810_11b8_87a2cf50432f 0c5c28a7_226d_4e7c_e75e_0853c0a9fc2c["ast.js"] subdomain_Compiler_Migrator --> 0c5c28a7_226d_4e7c_e75e_0853c0a9fc2c ccf6927a_1f1b_1dda_8616_80903a72ba16["index.js"] subdomain_Compiler_Migrator --> ccf6927a_1f1b_1dda_8616_80903a72ba16 style subdomain_Compiler_Migrator fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Domain
Functions
- ForOfStatement()
- TransitionDirective()
- TransitionDirective()
- _extract_paths()
- a11y_no_interactive_element_to_noninteractive_role()
- a11y_no_noninteractive_element_to_interactive_role()
- add_to_map()
- apply_preprocessor_sourcemap()
- b64dec()
- b64enc()
- build_assignment_value()
- build_fallback()
- calculate_replacements()
- combine_sourcemaps()
- concat()
- constructor()
- convert()
- extract_all_identifiers_from_expression()
- extract_identifiers()
- extract_identifiers_from_destructuring()
- extract_paths()
- for_of()
- from_processed()
- from_source()
- get_attribute_chunks()
- get_attribute_expression()
- get_basename()
- get_code_frame()
- get_parent()
- get_relative_path()
- get_source_name()
- has_await_expression()
- is_event_attribute()
- is_expression_async()
- is_expression_attribute()
- is_simple_expression()
- is_text_attribute()
- last_line_length()
- legacy_await_invalid()
- legacy_code()
- legacy_component_creation()
- legacy_export_invalid()
- legacy_props_invalid()
- legacy_reactive_statement_invalid()
- legacy_rest_props_invalid()
- merge_tables()
- merge_with_preprocessor_map()
- object()
- parse_attached_sourcemap()
- perform_replacements()
- processed_content_to_code()
- processed_tag_to_code()
- relative_selector_might_apply_to_node()
- remove_surrounding_whitespace_nodes()
- replace_in_code()
- route_to_component_name()
- save()
- slice_source()
- sourcemap_add_offset()
- svelte_visitors.TransitionDirective()
- tabs_to_spaces()
- toJSON()
- toJSON()
- toString()
- toString()
- to_processed()
- to_public_ast()
- transition_conflict()
- transition_duplicate()
- unknown_code()
- unwrap_optional()
- unwrap_pattern()
- validate_code()
Source Files
- packages/svelte/src/compiler/phases/3-transform/client/visitors/ForOfStatement.js
- packages/svelte/src/compiler/phases/2-analyze/visitors/TransitionDirective.js
- packages/svelte/src/compiler/phases/3-transform/client/visitors/TransitionDirective.js
- packages/svelte/src/compiler/utils/ast.js
- packages/svelte/src/compiler/utils/compile_diagnostic.js
- packages/svelte/src/compiler/preprocess/index.js
- packages/svelte/src/compiler/legacy.js
- packages/svelte/src/compiler/utils/mapped_code.js
- packages/svelte/src/compiler/preprocess/replace_in_code.js
Source
- packages/svelte/src/compiler/phases/3-transform/client/visitors/ForOfStatement.js
- packages/svelte/src/compiler/phases/2-analyze/visitors/TransitionDirective.js
- packages/svelte/src/compiler/phases/3-transform/client/visitors/TransitionDirective.js
- packages/svelte/src/compiler/utils/ast.js
- packages/svelte/src/compiler/utils/compile_diagnostic.js
- packages/svelte/src/compiler/preprocess/index.js
- packages/svelte/src/compiler/legacy.js
- packages/svelte/src/compiler/utils/mapped_code.js
- packages/svelte/src/compiler/preprocess/replace_in_code.js
Frequently Asked Questions
What is the Migrator subdomain?
Migrator is a subdomain in the svelte codebase, part of the Compiler domain. Automates the transition of legacy Svelte code to modern Svelte 5 syntax. It contains 9 source files.
Which domain does Migrator belong to?
Migrator belongs to the Compiler domain.
What functions are in Migrator?
The Migrator subdomain contains 73 function(s): ForOfStatement, TransitionDirective, TransitionDirective, _extract_paths, a11y_no_interactive_element_to_noninteractive_role, a11y_no_noninteractive_element_to_interactive_role, add_to_map, apply_preprocessor_sourcemap, and 65 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free