"HIR legacy AST wrappers (inventory)"

HIR legacy inventory

HirModule holds first-class vectors for codegen (functions, tables, …) plus:

  • legacy_ast_nodes — declarations with no dedicated Hir* bucket yet (see lowering default arm in lower/mod.rs).
  • AST-retained wrappersHirComponent, HirPage, HirIsland, … wrapping raw AST decls until TS/Rust codegen is fully HIR-native.

Recently lowered (database)

AST variantHIR target
Decl::CollectionHirCollection
Decl::VectorIndexHirVectorIndex
Decl::SearchIndexHirSearchIndex

Wrapper types (migrate to typed HIR bodies)

TypeNotes
HirComponentComponent AST retained
HirV0Componentv0 stub
HirRoutes / HirIsland / HirLayout / HirPageRouter / TanStack migration
HirContext / HirHook / HirErrorBoundary / HirLoading / HirNotFoundUI 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.