Beginning of radical rewrite of link phase. More of linking will be self-hosted. The biggest new thing here is $GetLinkingInfo which queries information that the parser must gather and store about the import/export/module declarations in each script or module body.