HIR legacy inventory
HirModule holds first-class vectors for codegen (functions, tables, …) plus:
legacy_ast_nodes— declarations with no dedicatedHir*bucket yet (see lowering default arm inlower/mod.rs).- AST-retained wrappers —
HirComponent,HirPage,HirIsland, … wrapping raw AST decls until TS/Rust codegen is fully HIR-native.
Recently lowered (database)
| AST variant | HIR target |
|---|---|
Decl::Collection | HirCollection |
Decl::VectorIndex | HirVectorIndex |
Decl::SearchIndex | HirSearchIndex |
Wrapper types (migrate to typed HIR bodies)
| Type | Notes |
|---|---|
HirComponent | Component AST retained |
HirV0Component | v0 stub |
HirRoutes / HirIsland / HirLayout / HirPage | Router / TanStack migration |
HirContext / HirHook / HirErrorBoundary / HirLoading / HirNotFound | UI shells |
Baseline gate
Unit test hir_lowering_maps_collection_vector_search_out_of_legacy ensures collection / vector / search indices do not land in legacy_ast_nodes. Extend with new constructs as they graduate from the default lowering arm.