MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / moduleDefaultExport

Function moduleDefaultExport

src/resolution/import-resolver.ts:5284–5286  ·  view source on GitHub ↗
(filePath: string, language: Language, context: ResolutionContext)

Source from the content-addressed store, hash-verified

5282 * The lookup resolveViaImport makes for that binding, memoized with it.
5283 */
5284export function moduleDefaultExport(filePath: string, language: Language, context: ResolutionContext): Node | undefined {
5285 return findExportedSymbol(filePath, { isDefault: true, isNamespace: false, exportedName: 'default', memberName: null }, language, context, new Set());
5286}
5287
5288/** A `.js`/`.ts`-family file, the modules whose default an `export default` statement or the first exported declaration names. */
5289export function isJsFamilyFile(filePath: string): boolean {

Callers 1

changedDefaultExportsMethod · 0.90

Calls 1

findExportedSymbolFunction · 0.85

Tested by

no test coverage detected