You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decouple Store internals from CodeObject hierarchy
Move resolution logic out of CodeObjects into Store:
- Add `Store#resolve_parent` to encapsulate lazy parent loading
(previously `CodeObject#parent` called `load_class` for disk I/O)
- Add `Store#resolve_mixin` to encapsulate namespace-walking
(previously 30 lines of scoping logic lived in `Mixin#module`)
Consolidate file normalization in base `CodeObject#store=`:
- Remove redundant `store=` overrides from `MethodAttr`, `AnyMethod`,
`Mixin`, and `Constant` that all did identical `add_file` calls
- Fix pre-existing bug where `AnyMethod` called `add_file` twice
Replace direct hash reads with existing finder methods:
- Use `find_class_or_module`, `find_class_named`, `find_module_named`
instead of `@store.classes_hash[]` / `@store.modules_hash[]`
Simplify `add_class_or_module` signature:
- Drop the `all_hash` parameter that passed Store's internal hash
by reference; method now registers directly via the hash accessors
0 commit comments