MCPcopy Create free account
hub / github.com/microsoft/typescript-go / NewResolver

Function NewResolver

internal/module/resolver.go:168–181  ·  view source on GitHub ↗
(
	host ResolutionHost,
	options *core.CompilerOptions,
	typingsLocation string,
	projectName string,
)

Source from the content-addressed store, hash-verified

166}
167
168func NewResolver(
169 host ResolutionHost,
170 options *core.CompilerOptions,
171 typingsLocation string,
172 projectName string,
173) *Resolver {
174 return &Resolver{
175 host: host,
176 caches: newCaches(host.GetCurrentDirectory(), host.FS().UseCaseSensitiveFileNames(), options),
177 compilerOptions: options,
178 typingsLocation: typingsLocation,
179 projectName: projectName,
180 }
181}
182
183func NewResolverWithOptions(
184 host ResolutionHost,

Calls 4

newCachesFunction · 0.85
GetCurrentDirectoryMethod · 0.65
FSMethod · 0.65