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

Function moduleDefaultExport

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

Source from the content-addressed store, hash-verified

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

Callers 1

changedDefaultExportsMethod · 0.90

Calls 1

findExportedSymbolFunction · 0.85

Tested by

no test coverage detected