hashc icon indicating copy to clipboard operation
hashc copied to clipboard

Fix import resolution logic

Open feds01 opened this issue 10 months ago • 0 comments

This fixes issue #980 and other similar issues where given that multiple imports are being simultaneously parsed, the insertion order of the modules in NodeMap is not correctly preserved when using a Vec. This comes from the fact that the parser generates the corresponding ModuleId. To respect the order of insertion, we use a map between the generated ModuleId and the parsed Modules.

fixes #980 fixes #982

feds01 avatar Apr 23 '24 05:04 feds01