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

Method resolveExternalModuleSymbol

internal/checker/checker.go:15474–15482  ·  view source on GitHub ↗
(moduleSymbol *ast.Symbol, dontResolveAlias bool)

Source from the content-addressed store, hash-verified

15472}
15473
15474func (c *Checker) resolveExternalModuleSymbol(moduleSymbol *ast.Symbol, dontResolveAlias bool) *ast.Symbol {
15475 if moduleSymbol != nil {
15476 exportEquals := c.resolveSymbolEx(moduleSymbol.Exports[ast.InternalSymbolNameExportEquals], dontResolveAlias)
15477 if exportEquals != nil {
15478 return c.getMergedSymbol(exportEquals)
15479 }
15480 }
15481 return moduleSymbol
15482}
15483
15484// Resolves the given external module symbol, possibly removing call and construct signatures or creating a
15485// wrapper module with a synthetic default.

Calls 2

resolveSymbolExMethod · 0.95
getMergedSymbolMethod · 0.95

Tested by

no test coverage detected