({ source, symbol, importKind, entryExpr, isInline })
| 516 | } |
| 517 | |
| 518 | function findCommandObjectSource({ source, symbol, importKind, entryExpr, isInline }) { |
| 519 | if (isInline) return findInlineCommandObjectSource(source, symbol) |
| 520 | |
| 521 | if (importKind === 'named') { |
| 522 | return findInlineCommandObjectSource(source, symbol) |
| 523 | } |
| 524 | |
| 525 | if (entryExpr.endsWith('()')) { |
| 526 | return findDefaultExportObjectSource(source) |
| 527 | } |
| 528 | |
| 529 | return findDefaultExportObjectSource(source) ?? findInlineCommandObjectSource(source, symbol) |
| 530 | } |
| 531 | |
| 532 | function findIfBlocks(source) { |
| 533 | const blocks = [] |
no test coverage detected