(host RegistryCloneHost, realpath func(string) string, opts module.ResolverOptions)
| 315 | } |
| 316 | |
| 317 | func getModuleResolver(host RegistryCloneHost, realpath func(string) string, opts module.ResolverOptions) *module.Resolver { |
| 318 | rh := &resolutionHost{ |
| 319 | fs: wrapvfs.Wrap(host.FS(), wrapvfs.Replacements{Realpath: realpath}), |
| 320 | currentDirectory: host.GetCurrentDirectory(), |
| 321 | } |
| 322 | return module.NewResolverWithOptions(rh, core.EmptyCompilerOptions, "", "", opts) |
| 323 | } |
no test coverage detected