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

Function moduleDefaultExport

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

Source from the content-addressed store, hash-verified

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

Callers 1

changedDefaultExportsMethod · 0.90

Calls 1

findExportedSymbolFunction · 0.85

Tested by

no test coverage detected