Closed RomainMuller closed 2 months ago
Attention: Patch coverage is 69.85915%
with 107 lines
in your changes missing coverage. Please review.
Project coverage is 62.57%. Comparing base (
741f717
) to head (a5eaa59
). Report is 2 commits behind head on main.
Create a new
injector.Injector
API that does not rely ondecorator.Load
(internally usingpackages.Load
), instead using the basicgo/types
API to type-check the AST nodes in order to obtain theUses
map that is sufficient to build an import-managingdecorator.Decorator
instance.The package name resolution is done by parsing type information from the archives mentioned in the
importcfg
file.This change removes unnecessary compilation of un-instrumented archives which are not useful, and hence saves time and disk space.
The new API also does not consider
PreserveLineInfo
to be optional (this was never exposed to end-users anyway), so a bunch of test reference files have changed to now include line directives.