package experimental

import (
	

	
	
)

// ImportResolver is an experimental func type that, if set,
// will be used as the first step in resolving imports.
// See issue 2294.
// If the import name is not found, it should return nil.
type ImportResolver func(name string) api.Module

// WithImportResolver returns a new context with the given ImportResolver.
func ( context.Context,  ImportResolver) context.Context {
	return context.WithValue(, expctxkeys.ImportResolverKey{}, )
}